23694c5e01ee5b445847a6f6727a534d401700b1
[gnulib.git] / ChangeLog
1 2011-02-06  Bruno Haible  <bruno@clisp.org>
2
3         New module 'wcsstr'.
4         * modules/wcsstr: New file.
5         * lib/wchar.in.h (wcsstr): New declaration.
6         * lib/wcsstr.c: New file.
7         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8         * m4/wcsstr.m4: New file.
9         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13         * doc/posix-functions/wcsstr.texi: Mention the new module.
14
15 2011-02-06  Bruno Haible  <bruno@clisp.org>
16
17         New module 'wcspbrk'.
18         * modules/wcspbrk: New file.
19         * lib/wchar.in.h (wcspbrk): New declaration.
20         * lib/wcspbrk.c: New file.
21         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22         * m4/wcspbrk.m4: New file.
23         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
26         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
27         * doc/posix-functions/wcspbrk.texi: Mention the new module.
28
29 2011-02-06  Bruno Haible  <bruno@clisp.org>
30
31         New module 'wcsspn'.
32         * modules/wcsspn: New file.
33         * lib/wchar.in.h (wcsspn): New declaration.
34         * lib/wcsspn.c: New file.
35         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
36         * m4/wcsspn.m4: New file.
37         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
38         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
39         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
40         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
41         * doc/posix-functions/wcsspn.texi: Mention the new module.
42
43 2011-02-06  Bruno Haible  <bruno@clisp.org>
44
45         New module 'wcscspn'.
46         * modules/wcscspn: New file.
47         * lib/wchar.in.h (wcscspn): New declaration.
48         * lib/wcscspn.c: New file.
49         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
50         * m4/wcscspn.m4: New file.
51         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
52         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
53         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
54         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55         * doc/posix-functions/wcscspn.texi: Mention the new module.
56
57 2011-02-06  Bruno Haible  <bruno@clisp.org>
58
59         New module 'wcsrchr'.
60         * modules/wcsrchr: New file.
61         * lib/wchar.in.h (wcsrchr): New declaration.
62         * lib/wcsrchr.c: New file.
63         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
64         * m4/wcsrchr.m4: New file.
65         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
66         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
67         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
68         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
69         * doc/posix-functions/wcsrchr.texi: Mention the new module.
70
71 2011-02-06  Bruno Haible  <bruno@clisp.org>
72
73         New module 'wcschr'.
74         * modules/wcschr: New file.
75         * lib/wchar.in.h (wcschr): New declaration.
76         * lib/wcschr.c: New file.
77         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
78         * m4/wcschr.m4: New file.
79         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
80         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
81         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
82         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
83         * doc/posix-functions/wcschr.texi: Mention the new module.
84
85 2011-02-06  Bruno Haible  <bruno@clisp.org>
86
87         New module 'wcsdup'.
88         * modules/wcsdup: New file.
89         * lib/wchar.in.h (wcsdup): New declaration.
90         * lib/wcsdup.c: New file.
91         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
92         * m4/wcsdup.m4: New file.
93         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
94         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
95         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
96         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
97         * doc/posix-functions/wcsdup.texi: Mention the new module.
98
99 2011-02-06  Bruno Haible  <bruno@clisp.org>
100
101         New module 'wcsxfrm'.
102         * modules/wcsxfrm: New file.
103         * lib/wchar.in.h (wcsxfrm): New declaration.
104         * lib/wcsxfrm.c: New file.
105         * lib/wcsxfrm-impl.h: New file.
106         * m4/wcsxfrm.m4: New file.
107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
110         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
111         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
112
113 2011-02-06  Bruno Haible  <bruno@clisp.org>
114
115         New module 'wcscoll'.
116         * modules/wcscoll: New file.
117         * lib/wchar.in.h (wcscoll): New declaration.
118         * lib/wcscoll.c: New file.
119         * lib/wcscoll-impl.h: New file.
120         * m4/wcscoll.m4: New file.
121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
124         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
125         * doc/posix-functions/wcscoll.texi: Mention the new module.
126
127 2011-02-06  Bruno Haible  <bruno@clisp.org>
128
129         New module 'wcsncasecmp'.
130         * modules/wcsncasecmp: New file.
131         * lib/wchar.in.h (wcsncasecmp): New declaration.
132         * lib/wcsncasecmp.c: New file.
133         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
134         * m4/wcsncasecmp.m4: New file.
135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
138         HAVE_WCSNCASECMP.
139         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
140         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
141
142 2011-02-06  Bruno Haible  <bruno@clisp.org>
143
144         New module 'wcscasecmp'.
145         * modules/wcscasecmp: New file.
146         * lib/wchar.in.h (wcscasecmp): New declaration.
147         * lib/wcscasecmp.c: New file.
148         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
149         * m4/wcscasecmp.m4: New file.
150         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
151         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
152         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
153         HAVE_WCSCASECMP.
154         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
155         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
156
157 2011-02-05  Bruno Haible  <bruno@clisp.org>
158
159         New module 'wcsncmp'.
160         * modules/wcsncmp: New file.
161         * lib/wchar.in.h (wcsncmp): New declaration.
162         * lib/wcsncmp.c: New file.
163         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
164         * m4/wcsncmp.m4: New file.
165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
167         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
168         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
169         * doc/posix-functions/wcsncmp.texi: Mention the new module.
170
171 2011-02-05  Bruno Haible  <bruno@clisp.org>
172
173         New module 'wcscmp'.
174         * modules/wcscmp: New file.
175         * lib/wchar.in.h (wcscmp): New declaration.
176         * lib/wcscmp.c: New file.
177         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
178         * m4/wcscmp.m4: New file.
179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
181         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
182         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
183         * doc/posix-functions/wcscmp.texi: Mention the new module.
184
185 2011-02-05  Bruno Haible  <bruno@clisp.org>
186
187         New module 'wcsncat'.
188         * modules/wcsncat: New file.
189         * lib/wchar.in.h (wcsncat): New declaration.
190         * lib/wcsncat.c: New file.
191         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
192         * m4/wcsncat.m4: New file.
193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
196         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
197         * doc/posix-functions/wcsncat.texi: Mention the new module.
198
199 2011-02-05  Bruno Haible  <bruno@clisp.org>
200
201         New module 'wcscat'.
202         * modules/wcscat: New file.
203         * lib/wchar.in.h (wcscat): New declaration.
204         * lib/wcscat.c: New file.
205         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
206         * m4/wcscat.m4: New file.
207         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
208         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
209         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
210         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
211         * doc/posix-functions/wcscat.texi: Mention the new module.
212
213 2011-02-05  Bruno Haible  <bruno@clisp.org>
214
215         New module 'wcpncpy'.
216         * modules/wcpncpy: New file.
217         * lib/wchar.in.h (wcpncpy): New declaration.
218         * lib/wcpncpy.c: New file.
219         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
220         * m4/wcpncpy.m4: New file.
221         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
222         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
223         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
224         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
225         * doc/posix-functions/wcpncpy.texi: Mention the new module.
226
227 2011-02-05  Bruno Haible  <bruno@clisp.org>
228
229         New module 'wcsncpy'.
230         * modules/wcsncpy: New file.
231         * lib/wchar.in.h (wcsncpy): New declaration.
232         * lib/wcsncpy.c: New file.
233         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
234         * m4/wcsncpy.m4: New file.
235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
238         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
239         * doc/posix-functions/wcsncpy.texi: Mention the new module.
240
241 2011-02-05  Bruno Haible  <bruno@clisp.org>
242
243         New module 'wcpcpy'.
244         * modules/wcpcpy: New file.
245         * lib/wchar.in.h (wcpcpy): New declaration.
246         * lib/wcpcpy.c: New file.
247         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
248         * m4/wcpcpy.m4: New file.
249         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
250         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
251         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
252         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
253         * doc/posix-functions/wcpcpy.texi: Mention the new module.
254
255 2011-02-05  Bruno Haible  <bruno@clisp.org>
256
257         New module 'wcscpy'.
258         * modules/wcscpy: New file.
259         * lib/wchar.in.h (wcscpy): New declaration.
260         * lib/wcscpy.c: New file.
261         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
262         * m4/wcscpy.m4: New file.
263         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
264         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
265         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
266         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
267         * doc/posix-functions/wcscpy.texi: Mention the new module.
268
269 2011-02-05  Bruno Haible  <bruno@clisp.org>
270
271         New module 'wcsnlen'.
272         * modules/wcsnlen: New file.
273         * lib/wchar.in.h (wcsnlen): New declaration.
274         * lib/wcsnlen.c: New file.
275         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
276         * m4/wcsnlen.m4: New file.
277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
280         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
281         * doc/posix-functions/wcsnlen.texi: Mention the new module.
282
283 2011-02-05  Bruno Haible  <bruno@clisp.org>
284
285         New module 'wcslen'.
286         * modules/wcslen: New file.
287         * lib/wchar.in.h (wcslen): New declaration.
288         * lib/wcslen.c: New file.
289         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
290         * m4/wcslen.m4: New file.
291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
294         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
295         * doc/posix-functions/wcslen.texi: Mention the new module.
296
297 2011-02-05  Bruno Haible  <bruno@clisp.org>
298
299         New module 'wmemset'.
300         * modules/wmemset: New file.
301         * lib/wchar.in.h (wmemset): New declaration.
302         * lib/wmemset.c: New file.
303         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
304         * m4/wmemset.m4: New file.
305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
307         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
308         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
309         * doc/posix-functions/wmemset.texi: Mention the new module.
310
311 2011-02-05  Bruno Haible  <bruno@clisp.org>
312
313         New module 'wmemmove'.
314         * modules/wmemmove: New file.
315         * lib/wchar.in.h (wmemmove): New declaration.
316         * lib/wmemmove.c: New file.
317         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
318         * m4/wmemmove.m4: New file.
319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
321         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
322         HAVE_WMEMMOVE.
323         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
324         * doc/posix-functions/wmemmove.texi: Mention the new module.
325
326 2011-02-05  Bruno Haible  <bruno@clisp.org>
327
328         New module 'wmemcpy'.
329         * modules/wmemcpy: New file.
330         * lib/wchar.in.h (wmemcpy): New declaration.
331         * lib/wmemcpy.c: New file.
332         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
333         * m4/wmemcpy.m4: New file.
334         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
335         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
336         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
337         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
338         * doc/posix-functions/wmemcpy.texi: Mention the new module.
339
340 2011-02-05  Bruno Haible  <bruno@clisp.org>
341
342         New module 'wmemcmp'.
343         * modules/wmemcmp: New file.
344         * lib/wchar.in.h (wmemcmp): New declaration.
345         * lib/wmemcmp.c: New file.
346         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
347         * m4/wmemcmp.m4: New file.
348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
350         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
351         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
352         * doc/posix-functions/wmemcmp.texi: Mention the new module.
353
354 2011-02-07  Jim Meyering  <meyering@redhat.com>
355
356         di-set, ino-map: new modules, from coreutils
357         * lib/di-set.c: New file.
358         * lib/di-set.h: Likewise.
359         * lib/ino-map.c: Likewise.
360         * lib/ino-map.h: Likewise.
361         * modules/di-set: Likewise.
362         * modules/di-set-tests: Likewise.
363         * modules/ino-map: Likewise.
364         * modules/ino-map-tests: Likewise.
365         * tests/test-di-set.c: Likewise.
366         * tests/test-ino-map.c: Likewise.
367
368 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
369
370         getloadavg: merge minor changes from Emacs
371
372         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
373         (getloadavg): Use memset, not bzero.
374
375         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
376         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
377         clash (bug#86).
378
379 2010-11-14  Bruno Haible  <bruno@clisp.org>
380
381         Allow multiple gnulib generated replacements to coexist.
382         * lib/getopt.in.h (struct option): Avoid identical redefinition.
383         * lib/inttypes.in.h (imaxdiv_t): Likewise.
384         * lib/langinfo.in.h (nl_item): Likewise.
385         * lib/math.in.h (_NaN, NAN): Likewise.
386         * lib/netdb.in.h (struct addrinfo): Likewise.
387         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
388         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
389         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
390         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
391         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
392         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
393         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
394         pthread_mutexattr_init, pthread_mutexattr_settype,
395         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
396         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
397         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
398         pthread_spin_trylock, pthread_spin_unlock): Likewise.
399         * lib/sched.in.h (struct sched_param): Likewise.
400         * lib/se-selinux.in.h (security_class_t, security_context_t,
401         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
402         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
403         lsetfilecon, fsetfilecon, security_check_context,
404         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
405         Likewise.
406         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
407         Likewise.
408         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
409         _gl_function_taking_int_returning_void_t, union sigval,
410         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
411         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
412         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
413         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
414         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
415         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
416         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
417         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
418         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
419         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
420         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
421         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
422         socklen_t, rpl_fd_isset): Likewise.
423         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
424         * lib/sys_time.in.h (struct timeval): Likewise.
425         * lib/sys_times.in.h (struct tms): Likewise.
426         * lib/sys_utsname.in.h (struct utsname):
427         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
428         * lib/unistd.in.h (getpagesize): Likewise.
429         * lib/wchar.in.h (mbstate_t): Likewise.
430         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
431         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
432         towlower, towupper): Likewise.
433         Reported by Sam Steingold <sds@gnu.org>.
434
435 2011-02-05  Eric Blake  <eblake@redhat.com>
436
437         unsetenv: work around Haiku issues
438         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
439         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
440
441 2010-12-30  Bruce Korb  <bkorb@gnu.org>
442
443         libposix: avoid calling error() within libposix
444         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
445         is defined.
446
447 2011-02-05  Eric Blake  <eblake@redhat.com>
448
449         strerror_r-posix: port to cygwin
450         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
451         implementation.
452         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
453         * tests/test-strerror_r.c (main): Fix test.
454         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
455         issue.
456
457 2011-02-05  Bruno Haible  <bruno@clisp.org>
458
459         New module 'wmemchr'.
460         * modules/wmemchr: New file.
461         * lib/wchar.in.h (wmemchr): New declaration.
462         * lib/wmemchr.c: New file.
463         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
464         * m4/wmemchr.m4: New file.
465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
467         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
468         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
469         * doc/posix-functions/wmemchr.texi: Mention the new module.
470
471 2011-02-04  Eric Blake  <eblake@redhat.com>
472
473         fdopendir: detect FreeBSD bug
474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
475         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
476
477 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
478
479         stdbool: do not define HAVE_STDBOOL_H
480         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
481         AC_HEADER_STDBOOL.  All uses changed.  Do not define
482         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
483         imported from the latest Autoconf git.  It was motivated by Emacs,
484         which uses gnulib but does not need HAVE_STDBOOL_H.
485
486 2011-02-04  Bruno Haible  <bruno@clisp.org>
487
488         wcsnrtombs: Prepare for new module wwcsnrtombs.
489         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
490         * lib/wcsnrtombs.c: Include it.
491         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
492
493         wcsrtombs: Prepare for new module wwcsrtombs.
494         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
495         * lib/wcsrtombs.c: Include it.
496         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
497
498         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
499         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
500         * lib/mbsnrtowcs.c: Include it.
501         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
502
503         mbsrtowcs: Prepare for new module mbsrtowwcs.
504         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
505         * lib/mbsrtowcs.c: Include it.
506         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
507
508 2011-02-04  Bruno Haible  <bruno@clisp.org>
509
510         vasnprintf: Reduce use of malloc for small format strings.
511         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
512         (arguments): Add room for the first 7 arguments.
513         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
514         (char_directives, u8_directives, u16_directives, u32_directives): Add
515         room for the first 7 directives.
516         * lib/printf-parse.c: Include <string.h>.
517         (PRINTF_PARSE): Change memory handling code so that it uses the first
518         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
519         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
520         Reported by Pádraig Brady <P@draigbrady.com>.
521
522 2011-01-31  Eric Blake  <eblake@redhat.com>
523
524         dup2: work around Haiku bug
525         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
526         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
527         * doc/posix-functions/dup2.texi (dup2): Document the bug.
528         * tests/test-dup2.c (main): Enhance test.
529
530 2011-01-31  Simon Josefsson  <simon@josefsson.org>
531
532         doc: off_t is not available in eglibc 2.11.2 stdio.h.
533         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
534         declared by eglibc 2.11.2.
535         * lib/stdio.in.h: Likewise.
536
537 2011-01-31  Eric Blake  <eblake@redhat.com>
538
539         ignore-value: add missing test dependency
540         * tests/test-ignore-value.c: Revert previous change; stdio.h
541         provides off_t.
542         * modules/ignore-value-tests (Depends-on): Add missing dependency.
543
544 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
545
546         mktime: clarify long_int width checking
547         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
548         the top level, to make it clearer that the assumption about
549         long_int width is being checked.  See
550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
551
552 2011-01-30  Simon Josefsson  <simon@josefsson.org>
553
554         ignore-value: Fix self-test.
555         * tests/test-ignore-value.c: Include sys/types.h for off_t.
556
557 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
558
559         TYPE_MAXIMUM: avoid theoretically undefined behavior
560         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
561         negative number, which the C Standard says has undefined behavior.
562         In practice this is not a problem, but might as well do it by the book.
563         Reported by Rich Felker and Eric Blake; see
564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
565         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
566         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
568         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
569         * m4/stdint.m4 (gl_STDINT_H): Likewise.
570         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
571
572         mktime: #undef mktime before #defining it
573         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
574
575         mktime: systematically normalize tm_isdst comparisons
576         * lib/mktime.c (isdst_differ): New function.
577         (__mktime_internal): Use it systematically for all isdst comparisons.
578         This completes the fix for libc BZ #6723, and removes the need for
579         normalizing tm_isdst.  See
580         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
581         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
582
583         mktime: fix some integer overflow issues and sidestep the rest
584
585         This was prompted by a bug report by Benjamin Lindner for MinGW
586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
587         His bug is due to signed integer overflow (0 - INT_MIN), and I
588         I scanned through mktime.c looking for other integer overflow
589         problems, fixing all the bugs I found.
590
591         Although the C Standard says the resulting code is still not safe
592         in the presence of integer overflow, in practice it should be good
593         enough for all real-world two's-complement implementations, except
594         for debugging environments that deliberately trap on integer
595         overflow (e.g., gcc -ftrapv).
596
597         * lib/mktime.c (WRAPV): New macro.
598         (SHR): Also check that long_int and time_t shift right in the
599         usual way, before using the fast-but-unportable method.
600         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
601         used.  The code already assumed two's complement, so there's
602         no need to test for alternatives.  All uses removed.
603         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
604         the C standard.  Problem reported by Rich Felker in
605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
606         (twos_complement_arithmetic): Also check long_int and time_t.
607         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
608         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
609         (__mktime_internal): Avoid integer overflow with unary subtraction
610         in two instances where -1 - X is an adequate replacement for -X,
611         since the calculations are approximate.
612
613 2011-01-29  Eric Blake  <eblake@redhat.com>
614
615         mktime: avoid infinite loop
616         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
617         type; behavior is still undefined but portable to all known targets.
618         Reported by Rich Felker.
619
620 2011-01-29  Simon Josefsson  <simon@josefsson.org>
621
622         rename, unlink, same-inode: Relicense.
623         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
624         * modules/unlink (License): Likewise.
625         * modules/same-inode (License): Likewise.
626
627 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
628
629         mktime: avoid problems on NetBSD 5 / i386
630         * lib/mktime.c (long_int): New type.  This works around a problem
631         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
632         but time_t is 64 bits, and where I expect the existing code is
633         wrong in some cases.
634         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
635         (ydhms_diff): Bring back the compile-time check for wide-enough
636         year and yday.
637
638         mktime: fix misspelling in comment
639         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
640         This merges all recent glibc changes of importance.
641
642 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
643
644         move-if-change: cope with concurrent mv of identical file.
645         * build-aux/move-if-change (CMPPROG): Accept environment
646         variable as an override for `cmp'.
647         (usage): Document CMPPROG.
648         Adjust comparison to drop stdout.  Cope with failure of mv if
649         the target file exists and is identical to the source, for
650         parallel builds.
651         Report from H.J. Lu against binutils in PR binutils/12283.
652
653 2011-01-28  Bruce Korb  <bkorb@gnu.org>
654
655         * users.txt: Mention sharutils.
656
657 2011-01-28  Simon Josefsson  <simon@josefsson.org>
658
659         * users.txt: Mention OATH Toolkit.
660
661 2011-01-27  Bruno Haible  <bruno@clisp.org>
662
663         Prepare for supporting FreeBSD 10.
664         * build-aux/config.libpath: Remove handling of freebsd1*.
665
666 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
667
668         Prepare for supporting FreeBSD 10.
669         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
670         match FreeBSD 10.0.
671
672 2011-01-27  Bruno Haible  <bruno@clisp.org>
673
674         vma-iter, get-rusage-as: Add OpenBSD support.
675         * modules/vma-iter (configure.ac): Test for mquery.
676         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
677         * lib/vma-iter.c: Include <sys/mman.h>.
678         (vma_iterate): Add an implementation based on mquery().
679         * lib/resource-ext.h (get_rusage_as): Update comments.
680         * lib/get-rusage-as.c: Likewise.
681         * lib/get-rusage-data.c: Likewise.
682
683 2011-01-26  Karl Berry  <karl@gnu.org>
684
685         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
686         variables to make it easier to override the makeinfo program used.
687
688 2011-01-26  Eric Blake  <eblake@redhat.com>
689
690         fcntl: work around Haiku F_DUPFD bugs
691         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
692         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
693         cloexec bit on duplication.
694         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
695
696 2011-01-26  Bruno Haible  <bruno@clisp.org>
697
698         Enable memory leak tests on AIX.
699         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
700         * tests/test-fprintf-posix3.c (main): Likewise.
701
702 2011-01-26  Bruno Haible  <bruno@clisp.org>
703
704         Tests for module 'get-rusage-data'.
705         * modules/get-rusage-data-tests: New file.
706         * tests/test-get-rusage-data.c: New file.
707
708         New module 'get-rusage-data'.
709         * lib/resource-ext.h (get_rusage_data): New declaration.
710         * lib/get-rusage-data.c: New file.
711         * modules/get-rusage-data: New file.
712
713 2011-01-25  Bruno Haible  <bruno@clisp.org>
714
715         get-rusage-as: Allow for easier testing.
716         * lib/resource-ext.h (get_rusage_as): Add comment.
717         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
718         (main): New function for interactive testing.
719
720 2011-01-25  Bruno Haible  <bruno@clisp.org>
721
722         vma-iter: Treat Haiku like BeOS.
723         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
724         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
725
726 2011-01-25  Eric Blake  <eblake@redhat.com>
727
728         c-stack: fix regression on cygwin when libsigsegv is present
729         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
730
731 2011-01-24  Bruno Haible  <bruno@clisp.org>
732
733         vma-iter: Avoid empty intervals.
734         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
735         on an empty interval.
736
737 2011-01-24  Jim Meyering  <meyering@redhat.com>
738
739         u64: remove unnecessary #include
740         * lib/u64.h: Don't include <stddef.h>.  It was not used.
741
742 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
743
744         Allow the user to avoid the GNULIB_TEST_* macros.
745         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
746
747 2011-01-23  Bruno Haible  <bruno@clisp.org>
748
749         New module 'vma-iter'.
750         * lib/vma-iter.h: New file.
751         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
752         * modules/vma-iter: New file.
753         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
754         for get_rusage_as_via_iterator.
755         (vma_iterate_callback): New function.
756         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
757         * modules/get-rusage-as (Depends-on): Add vma-iter.
758
759 2011-01-23  Bruno Haible  <bruno@clisp.org>
760
761         uninorm: Tweak includes.
762         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
763         Reported by Jim Meyering.
764
765 2011-01-23  Bruno Haible  <bruno@clisp.org>
766
767         get-rusage-as: Improve on NetBSD.
768         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
769         /proc, like on FreeBSD.
770
771 2011-01-23  Jim Meyering  <meyering@redhat.com>
772
773         xreadlink.h: remove unnecessary #include
774         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
775
776         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
777         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
778
779 2011-01-23  Bruno Haible  <bruno@clisp.org>
780
781         get-rusage-as: Fix bug.
782         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
783         original limit when aborting the first loop.
784
785 2011-01-23  Bruno Haible  <bruno@clisp.org>
786
787         wctype: Ensure valid C syntax.
788         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
789         unconditionally, instead of gl_NEXT_HEADERS conditionally.
790
791 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
792
793         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
795         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
796         as they are needed only for configure's test case.
797         This removes two unnecessary symbols from config.h.
798
799         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
800         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
802         AC_CHECK_HEADERS_ONCE on a header that we also invoke
803         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
804         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
805         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
806         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
807         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
808         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
809         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
810         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
811         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
812         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
813         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
814         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
815         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
816         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
817
818 2011-01-21  Eric Blake  <eblake@redhat.com>
819
820         maintainer-makefile: work with older git for submodule check
821         * top/maint.mk (public-submodule-commit): Rewrite to avoid
822         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
823         Reported by Matthias Bolte.
824
825         bootstrap: minor portability fixes
826         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
827         (usage): Omit leading capital and trailing . on help phrases, per
828         GNU Coding Standards.
829         (check_versions, top level): Prefix messages with script name.
830
831 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
832
833         bootstrap: support --no-git option
834         * build-aux/bootstrap: Add --no-git option, to be used when
835         --gnulib-srcdir points to the exact desired checkout.
836
837 2011-01-21  Eric Blake  <eblake@redhat.com>
838
839         strerror_r-posix: work with glibc 2.13
840         * lib/strerror_r.c (strerror_r): Fix return type.
841
842 2011-01-21  Pádraig Brady  <P@draigBrady.com>
843             Bruno Haible  <bruno@clisp.org>
844
845         uN_strstr: New unit tests.
846         * modules/unistr/u8-strstr-tests: New file.
847         * modules/unistr/u16-strstr-tests: New file.
848         * modules/unistr/u32-strstr-tests: New file.
849         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
850         * tests/unistr/test-u8-strstr.c: New file.
851         * tests/unistr/test-u16-strstr.c: New file.
852         * tests/unistr/test-u32-strstr.c: New file.
853
854 2011-01-21  Pádraig Brady  <P@draigBrady.com>
855             Bruno Haible  <bruno@clisp.org>
856
857         Make uN_strstr functions O(n) worst-case.
858         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
859         16-bit and 32-bit unit cases, use the unibyte algorithm from
860         lib/mbsstr.c.
861         * lib/unistr/u8-strstr.c: Include <string.h>.
862         (UNIT_IS_UINT8_T): New macro.
863         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
864         (U_STRLEN, U_STRNLEN): New macros.
865         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
866         (U_STRLEN, U_STRNLEN): New macros.
867         * modules/unistr/u8-strstr (Depends-on): Add strstr.
868         (configure.ac): Update required libunistring version.
869         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
870         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
871         malloca.
872         (configure.ac): Update required libunistring version.
873         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
874         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
875         malloca.
876         (configure.ac): Update required libunistring version.
877
878 2011-01-21  Pádraig Brady  <P@draigBrady.com>
879             Bruno Haible  <bruno@clisp.org>
880
881         Prepare for faster uN_strstr functions.
882         * lib/str-kmp.h: Support definable UNITs.
883         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
884         needle_len argument.
885         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
886         * lib/mbscasestr.c (mbscasestr): Likewise.
887
888 2011-01-21  Pádraig Brady <P@draigBrady.com>
889
890         malloca-tests: make faster by unsetting MALLOC_PERTURB_
891         * tests/test-malloca.c (main): Unset the environment variable
892         to greatly speed up the test.
893         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
894         * modules/malloca-tests: Depend on unsetenv.
895
896 2011-01-21  Pádraig Brady <P@draigBrady.com>
897
898         ignore-value: remove stdint dependency
899         * lib/ignore-value.h: Remove <stdint.h>
900         * modules/ignore-value: Remove stdint dependency.
901
902 2011-01-21  Jim Meyering  <meyering@redhat.com>
903
904         maint.mk: adjust variable name to be consistent with other gl_ vars
905         * top/maint.mk (gl_public_submodule_commit): Rename the variable
906         to be lower case.
907
908 2011-01-20  Jim Meyering  <meyering@redhat.com>
909
910         maint.mk: make "check" depend on public-submodule-commit by default
911         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
912
913 2011-01-20  Bruno Haible  <bruno@clisp.org>
914
915         mbfile, mbiter: Complete change from 2008-12-21.
916         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
917         * m4/mbiter.m4 (gl_MBITER): Likewise.
918
919 2011-01-20  Jim Meyering  <meyering@redhat.com>
920
921         init.sh: insert space between each function name and "()"
922         * tests/init.sh: Make it a little easier to see that a function's
923         name is "warn_", and not "warn" when looking at the first part of
924         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
925
926 2011-01-20  Jim Meyering  <meyering@redhat.com>
927
928         mountlist: clean up code formatting
929         * lib/mountlist.c (read_file_system_list): Split a long line,
930         correct bracing style, use NULL in place of "(struct statfs *)0",
931         don't parenthesize return value, add spaces around "=" and after
932         ";-in-for-stmt".
933
934 2011-01-14  Markus Duft <mduft@gentoo.org>
935
936         mountlist: add support for Interix
937         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
938         Apply statvfs to all entries of /dev/fs.
939         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
940         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
941
942 2011-01-20  Jim Meyering  <meyering@redhat.com>
943
944         maint.mk: improve the public-submodule-commit rule
945         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
946         to suppress printing of its commands... unless V=1.
947         Add git submodule's --quiet option to suppress printing of e.g.,
948         "Entering gnulib" output.
949         "cd" into $(srcdir) before running git submodule.
950
951 2011-01-20  Bruno Haible  <bruno@clisp.org>
952
953         include_next: Fix bug introduced on 2011-01-18.
954         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
955         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
956         ac_cv_header_... variable if the second argument is not 'check'.
957         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
958         gl_NEXT_HEADERS_INTERNAL.
959
960 2011-01-20  Bruno Haible  <bruno@clisp.org>
961
962         Allow the user to avoid the GNULIB_TEST_* macros.
963         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
964         Suggested by Paul Eggert.
965
966 2011-01-14  Jim Meyering  <meyering@redhat.com>
967
968         bootstrap: avoid failure when there is no .gitmodules file
969         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
970         has been assigned to, even when its value is the empty string.
971         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
972         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
973         Reported by John W. Eaton <jwe@gnu.org>.
974
975 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
976
977         assume <ctype.h>, ..., <time.h> exist
978         For years gnulib has been assuming the existence of the headers
979         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
980         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
981         them, since they don't appear to be needed.
982         * README (Portability guidelines): Document this.
983         * lib/flock.c: Assume <fcntl.h> exists.
984         * lib/regex_internal.h: Assume <locale.h> exists.
985         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
986         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
987         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
988         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
989         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
990         * m4/regex.m4 (gl_REGEX): Likewise.
991         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
992         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
993         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
994         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
995         * tests/test-argp.c: Likewise.
996         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
997
998         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
999         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
1000         AA_APPLE_UNIVERSAL_BUILD.  See
1001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
1002         * NEWS: Document this.
1003
1004 2011-01-19  Eric Blake  <eblake@redhat.com>
1005
1006         c-stack: assume stack overflow if SA_SIGINFO unsupported
1007         * lib/c-stack.c (SIGACTION_WORKS): Rename...
1008         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
1009         sigaction will work.
1010         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
1011         behavior match Linux.
1012         * tests/test-c-stack.c (main): Prefer NULL for pointers.
1013
1014         stdbool-tests: accomodate Haiku
1015         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
1016
1017         binary-io: fix O_TEXT on Haiku
1018         * modules/binary-io (Depends-on): Add fcntl-h.
1019         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
1020         than blindly undefining O_TEXT.
1021         Reported by Scott McCreary.
1022
1023 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1024
1025         include_next: do not check for standard headers like stddef.h
1026
1027         I found this problem when modifying Emacs to use gnulib.
1028         I noticed that it added HAVE_STDDEF_H to config.h, even though
1029         gnulib always assumes <stddef.h> exists as per README and this
1030         symbol is unnecessary.
1031         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
1032         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
1033         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
1034         faster for headers like stddef.h that are known to exist.
1035         (gl_CHECK_NEXT_HEADERS): Use it.
1036         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
1037         rather than gl_CHECK_NEXT_HEADERS.
1038         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
1039         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
1040
1041 2011-01-18  Eric Blake  <eblake@redhat.com>
1042
1043         ansi-c++-opt: skip C++ dependency style if C++ is unused
1044         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
1045         tests when we know C++ compilation is not desired.
1046         Reported by Scott McCreary.
1047
1048 2011-01-18  Bruno Haible  <bruno@clisp.org>
1049
1050         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
1051         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
1052         (main): Perform test also when getrlimit and setrlimit don't exist or
1053         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
1054         limiting the address space size using setrlimit, compare the address
1055         space size before and after the the test.
1056         * tests/test-dprintf-posix2.c: Likewise.
1057         * tests/test-fprintf-posix3.sh: Update skip messages.
1058         * tests/test-dprintf-posix2.sh: Likewise.
1059         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
1060         * modules/dprintf-posix-tests (Depends-on): Likewise.
1061         Reported by Bruce Korb <bkorb@gnu.org> and
1062         Gary V. Vaughan <gary@gnu.org>.
1063
1064 2011-01-18  Bruno Haible  <bruno@clisp.org>
1065
1066         get-rusage-as: Improvement for Cygwin.
1067         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
1068         areas that are merely reserved.
1069
1070 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1071
1072         strftime: remove dependencies on multibyte modules
1073
1074         strftime depended on mbrlen, mbsinit, and wchar, but these modules
1075         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
1076         only if __osf__ is defined, and I suspect OSF doesn't need these
1077         other modules.  If my guess is wrong, we'll need to come up with a
1078         variant of strftime that doesn't need the multibyte modules.
1079
1080         I discovered this problem when attempting modify Emacs to use the
1081         strftime module.  With the previous gnulib, this caused Emacs to
1082         need 31 new files, ranging from lib/config.charset to
1083         m4/wint_t.m4.  This was overkill and I expect would be offputting
1084         to the Emacs maintainers.  After this change, only 6 new files are
1085         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
1086         stdbool.m4, and tm_gmtoff.m4.
1087
1088         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
1089         Suggested by Bruno Haible in
1090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
1091         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
1092         and do not check for wchar.h.
1093         * modules/strftime (Files): Remove m4/mbstate_t.m4.
1094         (Depends-on): Remove mbrlen, mbsinit, wchar.
1095
1096 2011-01-18  Bruno Haible  <bruno@clisp.org>
1097
1098         Tests for module 'get-rusage-as'.
1099         * modules/get-rusage-as-tests: New file.
1100         * tests/test-get-rusage-as.c: New file.
1101
1102         New module 'get-rusage-as'.
1103         * modules/get-rusage-as: New file.
1104         * lib/resource-ext.h: New file.
1105         * lib/get-rusage-as.c: New file.
1106
1107 2011-01-17  Eric Blake  <eblake@redhat.com>
1108
1109         sigaction: relax license from LGPLv3+ to LGPLv2+
1110         * modules/sigaction (License): Relax to LGPLv2+.
1111
1112 2011-01-14  Bruno Haible  <bruno@clisp.org>
1113
1114         filemode: Make function declarations usable in C++ mode.
1115         * lib/filemode.h: Enclose function declarations in extern "C" block.
1116         Reported by John W. Eaton <jwe@gnu.org>.
1117
1118 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
1119
1120         save-cwd: no longer include "xgetcwd.h"
1121         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
1122         This avoids a compilation failure in projects that use save-cwd
1123         without also using the xgetcwd module.
1124
1125 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1126
1127         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
1128         This is so that a program like Emacs, which needs only dtoastr,
1129         does not have to bother with distributing and compiling ftoastr
1130         and ldtoastr.
1131         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
1132         * modules/dtoastr, modules/ldtoastr: New files.
1133         * modules/ftoastr: Now works just for 'float'.
1134         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
1135         (Makefile.am): Remove ftoastr.h (not needed and no effect),
1136         dtoastr.c, ldtoastr.c.
1137
1138 2011-01-11  Jim Meyering  <meyering@redhat.com>
1139
1140         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
1141         There is no need to work around the lack of the fchdir function,
1142         since gnulib can now provide a replacement when required.
1143         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
1144         * modules/save-cwd (Depends-on): Add fchdir.
1145
1146 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1147
1148         openat, save-cwd: avoid xmalloc
1149
1150         This removes a direct (but undocumented) dependency of openat on
1151         xalloc, along with an indirect dependency via save-cwd.  It also
1152         removes a dependency of save-cwd on xgetcwd, and thereby
1153         indirectly on xalloc.  This change causes the openat substitute
1154         to fall back on save_cwd when memory is tight, and for save_cwd to
1155         fail instead of dying when memory is tight, but that's good enough.
1156
1157         * lib/openat-proc.c: Include stdlib.h (for malloc), not
1158         xalloc.h (for xmalloc).
1159         (openat_proc_name): Use malloc, not xmalloc.
1160         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
1161         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
1162
1163         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
1164         This avoids heap allocation for file names whose lengths are in
1165         the range 512..1023, with the upper bound increasing to at most
1166         4031 depending on the platform's PATH_MAX.  (We do not want
1167         pathmax.h here as it might supply a non-constant PATH_MAX.)
1168         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
1169         Perhaps they should be moved to malloca.h?
1170         (OPENAT_BUFFER_SIZE): Use them.
1171
1172 2011-01-10  Bruno Haible  <bruno@clisp.org>
1173
1174         doc: Update users.txt.
1175         * users.txt: Add recutils.
1176
1177 2011-01-09  Karl Berry  <karl@gnu.org>
1178
1179         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
1180
1181         * doc/configmake.texi: New file.
1182         * doc/gnulib.texi: Include it.
1183         * modules/configmake: Move documentation from here.
1184
1185 2011-01-09  Bruno Haible  <bruno@clisp.org>
1186
1187         Update to Unicode 6.0.0.
1188         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
1189         (get_lbp): Update for Unicode 6.0.0.
1190         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
1191         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
1192         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
1193         U+11001, U+11038..U+11046. Remove U+06DE.
1194         (uc_width): Fix bounds of planes.
1195         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1196         lib/uniwidth/width.c.
1197         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
1198         trailing whitespace removed.
1199         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
1200         without comments, but with the original copyright notice.
1201         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
1202         * lib/unicase/ignorable.h: Likewise.
1203         * lib/unicase/tocasefold.h: Likewise.
1204         * lib/unicase/tolower.h: Likewise.
1205         * lib/unicase/totitle.h: Likewise.
1206         * lib/unicase/toupper.h: Likewise.
1207         * lib/unictype/bidi_of.h: Likewise.
1208         * lib/unictype/blocks.h: Likewise.
1209         * lib/unictype/categ_C.h: Likewise.
1210         * lib/unictype/categ_Cn.h: Likewise.
1211         * lib/unictype/categ_L.h: Likewise.
1212         * lib/unictype/categ_Ll.h: Likewise.
1213         * lib/unictype/categ_Lm.h: Likewise.
1214         * lib/unictype/categ_Lo.h: Likewise.
1215         * lib/unictype/categ_Lu.h: Likewise.
1216         * lib/unictype/categ_M.h: Likewise.
1217         * lib/unictype/categ_Mc.h: Likewise.
1218         * lib/unictype/categ_Me.h: Likewise.
1219         * lib/unictype/categ_Mn.h: Likewise.
1220         * lib/unictype/categ_N.h: Likewise.
1221         * lib/unictype/categ_Nd.h: Likewise.
1222         * lib/unictype/categ_No.h: Likewise.
1223         * lib/unictype/categ_P.h: Likewise.
1224         * lib/unictype/categ_Po.h: Likewise.
1225         * lib/unictype/categ_S.h: Likewise.
1226         * lib/unictype/categ_Sc.h: Likewise.
1227         * lib/unictype/categ_Sk.h: Likewise.
1228         * lib/unictype/categ_Sm.h: Likewise.
1229         * lib/unictype/categ_So.h: Likewise.
1230         * lib/unictype/categ_of.h: Likewise.
1231         * lib/unictype/combining.h: Likewise.
1232         * lib/unictype/ctype_alnum.h: Likewise.
1233         * lib/unictype/ctype_alpha.h: Likewise.
1234         * lib/unictype/ctype_graph.h: Likewise.
1235         * lib/unictype/ctype_lower.h: Likewise.
1236         * lib/unictype/ctype_print.h: Likewise.
1237         * lib/unictype/ctype_punct.h: Likewise.
1238         * lib/unictype/ctype_upper.h: Likewise.
1239         * lib/unictype/decdigit.h: Likewise.
1240         * lib/unictype/digit.h: Likewise.
1241         * lib/unictype/numeric.h: Likewise.
1242         * lib/unictype/pr_alphabetic.h: Likewise.
1243         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1244         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1245         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1246         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1247         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1248         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1249         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1250         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1251         * lib/unictype/pr_case_ignorable.h: Likewise.
1252         * lib/unictype/pr_cased.h: Likewise.
1253         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
1254         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
1255         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
1256         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
1257         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
1258         * lib/unictype/pr_combining.h: Likewise.
1259         * lib/unictype/pr_composite.h: Likewise.
1260         * lib/unictype/pr_currency_symbol.h: Likewise.
1261         * lib/unictype/pr_decimal_digit.h: Likewise.
1262         * lib/unictype/pr_deprecated.h: Likewise.
1263         * lib/unictype/pr_format_control.h: Likewise.
1264         * lib/unictype/pr_grapheme_base.h: Likewise.
1265         * lib/unictype/pr_grapheme_extend.h: Likewise.
1266         * lib/unictype/pr_grapheme_link.h: Likewise.
1267         * lib/unictype/pr_id_continue.h: Likewise.
1268         * lib/unictype/pr_id_start.h: Likewise.
1269         * lib/unictype/pr_ideographic.h: Likewise.
1270         * lib/unictype/pr_lowercase.h: Likewise.
1271         * lib/unictype/pr_math.h: Likewise.
1272         * lib/unictype/pr_numeric.h: Likewise.
1273         * lib/unictype/pr_other_alphabetic.h: Likewise.
1274         * lib/unictype/pr_other_id_continue.h: Likewise.
1275         * lib/unictype/pr_other_math.h: Likewise.
1276         * lib/unictype/pr_punctuation.h: Likewise.
1277         * lib/unictype/pr_sentence_terminal.h: Likewise.
1278         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1279         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1280         * lib/unictype/pr_unified_ideograph.h: Likewise.
1281         * lib/unictype/pr_uppercase.h: Likewise.
1282         * lib/unictype/pr_xid_continue.h: Likewise.
1283         * lib/unictype/pr_xid_start.h: Likewise.
1284         * lib/unictype/scripts.h: Likewise.
1285         * lib/unictype/scripts_byname.gperf: Likewise.
1286         * lib/unictype/sy_java_ident.h: Likewise.
1287         * lib/unigbrk/gbrkprop.h: Likewise.
1288         * lib/unilbrk/lbrkprop1.h: Likewise.
1289         * lib/unilbrk/lbrkprop2.h: Likewise.
1290         * lib/uninorm/decomposition-table2.h: Likewise.
1291         * lib/uniwbrk/wbrkprop.h: Likewise.
1292         * tests/unicase/test-cased.c: Likewise.
1293         * tests/unicase/test-ignorable.c: Likewise.
1294         * tests/unicase/test-uc_tolower.c: Likewise.
1295         * tests/unicase/test-uc_totitle.c: Likewise.
1296         * tests/unicase/test-uc_toupper.c: Likewise.
1297         * tests/unictype/test-categ_C.c: Likewise.
1298         * tests/unictype/test-categ_Cn.c: Likewise.
1299         * tests/unictype/test-categ_L.c: Likewise.
1300         * tests/unictype/test-categ_Ll.c: Likewise.
1301         * tests/unictype/test-categ_Lm.c: Likewise.
1302         * tests/unictype/test-categ_Lo.c: Likewise.
1303         * tests/unictype/test-categ_Lu.c: Likewise.
1304         * tests/unictype/test-categ_M.c: Likewise.
1305         * tests/unictype/test-categ_Mc.c: Likewise.
1306         * tests/unictype/test-categ_Me.c: Likewise.
1307         * tests/unictype/test-categ_Mn.c: Likewise.
1308         * tests/unictype/test-categ_N.c: Likewise.
1309         * tests/unictype/test-categ_Nd.c: Likewise.
1310         * tests/unictype/test-categ_No.c: Likewise.
1311         * tests/unictype/test-categ_P.c: Likewise.
1312         * tests/unictype/test-categ_Po.c: Likewise.
1313         * tests/unictype/test-categ_S.c: Likewise.
1314         * tests/unictype/test-categ_Sc.c: Likewise.
1315         * tests/unictype/test-categ_Sk.c: Likewise.
1316         * tests/unictype/test-categ_Sm.c: Likewise.
1317         * tests/unictype/test-categ_So.c: Likewise.
1318         * tests/unictype/test-ctype_alnum.c: Likewise.
1319         * tests/unictype/test-ctype_alpha.c: Likewise.
1320         * tests/unictype/test-ctype_graph.c: Likewise.
1321         * tests/unictype/test-ctype_lower.c: Likewise.
1322         * tests/unictype/test-ctype_print.c: Likewise.
1323         * tests/unictype/test-ctype_punct.c: Likewise.
1324         * tests/unictype/test-ctype_upper.c: Likewise.
1325         * tests/unictype/test-decdigit.h: Likewise.
1326         * tests/unictype/test-digit.h: Likewise.
1327         * tests/unictype/test-numeric.h: Likewise.
1328         * tests/unictype/test-pr_alphabetic.c: Likewise.
1329         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1330         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1331         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1332         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1333         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1334         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1335         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1336         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1337         * tests/unictype/test-pr_case_ignorable.c: Likewise.
1338         * tests/unictype/test-pr_cased.c: Likewise.
1339         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
1340         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
1341         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
1342         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
1343         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
1344         * tests/unictype/test-pr_combining.c: Likewise.
1345         * tests/unictype/test-pr_composite.c: Likewise.
1346         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1347         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1348         * tests/unictype/test-pr_deprecated.c: Likewise.
1349         * tests/unictype/test-pr_format_control.c: Likewise.
1350         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1351         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1352         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1353         * tests/unictype/test-pr_id_continue.c: Likewise.
1354         * tests/unictype/test-pr_id_start.c: Likewise.
1355         * tests/unictype/test-pr_ideographic.c: Likewise.
1356         * tests/unictype/test-pr_lowercase.c: Likewise.
1357         * tests/unictype/test-pr_math.c: Likewise.
1358         * tests/unictype/test-pr_numeric.c: Likewise.
1359         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1360         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1361         * tests/unictype/test-pr_other_math.c: Likewise.
1362         * tests/unictype/test-pr_punctuation.c: Likewise.
1363         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1364         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1365         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1366         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1367         * tests/unictype/test-pr_uppercase.c: Likewise.
1368         * tests/unictype/test-pr_xid_continue.c: Likewise.
1369         * tests/unictype/test-pr_xid_start.c: Likewise.
1370         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1371         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1372         changes.
1373         * lib/unictype/categ_Cc.h: Likewise.
1374         * lib/unictype/categ_Cf.h: Likewise.
1375         * lib/unictype/categ_Co.h: Likewise.
1376         * lib/unictype/categ_Cs.h: Likewise.
1377         * lib/unictype/categ_Lt.h: Likewise.
1378         * lib/unictype/categ_Nl.h: Likewise.
1379         * lib/unictype/categ_Pc.h: Likewise.
1380         * lib/unictype/categ_Pd.h: Likewise.
1381         * lib/unictype/categ_Pe.h: Likewise.
1382         * lib/unictype/categ_Pf.h: Likewise.
1383         * lib/unictype/categ_Pi.h: Likewise.
1384         * lib/unictype/categ_Ps.h: Likewise.
1385         * lib/unictype/categ_Z.h: Likewise.
1386         * lib/unictype/categ_Zl.h: Likewise.
1387         * lib/unictype/categ_Zp.h: Likewise.
1388         * lib/unictype/categ_Zs.h: Likewise.
1389         * lib/unictype/ctype_blank.h: Likewise.
1390         * lib/unictype/ctype_cntrl.h: Likewise.
1391         * lib/unictype/ctype_digit.h: Likewise.
1392         * lib/unictype/ctype_space.h: Likewise.
1393         * lib/unictype/ctype_xdigit.h: Likewise.
1394         * lib/unictype/mirror.h: Likewise.
1395         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1396         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1397         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1398         * lib/unictype/pr_bidi_control.h: Likewise.
1399         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1400         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1401         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1402         * lib/unictype/pr_bidi_pdf.h: Likewise.
1403         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1404         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1405         * lib/unictype/pr_dash.h: Likewise.
1406         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1407         * lib/unictype/pr_diacritic.h: Likewise.
1408         * lib/unictype/pr_extender.h: Likewise.
1409         * lib/unictype/pr_hex_digit.h: Likewise.
1410         * lib/unictype/pr_hyphen.h: Likewise.
1411         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1412         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1413         * lib/unictype/pr_ignorable_control.h: Likewise.
1414         * lib/unictype/pr_iso_control.h: Likewise.
1415         * lib/unictype/pr_join_control.h: Likewise.
1416         * lib/unictype/pr_left_of_pair.h: Likewise.
1417         * lib/unictype/pr_line_separator.h: Likewise.
1418         * lib/unictype/pr_logical_order_exception.h: Likewise.
1419         * lib/unictype/pr_non_break.h: Likewise.
1420         * lib/unictype/pr_not_a_character.h: Likewise.
1421         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1422         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1423         * lib/unictype/pr_other_id_start.h: Likewise.
1424         * lib/unictype/pr_other_lowercase.h: Likewise.
1425         * lib/unictype/pr_other_uppercase.h: Likewise.
1426         * lib/unictype/pr_paired_punctuation.h: Likewise.
1427         * lib/unictype/pr_paragraph_separator.h: Likewise.
1428         * lib/unictype/pr_pattern_syntax.h: Likewise.
1429         * lib/unictype/pr_pattern_white_space.h: Likewise.
1430         * lib/unictype/pr_private_use.h: Likewise.
1431         * lib/unictype/pr_quotation_mark.h: Likewise.
1432         * lib/unictype/pr_radical.h: Likewise.
1433         * lib/unictype/pr_soft_dotted.h: Likewise.
1434         * lib/unictype/pr_space.h: Likewise.
1435         * lib/unictype/pr_titlecase.h: Likewise.
1436         * lib/unictype/pr_variation_selector.h: Likewise.
1437         * lib/unictype/pr_white_space.h: Likewise.
1438         * lib/unictype/pr_zero_width.h: Likewise.
1439         * lib/unictype/sy_c_ident.h: Likewise.
1440         * lib/unictype/sy_c_whitespace.h: Likewise.
1441         * lib/unictype/sy_java_whitespace.h: Likewise.
1442         * lib/uninorm/composition-table.gperf: Likewise.
1443         * lib/uninorm/decomposition-table1.h: Likewise.
1444         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
1445         LB8.
1446         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1447         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1448         * modules/unictype/*: Bump version number of expected libunistring
1449         version.
1450
1451 2011-01-09  Bruno Haible  <bruno@clisp.org>
1452
1453         Update to Unicode 5.2.0.
1454         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
1455         trailing whitespace removed.
1456
1457 2011-01-09  Bruno Haible  <bruno@clisp.org>
1458
1459         New Unicode character properties, from Unicode 5.2.0.
1460         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
1461         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
1462         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
1463         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
1464         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
1465         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
1466         uc_is_property_cased, uc_is_property_case_ignorable,
1467         uc_is_property_changes_when_lowercased,
1468         uc_is_property_changes_when_uppercased,
1469         uc_is_property_changes_when_titlecased,
1470         uc_is_property_changes_when_casefolded,
1471         uc_is_property_changes_when_casemapped): New declarations.
1472         * lib/unictype/pr_byname.gperf: Add the new properties.
1473         * modules/unictype/property-byname (Depends-on): Depend on the new
1474         properties modules.
1475         * modules/unictype/property-all (Depends-on): Likewise.
1476         * MODULES.html.sh (Unicode string functions): Add
1477         unictype/property-case-ignorable, unictype/property-cased,
1478         unictype/property-changes-when-casefolded,
1479         unictype/property-changes-when-casemapped,
1480         unictype/property-changes-when-lowercased,
1481         unictype/property-changes-when-titlecased,
1482         unictype/property-changes-when-uppercased.
1483
1484         New module 'unictype/property-changes-when-casemapped'.
1485         * modules/unictype/property-changes-when-casemapped: New file.
1486         * lib/unictype/pr_changes_when_casemapped.c: New file.
1487         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
1488         generated by gen-uni-tables.
1489         * modules/unictype/property-changes-when-casemapped-tests: New file.
1490         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
1491         automatically generated by gen-uni-tables.
1492
1493         New module 'unictype/property-changes-when-casefolded'.
1494         * modules/unictype/property-changes-when-casefolded: New file.
1495         * lib/unictype/pr_changes_when_casefolded.c: New file.
1496         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
1497         generated by gen-uni-tables.
1498         * modules/unictype/property-changes-when-casefolded-tests: New file.
1499         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
1500         automatically generated by gen-uni-tables.
1501
1502         New module 'unictype/property-changes-when-titlecased'.
1503         * modules/unictype/property-changes-when-titlecased: New file.
1504         * lib/unictype/pr_changes_when_titlecased.c: New file.
1505         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
1506         generated by gen-uni-tables.
1507         * modules/unictype/property-changes-when-titlecased-tests: New file.
1508         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
1509         automatically generated by gen-uni-tables.
1510
1511         New module 'unictype/property-changes-when-uppercased'.
1512         * modules/unictype/property-changes-when-uppercased: New file.
1513         * lib/unictype/pr_changes_when_uppercased.c: New file.
1514         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
1515         generated by gen-uni-tables.
1516         * modules/unictype/property-changes-when-uppercased-tests: New file.
1517         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
1518         automatically generated by gen-uni-tables.
1519
1520         New module 'unictype/property-changes-when-lowercased'.
1521         * modules/unictype/property-changes-when-lowercased: New file.
1522         * lib/unictype/pr_changes_when_lowercased.c: New file.
1523         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
1524         generated by gen-uni-tables.
1525         * modules/unictype/property-changes-when-lowercased-tests: New file.
1526         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
1527         automatically generated by gen-uni-tables.
1528
1529         New module 'unictype/property-case-ignorable'.
1530         * modules/unictype/property-case-ignorable: New file.
1531         * lib/unictype/pr_case_ignorable.c: New file.
1532         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
1533         by gen-uni-tables.
1534         * modules/unictype/property-case-ignorable-tests: New file.
1535         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
1536         generated by gen-uni-tables.
1537
1538         New module 'unictype/property-cased'.
1539         * modules/unictype/property-cased: New file.
1540         * lib/unictype/pr_cased.c: New file.
1541         * lib/unictype/pr_cased.h: New file, automatically generated by
1542         gen-uni-tables.
1543         * modules/unictype/property-cased-tests: New file.
1544         * tests/unictype/test-pr_cased.c: New file, automatically generated by
1545         gen-uni-tables.
1546
1547 2011-01-09  Bruno Haible  <bruno@clisp.org>
1548
1549         Update to Unicode 5.2.0.
1550         * lib/gen-uni-tables.c (output_predicate, output_category,
1551         output_combclass, output_bidi_category, output_decimal_digit_test,
1552         output_decimal_digit, output_digit_test, output_digit,
1553         output_numeric_test, output_numeric, output_mirror, output_scripts,
1554         output_scripts_byname, output_blocks, output_ident_category): Fix
1555         comment header.
1556         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
1557         get_wbp.
1558         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
1559         items.
1560         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
1561         Changes_When_Lowercased, Changes_When_Uppercased,
1562         Changes_When_Titlecased, Changes_When_Casefolded,
1563         Changes_When_Casemapped.
1564         (is_property_alphabetic, is_property_default_ignorable_code_point):
1565         Update for Unicode 5.2.0.
1566         (is_property_cased, is_property_case_ignorable,
1567         is_property_changes_when_lowercased,
1568         is_property_changes_when_uppercased,
1569         is_property_changes_when_titlecased,
1570         is_property_changes_when_casefolded,
1571         is_property_changes_when_casemapped): New functions.
1572         (output_properties): Output also the properties cased, case_ignorable,
1573         changes_when_lowercased, changes_when_uppercased,
1574         changes_when_titlecased, changes_when_casefolded,
1575         changes_when_casemapped.
1576         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1577         Unicode TR#11 revision 17 -> 19.
1578         (LBP_CP): New enumeration value.
1579         (LBP_*): Adjust values accordingly.
1580         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1581         TR#14 revision 22 -> 24.
1582         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1583         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1584         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1585         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1586         is_WBP_MIDLETTER.
1587         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1588         the code1 and code2 of each composition rule.
1589         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1590         * lib/unicase/ignorable.h: Likewise.
1591         * lib/unicase/tocasefold.h: Likewise.
1592         * lib/unicase/tolower.h: Likewise.
1593         * lib/unicase/totitle.h: Likewise.
1594         * lib/unicase/toupper.h: Likewise.
1595         * lib/unictype/bidi_of.h: Likewise.
1596         * lib/unictype/blocks.h: Likewise.
1597         * lib/unictype/categ_C.h: Likewise.
1598         * lib/unictype/categ_Cf.h: Likewise.
1599         * lib/unictype/categ_Cn.h: Likewise.
1600         * lib/unictype/categ_L.h: Likewise.
1601         * lib/unictype/categ_Ll.h: Likewise.
1602         * lib/unictype/categ_Lm.h: Likewise.
1603         * lib/unictype/categ_Lo.h: Likewise.
1604         * lib/unictype/categ_Lu.h: Likewise.
1605         * lib/unictype/categ_M.h: Likewise.
1606         * lib/unictype/categ_Mc.h: Likewise.
1607         * lib/unictype/categ_Mn.h: Likewise.
1608         * lib/unictype/categ_N.h: Likewise.
1609         * lib/unictype/categ_Nd.h: Likewise.
1610         * lib/unictype/categ_Nl.h: Likewise.
1611         * lib/unictype/categ_No.h: Likewise.
1612         * lib/unictype/categ_P.h: Likewise.
1613         * lib/unictype/categ_Pd.h: Likewise.
1614         * lib/unictype/categ_Po.h: Likewise.
1615         * lib/unictype/categ_S.h: Likewise.
1616         * lib/unictype/categ_Sc.h: Likewise.
1617         * lib/unictype/categ_So.h: Likewise.
1618         * lib/unictype/categ_of.h: Likewise.
1619         * lib/unictype/combining.h: Likewise.
1620         * lib/unictype/ctype_alnum.h: Likewise.
1621         * lib/unictype/ctype_alpha.h: Likewise.
1622         * lib/unictype/ctype_graph.h: Likewise.
1623         * lib/unictype/ctype_lower.h: Likewise.
1624         * lib/unictype/ctype_print.h: Likewise.
1625         * lib/unictype/ctype_punct.h: Likewise.
1626         * lib/unictype/ctype_upper.h: Likewise.
1627         * lib/unictype/decdigit.h: Likewise.
1628         * lib/unictype/digit.h: Likewise.
1629         * lib/unictype/numeric.h: Likewise.
1630         * lib/unictype/pr_alphabetic.h: Likewise.
1631         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1632         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1633         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1634         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1635         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1636         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1637         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1638         * lib/unictype/pr_combining.h: Likewise.
1639         * lib/unictype/pr_composite.h: Likewise.
1640         * lib/unictype/pr_currency_symbol.h: Likewise.
1641         * lib/unictype/pr_dash.h: Likewise.
1642         * lib/unictype/pr_decimal_digit.h: Likewise.
1643         * lib/unictype/pr_deprecated.h: Likewise.
1644         * lib/unictype/pr_diacritic.h: Likewise.
1645         * lib/unictype/pr_extender.h: Likewise.
1646         * lib/unictype/pr_grapheme_base.h: Likewise.
1647         * lib/unictype/pr_grapheme_extend.h: Likewise.
1648         * lib/unictype/pr_grapheme_link.h: Likewise.
1649         * lib/unictype/pr_id_continue.h: Likewise.
1650         * lib/unictype/pr_id_start.h: Likewise.
1651         * lib/unictype/pr_ideographic.h: Likewise.
1652         * lib/unictype/pr_ignorable_control.h: Likewise.
1653         * lib/unictype/pr_logical_order_exception.h: Likewise.
1654         * lib/unictype/pr_lowercase.h: Likewise.
1655         * lib/unictype/pr_numeric.h: Likewise.
1656         * lib/unictype/pr_other_alphabetic.h: Likewise.
1657         * lib/unictype/pr_punctuation.h: Likewise.
1658         * lib/unictype/pr_sentence_terminal.h: Likewise.
1659         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1660         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1661         * lib/unictype/pr_unified_ideograph.h: Likewise.
1662         * lib/unictype/pr_uppercase.h: Likewise.
1663         * lib/unictype/pr_xid_continue.h: Likewise.
1664         * lib/unictype/pr_xid_start.h: Likewise.
1665         * lib/unictype/pr_zero_width.h: Likewise.
1666         * lib/unictype/scripts.h: Likewise.
1667         * lib/unictype/scripts_byname.gperf: Likewise.
1668         * lib/unictype/sy_java_ident.h: Likewise.
1669         * lib/unigbrk/gbrkprop.h: Likewise.
1670         * lib/unilbrk/lbrkprop1.h: Likewise.
1671         * lib/unilbrk/lbrkprop2.h: Likewise.
1672         * lib/unilbrk/lbrktables.h: Likewise.
1673         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
1674         LBP_CP. Implement rule LB30.
1675         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
1676         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
1677         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
1678         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
1679         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
1680         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
1681         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
1682         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
1683         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
1684         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
1685         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
1686         bits instead of 16 bits in the code1 and code2 of each composition
1687         rule.
1688         (uc_composition): Update for Unicode 5.2.0.
1689         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
1690         * lib/uninorm/decomposition-table2.h: Likewise.
1691         * lib/uniwbrk/wbrkprop.h: Likewise.
1692         * tests/unicase/test-cased.c: Likewise.
1693         * tests/unicase/test-ignorable.c: Likewise.
1694         * tests/unicase/test-uc_tolower.c: Likewise.
1695         * tests/unicase/test-uc_totitle.c: Likewise.
1696         * tests/unicase/test-uc_toupper.c: Likewise.
1697         * tests/unictype/test-categ_C.c: Likewise.
1698         * tests/unictype/test-categ_Cf.c: Likewise.
1699         * tests/unictype/test-categ_Cn.c: Likewise.
1700         * tests/unictype/test-categ_L.c: Likewise.
1701         * tests/unictype/test-categ_Ll.c: Likewise.
1702         * tests/unictype/test-categ_Lm.c: Likewise.
1703         * tests/unictype/test-categ_Lo.c: Likewise.
1704         * tests/unictype/test-categ_Lu.c: Likewise.
1705         * tests/unictype/test-categ_M.c: Likewise.
1706         * tests/unictype/test-categ_Mc.c: Likewise.
1707         * tests/unictype/test-categ_Mn.c: Likewise.
1708         * tests/unictype/test-categ_N.c: Likewise.
1709         * tests/unictype/test-categ_Nd.c: Likewise.
1710         * tests/unictype/test-categ_Nl.c: Likewise.
1711         * tests/unictype/test-categ_No.c: Likewise.
1712         * tests/unictype/test-categ_P.c: Likewise.
1713         * tests/unictype/test-categ_Pd.c: Likewise.
1714         * tests/unictype/test-categ_Po.c: Likewise.
1715         * tests/unictype/test-categ_S.c: Likewise.
1716         * tests/unictype/test-categ_Sc.c: Likewise.
1717         * tests/unictype/test-categ_So.c: Likewise.
1718         * tests/unictype/test-ctype_alnum.c: Likewise.
1719         * tests/unictype/test-ctype_alpha.c: Likewise.
1720         * tests/unictype/test-ctype_graph.c: Likewise.
1721         * tests/unictype/test-ctype_lower.c: Likewise.
1722         * tests/unictype/test-ctype_print.c: Likewise.
1723         * tests/unictype/test-ctype_punct.c: Likewise.
1724         * tests/unictype/test-ctype_upper.c: Likewise.
1725         * tests/unictype/test-decdigit.h: Likewise.
1726         * tests/unictype/test-digit.h: Likewise.
1727         * tests/unictype/test-numeric.h: Likewise.
1728         * tests/unictype/test-pr_alphabetic.c: Likewise.
1729         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1730         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1731         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1732         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1733         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1734         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1735         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1736         * tests/unictype/test-pr_combining.c: Likewise.
1737         * tests/unictype/test-pr_composite.c: Likewise.
1738         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1739         * tests/unictype/test-pr_dash.c: Likewise.
1740         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1741         * tests/unictype/test-pr_deprecated.c: Likewise.
1742         * tests/unictype/test-pr_diacritic.c: Likewise.
1743         * tests/unictype/test-pr_extender.c: Likewise.
1744         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1745         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1746         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1747         * tests/unictype/test-pr_id_continue.c: Likewise.
1748         * tests/unictype/test-pr_id_start.c: Likewise.
1749         * tests/unictype/test-pr_ideographic.c: Likewise.
1750         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1751         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1752         * tests/unictype/test-pr_lowercase.c: Likewise.
1753         * tests/unictype/test-pr_numeric.c: Likewise.
1754         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1755         * tests/unictype/test-pr_punctuation.c: Likewise.
1756         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1757         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1758         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1759         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1760         * tests/unictype/test-pr_uppercase.c: Likewise.
1761         * tests/unictype/test-pr_xid_continue.c: Likewise.
1762         * tests/unictype/test-pr_xid_start.c: Likewise.
1763         * tests/unictype/test-pr_zero_width.c: Likewise.
1764         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1765         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1766         changed behaviour: line breaking is now disallowed between a letter
1767         or '=' and '('.
1768         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1769         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1770         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1771         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1772         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1773         lib/uniwidth/width.c.
1774         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1775         without comments, but with the original copyright notice.
1776         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1777         changes.
1778         * lib/unictype/categ_Cc.h: Likewise.
1779         * lib/unictype/categ_Co.h: Likewise.
1780         * lib/unictype/categ_Cs.h: Likewise.
1781         * lib/unictype/categ_Lt.h: Likewise.
1782         * lib/unictype/categ_Me.h: Likewise.
1783         * lib/unictype/categ_Pc.h: Likewise.
1784         * lib/unictype/categ_Pe.h: Likewise.
1785         * lib/unictype/categ_Pf.h: Likewise.
1786         * lib/unictype/categ_Pi.h: Likewise.
1787         * lib/unictype/categ_Ps.h: Likewise.
1788         * lib/unictype/categ_Sk.h: Likewise.
1789         * lib/unictype/categ_Sm.h: Likewise.
1790         * lib/unictype/categ_Z.h: Likewise.
1791         * lib/unictype/categ_Zl.h: Likewise.
1792         * lib/unictype/categ_Zp.h: Likewise.
1793         * lib/unictype/categ_Zs.h: Likewise.
1794         * lib/unictype/ctype_blank.h: Likewise.
1795         * lib/unictype/ctype_cntrl.h: Likewise.
1796         * lib/unictype/ctype_digit.h: Likewise.
1797         * lib/unictype/ctype_space.h: Likewise.
1798         * lib/unictype/ctype_xdigit.h: Likewise.
1799         * lib/unictype/mirror.h: Likewise.
1800         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1801         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1802         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1803         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1804         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1805         * lib/unictype/pr_bidi_control.h: Likewise.
1806         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1807         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1808         * lib/unictype/pr_bidi_pdf.h: Likewise.
1809         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1810         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1811         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1812         * lib/unictype/pr_format_control.h: Likewise.
1813         * lib/unictype/pr_hex_digit.h: Likewise.
1814         * lib/unictype/pr_hyphen.h: Likewise.
1815         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1816         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1817         * lib/unictype/pr_iso_control.h: Likewise.
1818         * lib/unictype/pr_join_control.h: Likewise.
1819         * lib/unictype/pr_left_of_pair.h: Likewise.
1820         * lib/unictype/pr_line_separator.h: Likewise.
1821         * lib/unictype/pr_math.h: Likewise.
1822         * lib/unictype/pr_non_break.h: Likewise.
1823         * lib/unictype/pr_not_a_character.h: Likewise.
1824         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1825         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1826         * lib/unictype/pr_other_id_continue.h: Likewise.
1827         * lib/unictype/pr_other_id_start.h: Likewise.
1828         * lib/unictype/pr_other_lowercase.h: Likewise.
1829         * lib/unictype/pr_other_math.h: Likewise.
1830         * lib/unictype/pr_other_uppercase.h: Likewise.
1831         * lib/unictype/pr_paired_punctuation.h: Likewise.
1832         * lib/unictype/pr_paragraph_separator.h: Likewise.
1833         * lib/unictype/pr_pattern_syntax.h: Likewise.
1834         * lib/unictype/pr_pattern_white_space.h: Likewise.
1835         * lib/unictype/pr_private_use.h: Likewise.
1836         * lib/unictype/pr_quotation_mark.h: Likewise.
1837         * lib/unictype/pr_radical.h: Likewise.
1838         * lib/unictype/pr_soft_dotted.h: Likewise.
1839         * lib/unictype/pr_space.h: Likewise.
1840         * lib/unictype/pr_titlecase.h: Likewise.
1841         * lib/unictype/pr_variation_selector.h: Likewise.
1842         * lib/unictype/pr_white_space.h: Likewise.
1843         * lib/unictype/sy_c_ident.h: Likewise.
1844         * lib/unictype/sy_c_whitespace.h: Likewise.
1845         * lib/unictype/sy_java_whitespace.h: Likewise.
1846         * modules/uni*/*: Bump version number of expected libunistring version.
1847         Reported by Simon Josefsson.
1848
1849 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1850
1851         useless-if-before-free: fix typo in --help and make the internal,
1852         automatic version date update process work once again.
1853         --help output contained a NUL character instead of the
1854         backslash-zero that was intended.  Also, the "must lie within
1855         the first 8 lines" line is on line 9, and hence not getting
1856         automatically updated.
1857         * build-aux/useless-if-before-free: Fix the former by adding a
1858         backslash, and the latter by condensing the three lines of what-it-does
1859         to a single line, leaving one line of slack for the future.
1860
1861 2011-01-09  Bruno Haible  <bruno@clisp.org>
1862
1863         uniwidth/width: Fix width of U+1D173..U+1D17A.
1864         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1865         symbolic_width, output_width_property_test): New functions.
1866         (main): Invoke output_nonspacing_property, output_width_property_test.
1867         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1868         U+1D173..U+1D17A.
1869         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1870         1.
1871         * modules/uniwidth/*: Bump version number of expected libunistring
1872         version.
1873         * modules/unilbrk/*: Likewise.
1874
1875 2011-01-08  Bruno Haible  <bruno@clisp.org>
1876
1877         uninorm tests: Preserve copyright of Unicode data file.
1878         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1879         Mention modifications.
1880
1881 2011-01-08  Bruno Haible  <bruno@clisp.org>
1882
1883         gen-uni-tables: Prepare for Unicode 5.2.0.
1884         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1885         (debug_output_lbp, output_lbp): Update.
1886
1887 2011-01-08  Bruno Haible  <bruno@clisp.org>
1888
1889         unilbrk: Clarify gen-uni-tables.c code.
1890         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1891         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1892         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1893
1894 2011-01-07  Bruno Haible  <bruno@clisp.org>
1895
1896         strtod: Restore errno when successfully parsing Infinity or NaN.
1897         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1898         restore the original errno.
1899
1900 2011-01-07  Bruno Haible  <bruno@clisp.org>
1901
1902         remove test: Avoid failure on HP-UX 11.
1903         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1904
1905 2011-01-07  Bruno Haible  <bruno@clisp.org>
1906
1907         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1908         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1909         error code.
1910
1911 2011-01-07  Pádraig Brady <P@draigBrady.com>
1912
1913         ignore-value: fixup comments, and add Eric Blake
1914         as an author since he rewrote the macros.
1915         * lib/ignore-value.h (ignore_value):  State that
1916         we now support aggregates.  Also specify exactly
1917         when the GCC warn_unused_result feature was added.
1918
1919 2011-01-06  Eric Blake  <eblake@redhat.com>
1920
1921         ignore-value: support aggregate types
1922         * lib/ignore-value.h (ignore_value): Provide separate gcc
1923         definition.
1924         * modules/ignore-value-tests: New test module.
1925         * tests/test-ignore-value.c: New test.
1926
1927         maint.mk: improve sc_prohibit_strcmp regex
1928         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1929         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1930         definition of STRNEQ.
1931
1932         signal: work around Haiku issue with SIGBUS
1933         * lib/siglist.h: Add comment.
1934         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1935         strsignal's favoring of SIGSEGV.
1936         * tests/test-signal.c (main): Avoid test failure.
1937         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1938         Reported by Scott McCreary.
1939
1940         maint.mk: add pre-release check to ensure submodule commits are public
1941         * top/maint.mk (public-submodule-commit): New rule.
1942         (submodule-checks): New variable.
1943         (alpha beta stable): Depend on the variable.
1944
1945 2011-01-05  Pádraig Brady <P@draigBrady.com>
1946         and Jim Meyering  <meyering@redhat.com>
1947
1948         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1949         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1950         (ATTRIBUTE_DEPRECATED): Define.
1951         (_ignore_case): New function.
1952         (ignore_value): New macro, to replace the old function.
1953         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1954         * modules/ignore-value (Depends-on): Add stdint.
1955
1956 2011-01-04  Eric Blake  <eblake@redhat.com>
1957
1958         doc: regenerate INSTALL
1959         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1960         @firstparagraphindent support, now that autoconf dropped it.
1961         (INSTALL_PRELUDE): Reinstate old macro.
1962         * doc/install.texi: Resync from autoconf.
1963         * doc/INSTALL: Reflect recent autoconf update.
1964         * doc/INSTALL.ISO: Likewise.
1965         * doc/INSTALL.UTF-8: Likewise.
1966         Reported by Karl Berry.
1967
1968 2011-01-04  Bruce Korb  <address@hidden>
1969
1970         git-version-gen: avoid a sub-shell
1971         * build-aux/git-version-gen: Redirect stderr in `...` via
1972         "exec 2>...", rather than via an added sub-shell.
1973
1974 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1975
1976         git-version-gen: use (...) rather than sh -c '...'
1977         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1978         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1979
1980 2011-01-03  Jim Meyering  <meyering@redhat.com>
1981
1982         git-version-gen: convert leading TABs to spaces
1983         * build-aux/git-version-gen: Expand leading TABs.
1984
1985         git-version-gen: handle failed "git rev-list"
1986         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1987         from git and proceeding as if it had succeeded but printed no SHA1
1988         checksums, suppress the diagnostic and handle the failure.
1989         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1990
1991         git-version-gen: include command name in one more diagnostic
1992         * build-aux/git-version-gen: When the required .tarball-version file
1993         was missing or unreadable, you might see the diagnostic from "cat",
1994         but no trace of the name of the invoking script.  Now, you still see
1995         the diagnostic from cat, but also get one from "git-version-gen: ".
1996         Inspired by a patch from Bruce Korb.
1997
1998         update-copyright: adjust test to match changed code
1999         * tests/test-update-copyright.sh: Change test's expected output
2000         to match new actual output.
2001
2002 2011-01-02  Bruno Haible  <bruno@clisp.org>
2003
2004         getlogin_r: Avoid test failure on HP-UX 11.
2005         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
2006         ERANGE when the second argument is zero.
2007         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
2008         portability problem.
2009
2010 2011-01-02  Bruce Korb  <bkorb@gnu.org>
2011
2012         * build-aux/update-copyright: doc Simon's changes
2013
2014 2011-01-02  Simon Josefsson  <simon@josefsson.org>
2015
2016         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
2017         environment variable.
2018
2019 2011-01-02  Bruno Haible  <bruno@clisp.org>
2020
2021         unigbrk: Avoid gcc warnings.
2022         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
2023         unused variable.
2024         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
2025         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
2026         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
2027         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
2028         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
2029         Change type of first argument to 'const char *'.
2030         (main): Remove unused variable.
2031         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
2032         type of first argument to 'const char *'.
2033         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
2034         Likewise.
2035         (main): Change type of variable 's'.
2036         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
2037         to 'int'.
2038
2039 2011-01-02  Bruno Haible  <bruno@clisp.org>
2040
2041         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
2042         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
2043         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
2044         bug.
2045         * lib/pwrite.c: Undo 2010-12-31 patch.
2046         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
2047
2048 2011-01-02  Bruno Haible  <bruno@clisp.org>
2049
2050         pread: Fix test whether it works.
2051         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
2052
2053 2011-01-02  Bruno Haible  <bruno@clisp.org>
2054
2055         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
2056         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
2057         ends in "6". Don't require a specific month name. Try also the locale
2058         names found on HP-UX 11 and Solaris 7.
2059
2060 2011-01-02  Bruno Haible  <bruno@clisp.org>
2061
2062         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
2063         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
2064         C linkage.
2065         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
2066
2067 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2068
2069         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
2070         for consistency, since the "cluster" term is not used elsewhere.
2071         * lib/unigbrk.in.h: Update name.
2072         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
2073         * lib/unigbrk/u16-grapheme-next.c: Update name.
2074         * lib/unigbrk/u16-grapheme-prev.c: Update name.
2075         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
2076         * lib/unigbrk/u32-grapheme-next.c: Update name.
2077         * lib/unigbrk/u32-grapheme-prev.c: Update name.
2078         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
2079         * lib/unigbrk/u8-grapheme-next.c: Update name.
2080         * lib/unigbrk/u8-grapheme-prev.c: Update name.
2081         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
2082         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
2083         Suggested by Bruno Haible.
2084
2085 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2086
2087         Remove module 'u8-grapheme-len' as too redundant with
2088         'u8-grapheme-next'.
2089         * modules/unigbrk/u8-grapheme-len: Delete file.
2090         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
2091         * lib/unigbrk.in.h: Remove prototype for deleted function.
2092         * lib/unigbrk/u8-grapheme-len.c: Delete file.
2093         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
2094
2095         Remove module 'u16-grapheme-len' as too redundant with
2096         'u16-grapheme-next'.
2097         * modules/unigbrk/u16-grapheme-len: Delete file.
2098         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
2099         * lib/unigbrk.in.h: Remove prototype for deleted function.
2100         * lib/unigbrk/u16-grapheme-len.c: Delete file.
2101         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
2102
2103         Remove module 'u32-grapheme-len' as too redundant with
2104         'u32-grapheme-next'.
2105         * modules/unigbrk/u32-grapheme-len: Delete file.
2106         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
2107         * lib/unigbrk.in.h: Remove prototype for deleted function.
2108         * lib/unigbrk/u32-grapheme-len.c: Delete file.
2109         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
2110
2111         Suggested by Bruno Haible.
2112
2113 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2114
2115         * unigbrk.in.h: Fix typo: "ben" => "been".
2116         Reported by Bruno Haible.
2117
2118 2011-01-01  Jim Meyering  <meyering@redhat.com>
2119
2120         maint: update almost all copyright ranges to include 2011
2121         Run the new "make update-copyright" rule.
2122
2123 2011-01-01  Jim Meyering  <meyering@redhat.com>
2124
2125         maint: update-copyright: exempt doc/INSTALL*
2126         * Makefile (update-copyright): Also exclude doc/INSTALL*,
2127         since they are generated.  Suggested by Bruno Haible.
2128
2129 2011-01-01  Jim Meyering  <meyering@redhat.com>
2130
2131         maint: refine the update-copyright rule
2132         * Makefile (update-copyright): Also exclude any file that includes
2133         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
2134         code that merely generates the comment.
2135
2136 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2137
2138         New module 'u8-grapheme-len'.
2139         * modules/unigbrk/u8-grapheme-len: New file.
2140         * modules/unigbrk/u8-grapheme-len-tests: New file.
2141         * lib/unigbrk.in.h: Add prototype for new function.
2142         * lib/unigbrk/u8-grapheme-len.c: New file.
2143         * tests/unigbrk/test-u8-grapheme-len.c: New file.
2144
2145         New module 'u16-grapheme-len'.
2146         * modules/unigbrk/u16-grapheme-len: New file.
2147         * modules/unigbrk/u16-grapheme-len-tests: New file.
2148         * lib/unigbrk.in.h: Add prototype for new function.
2149         * lib/unigbrk/u16-grapheme-len.c: New file.
2150         * tests/unigbrk/test-u16-grapheme-len.c: New file.
2151
2152         New module 'u32-grapheme-len'.
2153         * modules/unigbrk/u32-grapheme-len: New file.
2154         * modules/unigbrk/u32-grapheme-len-tests: New file.
2155         * lib/unigbrk.in.h: Add prototype for new function.
2156         * lib/unigbrk/u32-grapheme-len.c: New file.
2157         * tests/unigbrk/test-u32-grapheme-len.c: New file.
2158
2159         New module 'u8-grapheme-next'.
2160         * modules/unigbrk/u8-grapheme-next: New file.
2161         * modules/unigbrk/u8-grapheme-next-tests: New file.
2162         * lib/unigbrk.in.h: Add prototype for new function.
2163         * lib/unigbrk/u8-grapheme-next.c: New file.
2164         * tests/unigbrk/test-u8-grapheme-next.c: New file.
2165
2166         New module 'u16-grapheme-next'.
2167         * modules/unigbrk/u16-grapheme-next: New file.
2168         * modules/unigbrk/u16-grapheme-next-tests: New file.
2169         * lib/unigbrk.in.h: Add prototype for new function.
2170         * lib/unigbrk/u16-grapheme-next.c: New file.
2171         * tests/unigbrk/test-u16-grapheme-next.c: New file.
2172
2173         New module 'u32-grapheme-next'.
2174         * modules/unigbrk/u32-grapheme-next: New file.
2175         * modules/unigbrk/u32-grapheme-next-tests: New file.
2176         * lib/unigbrk.in.h: Add prototype for new function.
2177         * lib/unigbrk/u32-grapheme-next.c: New file.
2178         * tests/unigbrk/test-u32-grapheme-next.c: New file.
2179
2180         New module 'u8-grapheme-prev'.
2181         * modules/unigbrk/u8-grapheme-prev: New file.
2182         * modules/unigbrk/u8-grapheme-prev-tests: New file.
2183         * lib/unigbrk.in.h: Add prototype for new function.
2184         * lib/unigbrk/u8-grapheme-prev.c: New file.
2185         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
2186
2187         New module 'u16-grapheme-prev'.
2188         * modules/unigbrk/u16-grapheme-prev: New file.
2189         * modules/unigbrk/u16-grapheme-prev-tests: New file.
2190         * lib/unigbrk.in.h: Add prototype for new function.
2191         * lib/unigbrk/u16-grapheme-prev.c: New file.
2192         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
2193
2194         New module 'u32-grapheme-prev'.
2195         * modules/unigbrk/u32-grapheme-prev: New file.
2196         * modules/unigbrk/u32-grapheme-prev-tests: New file.
2197         * lib/unigbrk.in.h: Add prototype for new function.
2198         * lib/unigbrk/u32-grapheme-prev.c: New file.
2199         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
2200
2201         New module 'u8-grapheme-breaks'.
2202         * modules/unigbrk/u8-grapheme-breaks: New file.
2203         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
2204         * lib/unigbrk.in.h: Add prototype for new function.
2205         * lib/unigbrk/u8-grapheme-breaks.c: New file.
2206         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
2207
2208         New module 'u16-grapheme-breaks'.
2209         * modules/unigbrk/u16-grapheme-breaks: New file.
2210         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
2211         * lib/unigbrk.in.h: Add prototype for new function.
2212         * lib/unigbrk/u16-grapheme-breaks.c: New file.
2213         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
2214
2215         New module 'u32-grapheme-breaks'.
2216         * modules/unigbrk/u32-grapheme-breaks: New file.
2217         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
2218         * lib/unigbrk.in.h: Add prototype for new function.
2219         * lib/unigbrk/u32-grapheme-breaks.c: New file.
2220         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
2221
2222         New module 'ulc-grapheme-breaks'.
2223         * modules/unigbrk/ulc-grapheme-breaks: New file.
2224         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
2225         * m4/locale-ar.m4: New file.
2226         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
2227         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
2228         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
2229
2230 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2231
2232         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
2233         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
2234         modified how this file was generated before I initially submitted
2235         the module, but failed to regenerate it.  This meant that several
2236         of the level2 entries were wrong.
2237         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
2238         Remove the division-by-2 that is folded into the table now that
2239         gbrkprop.h has been regenerated properly.  Now -1 entries are
2240         handled correctly.
2241
2242         New module 'unigbrk/uc-gbrk-prop-tests'.
2243         * modules/unigbrk/uc-gbrk-prop-tests: New file.
2244         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
2245         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
2246         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
2247
2248 2011-01-01  Bruno Haible  <bruno@clisp.org>
2249
2250         Avoid use of hexadecimal escapes.
2251         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
2252         instead of hexadecimal escapes.
2253
2254 2011-01-01  Jim Meyering  <meyering@redhat.com>
2255
2256         maint: new rule to update copyright year ranges
2257         * Makefile (update-copyright): New rule.
2258
2259         maint: indent with TABs in Makefile
2260         * Makefile: Expand leading sequences of spaces to TABs
2261
2262         version-etc: update the copyright year it reports
2263         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
2264
2265 2010-12-31  Bruno Haible  <bruno@clisp.org>
2266
2267         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
2268         * lib/isfinite.c (zerof, zerod, zerol): New variables.
2269         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
2270         zero.
2271
2272 2010-12-31  Bruno Haible  <bruno@clisp.org>
2273
2274         pwrite: Work around HP-UX 11.11 bug.
2275         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
2276         works and set REPLACE_PWRITE if not.
2277         * lib/pwrite.c (pwrite): Add an implementation that uses the system
2278         function.
2279         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
2280
2281 2010-12-31  Bruno Haible  <bruno@clisp.org>
2282
2283         pread: Work around HP-UX 11 bugs.
2284         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
2285         and set REPLACE_PREAD if not.
2286         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
2287
2288 2010-12-31  Eric Blake  <eblake@redhat.com>
2289
2290         nl_langinfo: fix YESEXPR on Irix 6.5
2291         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
2292         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
2293         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
2294         it.
2295
2296 2010-12-31  Bruno Haible  <bruno@clisp.org>
2297
2298         iconv: Document HP-UX 11 bug.
2299         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
2300
2301 2010-12-31  Bruno Haible  <bruno@clisp.org>
2302
2303         ldexpl: Fix link error on HP-UX 11.
2304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
2305         LDEXPL_LIBM, using $ISNANL_LIBM.
2306
2307 2010-12-31  Eric Blake  <eblake@redhat.com>
2308
2309         ftello: avoid compilation failure with SunStudio c89
2310         * lib/ftello.c (ftello): Use lseek, not llseek.
2311
2312         tests: avoid failing coreutils tests on cygwin
2313         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
2314         (create_exe_shims_): Return 0 when skipping.
2315
2316 2010-12-31  Bruno Haible  <bruno@clisp.org>
2317
2318         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
2319         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
2320
2321 2010-12-31  Bruno Haible  <bruno@clisp.org>
2322
2323         waitpid: Fix link error in C++ mode.
2324         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
2325
2326 2010-12-31  Bruno Haible  <bruno@clisp.org>
2327
2328         isnan: Use GCC built-ins when possible.
2329         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
2330         __builtin_isnan.
2331         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
2332         (isnan): Define using GCC built-ins for GCC >= 4.0.
2333
2334 2010-12-31  Bruno Haible  <bruno@clisp.org>
2335
2336         isnand: Fix mistake.
2337         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
2338         __builtin_isnand.
2339
2340 2010-12-31  Bruno Haible  <bruno@clisp.org>
2341
2342         open: Avoid C++ error on HP-UX 11.
2343         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
2344
2345 2010-12-31  Bruno Haible  <bruno@clisp.org>
2346
2347         time_r: Add missing declarations on HP-UX 11.
2348         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
2349         instead of HAVE_LOCALTIME_R.
2350         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
2351         HAVE_LOCALTIME_R always.
2352         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
2353         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
2354         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
2355         HAVE_LOCALTIME_R.
2356         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
2357         * doc/posix-functions/localtime_r.texi: Likewise.
2358
2359 2010-12-29  Eric Blake  <eblake@redhat.com>
2360
2361         mountlist: tweak previous commit
2362         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
2363         Reported by Paul Eggert.
2364
2365         mountlist: fix local drive detection on cygwin
2366         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
2367         that works for cygwin.
2368
2369 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2370
2371         ftoastr, snprintf: ftoastr + snprintf module
2372         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
2373         since the snprintf module now should be good enough here.
2374         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
2375         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
2376         and gl_MODULE_INDICATOR([snprintf]), but the former enables
2377         GNULIB_SNPRINTF only for the test directory, and the latter
2378         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
2379         seems to suffice by itself.
2380
2381 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2382
2383         alloca: one step towards thread-safety
2384         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
2385         need for a static variable.  All callers changed.  This does not
2386         make the alloca replacement thread-safe, but it's one step.
2387
2388         tests: minor indenting change
2389         * tests/init.sh: Sync from coreutils housekeeping patch
2390         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
2391         to keep lines within 80 columns.
2392
2393 2010-12-28  Jim Meyering  <meyering@redhat.com>
2394
2395         regex: don't infloop on persistent failing calloc
2396         * lib/regexec.c (build_trtable): Return failure indication upon
2397         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2398         In glibc, this was fixed for version 2.13:
2399         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
2400
2401 2010-12-28  Bruno Haible  <bruno@clisp.org>
2402             Paul Eggert <eggert@cs.ucla.edu>
2403
2404         linkat: Make implementation robust against system behaviour variations.
2405         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
2406         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
2407         way, and to -2 if it needs a generic runtime test.
2408         * lib/linkat.c (solaris_optimized_link_immediate,
2409         solaris_optimized_link_follow): New functions.
2410         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
2411         (check_same_link): Use it.
2412
2413 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
2414
2415         New module 'unigbrk/base'.
2416         * modules/unigbrk/base: New file.
2417         * lib/unigbrk.in.h: New file.
2418
2419         New module 'unigbrk/uc-gbrk-prop'.
2420         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
2421         * modules/unigbrk/uc-gbrk-prop: New file.
2422         * lib/unigbrk/gbrkprop.h: New file.
2423         * lib/unigbrk/uc-gbrk-prop.c: New file.
2424
2425         New module 'unigbrk/uc-is-grapheme-break'.
2426         * modules/unigbrk/uc-is-grapheme-break: New file.
2427         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
2428         * lib/unigbrk/uc-is-grapheme-break.c: New file.
2429         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
2430         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
2431         * tests/unigbrk/GraphemeBreakTest.txt: New file.
2432
2433         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
2434
2435 2010-12-27  Bruno Haible  <bruno@clisp.org>
2436
2437         linkat test: Avoid failure on Solaris 11 2010-11.
2438         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
2439
2440 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2441
2442         utimens: work around glibc rounding bug on more platforms
2443         * lib/utimens.c (fdutimens): Work around rounding bug even if
2444         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
2445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
2446
2447 2010-12-27  Bruno Haible  <bruno@clisp.org>
2448
2449         select tests: Improve comments.
2450         * tests/test-select.c (do_select): Add comments.
2451
2452 2010-12-27  Bruno Haible  <bruno@clisp.org>
2453
2454         select tests: Safer way of handling timeout.
2455         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
2456         at every invocation.
2457
2458 2010-12-27  Bruno Haible  <bruno@clisp.org>
2459
2460         select tests: Use 'bool' where appropriate.
2461         * tests/test-select.c (connect_to_socket): Change argument type to
2462         'bool'.
2463
2464 2010-12-27  Bruno Haible  <bruno@clisp.org>
2465
2466         select tests: Use existing modules.
2467         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
2468         (configure.ac): Don't test for unistd.h.
2469         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
2470         declared in <unistd.h>.
2471
2472 2010-12-27  Bruno Haible  <bruno@clisp.org>
2473
2474         mbrtowc: Work around a Solaris 7 bug.
2475         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
2476         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
2477         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
2478         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
2479         MBRTOWC_NULL_ARG1_BUG.
2480         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
2481         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
2482         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
2483         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
2484
2485 2010-12-27  Jim Meyering  <meyering@redhat.com>
2486
2487         read-file.c: tweak syntax
2488         * lib/read-file.c (fread_file): Remove space after "*" in function
2489         definitions.
2490
2491 2010-12-27  Bruno Haible  <bruno@clisp.org>
2492
2493         times test: Avoid gcc warnings on OSF/1.
2494         * tests/test-times.c (main): Cast printf arguments from clock_t to
2495         'long int'.
2496
2497 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2498
2499         utimens: work around glibc rounding bug on older Linux kernels
2500         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
2501         on Linux with a glibc whose utimes might not work, then work
2502         around a longstanding glibc bug involving rounding rather than
2503         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
2504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2505
2506 2010-12-26  Bruno Haible  <bruno@clisp.org>
2507
2508         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
2509         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
2510         _GL_CXXALIAS_SYS.
2511         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2512
2513 2010-12-26  Bruno Haible  <bruno@clisp.org>
2514
2515         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
2516         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
2517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2518         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
2519         looking for the declaration.
2520         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2521         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
2522         problem.
2523         * doc/posix-functions/inet_pton.texi: Likewise.
2524
2525 2010-12-26  Bruno Haible  <bruno@clisp.org>
2526
2527         arpa_inet: Use the common idioms with C++ support.
2528         * lib/arpa_inet.in.h: Include c++defs.h.
2529         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
2530         support.
2531         * modules/arpa_inet (Depends-on): Add c++defs.
2532         (Makefile.am): Substitute the contents of c++defs.h.
2533         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
2534         * modules/arpa_inet-c++-tests: New file.
2535         * tests/test-arpa_inet-c++.cc: New file.
2536
2537 2010-12-25  Bruno Haible  <bruno@clisp.org>
2538
2539         Fix more C++ link errors on Solaris 8.
2540         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
2541         $(LIB_EACCESS).
2542         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
2543         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
2544         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
2545         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
2546         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
2547
2548 2010-12-25  Bruno Haible  <bruno@clisp.org>
2549
2550         printf-posix: Fix link error when a non-GCC compiler is used.
2551         * lib/stdio.in.h (printf): When not using GCC, override printf
2552         correctly.
2553         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2554
2555 2010-12-25  Bruno Haible  <bruno@clisp.org>
2556
2557         strerror_r-posix: Update doc.
2558         * doc/posix-functions/strerror_r.texi: Update doc about the return
2559         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
2560
2561 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2562
2563         utimens: simplify the logic of the previous change
2564         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
2565         This should not affect whether the test succeeds or fails.
2566
2567         utimens: configure better on hosts with NFS clock skew
2568         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
2569         uses the clock of the local host.  It might use the clock of the
2570         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
2571         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2572
2573 2010-12-25  Bruno Haible  <bruno@clisp.org>
2574
2575         ptsname test: Avoid failure on Solaris.
2576         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2577         open a pseudo-terminal; don't use BSD-style ptys.
2578         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2579
2580 2010-12-25  Bruno Haible  <bruno@clisp.org>
2581
2582         ptsname: Avoid ERANGE failure on some systems.
2583         * lib/ptsname.c (buffer): Increase size.
2584
2585 2010-12-25  Bruno Haible  <bruno@clisp.org>
2586
2587         rename, renameat: Avoid test failures at NFS mounted locations.
2588         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2589         so that subsequent mkdir calls succeed.
2590
2591 2010-12-25  Bruno Haible  <bruno@clisp.org>
2592
2593         iswblank: Fix C++ link error on Solaris 8.
2594         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2595         _GL_FUNCDECL_SYS.
2596
2597 2010-12-25  Bruno Haible  <bruno@clisp.org>
2598
2599         unistd: Fix C++ link error on Solaris 8.
2600         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2601
2602 2010-12-25  Bruno Haible  <bruno@clisp.org>
2603
2604         readlink doc: Mention an old glibc bug.
2605         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
2606
2607 2010-12-25  Bruno Haible  <bruno@clisp.org>
2608
2609         fcntl-h: Fix for use of C++ on glibc systems.
2610         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2611         also on glibc systems in C++ mode.
2612         Reported by Gary V. Vaughan <gary@gnu.org>.
2613
2614 2010-12-25  Bruno Haible  <bruno@clisp.org>
2615
2616         roundl-ieee: Make it work on OSF/1 5.1 with cc.
2617         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
2618
2619 2010-12-25  Bruno Haible  <bruno@clisp.org>
2620
2621         truncl-ieee: Make it work on OSF/1 5.1 with cc.
2622         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
2623         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
2624         test whether truncl works according to ISO C 99 with IEC 60559.
2625         * m4/truncl-ieee.m4: New file.
2626         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
2627         m4/signbit.m4.
2628         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
2629
2630 2010-12-25  Bruno Haible  <bruno@clisp.org>
2631
2632         ceill-ieee: Make it work on OSF/1 5.1 with cc.
2633         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
2634         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
2635         test whether ceill works according to ISO C 99 with IEC 60559.
2636         * m4/ceill-ieee.m4: New file.
2637         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
2638         m4/signbit.m4.
2639         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
2640
2641 2010-12-25  Bruno Haible  <bruno@clisp.org>
2642
2643         Ensure all prerequisites of <wchar.h> are included.
2644         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
2645         before <wchar.h>.
2646         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2647         gl_MBRLEN_NUL_RETVAL): Likewise.
2648         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2649         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
2650         AC_FUNC_MBRTOWC): Likewise.
2651         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2652         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2654         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2655         Likewise.
2656         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2657         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
2658         (gl_WCHAR_H): Improve comments.
2659         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2660
2661 2010-12-25  Bruno Haible  <bruno@clisp.org>
2662
2663         strtok_r: Fix C syntax error in autoconf macro.
2664         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
2665         characters in test program.
2666
2667 2010-12-24  Bruno Haible  <bruno@clisp.org>
2668
2669         ceil, trunc, round: Fix gcc warnings.
2670         * lib/ceil.c (MIN): Undefine before redefining.
2671         * lib/trunc.c (MIN): Likewise.
2672         * lib/round.c (MIN): Likewise.
2673         Include <math.h> first.
2674
2675 2010-12-24  Bruno Haible  <bruno@clisp.org>
2676
2677         select tests: Avoid failures on OSF/1 5.1.
2678         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
2679         failure of closing the last socket; it may fail with ECONNRESET.
2680
2681 2010-12-24  Eric Blake  <eblake@redhat.com>
2682
2683         stdint: avoid HP-UX 10.20 preprocessor bug
2684         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
2685         than #if.
2686         * tests/test-floor2.c (main): Likewise.
2687         Reported by Peter O'Gorman.
2688
2689         pipe: make obsoletion transition easier
2690         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
2691         * modules/pipe (Files): Include revived file.
2692         (Include): Drop reference, to mirror getdate's behavior.
2693
2694 2010-12-24  Bruno Haible  <bruno@clisp.org>
2695
2696         sys_socket: Hide mismatch of declarations on NonStop Kernel.
2697         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
2698         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2699         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2700
2701 2010-12-24  Bruno Haible  <bruno@clisp.org>
2702
2703         gethostname: Ensure declaration on NonStop Kernel.
2704         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
2705         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2706
2707 2010-12-24  Bruno Haible  <bruno@clisp.org>
2708
2709         sys_select: Ensure all necessary types on NonStop Kernel.
2710         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
2711         include <sys/time.h>.
2712         * doc/posix-headers/sys_select.texi: Mention that it's missing on
2713         NonStop Kernel.
2714         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2715
2716 2010-12-24  Bruno Haible  <bruno@clisp.org>
2717
2718         sys_select: Remove unneeded include.
2719         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
2720         have <sys/select.h>.
2721
2722 2010-12-24  Bruno Haible  <bruno@clisp.org>
2723
2724         gethostname: Provide a fallback for HOST_NAME_MAX.
2725         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
2726         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
2727         instead.
2728         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2729
2730 2010-12-24  Bruno Haible  <bruno@clisp.org>
2731
2732         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2733         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2734         (SA_RESTART): Likewise.
2735         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2736
2737 2010-12-24  Bruno Haible  <bruno@clisp.org>
2738
2739         signal: Define NSIG.
2740         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2741         * tests/test-signal.c (nsig): New variable.
2742         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2743
2744 2010-12-24  Bruno Haible  <bruno@clisp.org>
2745
2746         rename, renameat: Avoid test failures on OSF/1 5.1.
2747         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2748         alternative error codes.
2749         * tests/test-renameat.c (main): Likewise.
2750
2751 2010-12-24  Bruno Haible  <bruno@clisp.org>
2752
2753         *printf: Detect large precisions bug on Solaris 10/SPARC.
2754         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2755         by Paul Eggert.
2756         * tests/test-snprintf-posix.h (test_function): Add this test code here
2757         too.
2758         * tests/test-sprintf-posix.h (test_function): Likewise.
2759         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2760         * tests/test-vasprintf-posix.c (test_function): Likewise.
2761         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2762         around by gnulib.
2763         * doc/posix-functions/printf.texi: Likewise.
2764         * doc/posix-functions/snprintf.texi: Likewise.
2765         * doc/posix-functions/sprintf.texi: Likewise.
2766         * doc/posix-functions/vfprintf.texi: Likewise.
2767         * doc/posix-functions/vprintf.texi: Likewise.
2768         * doc/posix-functions/vsnprintf.texi: Likewise.
2769         * doc/posix-functions/vsprintf.texi: Likewise.
2770         * doc/posix-functions/dprintf.texi: Undo last commit.
2771         * doc/posix-functions/vdprintf.texi: Likewise.
2772
2773 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2774
2775         tests: port test-fdutimensat.c to Solaris 8
2776         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2777         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2778         On Solaris 8, it fails with errno == ENOSYS, because there is no
2779         futimens (so it can't use the fd), and there is no lutimens (so it
2780         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2781
2782         vsnprintf: make more consistent with snprintf; doc fixes
2783
2784         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2785         the byte count return problem was promoted from the snprintf-posix
2786         to the snprintf module.
2787         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2788         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2789         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2790         * tests/test-snprintf.c (main): Check the byte count returned.
2791         * tests/test-vsnprintf.c (main): Likewise.
2792
2793 2010-12-23  Eric Blake  <eblake@redhat.com>
2794
2795         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2796         * modules/sigpipe (License): Relax license.
2797
2798 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2799
2800         doc: document Solaris printf bug with large float precisions
2801         * doc/posix-functions/dprintf.texi (dprintf):
2802         * doc/posix-functions/fprintf.texi (fprintf):
2803         * doc/posix-functions/printf.texi (printf):
2804         * doc/posix-functions/snprintf.texi (snprintf):
2805         * doc/posix-functions/sprintf.texi (sprintf):
2806         * doc/posix-functions/vdprintf.texi (vdprintf):
2807         * doc/posix-functions/vfprintf.texi (vfprintf):
2808         * doc/posix-functions/vprintf.texi (vprintf):
2809         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2810         * doc/posix-functions/vsprintf.texi (vsprintf):
2811         Mention that these functions mishandle large floating point
2812         precisions on Solaris 10.  The same bug is also present in Solaris
2813         8, and I assume earlier.  This causes "cd gnulib-tests; make
2814         check" to fail on Solaris 8 (and I assume, later) when building
2815         the latest coreutils, in test-vasprintf-posix's call to
2816         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2817         the wide flavors (e.g., wprintf) so this patch just updates the
2818         documentation for the narrow ones.
2819
2820         test-posixtm.c: add two tests
2821         * tests/test-posixtm.c: Add two tests, to highlight the
2822         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2823         around this bug; this is merely to document it.
2824
2825 2010-12-22  Bruno Haible  <bruno@clisp.org>
2826
2827         getlogin_r: Work around portability problem on OSF/1.
2828         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2829         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2830         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2831         test for a truncated result.
2832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2833         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2834         * modules/getlogin_r (Depends-on): Add memchr.
2835         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2836
2837 2010-12-22  Bruno Haible  <bruno@clisp.org>
2838
2839         ptsname: Avoid test failure on OSF/1 5.1.
2840         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2841         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2842         (same_slave): New function.
2843         (main): Use it to compare ptsname's result with the expected file name.
2844
2845 2010-12-22  Bruno Haible  <bruno@clisp.org>
2846
2847         Port extended stdio modules to HP NonStop Kernel.
2848         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2849         macros.
2850         * lib/fbufmode.c: Update comments.
2851         * lib/fflush.c: Likewise.
2852         * lib/fpurge.c: Likewise.
2853         * lib/freadable.c: Likewise.
2854         * lib/freadahead.c: Likewise.
2855         * lib/freading.c: Likewise.
2856         * lib/freadptr.c: Likewise.
2857         * lib/freadseek.c: Likewise.
2858         * lib/fseeko.c: Likewise.
2859         * lib/fseterr.c: Likewise.
2860         * lib/fwritable.c: Likewise.
2861         * lib/fwriting.c: Likewise.
2862         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2863
2864 2010-12-22  Bruno Haible  <bruno@clisp.org>
2865
2866         ttyname_r: Work around bug on OSF/1 5.1.
2867         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2868         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2869         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2870         present.
2871         * lib/ttyname_r.c (ttyname_r): Update comments.
2872
2873 2010-12-22  Bruno Haible  <bruno@clisp.org>
2874
2875         round: Implement result sign according to IEEE 754.
2876         * lib/round.c (MIN, MINUS_ZERO): New macros.
2877         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2878         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2879         * tests/test-round-ieee.c (main): Likewise.
2880         * tests/test-roundl-ieee.c (main): Likewise.
2881
2882         trunc: Implement result sign according to IEEE 754.
2883         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2884         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2885         * tests/test-trunc2.c: Include minus-zero.h.
2886         (MINUS_ZERO): New macro.
2887         (trunc_reference): Keep in sync with lib/trunc.c.
2888         * tests/test-truncf2.c: Include minus-zero.h.
2889         (MINUS_ZERO): New macro.
2890         (truncf_reference): Keep in sync with lib/trunc.c.
2891         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2892         * tests/test-trunc-ieee.c (main): Likewise.
2893         * tests/test-truncl-ieee.c (main): Likewise.
2894
2895         ceil: Implement result sign according to IEEE 754.
2896         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2897         (FUNC): Return -0.0 for -1 < x < 0.
2898         * tests/test-ceil2.c: Include minus-zero.h.
2899         (MINUS_ZERO): New macro.
2900         (ceil_reference): Keep in sync with lib/ceil.c.
2901         * tests/test-ceilf2.c: Include minus-zero.h.
2902         (MINUS_ZERO): New macro.
2903         (ceilf_reference): Keep in sync with lib/ceil.c.
2904         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2905         * tests/test-ceil-ieee.c (main): Likewise.
2906         * tests/test-ceill-ieee.c (main): Likewise.
2907
2908         floor: Implement result sign according to IEEE 754.
2909         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2910         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2911         * tests/test-floorf2.c (floorf_reference): Likewise.
2912         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2913         * tests/test-floor-ieee.c (main): Likewise.
2914         * tests/test-floorl-ieee.c (main): Likewise.
2915
2916 2010-12-22  Bruno Haible  <bruno@clisp.org>
2917
2918         getaddrinfo: Update doc.
2919         * doc/posix-functions/gai_strerror.texi: Return type is also different
2920         on AIX and HP-UX.
2921
2922 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2923
2924         getaddrinfo, inet_ntop: Update doc for Solaris.
2925         * doc/posix-functions/gai_strerror.texi: Return type is also an
2926         issue on Solaris 9 and earlier.
2927         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2928         on Solaris 10 and earlier.
2929
2930 2010-12-21  Bruno Haible  <bruno@clisp.org>
2931
2932         New module 'roundl-ieee'.
2933         * modules/roundl-ieee: New file.
2934         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2935         test whether roundl works according to ISO C 99 with IEC 60559.
2936         * m4/roundl-ieee.m4: New file.
2937         * modules/roundl-ieee-tests: New file.
2938         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2939         * tests/test-roundl.c (main): Remove signbit tests.
2940         * modules/roundl-tests (Depends-on): Remove signbit.
2941         * doc/posix-functions/roundl.texi: Mention the new module.
2942
2943 2010-12-21  Bruno Haible  <bruno@clisp.org>
2944
2945         New module 'truncl-ieee'.
2946         * modules/truncl-ieee: New file.
2947         * modules/truncl-ieee-tests: New file.
2948         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2949         * tests/test-truncl.c (main): Remove signbit tests.
2950         * modules/truncl-tests (Depends-on): Remove signbit.
2951         * doc/posix-functions/truncl.texi: Mention the new module.
2952
2953 2010-12-21  Bruno Haible  <bruno@clisp.org>
2954
2955         New module 'ceill-ieee'.
2956         * modules/ceill-ieee: New file.
2957         * modules/ceill-ieee-tests: New file.
2958         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2959         * tests/test-ceill.c (main): Remove signbit tests.
2960         * modules/ceill-tests (Depends-on): Remove signbit.
2961         * doc/posix-functions/ceill.texi: Mention the new module.
2962
2963 2010-12-21  Bruno Haible  <bruno@clisp.org>
2964
2965         New module 'floorl-ieee'.
2966         * modules/floorl-ieee: New file.
2967         * modules/floorl-ieee-tests: New file.
2968         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2969         * tests/test-floorl.c (main): Remove signbit tests.
2970         * modules/floorl-tests (Depends-on): Remove signbit.
2971         * doc/posix-functions/floorl.texi: Mention the new module.
2972
2973 2010-12-21  Bruno Haible  <bruno@clisp.org>
2974
2975         New module 'round-ieee'.
2976         * modules/round-ieee: New file.
2977         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2978         whether round works according to ISO C 99 with IEC 60559.
2979         * m4/round-ieee.m4: New file.
2980         * modules/round-ieee-tests: New file.
2981         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2982         * tests/test-round1.c (main): Remove signbit tests.
2983         * modules/round-tests (Depends-on): Remove 'signbit'.
2984         * doc/posix-functions/round.texi: Mention the new module.
2985
2986 2010-12-21  Bruno Haible  <bruno@clisp.org>
2987
2988         New module 'trunc-ieee'.
2989         * modules/trunc-ieee: New file.
2990         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2991         whether trunc works according to ISO C 99 with IEC 60559.
2992         * m4/trunc-ieee.m4: New file.
2993         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2995         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2996         * modules/trunc-ieee-tests: New file.
2997         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2998         * tests/test-trunc1.c (main): Remove signbit tests.
2999         * modules/trunc-tests (Depends-on): Remove 'signbit'.
3000         * doc/posix-functions/trunc.texi: Mention the new module.
3001
3002 2010-12-21  Bruno Haible  <bruno@clisp.org>
3003
3004         New module 'ceil-ieee'.
3005         * modules/ceil-ieee: New file.
3006         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
3007         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
3008         ISO C 99 with IEC 60559.
3009         * m4/ceil-ieee.m4: New file.
3010         * modules/ceil (Files): Add lib/ceil.c.
3011         (Depends-on): Add 'float'.
3012         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3013         * lib/math.in.h (ceil): New declaration.
3014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
3015         REPLACE_CEIL.
3016         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
3017         * modules/ceil-ieee-tests: New file.
3018         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
3019         * tests/test-math-c++.cc: Check the signature of 'ceil'.
3020         * doc/posix-functions/ceil.texi: Mention the new module.
3021
3022 2010-12-21  Bruno Haible  <bruno@clisp.org>
3023
3024         New module 'floor-ieee'.
3025         * modules/floor-ieee: New file.
3026         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
3027         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
3028         ISO C 99 with IEC 60559.
3029         * m4/floor-ieee.m4: New file.
3030         * modules/floor (Files): Add lib/floor.c.
3031         (Depends-on): Add 'float'.
3032         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3033         * lib/math.in.h (floor): New declaration.
3034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
3035         REPLACE_FLOOR.
3036         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
3037         * modules/floor-ieee-tests: New file.
3038         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
3039         * tests/test-math-c++.cc: Check the signature of 'floor'.
3040         * doc/posix-functions/floor.texi: Mention the new module.
3041
3042 2010-12-21  Bruno Haible  <bruno@clisp.org>
3043
3044         New module 'roundf-ieee'.
3045         * modules/roundf-ieee: New file.
3046         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
3047         test whether roundf works according to ISO C 99 with IEC 60559.
3048         * m4/roundf-ieee.m4: New file.
3049         * modules/roundf-ieee-tests: New file.
3050         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
3051         * tests/test-roundf1.c (main): Remove signbit tests.
3052         * modules/roundf-tests (Depends-on): Remove 'signbit'.
3053         * doc/posix-functions/roundf.texi: Mention the new module.
3054
3055 2010-12-21  Bruno Haible  <bruno@clisp.org>
3056
3057         New module 'truncf-ieee'.
3058         * modules/truncf-ieee: New file.
3059         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
3060         test whether truncf works according to ISO C 99 with IEC 60559.
3061         * m4/truncf-ieee.m4: New file.
3062         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
3063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
3064         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
3065         * modules/truncf-ieee-tests: New file.
3066         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
3067         * tests/test-truncf1.c (main): Remove signbit tests.
3068         * modules/truncf-tests (Depends-on): Remove 'signbit'.
3069         * doc/posix-functions/truncf.texi: Mention the new module.
3070
3071 2010-12-21  Bruno Haible  <bruno@clisp.org>
3072
3073         New module 'ceilf-ieee'.
3074         * modules/ceilf-ieee: New file.
3075         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
3076         test whether ceilf works according to ISO C 99 with IEC 60559.
3077         * m4/ceilf-ieee.m4: New file.
3078         * modules/ceilf-ieee-tests: New file.
3079         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
3080         * tests/test-ceilf1.c (main): Remove signbit tests.
3081         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
3082         * doc/posix-functions/ceilf.texi: Mention the new module.
3083
3084 2010-12-21  Bruno Haible  <bruno@clisp.org>
3085
3086         New module 'floorf-ieee'.
3087         * modules/floorf-ieee: New file.
3088         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
3089         test whether floorf works according to ISO C 99 with IEC 60559.
3090         * m4/floorf-ieee.m4: New file.
3091         * modules/floorf-ieee-tests: New file.
3092         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
3093         * tests/test-floorf1.c (main): Remove signbit tests.
3094         * modules/floorf-tests (Depends-on): Remove 'signbit'.
3095         * doc/posix-functions/floorf.texi: Mention the new module.
3096
3097 2010-12-21  Bruno Haible  <bruno@clisp.org>
3098
3099         Support for minus zero in autoconf macros.
3100         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
3101         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
3102         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
3103         * tests/minus-zero.h: Update comments.
3104
3105 2010-12-21  Bruno Haible  <bruno@clisp.org>
3106
3107         Tests for module 'ceil'.
3108         * modules/ceil-tests: New file.
3109         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
3110         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
3111
3112 2010-12-21  Bruno Haible  <bruno@clisp.org>
3113
3114         Tests for module 'floor'.
3115         * modules/floor-tests: New file.
3116         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
3117         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
3118
3119 2010-12-21  Bruno Haible  <bruno@clisp.org>
3120
3121         math: Fix indentation.
3122         * lib/math.in.h (floorf): Fix indentation.
3123
3124 2010-12-21  Bruno Haible  <bruno@clisp.org>
3125
3126         Fix cross-compilation guesses on Solaris.
3127         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
3128         not match "solaris2.10".
3129         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3130         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
3131         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3132
3133 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
3134
3135         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
3136         This fixes a problem observed with the latest coreutils snapshot
3137         that caused a test to fail on Solaris 8.  src/csplit.c's call
3138         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
3139         earlier, instead of returning the number of bytes that would have
3140         been generated; this causes csplit to incorrectly report memory
3141         exhaustion.
3142         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
3143         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
3144         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
3145         comments to match.
3146         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
3147         Fix typo in matching older versions of Solaris: "solaris2.10"
3148         is matched by the shell pattern "solaris2.[0-9]*".  This matters
3149         only for guessing while cross-compiling.
3150         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
3151
3152 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
3153
3154         ftoastr: fix comment again
3155         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
3157         Also, simplify example a bit by using flags = 0.
3158
3159 2010-12-20  Bruno Haible  <bruno@clisp.org>
3160
3161         round*, trunc*: Update documentation regarding glibc.
3162         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
3163         * doc/posix-functions/round.texi: Likewise.
3164         * doc/posix-functions/roundl.texi: Likewise.
3165         * doc/posix-functions/truncf.texi: Likewise.
3166         * doc/posix-functions/trunc.texi: Likewise.
3167         * doc/posix-functions/truncl.texi: Likewise.
3168
3169 2010-12-20  Bruno Haible  <bruno@clisp.org>
3170
3171         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
3172         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
3173         * doc/posix-functions/round.texi: Likewise.
3174         * doc/posix-functions/roundl.texi: Likewise.
3175
3176 2010-12-20  Bruno Haible  <bruno@clisp.org>
3177
3178         ttyname_r: Add missing declaration on HP-UX 11.
3179         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
3180         HAVE_TTYNAME_R.
3181         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
3182         declared. Set HAVE_TTYNAME_R always.
3183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3184         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
3185         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
3186         HAVE_TTYNAME_R.
3187         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
3188
3189 2010-12-20  Bruno Haible  <bruno@clisp.org>
3190
3191         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
3192         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
3193         * doc/posix-functions/getlogin_r.texi: Likewise.
3194         * tests/test-getlogin.c: Include <errno.h>.
3195         (main): Avoid test failure on HP-UX 11.11.
3196         * tests/test-getlogin_r.c (main): Likewise.
3197
3198 2010-12-20  Bruno Haible  <bruno@clisp.org>
3199
3200         getlogin_r: Add missing declaration on HP-UX 11.
3201         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
3202         declared also when it exists as a function.
3203         * doc/posix-functions/getlogin_r.texi: Document this workaround.
3204
3205 2010-12-20  Bruno Haible  <bruno@clisp.org>
3206
3207         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
3208         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
3209         through wcrtomb.
3210
3211 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3212
3213         ftoastr: fix comment
3214         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3215         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
3216
3217 2010-12-19  Bruno Haible  <bruno@clisp.org>
3218
3219         isnan: Ensure it is a macro.
3220         * lib/math.in.h (isnan): Define as a macro if not already a macro.
3221         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
3222         Solaris.
3223
3224 2010-12-19  Bruno Haible  <bruno@clisp.org>
3225
3226         ldexpl test: Fix link error on OSF/1 5.1.
3227         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
3228
3229 2010-12-19  Bruno Haible  <bruno@clisp.org>
3230
3231         wctype: Make it work in C++ mode on OSF/1 5.1.
3232         * lib/wctype.in.h (iswblank): Declare but not define here.
3233         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
3234         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
3235         * modules/wctype (Files): Add lib/iswblank.c.
3236
3237 2010-12-19  Bruno Haible  <bruno@clisp.org>
3238
3239         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
3240         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
3241         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
3242
3243 2010-12-19  Bruno Haible  <bruno@clisp.org>
3244
3245         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
3246         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
3247         _POSIX_PII_SOCKET.
3248         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
3249         * doc/posix-functions/recvfrom.texi: Likewise.
3250         * doc/posix-functions/send.texi: Likewise.
3251         * doc/posix-functions/sendto.texi: Likewise.
3252
3253 2010-12-19  Bruno Haible  <bruno@clisp.org>
3254
3255         tcgetsid: Add missing declaration on OSF/1 5.1.
3256         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
3257         HAVE_TCGETSID.
3258         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
3259         Don't set HAVE_TCGETSID.
3260         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
3261         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
3262         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
3263         HAVE_TCGETSID.
3264         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
3265
3266 2010-12-19  Bruno Haible  <bruno@clisp.org>
3267
3268         stdio: Fix problem with popen() declaration on OSF/1 5.1.
3269         * lib/stdio.in.h: During the include_next statement, let recursive
3270         includes of this file include only the system header file.
3271
3272 2010-12-19  Bruno Haible  <bruno@clisp.org>
3273
3274         iconv_open: Fix regression from 2010-12-04.
3275         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
3276         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
3277
3278 2010-12-19  Bruno Haible  <bruno@clisp.org>
3279
3280         stdbool test: Avoid a gcc warning.
3281         * tests/test-stdbool.c (main): Fail if e1 is false.
3282         Reported by Jim Meyering.
3283
3284 2010-12-19  Jim Meyering  <meyering@redhat.com>
3285
3286         setenv: restore to working order
3287         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
3288         mistakenly removed.
3289         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
3290         HAVE_SETENV.
3291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
3292         HAVE_SETENV.
3293
3294 2010-12-19  Bruno Haible  <bruno@clisp.org>
3295
3296         Document some different function declarations on OSF/1 5.1.
3297         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
3298         * doc/posix-functions/inet_ntop.texi: Likewise.
3299         * doc/posix-functions/gethostname.texi: Likewise.
3300         * lib/unistd.in.h (gethostname): Update comment.
3301
3302 2010-12-19  Bruno Haible  <bruno@clisp.org>
3303
3304         doc: Mention vasprintf-posix module.
3305         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
3306         the 'vasprintf-posix' module.
3307         * doc/glibc-functions/vasprintf.texi: Likewise.
3308
3309 2010-12-19  Bruno Haible  <bruno@clisp.org>
3310
3311         unsetenv: Add missing declaration on OSF/1 5.1.
3312         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
3313         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
3314         Don't set HAVE_UNSETENV. In the test program, set _BSD.
3315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
3316         not HAVE_UNSETENV.
3317         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
3318         HAVE_UNSETENV.
3319         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
3320
3321 2010-12-19  Bruno Haible  <bruno@clisp.org>
3322
3323         setenv: Add missing declaration on OSF/1 5.1.
3324         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
3325         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
3326         declared. Don't set HAVE_SETENV.
3327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
3328         not HAVE_SETENV.
3329         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
3330         HAVE_SETENV.
3331         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
3332
3333 2010-12-19  Bruno Haible  <bruno@clisp.org>
3334
3335         nl_langinfo tests: Avoid gcc warning.
3336         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
3337
3338 2010-12-19  Bruno Haible  <bruno@clisp.org>
3339
3340         mknod: Avoid error in C++ mode on OSF/1 with GCC.
3341         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
3342         _GL_CXXALIAS_SYS.
3343
3344 2010-12-19  Bruno Haible  <bruno@clisp.org>
3345
3346         stdbool: Relax test.
3347         * tests/test-stdbool.c (e): Don't require that casts from a variable's
3348         address to 'bool' work in static initializer, for compilers other than
3349         GCC.
3350
3351 2010-12-19  Bruno Haible  <bruno@clisp.org>
3352
3353         ftello: Add missing declaration on OSF/1 5.1.
3354         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
3355         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
3356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
3357         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
3358         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
3359
3360 2010-12-19  Bruno Haible  <bruno@clisp.org>
3361
3362         fseeko: Add missing declaration on OSF/1 5.1.
3363         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
3364         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
3365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
3366         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
3367         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
3368
3369 2010-12-19  Bruno Haible  <bruno@clisp.org>
3370
3371         fchdir: Add missing declaration on OSF/1 5.1.
3372         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
3373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
3374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
3375         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
3376         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
3377
3378 2010-12-19  Bruno Haible  <bruno@clisp.org>
3379
3380         relocatable-prog-wrapper: Separate from relocatable-prog.
3381         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
3382         uninstall-relocwrapper rule here.
3383         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
3384         Reported by Ian Beckwith <ianb@erislabs.net>.
3385
3386 2010-12-19  Bruno Haible  <bruno@clisp.org>
3387
3388         unistr/u8-mbsnlen: Add missing dependency.
3389         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
3390         Reported by Ian Beckwith <ianb@erislabs.net>.
3391
3392 2010-12-19  Bruno Haible  <bruno@clisp.org>
3393
3394         iconv: Make it possible again to use this module without 'iconv-h'.
3395         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
3396         if it is not defined.
3397         Reported by Ian Beckwith <ianb@erislabs.net>.
3398
3399 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3400
3401         acl: port to Solaris 8 when copying from tmpfs to ufs
3402         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
3403         error number.  Problem observed on Solaris 8 with latest
3404         coreutils, with "mv A B", where A is on a tmpfs file system and B
3405         is on a ufs file system.  This caused coreutils' mv/part-symlink
3406         test to fail.
3407
3408         tests: set fail=0 at start
3409         * tests/init.sh (setup_): Move fail=0 initialization here ...
3410         (mktempd_): ... from here, so that tests can rely on fail being
3411         set to 0 initially.  This fixes a problem in coreutils; see:
3412         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
3413
3414 2010-12-18  Bruno Haible  <bruno@clisp.org>
3415
3416         memmem-simple: Stylistic changes.
3417         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
3418         Fix preprocessor directive indentation.
3419
3420 2010-12-15  Pádraig Brady <P@draigBrady.com>
3421
3422         memmem, memmem-simple: reorganize and expand empty needle check
3423         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
3424         functional checks to memmem-simple so that one has a fully functional
3425         memmem by using just this module.
3426         Restrict the performance only check to the memmem module.
3427         Also expand the empty needle check to ensure the correct
3428         pointer is returned, not just a non NULL pointer.
3429         * doc/glibc-functions/memmem.texi: Rearrange the portability
3430         documentation to correlate with the rearranged checks.
3431         Clarify exactly how the memmem and memmem-simple modules
3432         relate to each other.
3433
3434 2010-12-15  Pádraig Brady <P@draigBrady.com>
3435             Bruno Haible  <bruno@clisp.org>
3436
3437         Improve cross-compilation guesses for uClibc.
3438         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
3439         that uClibc does not have the glibc bug.
3440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3441         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
3442
3443 2010-12-14  Eric Blake  <eblake@redhat.com>
3444
3445         configmake: provide fallbacks for oldest supported autotools
3446         * m4/configmake.m4: New file.
3447         * modules/configmake (Files): Ship it.
3448         (configure.ac): Use it to guarantee fallbacks.
3449
3450 2010-12-13  Pádraig Brady <P@draigBrady.com>
3451
3452         read-file: Improve handling of large files
3453         * lib/read-file.c (fread_file): Minimize realloc()s
3454         for regular files, and better manage sizes around SIZE_MAX.
3455
3456 2010-12-13  Eric Blake  <eblake@redhat.com>
3457
3458         cloexec, fcntl: relax license
3459         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
3460         consent from all contributors.
3461         * modules/fcntl (License): Likewise.
3462
3463 2010-12-10  Bruno Haible  <bruno@clisp.org>
3464
3465         Tests for module 'pipe-posix'.
3466         * modules/pipe-posix-tests: New file.
3467         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
3468
3469 2010-12-10  Bruno Haible  <bruno@clisp.org>
3470
3471         pipe-posix: Make it work in C++ mode.
3472         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
3473         (pipe): Use common idiom, not a macro definition.
3474         * lib/pipe.c: New file.
3475         * m4/pipe.m4: New file.
3476         * modules/pipe-posix (Description): Enhance.
3477         (Files): Add lib/pipe.c, m4/pipe.m4.
3478         (configure.ac): Invoke gl_FUNC_PIPE.
3479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
3480         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
3481         * tests/test-unistd-c++.cc: Check the signature of pipe.
3482
3483 2010-12-10  Bruno Haible  <bruno@clisp.org>
3484
3485         Rename module 'pipe' to 'spawn-pipe'.
3486         * modules/spawn-pipe: New file, renamed from modules/pipe.
3487         (Files, configure.ac, Makefile.am): Update.
3488         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
3489         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
3490         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
3491         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
3492         "spawn-pipe.h" instead of "pipe.h".
3493         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
3494         to gl_SPAWN_PIPE.
3495         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
3496         (Files, Makefile.am): Update.
3497         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
3498         Update.
3499         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
3500         Include "spawn-pipe.h" instead of "pipe.h".
3501         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
3502         * lib/javacomp.c: Likewise.
3503         * lib/javaversion.c: Likewise.
3504         * lib/pipe-filter-gi.c: Likewise.
3505         * lib/pipe-filter-ii.c: Likewise.
3506         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
3507         * modules/javacomp (Depends-on): Likewise.
3508         * modules/javaversion (Depends-on): Likewise.
3509         * modules/pipe-filter-gi (Depends-on): Likewise.
3510         * modules/pipe-filter-ii (Depends-on): Likewise.
3511         * MODULES.html.sh (Executing programs): Update.
3512         * NEWS: Mention the change.
3513
3514 2010-12-10  Eric Blake  <eblake@redhat.com>
3515
3516         pipe-posix: new module
3517         * modules/pipe-posix: New file.
3518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
3519         (gl_UNISTD_H): Check for declaration.
3520         * modules/unistd (Makefile.am): Substitute it.
3521         * lib/unistd.in.h (pipe): Provide it for mingw.
3522         * doc/posix-functions/pipe.texi (pipe): Update documentation.
3523         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
3524
3525 2010-12-07  Bruno Haible  <bruno@clisp.org>
3526
3527         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
3528         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
3529         u8_strcmp_gnu.
3530         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
3531
3532 2010-12-06  Bruno Haible  <bruno@clisp.org>
3533
3534         Update internal documentation.
3535         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
3536
3537 2010-12-04  Bruno Haible  <bruno@clisp.org>
3538
3539         Put more information about failed tests into the test return codes.
3540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
3541         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
3542         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3543         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3544         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3545         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3546         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3547         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3548         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
3549         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3550         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3551         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3552         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3553         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3554         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
3555         returns a bit mask.
3556         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3557         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3558         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3559         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3560         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3561         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3562         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3564         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3565         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3566         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3567         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3568         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3569         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3570         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3571         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3572         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3573         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3574         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3575         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3576         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3577         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3578         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3579         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3580         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3581         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3582         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3583         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3584         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3585         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3586         gl_PRINTF_PRECISION): Likewise.
3587         * m4/regex.m4 (gl_REGEX): Likewise.
3588         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3589         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3591         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3592         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3594         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3595         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3596         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3597         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3598         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3599         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3600         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3601         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3602         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3603         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3604         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3605         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3607         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
3608         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
3609         enumerated value.
3610         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
3611
3612 2010-12-04  Bruno Haible  <bruno@clisp.org>
3613
3614         Update for Solaris 11 2010-11.
3615         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
3616         Express, released in November 2010.
3617
3618 2010-12-04  Bruno Haible  <bruno@clisp.org>
3619
3620         nproc: Relax license.
3621         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
3622         and Paul Eggert.
3623         Requested by Ludovic Courtès <ludo@gnu.org>.
3624
3625 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3626
3627         utimecmp: fine-grained src to nearby coarse-grained dest
3628
3629         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
3630         and the source is on a file system with higher-resolution time
3631         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
3632         not work, and the time stamps are close together, the algorithm to
3633         determine the exact resolution from the read-back mtime was buggy:
3634         it had a "!=" where it should have had an "==".  This bug has been
3635         in the code ever since it was introduced to gnulib.
3636         Problem reported by Dan Jacobson in
3637         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
3638
3639 2010-11-30  Bruno Haible  <bruno@clisp.org>
3640
3641         strerror_r-posix: Fix autoconf test.
3642         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
3643
3644 2010-11-28  Bruno Haible  <bruno@clisp.org>
3645             Paul Eggert  <eggert@cs.ucla.edu>
3646
3647         Tests for module 'getdomainname'.
3648         * modules/getdomainname-tests: New file.
3649         * tests/test-getdomainname.c: New file, based on
3650         tests/test-gethostname.c.
3651
3652 2010-11-28  Bruno Haible  <bruno@clisp.org>
3653             Paul Eggert  <eggert@cs.ucla.edu>
3654
3655         getdomainname: Use the system function when possible.
3656         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
3657         (getdomainname): Replace if needed. Provide the declaration if it is
3658         missing. Don't use _GL_CXXALIAS_SYS_CAST.
3659         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
3660         (getdomainname): When the system has getdomainname, call the system
3661         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
3662         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3663         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
3664         found in libnsl. Look for the declaration also in <netdb.h>. Replace
3665         the function if its second argument is of type 'int' or if it is found
3666         in libnsl.
3667         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
3668         <sys/systeminfo.h> and sysinfo().
3669         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
3670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3671         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
3672         HAVE_GETDOMAINNAME.
3673         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
3674         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
3675         * doc/glibc-functions/getdomainname.texi: Document the problems with
3676         the getdomainname declaration.
3677
3678 2010-11-28  Bruno Haible  <bruno@clisp.org>
3679
3680         sys_socket: Ensure ss_family field on AIX.
3681         * lib/sys_socket.in.h (ss_family): New macro definition.
3682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
3683         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
3684         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3685         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3686         * modules/sys_socket (Makefile.am): Substitute
3687         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3688         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
3689
3690 2010-11-27  Bruno Haible  <bruno@clisp.org>
3691
3692         readline: Improve configure output.
3693         * m4/readline.m4 (gl_FUNC_READLINE): Make the
3694         "checking for readline..." result understandable.
3695
3696 2010-11-27  Bruno Haible  <bruno@clisp.org>
3697
3698         *printf-posix: Detect a bug on Solaris 10/x86.
3699         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
3700         for floating-point output.
3701         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
3702         directive.
3703         * tests/test-snprintf-posix.h (test_function): Likewise.
3704         * tests/test-sprintf-posix.h (test_function): Likewise.
3705         * tests/test-vasprintf-posix.c (test_function): Likewise.
3706         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
3707         * doc/posix-functions/printf.texi: Likewise.
3708         * doc/posix-functions/snprintf.texi: Likewise.
3709         * doc/posix-functions/sprintf.texi: Likewise.
3710         * doc/posix-functions/vfprintf.texi: Likewise.
3711         * doc/posix-functions/vprintf.texi: Likewise.
3712         * doc/posix-functions/vsnprintf.texi: Likewise.
3713         * doc/posix-functions/vsprintf.texi: Likewise.
3714         * doc/glibc-functions/obstack_printf.texi: Likewise.
3715         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3716
3717 2010-11-27  Bruno Haible  <bruno@clisp.org>
3718
3719         Fix link error when module libunistring-optional is in use.
3720         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
3721         * modules/striconveha-tests (Makefile.am): Likewise.
3722
3723 2010-11-27  Bruno Haible  <bruno@clisp.org>
3724
3725         regex: Mention link dependencies.
3726         * modules/regex (Link): New section.
3727         * modules/rpmatch (Link): Likewise.
3728         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
3729
3730 2010-11-27  Bruno Haible  <bruno@clisp.org>
3731
3732         ftoastr: Fix compilation error on Solaris.
3733         * lib/ftoastr.c: Include <config.h>.
3734
3735 2010-11-27  Bruno Haible  <bruno@clisp.org>
3736
3737         getloadavg: Update documentation.
3738         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3739
3740 2010-11-27  Bruno Haible  <bruno@clisp.org>
3741
3742         sys_socket: Fix test whether the functions are declared.
3743         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3744         not <sys/select.h>.
3745
3746 2010-11-27  Bruno Haible  <bruno@clisp.org>
3747
3748         getpass: Make sure to get system declaration on some platforms.
3749         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3750         gl_USE_SYSTEM_EXTENSIONS.
3751         * modules/getpass (Depends-on): Add extensions.
3752
3753 2010-11-26  Bruno Haible  <bruno@clisp.org>
3754
3755         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3756         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3757         'iconv' module is present.
3758         (ICONV_CONST): New macro.
3759         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3760         ICONV_CONST.
3761         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3762         set ICONV_CONST.
3763         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3764         here.
3765         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3766         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3767         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3768         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3769         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3770         present.
3771
3772 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3773
3774         ftoastr: comment fix
3775         * lib/ftoastr.c: "little" -> "little or no" in comment
3776
3777 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3778
3779         stdint: port to GCC 4.3 + OSX + Octave
3780         On this platform, stdint.h is buggy and defines int64_t to long
3781         long int.  The replacement defined it to long int, causing
3782         problems with C++ style name mangling.  Instead, trust the system
3783         definition if INT64_MAX is defined, and likewise for the unsigned
3784         variant.   Problem reported by Jarno Rajahalme in
3785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3786         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3787         and don't mess with int64_t and INT64_MAX in this case.
3788         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3789
3790 2010-11-24  Bruno Haible  <bruno@clisp.org>
3791
3792         doc: Corrections regarding MacOS X 10.4 and 10.5.
3793         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3794         MacOS X.
3795         Reported by Simon Josefsson.
3796
3797 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3798
3799         Uninstall ".bin" files installed by relocwrapper.
3800         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3801         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3802         unless it is already there.
3803
3804 2010-11-21  Bruno Haible  <bruno@clisp.org>
3805
3806         Update for NetBSD 5.0.
3807         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3808         NetBSD; the test fails on NetBSD 5.0.
3809         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3810         about NetBSD.
3811
3812 2010-11-21  Bruno Haible  <bruno@clisp.org>
3813
3814         Update for HP-UX 11.23 and HP-UX 11.31.
3815         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3816         HP-UX.
3817
3818 2010-11-21  Bruno Haible  <bruno@clisp.org>
3819
3820         Update for MacOS X 10.5.
3821         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3822         MacOS X; the test fails on MacOS X 10.5.8.
3823         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3824         about MacOS X.
3825
3826 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3827
3828         bootstrap: add bootstrap_sync option.
3829         See discussion at
3830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3831         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3832         * build-aux/bootstrap: Accept --bootstrap-sync to update
3833         bootstrap if it is not identical to the local gnulib's
3834         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3835         enable this by default.  Accept --no-bootstrap-sync to disable
3836         it.
3837
3838 2010-11-20  Bruno Haible  <bruno@clisp.org>
3839
3840         Ensure that <features.h> is included before __GLIBC__ is tested.
3841         * lib/printf-parse.h: Include <features.h>.
3842         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3843         Reported by Mike Frysinger <vapier@gentoo.org>.
3844
3845         Ensure that <features.h> is included before __GLIBC__ is tested.
3846         * lib/wchar.in.h: Include <features.h>.
3847         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3848         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3849         Reported by Mike Frysinger <vapier@gentoo.org>.
3850
3851         Ensure that <features.h> is included before __GLIBC__ is tested.
3852         * lib/arpa_inet.in.h: Include <features.h>.
3853         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3854         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3855         Reported by Mike Frysinger <vapier@gentoo.org>.
3856
3857         Ensure that <features.h> is included before __GLIBC__ is tested.
3858         * build-aux/link-warning.h: Include <features.h>.
3859         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3860         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3861         Reported by Mike Frysinger <vapier@gentoo.org>.
3862
3863         Ensure that <features.h> is included before __GLIBC__ is tested.
3864         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3865         Reported by Mike Frysinger <vapier@gentoo.org>.
3866
3867 2010-11-20  Bruno Haible  <bruno@clisp.org>
3868
3869         memmem: Fix autoconf test.
3870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3871
3872 2010-11-20  Bruno Haible  <bruno@clisp.org>
3873
3874         Port to uClibc.
3875         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3876         * lib/fcntl.in.h: Likewise.
3877         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3878         * lib/mbrtowc.c (mbrtowc): Likewise.
3879         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3880         * lib/strerror_r.c: Likewise.
3881         * lib/unistr/u8-strnlen.c: Likewise.
3882         * lib/vasnprintf.c (decimal_point_char): Likewise.
3883         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3884         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3885         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3886         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3887         * tests/test-sigaction.c (handler, main): Likewise.
3888         * lib/freading.h: Treat uClibc like a non-glibc platform.
3889         * lib/freading.c: Likewise.
3890         * lib/gettext.h: Likewise.
3891         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3892         Likewise.
3893         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3894         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3895         * lib/propername.c (proper_name_utf8): Likewise.
3896         * lib/spawn.in.h: Likewise.
3897         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3898         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3899         mem_cd_iconveh_internal): Likewise.
3900         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3901         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3902         strstr, strcasestr): Likewise.
3903         * lib/unicodeio.c (unicode_to_mb): Likewise.
3904         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3905         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3906         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3907         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3908         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3909         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3910         * lib/unistr/u8-stpncpy.c: Likewise.
3911         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3912         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3913         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3914         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3915         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3916         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3917         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3920         Likewise.
3921         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3922         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3923         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3924         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3925         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3926         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3927         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3928         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3929         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3930         * tests/test-striconveha.c (main): Likewise.
3931         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3932         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3933         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3934         * doc/posix-functions/getline.texi: Likewise.
3935         Reported by Mike Frysinger <vapier@gentoo.org>.
3936
3937 2010-11-20  Bruno Haible  <bruno@clisp.org>
3938
3939         nproc: Fix condition.
3940         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3941         HAVE_PTHREAD_AFFINITY_NP.
3942
3943 2010-11-20  Bruno Haible  <bruno@clisp.org>
3944
3945         Fix a comment.
3946         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3947
3948 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3949
3950         ftoastr: don't assume snprintf
3951         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3952         Implement a subset of snprintf here, by using sprintf safely.
3953         * modules/ftoastr (Depends-on): Remove snprintf.
3954
3955 2010-11-19  Jim Meyering  <meyering@redhat.com>
3956
3957         test-rename.h: fix compilation failure
3958         * tests/test-rename.h (test_rename): Add omitted "}".
3959
3960 2010-11-17  Jim Meyering  <meyering@redhat.com>
3961
3962         maint.mk: add a URL discussing the no-@acronym policy
3963         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3964
3965 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3966
3967         ftoastr: depend on snprintf, improve comments
3968         * lib/ftoastr.c: Also mention Loitsch's draft.
3969         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3970         needed in the current implementation, but it might simplify
3971         speeding up the code later.
3972         * modules/ftoastr: Depend on snprintf; this improves portability.
3973         Suggested by Bruno Haible in the same email.
3974
3975         ftoastr: port to hosts lacking strtof and strtold
3976         Problem reported by Bruno Haible in
3977         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3978         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3979         environment and strtold (and presumably strtof) are not available.
3980         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3981         (configure.ac): Require gl_C99_STRTOLD.
3982
3983 2010-11-18  Bruno Haible  <bruno@clisp.org>
3984
3985         c-strtold: Avoid link error on AIX 7.
3986         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3987         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3988         (gl_C_STRTOLD): Test whether strtold_l exists.
3989         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3990
3991 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3992
3993         intprops: new macro INT_BITS_STRLEN_BOUND
3994         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3995         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3996         not exposed.  Also, it uses a slightly tighter bound than before;
3997         though this makes no practical difference, we might as well be as
3998         tight as we easily can.
3999
4000         ftoastr: new module, for lossless conversion of floats to short strings
4001         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
4002         * modules/ftoastr: New files.
4003
4004 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4005
4006         bootstrap: port to Solaris sed
4007         * build-aux/bootstrap (get_version): Port to Solaris sed.
4008         See Ralf Wildenhues's note in
4009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
4010
4011 2010-11-14  Jim Meyering  <meyering@redhat.com>
4012
4013         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
4014         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
4015         and move definition closer to sole use.
4016
4017 2010-11-13  Jim Meyering  <meyering@redhat.com>
4018
4019         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
4020         Now we require at least autoconf-2.59, which means the work-around
4021         is no longer needed.
4022         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
4023         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4024         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4025         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4026         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4027
4028 2010-11-13  Bruno Haible  <bruno@clisp.org>
4029
4030         rename, renameat: Avoid test failures at NFS mounted locations.
4031         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
4032         functions.
4033         (test_rename): Use assert_nonexistent.
4034         * tests/test-rename.c: Include <dirent.h>.
4035         * tests/test-renameat.c: Likewise.
4036         Reported by Gary V. Vaughan <gary@gnu.org>.
4037
4038         rename, renameat: Document Linux bug with NFS
4039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
4040         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
4041         * doc/posix-functions/renameat.texi: Likewise.
4042         Suggested by Eric Blake.
4043
4044 2010-11-13  Bruno Haible  <bruno@clisp.org>
4045
4046         rename test: Add comments.
4047         * tests/test-rename.h (test_rename): Add structure and comments.
4048
4049 2010-11-13  Eric Blake  <eblake@redhat.com>
4050
4051         maintainer-makefile: cover a few more files
4052         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
4053         scripts generated within C files, for libvirt.
4054
4055 2010-11-13  Bruno Haible  <bruno@clisp.org>
4056
4057         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
4058         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
4059         character, return the number of bytes that belong together, not always
4060         1.
4061         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4062         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4063         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4064         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
4065         number of bytes of an invalid character.
4066         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
4067         (main): Invoke it.
4068         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
4069         results.
4070         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
4071         malformed byte sequences.
4072         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
4073         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
4074         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
4075         Reported by Ben Pfaff and Paolo Bonzini.
4076
4077 2010-11-13  Bruno Haible  <bruno@clisp.org>
4078
4079         openat: Work around glibc bug with fchownat() and empty file names.
4080         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
4081         (gl_FUNC_FCHOWNAT): Invoke it.
4082         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
4083         * doc/posix-functions/fchownat.texi: Document the glibc bug.
4084         Reported by Gary V. Vaughan <gary@gnu.org>.
4085
4086 2010-11-13  Bruno Haible  <bruno@clisp.org>
4087
4088         openat: Ensure autoconf macro ordering.
4089         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
4090         gl_USE_SYSTEM_EXTENSIONS.
4091         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
4092
4093 2010-11-13  Bruno Haible  <bruno@clisp.org>
4094
4095         Update comments.
4096         * lib/unistr/u8-check.c: Update file name in comments.
4097         * lib/unistr/u8-mblen.c: Likewise.
4098         * lib/unistr/u8-prev.c: Likewise.
4099         * lib/unistr/u8-strmblen.c: Likewise.
4100         * lib/unistr/u8-strmbtouc.c: Likewise.
4101
4102 2010-11-13  Jim Meyering  <meyering@redhat.com>
4103
4104         tests: avoid test failure on Solaris 10 due to lack of PATH export
4105         * tests/test-update-copyright.sh: Don't forget to export PATH.
4106
4107         init.sh: ensure that IFS is defined, just in case...
4108         * tests/init.sh (setup_): Ensure that IFS is defined,
4109         so that saving and restoring it works as expected.  This
4110         appears to be useful at least for an old version of dash
4111         from a long time ago (RH 6).  See here for details:
4112         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
4113
4114         maint.mk: tighten "test a == b" check
4115         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
4116         test to files that contain something like #!/bin/sh.
4117         Without this, coreutils would get two false positives in
4118         the comments of C source files.
4119
4120 2010-11-12  Eric Blake  <eblake@redhat.com>
4121
4122         bootstrap: fix typo in previous attempt
4123         * build-aux/bootstrap (buildreq): Correct the grouping.
4124         Reported by Paul Eggert.
4125
4126         maintainer-makefile: prohibit test x == x
4127         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
4128         Based on a report by Matthias Bolte.
4129
4130         bootstrap: allow FreeBSD gzip
4131         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
4132         which has no '.' and goes to stderr.
4133         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
4134         Reported by Matthias Bolte.
4135
4136         maintainer-makefile: check for i18n setup
4137         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
4138         will likely work.
4139
4140 2010-11-12  Bruno Haible  <bruno@clisp.org>
4141
4142         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
4143         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
4144         * lib/nanosleep.c (nanosleep): Likewise.
4145
4146 2010-11-11  Bruno Haible  <bruno@clisp.org>
4147
4148         fcntl-h: Fix for use of C++ on glibc systems.
4149         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4150         also on glibc systems in C++ mode.
4151         Reported by Gary V. Vaughan <gary@gnu.org>.
4152
4153 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4154
4155         mknod: avoid false failure with dash
4156         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
4157
4158 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4159
4160         unlink: Fix "is it should" typo in diagnostic.
4161         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
4162         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
4163
4164 2010-11-11  Bruno Haible  <bruno@clisp.org>
4165
4166         Tests for module 'strerror_r-posix'.
4167         * modules/strerror_r-posix-tests: New file.
4168         * tests/test-strerror_r.c: New file.
4169         * tests/test-string-c++.cc: Check the signature of strerror_r.
4170
4171         New module 'strerror_r-posix'.
4172         * lib/string.in.h (strerror_r): New declaration.
4173         * lib/strerror_r.c: New file.
4174         * m4/strerror_r.m4: New file.
4175         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
4176         of strerror_r.
4177         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
4178         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4179         * modules/strerror_r-posix: New file.
4180         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
4181         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4182         * doc/posix-functions/strerror_r.texi: Mention the new module and the
4183         portability problems.
4184
4185 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
4186
4187         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
4188         line is also considered for output. Quoted function name in shell
4189         command, so temporary files for functions like MyClass::operator()
4190         are removed correctly without errors.
4191
4192 2010-11-09  Bruno Haible  <bruno@clisp.org>
4193
4194         * doc/posix-functions/strerror.texi: List more failing platforms.
4195
4196         * doc/posix-functions/strerror.texi: Add a comment.
4197
4198 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4199
4200         fdopendir: fix bug on MacOS X when low on file descriptors
4201
4202         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
4203         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
4204         All callers changed.
4205         (fdopendir): Invoke save_cwd at the top level, not after using
4206         multiple dup() calls to use up file descriptors.  Then retry
4207         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
4208         less than the maximum number of open file descriptors, because
4209         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
4210         on Mac OS X 10.6.4 for tar 1.24
4211         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
4212         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
4213         and for tar 1.25
4214         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
4215
4216 2010-11-07  Bruno Haible  <bruno@clisp.org>
4217
4218         vasnprintf: Support I flag on glibc systems.
4219         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
4220         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
4221         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
4222         snprintf function.
4223         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
4224         glibc systems.
4225         * tests/test-vasnprintf-posix3.c: New file.
4226         * modules/vasnprintf-posix-tests (Files): Add it.
4227         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
4228
4229 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4230
4231         [html] Fix copy/paste bug: Use unique name for compiler warnings.
4232         * MODULES.html.sh: For compiler warnings, use name
4233         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
4234
4235 2010-11-05  Eric Blake  <eblake@redhat.com>
4236
4237         ceil, floor: avoid spurious failure with icc
4238         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
4239         [denormals-as-zero] when optimizing without -mieee-fp option.
4240         * tests/test-floorf2.c (floorf_reference): Likewise.
4241         * tests/test-ceilf1.c (dummy): New function.
4242         (main): Use it to outsmart icc's optimization.
4243         * tests/test-floorf1.c (dummy, main): Likewise.
4244
4245         tests: require working signbit
4246         * modules/ceilf-tests (Depends-on): Add signbit.
4247         * modules/ceill-tests (Depends-on): Likewise.
4248         * modules/floorf-tests (Depends-on): Likewise.
4249         * modules/floorl-tests (Depends-on): Likewise.
4250         * modules/round-tests (Depends-on): Likewise.
4251         * modules/roundf-tests (Depends-on): Likewise.
4252         * modules/roundl-tests (Depends-on): Likewise.
4253         * modules/trunc-tests (Depends-on): Likewise.
4254         * modules/truncf-tests (Depends-on): Likewise.
4255         * modules/truncl-tests (Depends-on): Likewise.
4256
4257         strtod: work around icc bug
4258         * lib/strtod.c (minus_zero): Define to working value.
4259         (strtod): Use it to avoid icc bug.
4260
4261         copysign: enhance tests
4262         * modules/copysign-tests (Files): Add minus-zero.h.
4263         * tests/test-copysign.c (main): Also test zeros.
4264
4265 2010-11-04  Eric Blake  <eblake@redhat.com>
4266
4267         ceil, floor, round, trunc: enhance tests of -0
4268         * tests/test-ceilf1.c (main): Ensure correct sign of result.
4269         * tests/test-ceill.c (main): Likewise.
4270         * tests/test-floorf1.c (main): Likewise.
4271         * tests/test-floorl.c (main): Likewise.
4272         * tests/test-round1.c (main): Likewise.
4273         * tests/test-roundf1.c (main): Likewise.
4274         * tests/test-roundl.c (main): Likewise.
4275         * tests/test-trunc1.c (main): Likewise.
4276         * tests/test-truncf1.c (main): Likewise.
4277         * tests/test-truncl.c (main): Likewise.
4278
4279 2010-11-04  Eric Blake  <eblake@redhat.com>
4280
4281         frexp, tests: work around ICC bug with -zero
4282         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
4283         works with more compilers.
4284         * tests/minus-zero.h: New file.
4285         * modules/ceilf-tests (Files): Include it.
4286         * modules/ceill-tests (Files): Likewise.
4287         * modules/floorf-tests (Files): Likewise.
4288         * modules/floorl-tests (Files): Likewise.
4289         * modules/frexp-nolibm-tests (Files): Likewise.
4290         * modules/frexp-tests (Files): Likewise.
4291         * modules/frexpl-nolibm-tests (Files): Likewise.
4292         * modules/frexpl-tests (Files): Likewise.
4293         * modules/isnan-tests (Files): Likewise.
4294         * modules/isnand-nolibm-tests (Files): Likewise.
4295         * modules/isnand-tests (Files): Likewise.
4296         * modules/isnanf-nolibm-tests (Files): Likewise.
4297         * modules/isnanf-tests (Files): Likewise.
4298         * modules/isnanl-nolibm-tests (Files): Likewise.
4299         * modules/isnanl-tests (Files): Likewise.
4300         * modules/round-tests (Files): Likewise.
4301         * modules/roundf-tests (Files): Likewise.
4302         * modules/roundl-tests (Files): Likewise.
4303         * modules/ldexpl-tests (Files): Likewise.
4304         * modules/signbit-tests (Files): Likewise.
4305         * modules/snprintf-posix-tests (Files): Likewise.
4306         * modules/sprintf-posix-tests (Files): Likewise.
4307         * modules/strtod-tests (Files): Likewise.
4308         * modules/trunc-tests (Files): Likewise.
4309         * modules/truncf-tests (Files): Likewise.
4310         * modules/truncl-tests (Files): Likewise.
4311         * modules/vsnprintf-posix-tests (Files): Likewise.
4312         * modules/vsprintf-posix-tests (Files): Likewise.
4313         * modules/vasnprintf-posix-tests (Files): Likewise.
4314         * modules/vasprintf-posix-tests (Files): Likewise.
4315         * tests/test-ceilf1.c (main): Use it.
4316         * tests/test-ceill.c (main): Likewise.
4317         * tests/test-floorf1.c (main): Likewise.
4318         * tests/test-floorl.c (main): Likewise.
4319         * tests/test-frexp.c (main): Likewise.
4320         * tests/test-frexpl.c (main): Likewise.
4321         * tests/test-isnan.c (main): Likewise.
4322         * tests/test-isnand.h (main): Likewise.
4323         * tests/test-isnanf.h (main): Likewise.
4324         * tests/test-isnanl.h (main): Likewise.
4325         * tests/test-ldexpl.c (main): Likewise.
4326         * tests/test-round.c (main): Likewise.
4327         * tests/test-roundf.c (main): Likewise.
4328         * tests/test-roundl.c (main): Likewise.
4329         * tests/test-signbit.c (test_signbitf, test_signbitd)
4330         (test_signbitl): Likewise.
4331         * tests/test-snprintf-posix.h (test_function): Likewise.
4332         * tests/test-sprintf-posix.h (test_function): Likewise.
4333         * tests/test-strtod.c (main): Likewise.
4334         * tests/test-trunc1.c (main): Likewise.
4335         * tests/test-truncf1.c (main): Likewise.
4336         * tests/test-truncl.c (main): Likewise.
4337
4338         isnanl: work around icc bug
4339         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
4340
4341 2010-11-03  Eric Blake  <eblake@redhat.com>
4342
4343         tests: fix compiler warnings
4344         * tests/test-getopt.h (test_getopt): Fix condition.
4345         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4346         * tests/test-pipe2.c (main): Likewise.
4347         * tests/test-quotearg-simple.c (main): Avoid icc warning.
4348
4349         utimens: fix broken m4 test
4350         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
4351
4352 2010-10-28  Bruno Haible  <bruno@clisp.org>
4353
4354         posix_spawn*, getdtablesize: Relax license.
4355         * modules/posix_spawn (License): Change to LGPLv2+.
4356         * modules/posix_spawnp (License): Likewise.
4357         * modules/posix_spawn-internal (License): Likewise.
4358         * modules/posix_spawnattr_init (License): Likewise.
4359         * modules/posix_spawnattr_getflags (License): Likewise.
4360         * modules/posix_spawnattr_setflags (License): Likewise.
4361         * modules/posix_spawnattr_getpgroup (License): Likewise.
4362         * modules/posix_spawnattr_setpgroup (License): Likewise.
4363         * modules/posix_spawnattr_getschedparam (License): Likewise.
4364         * modules/posix_spawnattr_setschedparam (License): Likewise.
4365         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
4366         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
4367         * modules/posix_spawnattr_getsigdefault (License): Likewise.
4368         * modules/posix_spawnattr_setsigdefault (License): Likewise.
4369         * modules/posix_spawnattr_getsigmask (License): Likewise.
4370         * modules/posix_spawnattr_setsigmask (License): Likewise.
4371         * modules/posix_spawnattr_destroy (License): Likewise.
4372         * modules/posix_spawn_file_actions_init (License): Likewise.
4373         * modules/posix_spawn_file_actions_addclose (License): Likewise.
4374         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
4375         * modules/posix_spawn_file_actions_addopen (License): Likewise.
4376         * modules/posix_spawn_file_actions_destroy (License): Likewise.
4377         * modules/getdtablesize (License): Likewise.
4378         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
4379
4380 2010-10-26  Bruno Haible  <bruno@clisp.org>
4381
4382         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
4383         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
4384         Cygwin and mingw.
4385         Suggested by Eric Blake.
4386
4387 2010-10-26  Bruno Haible  <bruno@clisp.org>
4388
4389         stdio: Work around compilation error due to renameat() on Solaris 10.
4390         * lib/stdio.in.h: Include <unistd.h> on Solaris.
4391         * lib/renameat.c: Don't include <unistd.h> here.
4392         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
4393         Reported by Paul Eggert and Eric Blake.
4394
4395 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4396
4397         renameat: port to Solaris 10, which declares renameat in unistd.h
4398
4399         * lib/renameat.c: Include unistd.h before stdio.h, because
4400         Solaris 10 declares renameat in unistd.h.  Problem encountered
4401         when building GNU tar 1.24 on Solaris 10.
4402
4403 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4404
4405         fdopendir: fix C89 compilation
4406         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
4407         compilers.
4408
4409 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4410
4411         inttostr: simplify by removing unnecessary redundancy
4412         * lib/anytostr.c: Don't include verify.h.
4413         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
4414         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
4415         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
4416         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
4417         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
4418         Likewise.
4419         * modules/inttostr (Depends-on): Remove 'verify'.
4420
4421 2010-10-23  Bruno Haible  <bruno@clisp.org>
4422
4423         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
4424         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
4425         Reported by Eric Blake.
4426
4427 2010-10-23  Bruno Haible  <bruno@clisp.org>
4428
4429         Tests: Fix LOCALE_JA on MirBSD 10.
4430         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
4431         to an UTF-8 locale.
4432         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
4433         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4434         Reported by Eric Blake.
4435
4436 2010-10-21  Bruno Haible  <bruno@clisp.org>
4437
4438         nl_langinfo test: Avoid test failure on NetBSD 5.
4439         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
4440         Reported by Eric Blake.
4441
4442 2010-10-21  Eric Blake  <eblake@redhat.com>
4443
4444         c-stack: work around libsigsegv 2.8 bug
4445         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
4446         overflow on at least PowerPC64.
4447
4448 2010-10-17  Bruno Haible  <bruno@clisp.org>
4449
4450         userspec: Drop redundant file.
4451         * modules/userspec (Files): Remove lib/inttostr.h.
4452
4453 2010-10-17  Bruno Haible  <bruno@clisp.org>
4454
4455         nl_langinfo tests: Silence some warnings.
4456         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
4457         Reported by Jim Meyering.
4458
4459 2010-10-17  Bruno Haible  <bruno@clisp.org>
4460
4461         Make use of GCC's attribute __alloc_size__.
4462         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
4463         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
4464         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
4465         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
4466         __alloc_size__.
4467         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4468         Suggested by Jim Meyering.
4469
4470 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
4471
4472         bootstrap: anchor .gitignore entries.
4473         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
4474         with...
4475         (insert_vc_ignore): ... this new function, which prepends `/' to
4476         all .gitignore entries before passing them to
4477         insert_sorted_if_absent.
4478
4479 2010-10-16  Bruno Haible  <bruno@clisp.org>
4480
4481         nextafter: Fix configure check.
4482         * modules/nextafter (configure.ac): Correct expected prototype.
4483
4484 2010-10-16  Bruno Haible  <bruno@clisp.org>
4485
4486         termios: Update documentation.
4487         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
4488
4489 2010-10-16  Bruno Haible  <bruno@clisp.org>
4490
4491         tests: Make them compile with TinyCC.
4492         * tests/test-strstr.c (main): Remove parentheses around array
4493         initializer.
4494
4495 2010-10-15  Eric Blake  <eblake@redhat.com>
4496
4497         ignore-value: make header idempotent
4498         * lib/ignore-value.h: Add double-inclusion guards.
4499         Reported by Stefan Berger.
4500
4501 2010-10-15  Jim Meyering  <meyering@redhat.com>
4502
4503         GNUmakefile: handle "stable" target, not "major"
4504         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
4505         lists in maint.mk and announce-gen.  Without this, "make stable"
4506         would fail to ensure that $(VERSION) is up to date.
4507
4508 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
4509
4510         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
4511         & co.
4512
4513 2010-10-14  Bruno Haible  <bruno@clisp.org>
4514
4515         vasnprintf: Don't set errno to 0.
4516         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
4517         block that sets it to 0.
4518         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4519
4520 2010-10-14  Bruno Haible  <bruno@clisp.org>
4521
4522         socketlib: Fix.
4523         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
4524         gl_PREREQ_SYS_H_WINSOCK2.
4525         Reported by Ian Beckwith <ianb@erislabs.net>.
4526
4527 2010-10-13  Jim Meyering  <meyering@redhat.com>
4528
4529         test-select-stdin.c: avoid warn_unused_result warnings
4530         * tests/test-select-stdin.c: Include "macros.h".
4531         ASSERT that read and fflush succeed.
4532
4533 2010-10-13  Jim Meyering  <meyering@redhat.com>
4534
4535         git-version-gen: do require git-VC'd files in cwd
4536         * build-aux/git-version-gen: Reject a git version string
4537         if there are no commits associated with the current directory.
4538         This avoids an unlikely false-positive (unrelated dir whose parent
4539         repository also contains a tag matching v*), as pointed out
4540         by Giuseppe Scrivano in
4541         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
4542
4543 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4544
4545         argv-iter: omit nonconforming declaration
4546         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
4547         enum arg_iter_err declaration, which doesn't conform to C99.
4548         Solaris 10 cc warns about this.
4549
4550 2010-10-13  Eric Blake  <eblake@redhat.com>
4551
4552         termios: fix compilation on mingw
4553         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
4554         (gl_TERMIOS_H): Adjust it on mingw.
4555         * modules/termios (Makefile.am): Substitute new key.
4556         * lib/termios.in.h (includes): Make include_next conditional.
4557         * doc/posix-headers/termios.texi (termios.h): Update
4558         documentation.
4559         Reported by Daniel P. Berrange.
4560
4561 2010-10-13  Jim Meyering  <meyering@redhat.com>
4562
4563         git-version-gen: don't require that .git/ be in the current dir
4564         * build-aux/git-version-gen: Adjust this script so that it works
4565         when run from any working directory beneath the top-level .git/-
4566         containing directory.  Inspired by a patch from Giuseppe Scrivano,
4567         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
4568
4569         test-select: avoid warn_unused_result warnings
4570         * tests/test-select.c: Include "macros.h".
4571         ASSERT that each call to read, write, and pipe succeeds.
4572         While not technically required, also check each "close".
4573         * modules/select-tests (Files): Add tests/macros.h.
4574
4575         test-symlinkat: remove declaration of unused local
4576         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4577
4578         test-inttostr: avoid shadowing warnings
4579         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4580         and use malloc rather than the stack for the same reason as
4581         mentioned in the comment justifying the other allocation.
4582
4583 2010-10-11  Bruno Haible  <bruno@clisp.org>
4584
4585         stdlib: Allow multiple gnulib generated replacements to coexist.
4586         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4587         Reported by Sam Steingold <sds@gnu.org>.
4588
4589 2010-10-11  Jim Meyering  <meyering@redhat.com>
4590
4591         fix a documentation typo
4592         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4593
4594 2010-10-11  Eric Blake  <eblake@redhat.com>
4595
4596         futimens: work around Solaris 11 bug
4597         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4598         * tests/test-futimens.h (test_futimens): Enhance, rather than
4599         weaken test.
4600         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4601
4602 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         Indentation.
4605         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
4606         higher-level operators more to the left.
4607
4608 2010-10-11  Jim Meyering  <meyering@redhat.com>
4609
4610         test-futimens: avoid unwarranted test failure on Solaris 5.11
4611         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
4612         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
4613         because it tries to dereference the NULL name argument.
4614
4615 2010-10-11  Bruno Haible  <bruno@clisp.org>
4616
4617         Indentation.
4618         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
4619         indentation.
4620
4621 2010-10-11  Jim Meyering  <meyering@redhat.com>
4622
4623         spawn.in.h: make indentation consistent with parentheses
4624         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
4625         Make indentation consistent with parentheses.
4626
4627 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
4628
4629         Fix mismatched parens in previous commit
4630         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
4631         parens.
4632
4633 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4634
4635         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
4636
4637         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
4638         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
4639         * lib/malloca.c: Include "verify.h".
4640         (verify1): Remove, replacing with a verify call.
4641         * lib/relocwrapper.c (verify1): Likewise.
4642         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
4643         Likewise.
4644         * modules/malloca (Depends-on): Add 'verify'.
4645         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
4646         * modules/vasnprintf (Depends-on): Add 'verify'.
4647         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4648         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4649         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4650         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4651         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4652         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4653         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4654
4655         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
4656
4657         Formerly the style was sometimes 2*X - 1, because the C standard
4658         was wrongly thought to disallow ?: in integral constant expressions.
4659         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
4660         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
4661         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4662         * lib/stdint.in.h (_verify_intmax_size): Likewise.
4663         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
4664         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
4665         verify that time_t cannot be floating.
4666
4667 2010-10-08  Eric Blake  <eblake@redhat.com>
4668
4669         time: enforce recent POSIX ruling that time_t is integral
4670         * lib/time.in.h (__time_t_must_be_integral): Detect any
4671         problematic systems, allowing the rest of gnulib to assume POSIX.
4672
4673 2010-10-08  Jim Meyering  <meyering@redhat.com>
4674
4675         fdopendir: fix a bug on systems lacking openat and /proc support
4676         OpenBSD 4.7 is one such system.  The most noticeable effect was
4677         failure of any application making nontrivial use of fts: rm, du,
4678         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
4679           ./rm: traversal failed: `a': Bad file descriptor
4680         Debugging that, you see that even though FD 6 was closed just
4681         prior to the opendir call in fd_clone_opendir, its resulting
4682         dir->dd_fd was 8, rather than the expected value of 6:
4683
4684         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
4685         93                close (fd);
4686         (gdb) n
4687         94                dir = fd_clone_opendir (dupfd);
4688         (gdb) n
4689         95                saved_errno = errno;
4690         (gdb) p dir->dd_fd
4691         $11 = 8
4692
4693         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
4694         The problem is that on OpenBSD, fd_clone_opendir has to resort
4695         to using the old-style save/restore CWD mechanism, due to its
4696         lack of openat/proc support, and *that* would steal the FD (6)
4697         that opendir was supposed to use.
4698
4699         The fix is to squirrel away the desired FD so that save_cwd uses a
4700         different one, and then free the dest FD right before calling opendir.
4701         That guarantees opendir will use the required file descriptor.
4702
4703         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
4704
4705 2010-10-08  Bruno Haible  <bruno@clisp.org>
4706
4707         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
4708         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
4709
4710 2010-10-08  Bruno Haible  <bruno@clisp.org>
4711
4712         nanosleep: Make replacement POSIX compliant.
4713         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
4714         is out of range.
4715         Reported by Jim Meyering.
4716
4717 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4718
4719         bootstrap: add hook for altering gnulib.mk, for Bison
4720         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
4721         the Bison bootstrapping process can rewrite file names and variables
4722         in this file before later parts of 'bootstrap' use the file.
4723         Bison wants to include lib/gnulib.mk from the top-level makefile,
4724         so it needs the file names in this file to be relative to the top
4725         level, not relative to lib; plus it needs variable names to be
4726         rewritten.
4727         (slurp): Use the new function.
4728
4729         bootstrap: reformat for readability
4730         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4731
4732 2010-10-08  Eric Blake  <eblake@redhat.com>
4733
4734         docs: update cygwin progress
4735         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4736         1.7.7.
4737         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4738         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4739         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4740         * doc/posix-functions/carg.texi (carg): Likewise.
4741         * doc/posix-functions/cargf.texi (cargf): Likewise.
4742         * doc/posix-functions/casin.texi (casin): Likewise.
4743         * doc/posix-functions/casinf.texi (casinf): Likewise.
4744         * doc/posix-functions/casinh.texi (casinh): Likewise.
4745         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4746         * doc/posix-functions/catan.texi (catan): Likewise.
4747         * doc/posix-functions/catanf.texi (catanf): Likewise.
4748         * doc/posix-functions/catanh.texi (catanh): Likewise.
4749         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4750         * doc/posix-functions/ccos.texi (ccos): Likewise.
4751         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4752         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4753         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4754         * doc/posix-functions/cexp.texi (cexp): Likewise.
4755         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4756         * doc/posix-functions/cimag.texi (cimag): Likewise.
4757         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4758         * doc/posix-functions/clog.texi (clog): Likewise.
4759         * doc/posix-functions/clogf.texi (clogf): Likewise.
4760         * doc/posix-functions/conj.texi (conj): Likewise.
4761         * doc/posix-functions/conjf.texi (conjf): Likewise.
4762         * doc/posix-functions/cpow.texi (cpow): Likewise.
4763         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4764         * doc/posix-functions/cproj.texi (cproj): Likewise.
4765         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4766         * doc/posix-functions/creal.texi (creal): Likewise.
4767         * doc/posix-functions/crealf.texi (crealf): Likewise.
4768         * doc/posix-functions/csin.texi (csin): Likewise.
4769         * doc/posix-functions/csinf.texi (csinf): Likewise.
4770         * doc/posix-functions/csinh.texi (csinh): Likewise.
4771         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4772         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4773         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4774         * doc/posix-functions/ctan.texi (ctan): Likewise.
4775         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4776         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4777         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4778         * doc/posix-headers/complex.texi (complex.h): Likewise.
4779
4780 2010-10-07  Jim Meyering  <meyering@redhat.com>
4781
4782         parse-datetime: avoid compilation failure on OpenBSD 4.7
4783         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4784         This works around a compilation failure on OpenBSD 4.7:
4785         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4786
4787 2010-10-07  Eric Blake  <eblake@redhat.com>
4788
4789         docs: update cygwin progress
4790         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4791         1.7.6.
4792         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4793         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4794         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4795         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4796         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4797         Likewise.
4798         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4799         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4800         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4801         Likewise.
4802         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4803         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4804         Likewise.
4805         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4806         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4807         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4808         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4809         Likewise.
4810         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4811         Likewise.
4812         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4813
4814         docs: update parse-datetime history
4815         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4816         documentation of this function's history and alternatives.
4817
4818         cygwin: use more robust version check
4819         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4820         exclude an eventual cygwin 1.9.1.
4821         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4823         (gl_FUNC_STRCASESTR): Likewise.
4824         Reported by Bruno Haible.
4825
4826 2010-10-06  Bruno Haible  <bruno@clisp.org>
4827
4828         string, sys_select: Avoid #including large headers unless necessary.
4829         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4830         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4831         OSF/1, BeOS, Haiku.
4832         Reported by Jim Meyering.
4833
4834 2010-10-05  Eric Blake  <eblake@redhat.com>
4835
4836         memmem, strstr, strcasestr: fix bug with long periodic needle
4837         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4838         periodic needle having false positive.
4839         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4840         and cygwin 1.7.7.
4841         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4843         (gl_FUNC_STRCASESTR): Likewise.
4844         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4845         * tests/test-memmem.c (main): Expose the bug.
4846         * tests/test-strcasestr.c (main): Likewise.
4847         * tests/test-strstr.c (main): Likewise.
4848         * tests/test-c-strcasestr.c (main): Likewise.
4849         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4850         * doc/posix-functions/strstr.texi (strstr): Likewise.
4851         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4852         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4853
4854 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4855
4856         parse-datetime: do some more renaming
4857         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4858         parse_datetime, not get_date.  Mention the renaming.
4859         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4860         in comments.
4861         * m4/bison.m4: Likewise.
4862
4863 2010-10-05  Eric Blake  <eblake@redhat.com>
4864
4865         parse-datetime: better name than get_date
4866         * NEWS: Reword the deprecation notice.
4867         * modules/get_date: Rename to modules/parse-datetime.
4868         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4869         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4870         * lib/get_date.y: Rename to lib/parse-datetime.y.
4871         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4872         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4873         * doc/getdate.texi: Provide fallback wrapper.
4874         * lib/getdate.h: Move guts, and wrap...
4875         * lib/parse-datetime.h: ...new file.
4876         * lib/parse-datetime.y (get_date): Rename...
4877         (parse_datetime): ...to this.
4878         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4879         (gl_PARSE_DATETIME): ...to this.
4880         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4881         documentation.
4882         * modules/getdate (Files): Provide fallback docs and header.
4883         (Notice, Depends-on): Update references.
4884         * tests/test-parse-datetime.c: Likewise.
4885         * DEPENDENCIES: Likewise.
4886         * MODULES.html.sh (Date and time <time.h>): Likewise.
4887         * doc/parse-datetime.texi (Date input formats)
4888         (Authors of parse_datetime): Likewise.
4889         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4890         (Include): Likewise.
4891         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4892         * gnulib-tool: Likewise.
4893         * m4/bison.m4 (gl_BISON): Likewise.
4894         Suggested by Bruno Haible.
4895
4896 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4897
4898         more ports to Solaris tr, which needs [] around ranges
4899         * gnulib-tool: Solaris tr needs [] around ranges.
4900         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4901         * tests/test-pipe-filter-gi1.c (main): Likewise.
4902         * tests/test-pipe-filter-ii1.c (main): Likewise.
4903
4904 2010-10-05  Eric Blake  <eblake@redhat.com>
4905
4906         bootstrap: fix Solaris regression
4907         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4908         around ranges.
4909         Reported by Pádraig Brady.
4910
4911         bootstrap: work with pkg-config
4912         * build-aux/bootstrap (check_versions): Also transliterate - in
4913         prerequisite name.
4914         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4915         prerequisites that were already found, to avoid confusion.
4916         Reported by Justin Clift.
4917
4918         faccessat: remove unused wrappers
4919         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4920         presence of these wrappers dragged in -lgen on Solaris.
4921         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4922
4923 2010-10-05  Jim Meyering  <meyering@redhat.com>
4924
4925         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4926         * Makefile (sc_pragma_columns): New syntax-check rule.
4927
4928 2010-10-04  Bruno Haible  <bruno@clisp.org>
4929
4930         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4931         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4932         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4933         Reported by Bruce Korb and Eric Blake.
4934
4935 2010-10-04  Bruno Haible  <bruno@clisp.org>
4936
4937         threadlib: Make option --with-libpth-prefix work.
4938         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4939         use $LIBPTH, not just -lpth.
4940
4941 2010-10-04  Bruno Haible  <bruno@clisp.org>
4942
4943         Avoid line length limitation from HP NonStop system header files.
4944         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4945         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4946         * lib/ctype.in.h: Likewise.
4947         * lib/dirent.in.h: Likewise.
4948         * lib/errno.in.h: Likewise.
4949         * lib/fcntl.in.h: Likewise.
4950         * lib/float.in.h: Likewise.
4951         * lib/getopt.in.h: Likewise.
4952         * lib/iconv.in.h: Likewise.
4953         * lib/inttypes.in.h: Likewise.
4954         * lib/langinfo.in.h: Likewise.
4955         * lib/locale.in.h: Likewise.
4956         * lib/math.in.h: Likewise.
4957         * lib/netdb.in.h: Likewise.
4958         * lib/netinet_in.in.h: Likewise.
4959         * lib/poll.in.h: Likewise.
4960         * lib/pthread.in.h: Likewise.
4961         * lib/pty.in.h: Likewise.
4962         * lib/sched.in.h: Likewise.
4963         * lib/se-selinux.in.h: Likewise.
4964         * lib/search.in.h: Likewise.
4965         * lib/signal.in.h: Likewise.
4966         * lib/spawn.in.h: Likewise.
4967         * lib/stdarg.in.h: Likewise.
4968         * lib/stddef.in.h: Likewise.
4969         * lib/stdint.in.h: Likewise.
4970         * lib/stdio.in.h: Likewise.
4971         * lib/stdlib.in.h: Likewise.
4972         * lib/string.in.h: Likewise.
4973         * lib/strings.in.h: Likewise.
4974         * lib/sys_file.in.h: Likewise.
4975         * lib/sys_ioctl.in.h: Likewise.
4976         * lib/sys_select.in.h: Likewise.
4977         * lib/sys_socket.in.h: Likewise.
4978         * lib/sys_stat.in.h: Likewise.
4979         * lib/sys_time.in.h: Likewise.
4980         * lib/sys_times.in.h: Likewise.
4981         * lib/sys_utsname.in.h: Likewise.
4982         * lib/sys_wait.in.h: Likewise.
4983         * lib/sysexits.in.h: Likewise.
4984         * lib/termios.in.h: Likewise.
4985         * lib/time.in.h: Likewise.
4986         * lib/unistd.in.h: Likewise.
4987         * lib/wchar.in.h: Likewise.
4988         * lib/wctype.in.h: Likewise.
4989         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4990         * modules/ctype (Makefile.am): Likewise.
4991         * modules/dirent (Makefile.am): Likewise.
4992         * modules/errno (Makefile.am): Likewise.
4993         * modules/fcntl-h (Makefile.am): Likewise.
4994         * modules/float (Makefile.am): Likewise.
4995         * modules/getopt-posix (Makefile.am): Likewise.
4996         * modules/iconv-h (Makefile.am): Likewise.
4997         * modules/inttypes (Makefile.am): Likewise.
4998         * modules/langinfo (Makefile.am): Likewise.
4999         * modules/locale (Makefile.am): Likewise.
5000         * modules/math (Makefile.am): Likewise.
5001         * modules/netdb (Makefile.am): Likewise.
5002         * modules/netinet_in (Makefile.am): Likewise.
5003         * modules/poll-h (Makefile.am): Likewise.
5004         * modules/pthread (Makefile.am): Likewise.
5005         * modules/pty (Makefile.am): Likewise.
5006         * modules/sched (Makefile.am): Likewise.
5007         * modules/search (Makefile.am): Likewise.
5008         * modules/selinux-h (Makefile.am): Likewise.
5009         * modules/signal (Makefile.am): Likewise.
5010         * modules/spawn (Makefile.am): Likewise.
5011         * modules/stdarg (Makefile.am): Likewise.
5012         * modules/stddef (Makefile.am): Likewise.
5013         * modules/stdint (Makefile.am): Likewise.
5014         * modules/stdio (Makefile.am): Likewise.
5015         * modules/stdlib (Makefile.am): Likewise.
5016         * modules/string (Makefile.am): Likewise.
5017         * modules/strings (Makefile.am): Likewise.
5018         * modules/sys_file (Makefile.am): Likewise.
5019         * modules/sys_ioctl (Makefile.am): Likewise.
5020         * modules/sys_select (Makefile.am): Likewise.
5021         * modules/sys_socket (Makefile.am): Likewise.
5022         * modules/sys_stat (Makefile.am): Likewise.
5023         * modules/sys_time (Makefile.am): Likewise.
5024         * modules/sys_times (Makefile.am): Likewise.
5025         * modules/sys_utsname (Makefile.am): Likewise.
5026         * modules/sys_wait (Makefile.am): Likewise.
5027         * modules/sysexits (Makefile.am): Likewise.
5028         * modules/termios (Makefile.am): Likewise.
5029         * modules/time (Makefile.am): Likewise.
5030         * modules/unistd (Makefile.am): Likewise.
5031         * modules/wchar (Makefile.am): Likewise.
5032         * modules/wctype (Makefile.am): Likewise.
5033
5034 2010-10-04  Bruno Haible  <bruno@clisp.org>
5035
5036         read-file tests: Avoid a test failure on NonStop Kernel.
5037         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
5038         a regular file.
5039         Reported by Joachim Schmitz <schmitz@hp.com>.
5040
5041 2010-10-03  Bruno Haible  <bruno@clisp.org>
5042
5043         gnulib-tool: Fixes for --create-testdir with --libtool.
5044         * gnulib-tool (func_get_automake_snippet): Don't augment
5045         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
5046         an executable.
5047         (func_create_testdir): Handle module 'alloca' like func_import.
5048         Reported by Bruce Korb <bruce.korb@gmail.com>.
5049
5050 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5051
5052         Avoid some lines longer than 80 characters.
5053         * lib/stdint.in.h: Break long comment lines.
5054         * lib/math.in.h: Likewise.
5055         (_GL_NUM_UINT_WORDS): New macro, for readability.
5056         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
5057         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
5058         * lib/stdlib.in.h: Likewise.
5059         * lib/spawn.in.h: Likewise.
5060         * lib/sys_socket.in.h: Update an URL.
5061         * lib/sys_stat.in.h: Break long line.
5062
5063 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
5064
5065         Improve pmccabe2html.
5066         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
5067         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
5068         when the sources change. Remove the line in the HTML about "Used
5069         ranges" (which implied that there might be other unused ranges),
5070         rename "Resume" to "Summary" (easier to understand for more users).
5071         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
5072         styles, and some unnecessary blank lines.
5073
5074 2010-10-03  Bruno Haible  <bruno@clisp.org>
5075             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5076
5077         acl: Add support for ACLs on NonStop Kernel.
5078         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
5079         Check whether the function aclsort() exists.
5080         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
5081         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
5082         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5083         (acl_nontrivial [HAVE_ACLSORT]: New function.
5084         (file_has_acl): Implement for NonStop Kernel.
5085         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5086         (qset_acl): Implement for NonStop Kernel.
5087         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
5088         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5089         (main): Implement for NonStop Kernel.
5090         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
5091         Kernel. Handle this flavor.
5092         * tests/test-set-mode-acl.sh: Likewise.
5093         * tests/test-copy-acl.sh: Likewise.
5094         * tests/test-copy-file.sh: Likewise.
5095
5096 2010-10-03  Bruno Haible  <bruno@clisp.org>
5097
5098         Info about ACLs on NonStop Kernel.
5099         * doc/acl-resources.txt: Add info about NonStop Kernel.
5100         References by Joachim Schmitz <schmitz@hp.com>.
5101
5102 2010-10-02  Bruno Haible  <bruno@clisp.org>
5103
5104         Define missing EDQUOT on NonStop Kernel.
5105         * lib/errno.in.h (EDQUOT): Assign a value if missing.
5106         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
5107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
5108         missing.
5109         * doc/posix-headers/errno.texi: Mention the NSK bug.
5110         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
5111         Reported by Joachim Schmitz <schmitz@hp.com>.
5112
5113 2010-10-02  Bruno Haible  <bruno@clisp.org>
5114
5115         Update doc for POSIX:2008.
5116         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
5117         Update URL of POSIX specification.
5118
5119 2010-10-02  Bruno Haible  <bruno@clisp.org>
5120
5121         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
5122         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
5123         from gnulib, not from Automake.
5124
5125 2010-10-02  Bruno Haible  <bruno@clisp.org>
5126
5127         New module 'system-posix'.
5128         * modules/system-posix: New file.
5129         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
5130         module is present.
5131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5132         GNULIB_SYSTEM_POSIX.
5133         * modules/stdlib (Depends-on): Remove sys_wait.
5134         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
5135         * doc/posix-functions/system.texi: Mention the new module.
5136         * doc/posix-headers/stdlib.texi: Likewise.
5137         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
5138         define test_sys_wait_macros to a no-op.
5139         Reported by Sam Steingold <sds@gnu.org>.
5140
5141 2010-09-30  Bruno Haible  <bruno@clisp.org>
5142
5143         More renaming from 'getdate' to 'get_date'.
5144         * doc/get_date.texi: Renamed from doc/getdate.texi.
5145         * modules/get_date (Files): Update.
5146         * MODULES.html.sh (Date and time <time.h>): Update.
5147         * DEPENDENCIES: Update.
5148         * gnulib-tool: Update comment.
5149         * m4/bison.m4 (gl_BISON): Likewise.
5150         * m4/get_date.m4 (gl_GET_DATE): Likewise.
5151
5152 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
5153
5154         bootstrap: support ACLOCAL_FLAGS during aclocal
5155         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
5156         can add additional -I dir for third-party .m4 files.
5157
5158 2010-09-30  Eric Blake  <eblake@redhat.com>
5159
5160         bootstrap: use glibtoolize on MacOS
5161         * build-aux/bootstrap (check_versions): Convert libtool into
5162         libtoolize.
5163         (tool search): Move libtool check earlier, and look for
5164         glibtoolize for MacOS.
5165         (gnulib_tool_options): Auto-add --libtool when appropriate.
5166         Reported by Justin Clift.
5167
5168         poll: fix typo that broke test on MacOS
5169         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
5170         Reported by Justin Clift.
5171
5172         getdate: rename to get_date
5173         Note: getdate.h is not renamed, to minimize client impact.
5174         * modules/getdate: Mark obsolete.  Move old contents...
5175         * modules/get_date: ...to new module name.
5176         * modules/getdate-tests: Move...
5177         * modules/get_date-tests: ...here.
5178         * m4/getdate.m4: Move...
5179         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
5180         * lib/getdate.y: Move...
5181         * lib/get_date.y: ...here.
5182         * tests/test-getdate.c: Move...
5183         * tests/test-get_date.c: ...here.
5184         * doc/posix-functions/getdate.texi (getdate): Update name.
5185         * NEWS: Mention the change.
5186
5187 2010-09-29  Bruno Haible  <bruno@clisp.org>
5188
5189         Separate the module 'waitpid' from the module 'sys_wait'.
5190         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
5191         present.
5192         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
5193         gl_MODULE_INDICATOR_FOR_TESTS.
5194         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
5195         * modules/sys_wait (Depends-on): Remove waitpid.
5196         (Makefile.am): Substitute GNULIB_WAITPID.
5197         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
5198         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
5199         signature only if the 'waitpid' module is present.
5200         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
5201         * NEWS: Mention the change.
5202         * modules/grantpt (Depends-on): Add waitpid.
5203         * modules/wait-process (Depends-on): Likewise.
5204
5205 2010-09-29  Bruno Haible  <bruno@clisp.org>
5206
5207         More tests for module 'sys_wait'.
5208         * modules/sys_wait-c++-tests: New file.
5209         * tests/test-sys_wait-c++.cc: New file.
5210         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
5211         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5212
5213 2010-09-29  Bruno Haible  <bruno@clisp.org>
5214
5215         New module 'waitpid'.
5216         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
5217         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
5218         Don't include <process.h>.
5219         (waitpid): Declare only, using modern idiom.
5220         * m4/waitpid.m4: New file.
5221         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
5222         * modules/waitpid: New file.
5223         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
5224         (Makefile.am): Update.
5225         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5226
5227 2010-09-28  Bruno Haible  <bruno@clisp.org>
5228
5229         poll: Assume ANSI C.
5230         * lib/poll.c (poll): Use an ANSI C declaration.
5231
5232 2010-09-28  Bruno Haible  <bruno@clisp.org>
5233
5234         poll-h: Create poll.h on all platforms.
5235         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
5236         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
5237         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
5238         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
5239         (gl_REPLACE_POLL_H): Don't set POLL_H.
5240         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
5241         * modules/poll-h (Depends-on): Add include_next.
5242         (Makefile.am): Create poll.h unconditionally. Substitute also
5243         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
5244
5245 2010-09-28  Bruno Haible  <bruno@clisp.org>
5246
5247         Tests for module 'poll-h'.
5248         * modules/poll-h-c++-tests: New file.
5249         * tests/test-poll-h-c++.cc: New file.
5250
5251         Tests for module 'poll-h'.
5252         * modules/poll-h-tests: New file.
5253         * tests/test-poll-h.c: New file.
5254
5255 2010-09-28  Bruno Haible  <bruno@clisp.org>
5256
5257         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
5258         * modules/poll-h (Depends-on): Add 'extensions'.
5259
5260 2010-09-28  Bruno Haible  <bruno@clisp.org>
5261
5262         New module 'poll-h'.
5263         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
5264         (poll): Use modern idiom.
5265         * modules/poll-h: New file.
5266         * modules/poll (Files): Remove lib/poll.in.h.
5267         (Depends-on): Add poll-h.
5268         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
5269         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
5270         * m4/poll_h.m4: New file.
5271         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
5272         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
5273         and invoke gl_REPLACE_POLL_H.
5274         * lib/poll.c: Use common idiom.
5275         * tests/test-poll.c: Likewise.
5276         * doc/posix-headers/poll.texi: Mention the poll-h module.
5277         Suggested by Eric Blake.
5278
5279 2010-09-26  Bruno Haible  <bruno@clisp.org>
5280
5281         sys_wait: Implement WSTOPSIG.
5282         * lib/sys_wait.in.h (WSTOPSIG): New macro.
5283         Reported by Simon Josefsson.
5284
5285 2010-09-26  Simon Josefsson  <simon@josefsson.org>
5286
5287         stdlib, sys_wait: Avoid compilation error on mingw.
5288         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
5289
5290 2010-09-26  Bruno Haible  <bruno@clisp.org>
5291
5292         stdlib tests: Avoid code duplication.
5293         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
5294         * modules/sys_wait-tests (Files): Likewise.
5295         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
5296         * tests/test-stdlib.c: Include test-sys_wait.h.
5297         (main): Invoke test_sys_wait_macros.
5298         * tests/test-sys_wait.c: Include test-sys_wait.h.
5299         (main): Invoke test_sys_wait_macros.
5300
5301 2010-09-25  Simon Josefsson  <simon@josefsson.org>
5302
5303         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
5304         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
5305         sure Windows sockets are working before calling getaddrinfo.
5306         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
5307         * doc/gnulib.texi (Windows sockets): Fix typo.
5308
5309 2010-09-25  Bruno Haible  <bruno@clisp.org>
5310
5311         Tests for module 'regex-quote'.
5312         * modules/regex-quote-tests: New file.
5313         * tests/test-regex-quote.c: New file.
5314
5315         New module 'regex-quote'.
5316         * lib/regex-quote.h: New file.
5317         * lib/regex-quote.c: New file.
5318         * modules/regex-quote: New file.
5319         Suggested by Reuben Thomas <rrt@sc3d.org>.
5320
5321 2010-09-24  Bruno Haible  <bruno@clisp.org>
5322
5323         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
5324         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5325
5326 2010-09-23  Bruno Haible  <bruno@clisp.org>
5327
5328         setenv: Relax license.
5329         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
5330         Blake.
5331         Requested by Eric Blake.
5332
5333 2010-09-22  Bruno Haible  <bruno@clisp.org>
5334
5335         termios: Relax license.
5336         * modules/termios (License): Change to LGPLv2+.
5337         Requested by Eric Blake.
5338
5339 2010-09-22  Bruno Haible  <bruno@clisp.org>
5340
5341         threadlib: Allow the package to change the default to 'no'.
5342         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
5343         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
5344         Reported by Paul Eggert.
5345
5346 2010-09-22  Pádraig Brady  <P@draigbrady.com>
5347             Bruno Haible  <bruno@clisp.org>
5348
5349         Fix endless loop in mbmemcasecoll.
5350         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
5351         byte.
5352         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
5353
5354 2010-09-22  Bruno Haible  <bruno@clisp.org>
5355
5356         Tests for module 'memcoll'.
5357         * modules/memcoll-tests: New file.
5358         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
5359
5360         memcoll, xmemcoll: Clarify size vs. length.
5361         * modules/memcoll.c (memcoll0): Clarify specification.
5362         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
5363         passed to collate_error.
5364
5365 2010-09-22  Bruno Haible  <bruno@clisp.org>
5366
5367         Tests for module 'memcasecmp'.
5368         * modules/memcasecmp-tests: New file.
5369         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
5370
5371 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5372
5373         * lib/pthread.in.h: Add split double-inclusion guard, and include
5374         system <pthread.h> if there is one.  Use @@-style as in other
5375         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
5376         pthread.h doesn't.
5377         (pthread_mutexattr_destroy, pthread_mutexattr_init):
5378         (pthread_mutexattr_settype, pthread_mutex_trylock):
5379         New static inline functions, if there's no system <pthread.h>.
5380         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
5381         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
5382         Approximate with mutexes if the system lacks spinlocks, as in
5383         MacOS.
5384         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
5385         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
5386         @@-style.  Check for spinlocks separately.
5387         (gl_PTHREAD_DEFAULTS): New macro.
5388         * modules/pthread: Redo to use a more typical style for in.h files.
5389
5390 2010-09-21  Eric Blake  <eblake@redhat.com>
5391
5392         net_if: enhance tests
5393         * tests/test-net_if.c (main): Move signature checks earlier.
5394         Print failures to stderr.
5395         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
5396         Document the bug that we do not yet fix.
5397
5398 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5399
5400         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
5401         about gnulib, not GSS.
5402
5403 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5404
5405         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
5406         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
5407         for Emacs.
5408         * build-aux/pmccabe2html: Make Makefile.am example code more
5409         cut-and-paste friendly.
5410
5411 2010-09-21  Simon Josefsson  <simon@josefsson.org>
5412
5413         * tests/test-net_if.c: New file.
5414         * modules/net_if-tests: New file.
5415
5416 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
5417
5418         pthread: add pthread_spin_destroy
5419         * lib/pthread.in.h (pthread_spin_destroy): New function.
5420
5421 2010-09-19  Bruno Haible  <bruno@clisp.org>
5422
5423         gnulib-tool: Fix --help output.
5424         * gnulib-tool (func_usage): Fix help message.
5425         Reported by Reuben Thomas <rrt@sc3d.org>.
5426
5427 2010-09-18  Jim Meyering  <meyering@redhat.com>
5428
5429         maint.mk: avoid unexpanded \n in two diagnostics
5430         * top/maint.mk (sc_prohibit_always_true_header_tests):
5431         Don't use a literal \n in a halt=... assignment.  It would not be
5432         expanded, and the two \n bytes would appear in the diagnostic output
5433         rather than the desired newline.  Use halt=$$(printf ... instead.
5434         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5435
5436 2010-09-18  Bruno Haible  <bruno@clisp.org>
5437
5438         netinet_in: Doc tweak.
5439         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
5440         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5441
5442 2010-09-18  Jim Meyering  <meyering@redhat.com>
5443
5444         init.sh: correct an outdated comment
5445         * tests/init.sh (create_exe_shims_):  s/function/alias/
5446
5447         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
5448         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
5449         a file named "*.exe" is removed between the glob expansion and the
5450         processing of that oddly named file.
5451
5452 2010-09-17  Eric Blake  <eblake@redhat.com>
5453
5454         mirbsd: add some more support
5455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
5456         in BSD family.
5457         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
5458         devices as OpenBSD.
5459         * m4/host-os.m4 (mirbsd): Add MirBSD.
5460
5461         tests: fix unportable assumption on sys/wait.h
5462         * tests/test-sys_wait.c (main): Relax test.
5463         * tests/test-stdlib.c (main): Likewise.
5464
5465         init.sh: accomodate directory with no .exes
5466         * tests/init.sh: Accomodate directory containing only scripts.
5467
5468         tests: avoid compiler warning
5469         * tests/test-stdlib.c (main): Use the variable.
5470
5471         fdutimens, fdutimensat: update signature, again
5472         * lib/utimens.h (gl_futimens): Delete, and move signature...
5473         (fdutimens): ...here.
5474         (fdutimensat): Rearrange signature.
5475         (lutimensat): Rename variable for clarity.
5476         * lib/fdutimensat.c (fdutimensat): Update signature.
5477         * lib/utimens.c (fdutimens): Likewise.
5478         (gl_futimens): Delete.
5479         (utimens, lutimens): Update callers.
5480         * lib/futimens.c (futimens): Likewise.
5481         * tests/test-fdutimensat.c: Likewise.
5482         * tests/test-utimens.c: Likewise.
5483         * tests/test-futimens.h: Update comment.
5484         * NEWS: Mention this.
5485         Suggested by Paul Eggert.
5486
5487 2010-09-17  Bruno Haible  <bruno@clisp.org>
5488
5489         Take over the maintenance of some older macros from Autoconf.
5490         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
5491         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
5492         GNU Autoconf.
5493         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
5494         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
5495
5496 2010-09-17  Eric Blake  <eblake@redhat.com>
5497
5498         fdutimensat: drop atflag validation
5499         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5500         with valid fd, to close a race scenario where futimens is
5501         unsupported and FILE was replaced by a symlink.
5502         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
5503         accordingly.
5504         Suggested by Paul Eggert.
5505
5506 2010-09-16  Bruno Haible  <bruno@clisp.org>
5507
5508         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
5509         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
5510
5511 2010-09-16  Bruno Haible  <bruno@clisp.org>
5512
5513         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
5514         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
5515         login_tty exists.
5516         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5517
5518 2010-09-16  Bruno Haible  <bruno@clisp.org>
5519
5520         login_tty: Make the replacement code work on BSD systems.
5521         * lib/login_tty.c: Include <sys/ioctl.h>.
5522         (login_tty): Use ioctl TIOCSCTTY when available.
5523         * modules/login_tty (Depends-on): Add sys_ioctl.
5524         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5525
5526 2010-09-16  Bruno Haible  <bruno@clisp.org>
5527
5528         login_tty: Stricter unit test.
5529         * modules/login_tty-tests (Depends-on): Add tcgetsid.
5530         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
5531         and tcgetsid() after login_tty.
5532         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5533
5534 2010-09-16  Bruno Haible  <bruno@clisp.org>
5535
5536         New module 'tcgetsid'.
5537         * lib/tcgetsid.c: New file.
5538         * m4/tcgetsid.m4: New file.
5539         * modules/tcgetsid: New file.
5540         * modules/termios (Depends-on): Add c++defs, warn-on-use.
5541         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
5542         GNULIB_TCGETSID, HAVE_TCGETSID.
5543         * lib/termios.in.h: Include <sys/types.h>.
5544         (tcgetsid): New declaration.
5545         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
5546         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
5547         * doc/posix-functions/tcgetsid.texi: Mention the new module.
5548         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
5549
5550 2010-09-16  Bruno Haible  <bruno@clisp.org>
5551
5552         Tests for module 'termios'.
5553         * modules/termios-c++-tests: New file.
5554         * modules/termios-tests: New file.
5555         * tests/test-termios-c++.cc: New file.
5556         * tests/test-termios.c: New file.
5557
5558         New module 'termios'.
5559         * modules/termios: New file.
5560         * lib/termios.in.h: New file.
5561         * m4/termios_h.m4: New file.
5562         * doc/posix-headers/termios.texi: Mention the new module.
5563
5564 2010-09-16  Eric Blake  <eblake@redhat.com>
5565
5566         fdutimensat: add an atflag parameter
5567         * lib/fdutimensat.c (fdutimensat): Add new parameter.
5568         * lib/utimens.h (fdutimensat): Update prototype.
5569         * tests/test-fdutimensat.c: Adjust test to match.
5570         * NEWS: Document the change.
5571         Suggested by Paul Eggert.
5572
5573 2010-09-16  Bruno Haible  <bruno@clisp.org>
5574
5575         Fix typos in comments.
5576         * lib/striconveh.h: Fix typo in comment.
5577         * lib/login_tty.c (login_tty): Likewise.
5578
5579 2010-09-15  Bruno Haible  <bruno@clisp.org>
5580
5581         stdlib: clarify MirBSD WEXITSTATUS bug
5582         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5583         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5584
5585 2010-09-15  Eric Blake  <eblake@redhat.com>
5586
5587         stdlib: work around MirBSD WEXITSTATUS bug
5588         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5589         * modules/stdlib (Depends-on): Add sys_wait.
5590         * tests/test-sys_wait.c (main): Enhance test.
5591         * tests/test-stdlib.c (main): Likewise.
5592         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5593
5594         docs: mention MacOS issue with WEXITSTATUS(constant)
5595         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5596         issue.
5597         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5598
5599         strnlen: add tests
5600         * modules/strnlen-tests: New file.
5601         * tests/test-strnlen.c: Likewise.
5602
5603 2010-09-14  Bruno Haible  <bruno@clisp.org>
5604
5605         unistr/base: Avoid link errors when module 'libunistring' is also used.
5606         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
5607         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
5608         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
5609         Declare also when HAVE_LIBUNISTRING is set.
5610         Reported by Pádraig Brady <P@draigbrady.com>.
5611
5612 2010-09-14  Eric Blake  <eblake@redhat.com>
5613
5614         test-rawmemchr: make more robust
5615         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
5616         (Depends-on, configure.ac): Add needed prerequisites to use it.
5617         * modules/memchr-tests (Files, Depends-on, configure.ac):
5618         Likewise, to avoid implicit reliance on memchr module prereqs.
5619         * tests/test-memchr.c (main): Ensure proper masking.
5620         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
5621         reads.
5622
5623         memchr: detect glibc Alpha bug
5624         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
5625         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
5626         Alpha.
5627         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
5628         * tests/test-memchr.c (main): Enhance test.
5629         Reported by Nelson H. F. Beebe.
5630
5631 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5632
5633         fts, getcwd, glob: audit for dirfd returning -1
5634         * lib/fts.c (opendir): Remove #define; no longer used.
5635         (opendirat): New arg PDIR_FD.  All callers changed.
5636         (fts_build, _opendir2): Use new opendirat to avoid the need for
5637         dirfd, or for checking whether dirfd returns a negative value.
5638         Don't use opendir; always use openat followed by fdopendir.
5639         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
5640         it.
5641         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
5642         returns -1 here.
5643         * modules/fts (Depends-on): Remove dirfd.
5644         * modules/getcwd (Depends-on): Likewise.
5645
5646 2010-09-13  Eric Blake  <eblake@redhat.com>
5647
5648         float: fix broken MirBSD header
5649         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
5650         * doc/posix-headers/float.texi (float.h): Document it.
5651
5652 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5653
5654         fts: use O_NOFOLLOW to avoid race condition when opening a directory
5655         * lib/fts.c (opendirat): New arg extra_flags.
5656         (__opendir2): Use it to avoid following symlinks when opening
5657         a directory, if symlinks are not supposed to be followed.  See
5658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
5659
5660         fdopendir: preserve argument fd before returning
5661         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
5662         (fdopendir_with_dup, fd_clone_opendir): New static functions.
5663         (fdopendir): Use them, arranging for FD to be open to the same
5664         directory that it was when it started.  (It might be temporarily
5665         closed while fdopendir is running, so this not thread- or
5666         signal-safe.)  Be careful to do the right thing even when file
5667         descriptors are scarce and dup fails with errno == EMFILE.  See
5668         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
5669
5670 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
5671
5672         regex: Pass the system regex if its only problem is 32-bit regoff_t.
5673         * NEWS: Document change.
5674         * m4/regex.m4: Disable test for regoff_t size.
5675
5676 2010-09-13  Jim Meyering  <meyering@redhat.com>
5677
5678         fts: don't operate on an invalid file descriptor after failed dup
5679         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
5680         negative file descriptor.
5681
5682 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5683
5684         savedir: add streamsavedir, deprecate fdsavedir
5685         * NEWS: Mention deprecation of fdsavedir.
5686         * lib/savedir.c (streamsavedir): New extern function, whose name
5687         ends in "savedir" to be consistent with the others.  This differs
5688         from savedirstream in that it doesn't close its argument.  The
5689         next version of GNU tar will use this instead of fdsavedir, to
5690         avoid some race conditions and conserve file descriptors.
5691         (savedirstream): Reimplement as a wrapper around streamsavedir.
5692         (fdsavedir): Add a comment deprecating this function.  As far as
5693         I know, only GNU tar used it, and GNU tar doesn't need it any more.
5694         * lib/savedir.h (streamsavedir): New decl.
5695         (fdsavedir): Add a comment deprecating this.
5696
5697 2010-09-10  Bruno Haible  <bruno@clisp.org>
5698
5699         langinfo: Fix last commit.
5700         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
5701         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
5702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5703
5704 2010-09-10  Bruno Haible  <bruno@clisp.org>
5705
5706         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
5707         * lib/progreloc.c (O_EXEC): Define fallback.
5708
5709 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
5710
5711         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
5712         * NEWS: Document recent changes to fcntl-h.
5713         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
5714         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
5715         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
5716         Similarly for O_SEARCH; this last was already true, but not documented.
5717         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
5718         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
5719         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
5720         Likewise.
5721         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
5722         is zero, not whether it is defined.
5723         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
5724         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
5725         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
5726
5727 2010-09-10  Bruno Haible  <bruno@clisp.org>
5728
5729         langinfo, nl_langinfo: Fix for IRIX 5.3.
5730         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5731         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5732         HAVE_LANGINFO_YESEXPR.
5733         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5734         HAVE_LANGINFO_YESEXPR.
5735         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5736         HAVE_LANGINFO_T_FMT_AMPM is 0.
5737         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5738         HAVE_LANGINFO_YESEXPR is 0.
5739         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5740         NOEXPR.
5741         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5742         * doc/posix-functions/nl_langinfo.texi: Likewise.
5743         Reported by Eric Blake.
5744
5745 2010-09-10  Bruno Haible  <bruno@clisp.org>
5746
5747         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5748         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5749         on FreeBSD 8.0 and OpenBSD 4.6.
5750         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5751         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5752         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5753         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5754         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5755         ac_includes_default.
5756         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5757
5758 2010-09-09  Eric Blake  <eblake@redhat.com>
5759
5760         strsignal: work around NetBSD bug
5761         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5762         * lib/string.in.h (includes): Likewise.
5763         * doc/posix-functions/strsignal.texi (strsignal): Document the
5764         bug.
5765         Reported by Nelson H. F. Beebe.
5766
5767         gnulib-tool: work with NetBSD /bin/sh
5768         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5769         (func_get_description, func_get_comment, func_get_status)
5770         (func_get_notice, func_get_applicability, func_get_filelist)
5771         (func_get_dependencies, func_get_autoconf_early_snippet)
5772         (func_get_autoconf_snippet, func_get_automake_snippet)
5773         (func_get_include_directive, func_get_link_directive)
5774         (func_get_license, func_get_maintainer, func_import): Avoid
5775         shell syntax errors from parsing syntax extensions.
5776
5777 2010-09-09  Bruno Haible  <bruno@clisp.org>
5778
5779         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5780         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5781         a reliable way to determine whether the 'alias' command works.
5782
5783 2010-09-08  Jim Meyering  <meyering@redhat.com>
5784
5785         init.sh: penalize a set-x-impaired shell; don't disqualify it
5786         * tests/init.sh: Too many shells corrupt application stderr when
5787         you set -x, so we can't afford to disqualify them, since at least
5788         on Irix-6.5, that would disqualify all bourne shells.
5789         Instead, use a two-pass approach.
5790         On the first pass, try to find a shell that meets the stricter
5791         condition that set -x does not corrupt stderr.
5792         If no shell meets the stricter condition, retest each candidate
5793         shell, but without that extra condition.  Finally, when
5794         VERBOSE=yes is requested and set -x might cause trouble, simply
5795         issue a warning and refrain from enabling debug output.
5796
5797 2010-09-08  Eric Blake  <eblake@redhat.com>
5798
5799         unsetenv: fix OpenBSD bug
5800         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5801         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5802         documentation.
5803         Reported by Jim Meyering.
5804
5805         strtod: work around IRIX 6.5 bug
5806         * lib/strtod.c (strtod): Reparse number on shorter string if
5807         exponent parse was invalid.
5808         * tests/test-strtod.c (main): Add check for "0x1p 2".
5809         Reported by Tom G. Christensen.
5810
5811         getopt: optimize previous patch
5812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5813         empty variable.  Speed up awk script.
5814         Reported by Paolo Bonzini.
5815
5816 2010-09-08  Jim Meyering  <meyering@redhat.com>
5817
5818         test.sh: disqualify shells for which set -x corrupts stderr
5819         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5820         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5821         appear in stderr output.  For example, this command:
5822             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5823         prints "P=1" on those two systems:
5824
5825 2010-09-08  Bruno Haible  <bruno@clisp.org>
5826
5827         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5828         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5829         commands, because some shells ignore redirections when there is an
5830         error in the command lookup.
5831         Reported by Eric Blake.
5832
5833 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5834
5835         * lib/regex.h: Fix a mention of `regex_compile' (should be
5836         `re_compile_pattern').
5837         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5838         (re_set_registers): Correct name of parameter in comment.
5839
5840         * doc/regex.texi: Add documentation for missing syntax flags.
5841         Remove commented-out documentation of defunct syntax option
5842         RE_NO_EMPTY_ALTS.
5843         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5844         Add documentation of re_set_registers.
5845         Document trick to re-use a pattern buffer by setting fastmap manually.
5846         Update documentation of struct re_pattern_buffer per public members.
5847         Uncomment documentation of equivalence class operators and
5848         collating symbol operators, since they are now implemented,
5849         Explain leftmost-longest matching in relation to alternatives.
5850         Tidy documentation of substring matching.
5851         Remove POSIX documentation, which is done better in
5852         glibc, and refer the reader there. Keep BSD API documentation, as
5853         that is not readily available elsewhere.
5854
5855 2010-09-07  Eric Blake  <eblake@redhat.com>
5856
5857         getopt: handle POSIXLY_CORRECT set but not exported
5858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5859         export state of POSIXLY_CORRECT, due to bash set -o posix.
5860         Reported by Dustin J. Mitchell.
5861
5862 2010-09-05  Bruno Haible  <bruno@clisp.org>
5863
5864         gnulib-tool: Highlight the changed options.
5865         * gnulib-tool (func_usage): Display the --import, --add-import,
5866         --remove-import explanations in bold font.
5867
5868 2010-09-06  Karl Berry  <karl@gnu.org>
5869
5870         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5871
5872 2010-09-05  Bruno Haible  <bruno@clisp.org>
5873
5874         uniwidth/width: Update comment.
5875         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5876         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5877
5878 2010-09-05  Bruno Haible  <bruno@clisp.org>
5879
5880         isinf, isnan: Relax license.
5881         * modules/isinf (License): Change from GPL to LGPL, with consent from
5882         Ben Pfaff.
5883         * modules/isnan (License): Likewise.
5884         Requested by Ludovic Courtès.
5885
5886 2010-09-04  Bruno Haible  <bruno@clisp.org>
5887
5888         gnulib-tool: Help migration from --import to --add-import or --update.
5889         * gnulib-tool: Emit a verbose error message when --import is used
5890         without any module name.
5891
5892 2010-09-04  Bruno Haible  <bruno@clisp.org>
5893
5894         Update doc about gnulib-tool.
5895         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5896         'gnulib-tool --update' in more detail.
5897         Reported by Eric Blake.
5898
5899 2010-09-04  Bruno Haible  <bruno@clisp.org>
5900
5901         gnulib-tool: Change --import. New options --add/remove-import.
5902         * gnulib-tool: New options --add-import, --remove-import.
5903         (func_usage): Document them.
5904         (have_associative): Define always.
5905         (func_import): In import mode, don't merge the specified settings with
5906         the cached settings. Implement remove-import mode.
5907         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5908         Explain when to use them versus --import.
5909         (Simple update): Use --add-import instead of --import.
5910         * NEWS: Mention the change.
5911
5912 2010-09-04  Bruno Haible  <bruno@clisp.org>
5913
5914         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5915         separate gnulib.mk.
5916
5917 2010-09-04  Bruno Haible  <bruno@clisp.org>
5918
5919         gnulib-tool: Don't talk about CVS any more.
5920         * gnulib-tool (func_usage, func_import): Write "version control"
5921         instead of CVS.
5922
5923 2010-09-04  Jim Meyering  <meyering@redhat.com>
5924
5925         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5926         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5927         false positives (whose names may be ill-chosen) when searching
5928         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5929         would cause a false-positive.
5930
5931         avoid coreutils "make distcheck" failure
5932         Coreutils tests with an absolute build directory name that contains
5933         a space.  Not quoting this directory name caused a failure.
5934         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5935         * tests/test-vc-list-files-cvs.sh: Likewise.
5936
5937 2010-09-04  Bruno Haible  <bruno@clisp.org>
5938
5939         gnulib-tool: Avoid error when run in a package without Makefile.am.
5940         * gnulib-tool: When collecting the m4dirs in a package that does not
5941         have a Makefile.am, eliminate those directories that contain no
5942         gnulib-cache.m4. Fix expression that counts these directories.
5943
5944 2010-09-04  Bruno Haible  <bruno@clisp.org>
5945
5946         update-copyright test: Improve output when perl is missing or too old.
5947         * tests/test-update-copyright.sh: Move test of Perl version down after
5948         the test whether Perl exists. Provide an explanation relating Perl's
5949         error message to Automake's SKIP: message.
5950
5951 2010-09-04  Bruno Haible  <bruno@clisp.org>
5952
5953         Don't augment PATH in TESTS_ENVIRONMENT.
5954         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5955         set abs_aux_dir instead of augmenting PATH.
5956         * modules/vc-list-files-tests (Makefile.am): Likewise.
5957         * tests/test-update-copyright.sh: Augment PATH here.
5958         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5959         path_prepend_.
5960         * tests/test-vc-list-files-git.sh: Likewise.
5961
5962 2010-09-04  Jim Meyering  <meyering@redhat.com>
5963
5964         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5965         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5966
5967 2010-09-04  Bruno Haible  <bruno@clisp.org>
5968
5969         strdup: Fix compilation error in C++ mode.
5970         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5971         the macro.
5972
5973 2010-09-04  Bruno Haible  <bruno@clisp.org>
5974
5975         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5976         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5977         macro into a function.
5978         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5979
5980 2010-09-04  Bruno Haible  <bruno@clisp.org>
5981
5982         Set PATH_SEPARATOR the same way autoconf does.
5983         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5984         the value of PATH_SEPARATOR the same way autoconf-generated configure
5985         scripts do.
5986         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5987         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5988
5989 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5990
5991         Set PATH_SEPARATOR the same way autoconf does.
5992         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5993         the same way autoconf-generated configure scripts do.
5994         * posix-modules: Likewise.
5995
5996 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5997
5998         hash: fix safe_hasher const typo
5999         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
6000         const; otherwise, there is a type error later.
6001
6002 2010-09-02  Jim Meyering  <meyering@redhat.com>
6003
6004         test-update-copyright.sh: require perl 5.8.0
6005         * tests/test-update-copyright.sh: Require 5.8.0,
6006         which Tom G. Christensen has confirmed is adequate,
6007         while 5.6.1 is not.
6008
6009 2010-09-02  Eric Blake  <eblake@redhat.com>
6010
6011         tests: init.sh improvements for re-exec'ing with zsh
6012         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
6013         -vx through shell re-exec.
6014         Reported by Tom G. Christensen.
6015
6016         wctype: fix typo in previous commit
6017         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
6018         Reported by Ludovic Courtès.
6019
6020 2010-09-02  Jim Meyering  <meyering@redhat.com>
6021
6022         test-update-copyright.sh: skip test if Perl is too old
6023         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
6024         Reported by Tom G. Christensen.
6025
6026 2010-09-02  Bruno Haible  <bruno@clisp.org>
6027
6028         wctype: Avoid compilation error on IRIX 6.5.30.
6029         * lib/wctype.in.h (iswblank): Declare with a replacement if
6030         REPLACE_ISWBLANK is set.
6031         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
6032         declared. Set REPLACE_ISWBLANK.
6033         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
6034         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
6035         * doc/posix-headers/wctype.texi: Likewise.
6036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6037
6038 2010-09-01  Bruno Haible  <bruno@clisp.org>
6039
6040         New module 'socketlib'.
6041         * modules/socketlib: New file.
6042         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
6043         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
6044         * modules/sockets (Depends-on): Add socketlib.
6045         Suggested by Sam Steingold <sds@gnu.org>.
6046
6047 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6048
6049         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
6050
6051         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
6052         when one needs search access to a directory but not read access.
6053         On systems where it is available, it works in some cases where
6054         O_RDONLY does not, namely on directories that are searchable but
6055         not readable, and which need only to be searchable.  If O_SEARCH
6056         is not available, fall back to the traditional method of using
6057         O_RDONLY.
6058
6059         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
6060         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
6061         when opening a directory that needs only to be searchable.
6062         * lib/chdir-safer.c (chdir_no_follow): Likewise.
6063         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
6064         * lib/openat-proc.c (openat_proc_name): Likewise.
6065         * lib/openat.c (openat_needs_fchdir): Likewise.
6066         * lib/save-cwd.c (save_cwd): Likewise.
6067         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
6068
6069 2010-08-28  Bruno Haible  <bruno@clisp.org>
6070
6071         New module 'host-cpu-c-abi'.
6072         * modules/host-cpu-c-abi: New file.
6073         * m4/host-cpu-c-abi.m4: New file, based on part of
6074         clisp/src/m4/general.m4.
6075         Requested by Sam Steingold <sds@gnu.org>.
6076
6077 2010-08-31  Eric Blake  <eblake@redhat.com>
6078         and Jim Meyering  <meyering@redhat.com>
6079
6080         hash: factor, and guard against misbehaving hasher function
6081         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
6082         of table->hasher's return value.  Also protect against a hash value
6083         so large that adding it to table->bucket results in a NULL pointer.
6084         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
6085         Use it in place of open-coded check-and-abort.
6086
6087 2010-08-30  Bruno Haible  <bruno@clisp.org>
6088
6089         hash: silence spurious clang warning
6090         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
6091         Reported by Eric Blake.
6092
6093 2010-08-30  Eric Blake  <eblake@redhat.com>
6094
6095         strstr, memmem, strcasestr: avoid leaked shell message
6096         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
6097         FreeBSD.
6098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6099         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6100
6101         tests: silence clang warning
6102         * tests/test-malloca.c (do_allocation): Avoid dead store.
6103
6104 2010-08-29  Bruno Haible  <bruno@clisp.org>
6105
6106         gettext: Fix recent mistake.
6107         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
6108
6109 2010-08-29  Bruno Haible  <bruno@clisp.org>
6110
6111         selinux-h: Offer a --without-selinux option.
6112         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
6113         --without-selinux was specified, skip all tests and define
6114         HAVE_SELINUX_SELINUX_H to 0.
6115         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
6116         set LIB_SELINUX to empty.
6117         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
6118         gl_LIBSELINUX. If --without-selinux was specified, replace
6119         selinux/context.h.
6120         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
6121
6122 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6123             Bruno Haible  <bruno@clisp.org>
6124
6125         Make the module 'realloc-gnu' work again on AIX and OSF/1.
6126         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
6127         of HAVE_REALLOC.
6128         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
6129         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
6130         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
6131         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6132
6133 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6134             Bruno Haible  <bruno@clisp.org>
6135
6136         Make the module 'calloc-gnu' work again on AIX and OSF/1.
6137         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
6138         HAVE_CALLOC.
6139         * lib/xmalloc.c: Update accordingly.
6140         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
6141         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
6142         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
6143
6144 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6145             Bruno Haible  <bruno@clisp.org>
6146
6147         Make the module 'malloc-gnu' work again on AIX and OSF/1.
6148         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
6149         HAVE_MALLOC.
6150         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
6151         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
6152         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6153
6154 2010-08-29  Bruno Haible  <bruno@clisp.org>
6155
6156         Update modules list.
6157         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6158         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
6159         (String handling <string.h>): Add astrxfrm.
6160         (File system functions): Add readlinkat.
6161
6162 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6163
6164         Tests for module 'realloc-gnu'.
6165         * modules/realloc-gnu-tests: New file.
6166         * tests/test-realloc-gnu.c: New file.
6167
6168         Tests for module 'calloc-gnu'.
6169         * modules/calloc-gnu-tests: New file.
6170         * tests/test-calloc-gnu.c: New file.
6171
6172         Tests for module 'malloc-gnu'.
6173         * modules/malloc-gnu-tests: New file.
6174         * tests/test-malloc-gnu.c: New file.
6175
6176 2010-08-28  Bruno Haible  <bruno@clisp.org>
6177
6178         Rename module 'realloc' -> 'realloc-gnu'.
6179         * modules/realloc-gnu: New file, copied from modules/realloc.
6180         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
6181         obsolete.
6182         * modules/mgetgroups (Depends-on): Update.
6183         * doc/posix-functions/realloc.texi: Update.
6184         * NEWS: Mention the change.
6185
6186         Rename module 'calloc' -> 'calloc-gnu'.
6187         * modules/calloc-gnu: New file, copied from modules/calloc.
6188         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
6189         obsolete.
6190         * doc/posix-functions/calloc.texi: Update.
6191         * NEWS: Mention the change.
6192
6193         Rename module 'malloc' -> 'malloc-gnu'.
6194         * modules/malloc-gnu: New file, copied from modules/malloc.
6195         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
6196         obsolete.
6197         * modules/argp (Depends-on): Update.
6198         * modules/regex (Depends-on): Update.
6199         * doc/posix-functions/malloc.texi: Update.
6200         * NEWS: Mention the change.
6201
6202 2010-08-28  Eric Blake  <eblake@redhat.com>
6203
6204         pread, pwrite: add missing dependency
6205         * modules/pread (Depends-on): Add extensions.
6206         * modules/pwrite (Depends-on): Likewise.
6207
6208 2010-08-28  Bruno Haible  <bruno@clisp.org>
6209
6210         unistr/u*-strchr: Fix tests dependencies.
6211         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
6212         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
6213         Reported by Ian Beckwith <ianb@erislabs.net>.
6214
6215 2010-08-28  Bruno Haible  <bruno@clisp.org>
6216
6217         read-file: Don't occupy too much unused memory.
6218         * lib/read-file.c (fread_file): Shrink the buffer at the end.
6219
6220 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
6221             Eric Blake  <eblake@redhat.com>
6222             Bruno Haible  <bruno@clisp.org>
6223
6224         read-file: Avoid memory reallocations with regular files.
6225         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
6226         (fread_file): With regular files, use the remaining length as the
6227         initial buffer size.  Check against overflow.
6228         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
6229         sys_stat.
6230
6231 2010-08-28  Bruno Haible  <bruno@clisp.org>
6232
6233         ftello: Relax license.
6234         * modules/ftello (License): Relax to LGPLv2+.
6235         Reported by Eric Blake.
6236
6237 2010-08-28  Bruno Haible  <bruno@clisp.org>
6238
6239         Avoid relocwrapper link errors due to gnulib replacement functions.
6240         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
6241         function.
6242         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6243
6244 2010-08-28  Bruno Haible  <bruno@clisp.org>
6245
6246         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
6247         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
6248         defined.
6249         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
6250         Suggested by Eric Blake.
6251
6252 2010-08-28  Bruno Haible  <bruno@clisp.org>
6253
6254         sys_socket, netdb: Ensure socklen_t gets defined.
6255         * modules/sys_socket (Depends-on): Add socklen.
6256         * modules/netdb (Depends-on): Likewise.
6257         * modules/getaddrinfo (Depends-on): Remove socklen.
6258         * modules/getsockopt (Depends-on): Likewise.
6259         * modules/setsockopt (Depends-on): Likewise.
6260         * tests/test-sys_socket.c: Check that socklen_t is defined.
6261         * tests/test-netdb.c: Likewise.
6262         * m4/socklen.m4: Update comments.
6263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6264
6265 2010-08-27  Eric Blake  <eblake@redhat.com>
6266
6267         login_tty: add missing dependency
6268         * modules/login_tty (Depends-on): Add pty.
6269
6270 2010-08-26  Eric Blake  <eblake@redhat.com>
6271
6272         lib-symbol-versions: fix m4 quoting
6273         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
6274         format for AC_LINK_IFELSE.
6275
6276         glob: fix compile test
6277         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
6278
6279         btowc: fix missing file
6280         * modules/btowc (Files): Also ship locale-fr.m4.
6281
6282         lseek: fix link test
6283         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
6284         AC_LINK_IFELSE.
6285
6286         include_next: silence autoconf 2.68 warning
6287         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
6288         AC_COMPILE_IFELSE as special.
6289         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
6290         autoconf < 2.68.
6291
6292         acl: fix compilation test
6293         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
6294         AC_COMPILE_IFELSE.
6295
6296 2010-08-26  Bruno Haible  <bruno@clisp.org>
6297
6298         Modernize AC_TRY_RUN invocations.
6299         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
6300         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6301         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
6302         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
6303         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6304         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6307         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6308         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6309         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6310         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6311         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6312         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6314         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6315         gl_MBRLEN_NUL_RETVAL): Likewise.
6316         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6317         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6318         Likewise.
6319         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6320         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6321         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6322         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6323         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6324         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6325         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
6326         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6327         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
6328         Likewise.
6329         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6330         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6332         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6333         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6334         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6335         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6336         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
6337         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6339
6340 2010-08-26  Bruno Haible  <bruno@clisp.org>
6341
6342         Modernize AC_TRY_LINK invocations.
6343         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
6344         AC_TRY_LINK.
6345         * m4/argp.m4 (gl_ARGP): Likewise.
6346         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6347         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6348         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6349         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6350         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6351         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
6352         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6353         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6354         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6355         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6356         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6357         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
6358         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
6359         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6360         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6361         * m4/hostent.m4 (gl_HOSTENT): Likewise.
6362         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6363         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
6364         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6365         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
6366         Likewise.
6367         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
6368         Likewise.
6369         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
6370         Likewise.
6371         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
6373         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
6374         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6375         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6376         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6377         * m4/servent.m4 (gl_SERVENT): Likewise.
6378         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6379         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6380         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6381         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6382         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6383         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6384         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6386         * modules/tsearch-tests (configure.ac): Likewise.
6387
6388 2010-08-26  Bruno Haible  <bruno@clisp.org>
6389
6390         Modernize AC_TRY_COMPILE invocations.
6391         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
6392         AC_TRY_COMPILE.
6393         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
6394         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
6395         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6396         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6397         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6398         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6399         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6400         * m4/lock.m4 (gl_LOCK): Likewise.
6401         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
6402         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6403         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
6404         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6405         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6406         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
6407         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6408         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
6409         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6410         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6411         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6412         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6413         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
6414         extraneous semicolon.
6415
6416 2010-08-26  Jim Meyering  <meyering@redhat.com>
6417
6418         stat-time: relax license LGPL
6419         * modules/stat-time (License): Change from GPL to LGPL,
6420         with consent from all contributors, for use in libguile.
6421         Requested by Ludovic Courtès.
6422
6423 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
6424
6425         poll: return immediately on POLLHUP.
6426         * lib/poll.c (poll): Always set timeout before wait_timeout is
6427         computed.
6428
6429 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6430
6431         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
6432         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
6433         rmdir ("dir/.//"), unlinkat.
6434
6435 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6436
6437         stdbool: avoid spurious failure with modern xlc
6438         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6439
6440 2010-08-24  Bruno Haible  <bruno@clisp.org>
6441
6442         getloadavg: simplify code
6443         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
6444         gl_have_func. Update comments.
6445
6446 2010-08-24  Eric Blake  <eblake@redhat.com>
6447
6448         getloadavg: don't define SVR4 on cygwin
6449         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
6450         only define SVR4 when -lkvm is required.
6451         Reported by Yaakov Selkowitz.
6452
6453 2010-08-24  Bruno Haible  <bruno@clisp.org>
6454
6455         priv-set: fix comment
6456         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
6457
6458 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6459
6460         priv-set: fix comments
6461         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
6462         to match code, as suggested by David Bartley in:
6463         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
6464
6465 2010-08-23  Eric Blake  <eblake@redhat.com>
6466
6467         stdbool: avoid rejecting clang
6468         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6469         * tests/test-stdbool.c: Enable more tests if using the system
6470         <stdbool.h> instead of the gnulib replacement.
6471         (main): Move xlc bug test to a runtime test for all compilers.
6472         Reported by Anders Kaseorg.
6473
6474         argz: fix shell quoting issue
6475         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
6476         Reported by Charles Wilson.
6477
6478 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
6479             Erik Faye-Lund <kusmabite@gmail.com>
6480
6481         poll, select: handle ERROR_BROKEN_PIPE.
6482         * lib/poll.c (win32_compute_revents): Return POLLHUP when
6483         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6484         * lib/select.c (win32_compute_revents): Do not mark a pipe
6485         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6486
6487 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
6488
6489         fts: allow compilation with C++
6490         * lib/fts_.h: Specify extern "C" linkage with C++.
6491
6492 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6493
6494         Fix gnulib-tool sed script de-commentation for AIX sed.
6495         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
6496         sed.
6497
6498 2010-08-17  Eric Blake  <eblake@redhat.com>
6499
6500         test-stddef: test for (some) offsetof bugs
6501         * tests/test-stddef.c: Enhance test to ensure correct type of
6502         offsetof.
6503         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
6504         that we are not fixing at this time.
6505
6506 2010-08-15  Bruno Haible  <bruno@clisp.org>
6507
6508         stpncpy: Allow stpncpy to be defined as a macro.
6509         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
6510         if it's already correctly declared.
6511         * lib/string.in.h (stpncpy): Undefine before redefining.
6512         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
6513
6514 2010-08-14  Bruno Haible  <bruno@clisp.org>
6515
6516         Rename module 'memxfrm' to 'amemxfrm'.
6517         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
6518         (amemxfrm): Renamed from memxfrm.
6519         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
6520         (amemxfrm): Renamed from memxfrm.
6521         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
6522         * NEWS: Mention the change.
6523         * MODULES.html.sh (String handling <string.h>): Update.
6524         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
6525         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
6526         * lib/unicase/u16-casexfrm.c: Likewise.
6527         * lib/unicase/u32-casexfrm.c: Likewise.
6528         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
6529         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
6530         * lib/uninorm/u16-normxfrm.c: Likewise.
6531         * lib/uninorm/u32-normxfrm.c: Likewise.
6532         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
6533         memxfrm.
6534         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
6535         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
6536         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
6537         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
6538         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
6539         Suggested by Paul Eggert.
6540
6541 2010-08-14  Bruno Haible  <bruno@clisp.org>
6542
6543         Tests for module 'astrxfrm'.
6544         * modules/astrxfrm-tests: New file.
6545         * tests/test-astrxfrm.c: New file.
6546
6547         New module 'astrxfrm'.
6548         * lib/astrxfrm.h: New file.
6549         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
6550         * modules/astrxfrm: New file.
6551
6552 2010-08-14  Reuben Thomas <rrt@sc3d.org>
6553
6554         regex: Tweak doc.
6555         * doc/regex.texi (Overview): Don't mention regex.c.
6556         (GNU Regular Expression Compiling): Likewise.
6557         (Match-end-of-line Operator): Mention 'not_eol'.
6558
6559 2010-08-14  Brian Gough  <bjg@gnu.org>
6560             Bruno Haible  <bruno@clisp.org>
6561
6562         git-merge-changelog: add doc relating to use with bzr and hg.
6563         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
6564
6565 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
6566
6567         pthread: fix pthread.h creation for srcdir != builddir
6568         * modules/pthread (Makefile.am): Fix the rule to work also in a
6569         non-srcdir build.
6570
6571 2010-08-13  Karl Berry  <karl@gnu.org>
6572
6573         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6574         * doc/posix-*/*: force line break before @url of POSIX
6575         specifications.
6576         Suggested by Werner Lemberg.
6577
6578 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6579
6580         strtod: fix const diagnostic
6581         * lib/strtod.c (strtod): Don't assign const char * to char *,
6582         as this elicits a warning from GCC when warnings are enabled.
6583
6584 2010-08-10  Pádraig Brady <P@draigbrady.com>
6585         and Eric Blake  <eblake@redhat.com>
6586
6587         copy-acl: ignore ENOTSUP on HP-UX
6588         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6589         so that it is available for HP-UX.
6590         * lib/copy-acl.c (qcopy_acl): Use it.
6591         Reported by Patrick M. Callahan.
6592
6593 2010-08-10  Eric Blake  <eblake@redhat.com>
6594
6595         open, chown: relax license
6596         * modules/open (License): Change to LGPLv2+, with consent by all
6597         authors, for use in augeas.
6598         * modules/chown (License): Likewise.
6599         * modules/lchown (Likewise): Likewise.
6600         Requested by Adam Stokes.
6601
6602 2010-08-09  Karl Berry  <karl@gnu.org>
6603
6604         * build-aux/ar-lib: new file, import from Automake.
6605         * config/srclist.txt: autocheck for updates.
6606
6607 2010-08-09  Eric Blake  <eblake@redhat.com>
6608
6609         readlinkat: adjust client modules
6610         * modules/areadlinkat (Depends-on): Use readlinkat, not
6611         symlinkat.
6612         * modules/areadlinkat-with-size (Depends-on): Likewise.
6613
6614         mknod: be more vocal about danger of running tests as root
6615         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
6616         root, since that is just asking for problems.
6617         Suggested by Bruno Haible, based on a report by Rainer Tammer.
6618
6619         readlinkat: split into its own module
6620         * modules/symlinkat: Split readlinkat...
6621         * modules/readlinkat: ...into separate module.
6622         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
6623         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
6624         * lib/symlinkat.c (readlinkat): Move...
6625         * lib/readlinkat.c: ...into new file.
6626         * modules/symlinkat-tests: Split readlinkat test...
6627         * modules/readlinkat-tests: ...into separate module.
6628         * tests/test-symlinkat.c: Split...
6629         * tests/test-readlinkat.c: ...into new file.
6630         * NEWS: Document the split.
6631         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6632         * lib/unistd.in.h (readlinkat): Likewise.
6633         Suggested by Bruno Haible.
6634
6635 2010-08-08  Bruno Haible  <bruno@clisp.org>
6636
6637         memxfrm: Speed up.
6638         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
6639         that usually only one call to strxfrm is necessary for each string
6640         part.
6641         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6642
6643 2010-08-07  Karl Berry  <karl@gnu.org>
6644
6645         * doc/posix-headers/limits.texi,
6646         * doc/posix-functions/malloc.texi,
6647         * doc/posix-functions/strsignal.texi: missing @item.
6648         * doc/ld-version-script.texi: spurious leading i.
6649         * doc/regex.texi (Interval Operators): no commas inside @var.
6650
6651 2010-08-01  Bruno Haible  <bruno@clisp.org>
6652
6653         Integrate the regex documentation.
6654         * doc/gnulib.texi: Define 'cn' index.
6655         (Regular expressions): New a chapter that includes regex.texi and
6656         regexprops-generic.texi.
6657         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
6658         syntax.
6659
6660         Whitespace cleanup.
6661         * doc/regex.texi: Remove trailing spaces.
6662
6663         Add regex documentation.
6664         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
6665         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
6666         Written by Kathy A. Hargreaves and Karl Berry.
6667
6668 2010-08-01  Bruno Haible  <bruno@clisp.org>
6669
6670         link: Update documentation.
6671         * doc/posix-functions/link.texi: Update regarding Solaris.
6672
6673 2010-07-31  Bruno Haible  <bruno@clisp.org>
6674
6675         Update modules list.
6676         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
6677         (String handling <string.h>): Add memcmp2, memxfrm.
6678         (Container data structures): Add xlist, xsublist, xoset.
6679         (Core language properties): Add alignof, unused-parameter.
6680         (Process control, Numeric conversion functions <stdlib.h>): Renamed
6681         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
6682         (Unibyte characters <ctype.h>): New section.
6683         (String handling <string.h>): New section.
6684         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
6685         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
6686         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
6687         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
6688         tan, tanh, tanl, y0, y1, yn.
6689         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
6690         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
6691         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
6692         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
6693         unlockpt, vdprintf, vdprintf-posix.
6694         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
6695         (File system functions): Add concat-filename, sys_file, sys_ioctl,
6696         xconcat-filename.
6697         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
6698         getdtablesize, pipe2, pipe2-safer.
6699         (Security): New section.
6700         (Networking functions): Add accept4.
6701         (Signal handling): Add sigpipe.
6702         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
6703         mbmemcasecoll.
6704         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
6705         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
6706         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
6707         pipe-filter-ii.
6708         (Misc): Add argp-version-etc, login_tty, parse-duration.
6709
6710 2010-07-31  Bruno Haible  <bruno@clisp.org>
6711
6712         Improve doc in MODULES.html.
6713         * modules/linkat (Description): Add the word "function".
6714         * modules/mkfifo (Description): Likewise.
6715         * modules/mknod (Description): Likewise.
6716         * modules/remove (Description): Likewise.
6717         * modules/renameat (Description): Likewise.
6718         * modules/stat (Description): Likewise.
6719         * modules/symlink (Description): Likewise.
6720         * modules/unlink (Description): Likewise.
6721
6722 2010-07-31  Bruno Haible  <bruno@clisp.org>
6723
6724         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
6725         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
6726         option --enable/disable-c++ instead of --enable/disable-cxx.
6727         * NEWS: Mention the change.
6728
6729 2010-07-31  Bruno Haible  <bruno@clisp.org>
6730
6731         readlink, areadlink: Relax test a bit.
6732         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6733         alternative to ENOTDIR.
6734         * tests/test-areadlink.h (test_areadlink): Likewise.
6735         Reported by Rainer Tammer.
6736
6737 2010-07-31  Bruno Haible  <bruno@clisp.org>
6738
6739         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6740         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6741         character, perform the search using U_STRCHR.
6742         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6743         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6744         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6745         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6746         Suggested by Paolo Bonzini.
6747
6748 2010-07-31  Bruno Haible  <bruno@clisp.org>
6749
6750         unistr/u*-strstr: Fix dependencies.
6751         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6752         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6753         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6754
6755 2010-07-31  Bruno Haible  <bruno@clisp.org>
6756
6757         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6758         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6759         the beginning of the loop.
6760         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6761         cases in 'switch' statement.
6762
6763         unistr/u8-strchr: Fix several bugs.
6764         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6765         the string. When not found, return NULL, not a pointer near the end.
6766
6767         More tests for unistr/u8-strchr.
6768         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6769         that the function does not read past the first occurrence of the byte
6770         being searched.
6771         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6772         * tests/unistr/test-u16-strchr.c (main): New function.
6773         * tests/unistr/test-u32-strchr.c (main): New function.
6774
6775 2010-07-31  Bruno Haible  <bruno@clisp.org>
6776
6777         posix-modules: Ignore backup files of documentation files.
6778         * posix-modules: grep only through files named *.texi.
6779
6780 2010-07-31  Bruno Haible  <bruno@clisp.org>
6781
6782         symlinkat: Fix documentation.
6783         * doc/posix-functions/readlinkat.texi: Fix module name.
6784
6785 2010-07-31  Bruno Haible  <bruno@clisp.org>
6786
6787         fchownat: Replace also when chown has the trailing slash bug.
6788         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6789         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6790         introduced on 2010-04-10.
6791         Reported by Rainer Tammer.
6792
6793 2010-07-31  Bruno Haible  <bruno@clisp.org>
6794
6795         linkat: Work around AIX 7.1 bug.
6796         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6797         whether linkat handles trailing slash correctly. If not, replace linkat
6798         and define LINKAT_TRAILING_SLASH_BUG.
6799         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6800         check whether (fd1,file1) points to a directory if file1 or file2 ends
6801         in a slash. Code taken from lib/link.c.
6802         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6803         Reported by Rainer Tammer.
6804
6805 2010-07-31  Bruno Haible  <bruno@clisp.org>
6806
6807         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6808         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6809         This disables an xlc optimization that was causing wrong test results.
6810         Reported by Rainer Tammer.
6811
6812 2010-07-31  Bruno Haible  <bruno@clisp.org>
6813
6814         iconv: Work around AIX 6.1..7.1 bug.
6815         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6816         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6817         cross-compiling, guess no on all versions of AIX.
6818         Reported by Rainer Tammer.
6819
6820 2010-07-31  Bruno Haible  <bruno@clisp.org>
6821
6822         readlink: Relax test a bit.
6823         * tests/test-readlink.h (test_readlink): Allow different errno value
6824         when readlink is called with a file name that ends in / and refers to
6825         a file.
6826         Suggested by Eric Blake.
6827         Reported by Rainer Tammer.
6828
6829 2010-07-31  Bruno Haible  <bruno@clisp.org>
6830
6831         copysign: Does not require -lm on glibc systems.
6832         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6833         gl_COMMON_DOUBLE_MATHFUNC.
6834         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6835
6836 2010-07-31  Bruno Haible  <bruno@clisp.org>
6837
6838         duplocale: Work around AIX 7.1 bug.
6839         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6840         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6841         * lib/duplocale.c (rpl_duplocale): Update comment.
6842         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6843         Reported by Rainer Tammer.
6844
6845 2010-07-30  Bruno Haible  <bruno@clisp.org>
6846
6847         dirfd: Avoid link error on AIX 7.1.
6848         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6849         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6850         exist, set REPLACE_DIRFD.
6851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6852         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6853         * doc/posix-functions/dirfd.texi: Update.
6854         Reported by Rainer Tammer.
6855
6856 2010-07-30  Eric Blake  <eblake@redhat.com>
6857
6858         strtod: next round of AIX fixes
6859         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6860         exponent.
6861         * tests/test-strtod.c (main): Enhance tests.
6862         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6863         Reported by Rainer Tammer.
6864
6865         futimens: fix configure check
6866         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6867         Reported by Bruno Haible.
6868
6869 2010-07-30  Bruno Haible  <bruno@clisp.org>
6870
6871         getline: Update regarding AIX.
6872         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6873         Reported by Rainer Tammer.
6874
6875 2010-07-30  Bruno Haible  <bruno@clisp.org>
6876
6877         wcwidth: Drop replacement on AIX 7.
6878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6879         AIX 7.
6880         Reported by Rainer Tammer.
6881
6882 2010-07-30  Bruno Haible  <bruno@clisp.org>
6883
6884         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6885         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6886         a 'char *'.
6887         Reported by Rainer Tammer.
6888
6889 2010-07-30  Bruno Haible  <bruno@clisp.org>
6890
6891         unlink: Update regarding AIX.
6892         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6893         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6894         Reported by Rainer Tammer.
6895
6896 2010-07-30  Bruno Haible  <bruno@clisp.org>
6897
6898         symlink: Update regarding AIX.
6899         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6900         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6901         Reported by Rainer Tammer.
6902
6903 2010-07-30  Bruno Haible  <bruno@clisp.org>
6904
6905         strndup: Update regarding AIX.
6906         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6907         AIX 7.
6908         Reported by Rainer Tammer.
6909
6910 2010-07-30  Bruno Haible  <bruno@clisp.org>
6911
6912         stat: Update regarding AIX.
6913         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6914         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6915         Reported by Rainer Tammer.
6916
6917 2010-07-30  Bruno Haible  <bruno@clisp.org>
6918
6919         truncl: Fix autoconf test.
6920         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6921         whether truncl works.
6922         Reported by Rainer Tammer.
6923
6924 2010-07-30  Bruno Haible  <bruno@clisp.org>
6925
6926         round: Update regarding AIX.
6927         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6928         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6929         Reported by Rainer Tammer.
6930
6931 2010-07-30  Bruno Haible  <bruno@clisp.org>
6932
6933         rename: Update regarding AIX.
6934         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6935         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6936         Reported by Rainer Tammer.
6937
6938 2010-07-30  Bruno Haible  <bruno@clisp.org>
6939
6940         printf.m4: Update regarding AIX.
6941         * m4/printf.m4: Update comments regarding AIX.
6942         Reported by Rainer Tammer.
6943
6944 2010-07-30  Bruno Haible  <bruno@clisp.org>
6945
6946         iconv: Update regarding AIX.
6947         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6948         AIX 7.
6949         Reported by Rainer Tammer.
6950
6951 2010-07-30  Bruno Haible  <bruno@clisp.org>
6952
6953         getopt: Update regarding AIX.
6954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6955         no on AIX.
6956         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6957         Reported by Rainer Tammer.
6958
6959 2010-07-30  Bruno Haible  <bruno@clisp.org>
6960
6961         ldexpl; Update regarding AIX.
6962         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6963         on AIX 7.
6964         Reported by Rainer Tammer.
6965
6966 2010-07-30  Bruno Haible  <bruno@clisp.org>
6967
6968         frexpl: Update regarding AIX.
6969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6970         on AIX 7.
6971         Reported by Rainer Tammer.
6972
6973 2010-07-30  Bruno Haible  <bruno@clisp.org>
6974
6975         open, fopen: Update regarding AIX.
6976         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6977         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6978         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6979         * doc/posix-functions/fopen.texi: Likewise.
6980         Reported by Rainer Tammer.
6981
6982 2010-07-30  Bruno Haible  <bruno@clisp.org>
6983
6984         chown: Update doc regarding AIX.
6985         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6986         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6987         Reported by Rainer Tammer.
6988
6989 2010-07-30  Eric Blake  <eblake@redhat.com>
6990
6991         strtod: fix bug in replacement function on AIX
6992         * lib/strtod.c (strtod): Special case broken "0x" parse in
6993         underlying strtod.
6994         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6995         * doc/posix-functions/strtod.texi (strtod): Likewise.
6996         Reported by Rainer Tammer.
6997
6998 2010-07-30  Bruno Haible  <bruno@clisp.org>
6999
7000         mbrlen: Fix cross-compilation guess for AIX.
7001         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
7002         guess. Leftover from 2008-12-22.
7003
7004 2010-07-30  Bruno Haible  <bruno@clisp.org>
7005
7006         mbrtowc: Fix cross-compilation guess for AIX.
7007         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
7008         guess. Leftover from 2008-12-21.
7009
7010 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
7011
7012         init.sh: work around trap limitation of some shells
7013         * tests/init.sh (setup_): Move exit trap outside of shell function.
7014
7015 2010-07-29  Eric Blake  <eblake@redhat.com>
7016
7017         strtod: aid debugging
7018         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
7019         understanding why strtod is rejected.
7020
7021 2010-07-28  Bruno Haible  <bruno@clisp.org>
7022
7023         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
7024         * lib/unistr/u8-chr.c: Include <string.h>.
7025         * tests/unistr/test-u8-chr.c: Likewise.
7026         * tests/unistr/test-u16-chr.c: Likewise.
7027         * tests/unistr/test-u32-chr.c: Likewise.
7028         * tests/unistr/test-u8-strchr.c: Likewise.
7029         * tests/unistr/test-u16-strchr.c: Likewise.
7030         * tests/unistr/test-u32-strchr.c: Likewise.
7031         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
7032         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
7033         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
7034         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
7035
7036 2010-07-28  Bruno Haible  <bruno@clisp.org>
7037
7038         Use spaces for indentation, not tabs.
7039         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7040
7041 2010-07-27  Bruno Haible  <bruno@clisp.org>
7042
7043         mbspcasecmp: Fix function specification.
7044         * lib/string.in.h (mbspcasecmp): Fix specification comment.
7045         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
7046         Reported by Eric Blake <eblake@redhat.com>.
7047
7048 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
7049
7050         timespec: use cast and not conditional, as truncation isn't possible
7051         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
7052         instead of a conditional.  Comment about the situation in more detail.
7053         This undoes most of the 2009-10-29 patch.
7054
7055 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
7056
7057         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
7058         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
7059         * lib/unistr/u8-strchr.c: Likewise.
7060         * modules/unistr/u8-chr: Depend on memchr.
7061
7062         unistr/u*-strchr: add tests
7063         * modules/unistr/u8-strchr-tests: New file.
7064         * modules/unistr/u16-strchr-tests: New file.
7065         * modules/unistr/u32-strchr-tests: New file.
7066         * tests/unistr/test-strchr.h: New file.
7067         * tests/unistr/test-u8-strchr.c: New file.
7068         * tests/unistr/test-u16-strchr.c: New file.
7069         * tests/unistr/test-u32-strchr.c: New file.
7070
7071         unistr/u*-chr: test multibyte sequences more
7072         * tests/unistr/test-chr.h: Do complete testing of the characters in the
7073         test vector.
7074         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
7075         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
7076         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
7077
7078         unistr/u*-chr: test multibyte sequences
7079         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
7080
7081         unistr/u*-chr: prepare for multibyte tests
7082         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
7083         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
7084         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
7085         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
7086         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
7087         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
7088
7089 2010-07-18  Bruno Haible  <bruno@clisp.org>
7090
7091         unistr/u8-strchr: Optimize non-ASCII argument case.
7092         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
7093         because the first byte often matches anyway.
7094         Reported by Pádraig Brady <P@draigbrady.com>.
7095
7096 2010-07-15  Karl Berry  <karl@gnu.org>
7097
7098         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
7099
7100 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
7101
7102         getcwd: on Solaris, work better if ancestors are inaccessible
7103         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
7104         buffer and size, try again with a large buffer.  This works better
7105         on Solaris, since its getcwd succeeds even if the path to the root
7106         is inaccessible, and this is helpful in common cases such as .zfs
7107         hidden directories.  Problem reported by J Chapman Flack in
7108         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
7109         Use system getcwd if it's declared, not merely if it's partly
7110         working; use the partly-working test only to avoid needless effort
7111         if the system getcwd fails.
7112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
7113         comment that was already obsolete and is now even more obsolete.
7114         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
7115         now might call strdup.
7116
7117 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
7118
7119         pthread: Add enough so that coreutils/src/sort.c compiles.
7120         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
7121         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
7122         gnulib. Include <sched.h> and <time.h>, as per POSIX.
7123         Include <sys/types.h>, in case it defines pthread_t.
7124         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
7125         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
7126         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
7127         (pthread_rwlockattr_t, pthread_spinlock_t):
7128         New typedefs, if HAVE_PTHREAD_T is not defined.
7129         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
7130         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
7131         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
7132         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
7133         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
7134         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
7135         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
7136         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
7137         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
7138         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
7139         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
7140         New macros.
7141         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
7142         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
7143         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
7144         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
7145         (pthread_spin_unlock): New dummy functions.
7146         (pthread_create): Return EAGAIN; don't set errno.
7147         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
7148         require AC_C_INLINE.
7149         * modules/pthread (Depends-on): Add sched, time.
7150         (pthread.h): Use AM_V_GEN.
7151
7152 2010-07-13  Bruno Haible  <bruno@clisp.org>
7153
7154         striconveh: Don't malloc memory if the result buffer is sufficient.
7155         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
7156         buffer if its size is sufficient.
7157         Reported by Ludovic Courtès <ludo@gnu.org>.
7158
7159 2010-07-13  Bruno Haible  <bruno@clisp.org>
7160
7161         strtod: Add safety check.
7162         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
7163
7164 2010-07-12  Bruno Haible  <bruno@clisp.org>
7165
7166         Unify tests that set gl_cv_func_ldexpl_no_libm.
7167         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
7168         gl_FUNC_LDEXPL.
7169         (gl_FUNC_LDEXPL): Invoke it.
7170         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7171
7172 2010-07-12  Bruno Haible  <bruno@clisp.org>
7173
7174         Unify tests that set gl_cv_func_ldexp_no_libm.
7175         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
7176         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
7177         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
7178         (configure.ac): Simply invoke gl_FUNC_LDEXP.
7179         * modules/strtod (Files): Add m4/ldexp.m4.
7180
7181 2010-07-12  Bruno Haible  <bruno@clisp.org>
7182
7183         Unify tests that set gl_cv_func_frexpl_no_libm.
7184         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
7185         gl_FUNC_FREXPL_NO_LIBM.
7186         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
7187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7188
7189 2010-07-12  Bruno Haible  <bruno@clisp.org>
7190
7191         Unify tests that set gl_cv_func_frexp_no_libm.
7192         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
7193         gl_FUNC_FREXP_NO_LIBM.
7194         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
7195         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7196
7197 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7198
7199         memcoll: clarify sizes versus lengths, document better, and tweak perf
7200         * lib/memcoll.c (strcoll_loop, memcoll0):
7201         Improve quality of descriptive comments.  Name variables
7202         consistently as to whether they are lengths (which do not include
7203         terminating null) versus sizes (which do).
7204         * lib/xmemcoll.c (xmemcoll0): Likewise.
7205         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
7206         returned when s1size == 0; this is easier to compile and saves
7207         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
7208
7209 2010-07-12  Bruno Haible  <bruno@clisp.org>
7210
7211         Tests for module '_Exit'.
7212         * modules/_Exit-tests: New file.
7213         * tests/test-_Exit.sh: New file.
7214         * tests/test-_Exit.c: New file.
7215
7216         New module '_Exit'.
7217         * lib/stdlib.in.h (__attribute__): New macro.
7218         (_Exit): New declaration.
7219         * lib/_Exit.c: New file.
7220         * m4/_Exit.m4: New file.
7221         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
7222         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
7223         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
7224         * modules/_Exit: New file.
7225         * tests/test-stdlib-c++.cc (_Exit): Check signature.
7226         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
7227
7228 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7229
7230         strtod: make it more-accurate typically, and don't require libm
7231         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
7232         Include limits.h.  Don't include string.h.
7233         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
7234         (locale_isspace): New function, so that no casts are needed to
7235         check whether *s is a space.
7236         (ldexp): Provide an unused dummy if not available.
7237         (scale_radix_exp, parse_number, underlying_strtod): New functions.
7238         (strtod): Use them.  This implementation prefers to use the
7239         underlying strtod if available, falling back on our own code
7240         only to fix known bugs.  This is more likely to produce an
7241         accurate result.  Also, it avoids the use of libm functions.
7242         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
7243         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
7244         was absent, but it caused a test failure with coreutils.
7245         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
7246         with libm.
7247         * modules/strtod (Makefile.am, Link): libm is no longer needed.
7248         * modules/strtod-tests (Makefile.am): Likewise.
7249
7250 2010-07-11  Pádraig Brady  <P@draigBrady.com>
7251             Bruno Haible  <bruno@clisp.org>
7252
7253         unistr/u8-strchr: Optimize ASCII argument case.
7254         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
7255
7256 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7257
7258         (x)memcoll: minor tweaks
7259         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
7260         is after the type that it qualifies.
7261         (memcoll0): Likewise.
7262         * lib/memcoll.h (memcoll0): Likewise.
7263         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
7264         * lib/xmemcoll.h (xmemcoll0): Likewise.
7265         * lib/memcoll.c (memcoll0): Correct the comment.  This function
7266         differs from memcoll in that the NUL byte is part of the argument.
7267         Omit the abort-checks, as performance is a real issue here.  Plus,
7268         the checks were wrong anyway (an off-by-one error).  Omit local
7269         variable 'diff', as it's a bit clearer that way.
7270         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
7271         no longer needed.
7272
7273 2010-07-08  Chen Guo <chenguo4@yahoo.com>
7274
7275         (x)memcoll: speedup when input is known to be NUL delimited
7276         * lib/memcoll.c: Include stdlib.
7277         (memcoll0) New function.
7278         (strcoll_loop) New function, refactored for use in both memcoll
7279         and memcoll0.
7280         * lib/memcoll.h: Add prototype for memcoll0.
7281         * lib/xmemcoll.c: (xmemcoll0) New function.
7282         (collate_error) New function, refactored for use in both xmemcoll
7283         and xmemcoll0.
7284         * lib/xmemcoll.h: Add prototype for xmemcoll0.
7285         * m4/memcoll.m4: add inline invocation.
7286
7287 2010-07-06  Pádraig Brady  <P@draigBrady.com>
7288
7289         * build-aux/bootstrap: Remove any local translations
7290         from the translation project synchronization directory,
7291         so that local only translations are not distributed.
7292
7293 2010-07-04  Bruno Haible  <bruno@clisp.org>
7294
7295         fsusage: Clarify which code applies to which platforms.
7296         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
7297         platform.
7298         * lib/fsusage.c (get_fs_usage): Likewise.
7299
7300 2010-07-04  Bruno Haible  <bruno@clisp.org>
7301
7302         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
7303         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
7304         Reported by Martin Lambers <marlam@marlam.de>.
7305
7306 2010-07-04  Jim Meyering  <meyering@redhat.com>
7307
7308         hash: once again explicitly disallow insertion of NULL
7309         * lib/hash.c (hash_insert0): Reinstate just-removed test:
7310         inserting a NULL pointer cannot work with these functions.
7311         Add a comment with details.
7312         This reverts part of the 2010-07-01 commit, 5bef1a35
7313         "hash: extend module to deal with non-pointer keys".
7314
7315 2010-07-01  Bruno Haible  <bruno@clisp.org>
7316
7317         stdbool: Update doc.
7318         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
7319         Info from Christian Weisgerber <naddy@mips.inka.de>.
7320
7321 2010-07-01  Jim Meyering  <meyering@redhat.com>
7322
7323         hash: extend module to deal with non-pointer keys
7324         * lib/hash.c (hash_insert0): New interface, much like hash_insert
7325         but that allows insertion of non-pointer entries.
7326         Do not disallow an ENTRY value of NULL.
7327         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
7328         * lib/hash.h (hash_insert0): Declare.
7329
7330 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7331
7332         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
7333         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
7334         not present (i.e. with autoconf 2.59 and when using gettextize, not
7335         gnulib), require AC_GNU_SOURCE instead.
7336
7337 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
7338
7339         idpriv-drop: Fix tests.
7340         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
7341         not to the test-idpriv-droptemp program.
7342
7343 2010-06-29  Bruno Haible  <bruno@clisp.org>
7344
7345         string: Fix syntax error with g++ 2.96.
7346         * lib/string.in.h (__pure__): Remove definition.
7347         (_GL_ATTRIBUTE_PURE): New macro.
7348         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
7349         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
7350         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7351
7352 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
7353
7354         unitypes: Fix bug introduced on 2010-05-18.
7355         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
7356
7357 2010-06-22  Eric Blake  <eblake@redhat.com>
7358
7359         memmem: slight optimization
7360         * lib/str-two-way.h (critical_factorization): Update comments.
7361         Reduce work during factorization phase.
7362         Reported by Carlos Bueno <carlos@bueno.org>.
7363
7364 2010-06-21  Bruno Haible  <bruno@clisp.org>
7365
7366         Fix HAVE_CALLOC_POSIX misnomer.
7367         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
7368         !HAVE_CALLOC_POSIX.
7369         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
7370         HAVE_CALLOC_POSIX.
7371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
7372         instead of HAVE_CALLOC_POSIX.
7373         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
7374         HAVE_CALLOC_POSIX.
7375
7376         Use modern idiom for calloc() replacement.
7377         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
7378         AC_FUNC_CALLOC.
7379         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
7380         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
7381         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7382         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
7383         (gl_REPLACE_CALLOC): New macro.
7384
7385 2010-06-21  Bruno Haible  <bruno@clisp.org>
7386
7387         Fix HAVE_REALLOC_POSIX misnomer.
7388         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
7389         !HAVE_REALLOC_POSIX.
7390         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
7391         HAVE_REALLOC_POSIX.
7392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
7393         instead of HAVE_REALLOC_POSIX.
7394         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
7395         HAVE_REALLOC_POSIX.
7396
7397         Use modern idiom for realloc() replacement.
7398         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
7399         AC_FUNC_REALLOC.
7400         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
7401         Autoconf's AC_FUNC_REALLOC.
7402         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7403         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
7404         (gl_REPLACE_REALLOC): New macro.
7405         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7406
7407 2010-06-21  Bruno Haible  <bruno@clisp.org>
7408
7409         Fix HAVE_MALLOC_POSIX misnomer.
7410         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
7411         !HAVE_MALLOC_POSIX.
7412         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
7413         HAVE_MALLOC_POSIX.
7414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
7415         instead of HAVE_MALLOC_POSIX.
7416         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
7417         HAVE_MALLOC_POSIX.
7418
7419         Use modern idiom for malloc() replacement.
7420         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
7421         AC_FUNC_MALLOC.
7422         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
7423         Autoconf's AC_FUNC_MALLOC.
7424         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7425         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
7426         (gl_REPLACE_MALLOC): New macro.
7427         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7428
7429 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
7430
7431         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
7432         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
7433         This macro takes 3 arguments, not 4.
7434
7435 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
7436
7437         ipv6: fix detection under mingw
7438         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
7439         in6_addr.
7440
7441 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
7442
7443         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
7444         that strtod() works when cross-compiling to a glibc version known
7445         to work.
7446
7447 2010-06-15  Bruno Haible  <bruno@clisp.org>
7448
7449         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
7450
7451 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
7452
7453         select: Correct timeout.
7454         * lib/select.c (rpl_select): Compute wait_timeout correctly.
7455
7456 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7457
7458         git-version-gen: init shell var to avoid env var influence
7459         * build-aux/git-version-gen (v): Init shell var to empty.
7460
7461 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7462
7463         priv-set: Don't assume that priv.h exists merely because getppriv does.
7464         See Jan Andersen's bug report about AIX 5L in
7465         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
7466         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
7467         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
7468         * lib/priv-set.h: Likewise.
7469         * tests/test-priv-set.c: Likewise.
7470
7471 2010-06-13  Bruno Haible  <bruno@clisp.org>
7472
7473         relocatable: Make it easier to test whether to install wrappers.
7474         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
7475         RELOCATABLE_VIA_WRAPPER.
7476
7477 2010-06-13  Bruno Haible  <bruno@clisp.org>
7478
7479         gnulib-tool: Display specified modules and dependencies differently.
7480         * gnulib-tool (func_show_module_list): New function.
7481         (func_import, func_create_testdir): Invoke it.
7482         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7483
7484 2010-06-13  Bruno Haible  <bruno@clisp.org>
7485
7486         gnulib-tool: Align code of func_import and func_create_testdir.
7487         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
7488         specified_modules.
7489
7490 2010-06-12  Jim Meyering  <meyering@redhat.com>
7491
7492         test-inttostr: avoid spurious failure on Solaris 9
7493         * tests/test-inttostr.c (main): Skip the test when snprintf fails
7494         to accept "%ju".  Reported by Bruno Haible.
7495
7496 2010-06-11  Jim Meyering  <meyering@redhat.com>
7497
7498         test-sys_socket: mark variables as used more readably
7499         * tests/test-sys_socket.c (main): Mark otherwise unused variables
7500         as "used" explicitly via (void) statement casts.  This is more
7501         readable than using them in an artificial return expression.
7502         Suggestion from Bruno Haible.
7503
7504 2010-06-11  Bruno Haible  <bruno@clisp.org>
7505
7506         Avoid some more warnings from "gcc -Wwrite-strings".
7507         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
7508         to 'const char *'.
7509         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
7510         * tests/test-c-strcasestr.c (main): Likewise.
7511         * tests/test-mbscasestr1.c (main): Likewise.
7512         * tests/test-mbscasestr2.c (main): Likewise.
7513         * tests/test-memmem.c (main): Likewise.
7514         * tests/test-strstr.c (main): Likewise.
7515         * tests/test-strcasestr.c (main): Likewise.
7516
7517 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7518
7519         init.sh: change framework_failure_ to fail with status 99, not 1
7520         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
7521         automake's parallel-tests rule that this is an unexpected failure,
7522         even if the test is listed in XFAIL_TESTS.
7523
7524 2010-06-11  Jim Meyering  <meyering@redhat.com>
7525
7526         test-inttostr: avoid warnings about 4-6KB literal strings
7527         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
7528         Include "macros.h", for its definition of ASSERT.
7529         (CK): s/assert/ASSERT/
7530         * modules/inttostr-tests (Files): Add macros.h.
7531
7532         init.sh: don't use $ME_ or skip_ before they are defined
7533         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
7534         their first uses.  Also hoist their companions: warn_, fail_,
7535         framework_failure_, $stderr_fileno.  Prompted by a patch from
7536         Stefano Lattarini.
7537
7538         test-sys_socket: avoid set-but-not-used warnings from gcc
7539         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
7540         avoid warning about set-but-not-used variables.
7541
7542         test-xvasprintf: avoid 'const' discard warnings
7543         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
7544         "const" when assigning from literal strings.
7545         (test_xasprintf): Add "void" in function argument list to placate
7546         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
7547
7548         tests: avoid compilation warnings in argmatch and exclude tests...
7549         in packages that define ARGMATCH_DIE_DECL, like coreutils.
7550         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
7551         Since it always exits, declare with the "noreturn" attribute.
7552         * tests/test-argmatch.c: Likewise.
7553
7554         tests: avoid 'const' discard warnings in mbsstr tests
7555         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
7556         * tests/test-mbsstr2.c (main): Likewise.
7557
7558         test-verify: avoid warning from gcc's -Wmissing-declarations
7559         * tests/test-verify.c (function): Declare to be static.
7560
7561         test-inttostr.c: include <string.h> for use of strcmp
7562         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
7563
7564         test-linkat: avoid failed assertion on "other" architectures
7565         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
7566         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
7567         sparc: https://bugs.launchpad.net/bugs/591968
7568
7569 2010-06-11  Jim Meyering  <meyering@redhat.com>
7570
7571         printf.m4: avoid autoconf's "Expanded Before Required" warning
7572         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7573         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7574         autoconf warning.
7575
7576 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7577
7578         Replacement header templates are now named with ".in", not "_".
7579         * doc/gnulib-intro.texi: Correct.
7580
7581 2010-06-10  Jim Meyering  <meyering@redhat.com>
7582
7583         inttostr-tests: depend on snprintf, not snprintf-posix
7584         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7585         snprintf-posix, to avoid this aclocal failure:
7586           missing file gnulib-tests/vasnprintf.c
7587           configure.ac:45: error: expected source file, required through \
7588           AC_LIBSOURCES, not found
7589
7590 2010-06-10  Jim Meyering  <meyering@redhat.com>
7591
7592         inttostr: add a new function, inttostr, and tests
7593         The namesake function was not available.  The existence of the
7594         template file, inttostr.c makes its addition nontrivial.
7595         * lib/anytostr.c: Rename from inttostr.c.
7596         (anytostr): Rename from inttostr.
7597         * lib/inttostr.c: New file.
7598         * modules/inttostr (Files): Add anytostr.c.
7599         (Makefile.am): Set lib_SOURCES instead of ...
7600         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7601         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7602         * lib/offtostr.c: Likewise.
7603         * lib/uinttostr.c: Likewise.
7604         * lib/umaxtostr.c: Likewise.
7605         * modules/inttostr-tests: New file.
7606         * tests/test-inttostr.c: New file.  Test these functions.
7607
7608 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
7609             Bruno Haible  <bruno@clisp.org>
7610
7611         Add "Extending Gnulib" chapter to manual.
7612         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
7613         chapter.
7614         (Extending Gnulib): New chapter.
7615         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
7616         chapter.
7617
7618 2010-06-09  Bruno Haible  <bruno@clisp.org>
7619
7620         Avoid relocwrapper link errors due to gnulib replacement functions.
7621         * lib/areadlink.c: Use the system's malloc, realloc functions.
7622         (areadlink): Set errno to ENOMEM explicitly.
7623         * modules/areadlink (Depends-on): Remove malloc-posix.
7624         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7625
7626 2010-06-09  Bruno Haible  <bruno@clisp.org>
7627
7628         Avoid relocwrapper link errors due to gnulib replacement functions.
7629         * lib/canonicalize-lgpl.c: Use the system's malloc function.
7630         * lib/malloca.c: Likewise.
7631         * lib/relocatable.c: Likewise.
7632         * lib/progreloc.c: Use the system's malloc, sprintf functions.
7633         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
7634         * lib/setenv.c: Use the system's malloc, realloc functions.
7635         * lib/strerror.c: Use the system's sprintf function.
7636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7637
7638 2010-06-04  Bruno Haible  <bruno@clisp.org>
7639
7640         Prefer documented low-level autoconf macro names.
7641         * m4/lib-link.m4: Use m4_translit instead of translit.
7642         * m4/environ.m4: Likewise.
7643         * m4/mathfunc.m4: Likewise.
7644         * m4/onceonly.m4: Likewise.
7645         * m4/stdint.m4: Likewise.
7646         Suggested by Eric Blake.
7647
7648 2010-06-04  Martin Lambers  <marlam@marlam.de>
7649             Bruno Haible  <bruno@clisp.org>
7650
7651         havelib: Allow library names with '+' characters.
7652         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7653         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
7654
7655 2010-06-09  Bruno Haible  <bruno@clisp.org>
7656
7657         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
7658         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
7659         realloc failed.
7660
7661 2010-06-08  Peter Simons  <simons@cryp.to>
7662
7663         maint.mk: make the news-check rule more configurable
7664         * top/maint.mk (news-check-lines-spec) New variable.
7665         (news-check): Use "sed -n 1,10p" in place of "head".
7666
7667 2010-06-07  Jim Meyering  <meyering@redhat.com>
7668
7669         do-release-commit-and-tag: fix typo in --help
7670         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
7671
7672         regex: avoid new dead-code warning with gcc-4.6.0
7673         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
7674         if-block containing a while-loop.  It's been unused for at least
7675         5 years.
7676
7677 2010-06-05  Bruno Haible  <bruno@clisp.org>
7678
7679         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
7680         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
7681
7682 2010-06-04  Bruno Haible  <bruno@clisp.org>
7683
7684         Update to GNU gettext 0.18.1.
7685         * modules/gettext (configure.ac): Require gettext infrastructure from
7686         version 0.18.1.
7687
7688 2010-06-03  Bruno Haible  <bruno@clisp.org>
7689
7690         Don't use AC_LIBOBJ with file names in subdirectories.
7691         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
7692         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
7693         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
7694         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
7695         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
7696         gl_LIBUNISTRING_LIBSOURCE.
7697         (Makefile.am): Augment lib_SOURCES here, conditionally.
7698         * NEWS: Drop requirement for Automake option 'subdir-objects'.
7699
7700 2010-06-03  Bruno Haible  <bruno@clisp.org>
7701
7702         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
7703         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
7704         expansion does not end with a newline.
7705         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
7706         unnecessary newline.
7707
7708 2010-06-03  Bruno Haible  <bruno@clisp.org>
7709
7710         Reduce dependencies.
7711         * tests/test-quotearg.h: New file, extracted from
7712         tests/test-quotearg.c.
7713         * tests/test-quotearg-simple.c: New file, extracted from
7714         tests/test-quotearg.c.
7715         * tests/test-quotearg.c: Don't include <ctype.h>.
7716         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
7717         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
7718         use_quote_double_quotes, use_quotearg_colon): Moved to
7719         tests/test-quotearg.h.
7720         (results_g, flag_results, custom_quotes, custom_results): Moved
7721         to tests/test-quotearg-simple.c.
7722         (main): Moved the part that does not depend on gettext to
7723         tests/test-quotearg-simple.c. Return 77 if the test cannot be
7724         performed.
7725         * modules/quotearg-simple: New file.
7726         * modules/quotearg-simple-tests: New file.
7727         * modules/quotearg (Depends-on): Add quotearg-simple.
7728         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
7729         (Files): Add tests/test-quotearg.h.
7730         Reported by Paolo Bonzini.
7731
7732 2010-06-03  Bruno Haible  <bruno@clisp.org>
7733
7734         Reduce dependencies.
7735         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7736
7737 2010-06-03  Bruno Haible  <bruno@clisp.org>
7738
7739         time: Undefine more broken macros.
7740         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7741         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7742         Reported by Eric Blake.
7743
7744 2010-06-03  Bruno Haible  <bruno@clisp.org>
7745
7746         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7747         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7748         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7749         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7750         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7751         Reported by Ludovic Courtès <ludo@gnu.org>.
7752
7753 2010-06-02  Eric Blake  <eblake@redhat.com>
7754
7755         time: work with mingw + pthreads-win32 library
7756         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7757         if timespec is defined only in pthread.h.
7758         * modules/time (Makefile.am): Substitute it.
7759         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7760         <pthread.h>, when needed.
7761         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7762         from the library.
7763
7764 2010-05-31  Bruno Haible  <bruno@clisp.org>
7765
7766         Avoid expanding two macros in the wrong order.
7767         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7768         gl_LIBUNISTRING if it is defined.
7769         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7770         autoconf >= 2.64.
7771         Reported by Ludovic Courtès <ludo@gnu.org>.
7772
7773 2010-05-27  Jim Meyering  <meyering@redhat.com>
7774
7775         maint.mk: also prohibit "#undef" of always-defined symbols
7776         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7777         Allow more than one space before the symbol name.
7778         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7779         the regexp uses alternation.
7780
7781 2010-05-26  Eric Blake  <eblake@redhat.com>
7782
7783         maint.mk: avoid echo -e
7784         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7785         Convert all uses of echo -* to printf.
7786         Reported by Matthias Bolte.
7787
7788 2010-05-25  Bruno Haible  <bruno@clisp.org>
7789
7790         Update to GNU gettext 0.18, part 2.
7791         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7792         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7793
7794 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7795
7796         Add missing include in test-pwrite.c.
7797         * tests/test-pwrite.c: Include string.h, for strcmp.
7798
7799 2010-05-24  Bruno Haible  <bruno@clisp.org>
7800
7801         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7802
7803 2010-05-24  Bruno Haible  <bruno@clisp.org>
7804
7805         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7806         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7807         iconveh_error argument.
7808         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7809         U_STRCONV_TO_LOCALE.
7810         * lib/unistr/u16-strcoll.c: Likewise.
7811         * lib/unistr/u32-strcoll.c: Likewise.
7812         * modules/unistr/u8-strcoll (Depends-on): Add
7813         uniconv/u8-strconv-to-enc, localcharset. Remove
7814         uniconv/u8-strconv-to-locale.
7815         (configure.ac): Bump version number.
7816         * modules/unistr/u16-strcoll (Depends-on): Add
7817         uniconv/u16-strconv-to-enc, localcharset. Remove
7818         uniconv/u16-strconv-to-locale.
7819         (configure.ac): Bump version number.
7820         * modules/unistr/u32-strcoll (Depends-on): Add
7821         uniconv/u32-strconv-to-enc, localcharset. Remove
7822         uniconv/u32-strconv-to-locale.
7823         (configure.ac): Bump version number.
7824
7825 2010-05-24  Bruno Haible  <bruno@clisp.org>
7826
7827         Avoid a test failure on NetBSD 5.0.
7828         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7829         an iconv() bug.
7830
7831 2010-05-24  Bruno Haible  <bruno@clisp.org>
7832
7833         Adjust #include directive style.
7834         * modules/regex (Includes): Recommend to write <regex.h>.
7835
7836 2010-05-24  Bruno Haible  <bruno@clisp.org>
7837
7838         regex: Don't require alloca.
7839         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7840         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7841         only inside if (0).
7842
7843 2010-05-23  Jim Meyering  <meyering@redhat.com>
7844
7845         test-renameat.c: include <sys/stat.h>
7846         * tests/test-renameat.c: Include <sys/stat.h>; required for
7847         definition of S_IS* macros.
7848
7849 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7850
7851         Update maintainer documentation for 'relocatable-prog' module.
7852         * doc/relocatable-maint.texi: Update.
7853         Comments by Bruno Haible.
7854
7855 2010-05-23  Bruno Haible  <bruno@clisp.org>
7856
7857         git-merge-changelog: Enable --split-merged-entry by default.
7858         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7859         (usage): Don't mention this option any more.
7860         Reported by Ralf Wildenhues.
7861
7862 2010-05-23  Jim Meyering  <meyering@redhat.com>
7863
7864         test-pwrite: do not leave behind a test file named "out"
7865         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7866         The trivial-looking use of init.sh is really necessary.
7867         It ensures that the temporary file, "out", is created in
7868         a temporary directory, and removed upon termination.
7869         * tests/test-pwrite.sh: Re-add file.
7870         * modules/pwrite-tests: Reference it.
7871
7872 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7873
7874         Fix output redirection buglet in init.sh.
7875         * tests/init.sh: Fix redirection of stderr.
7876
7877 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7878
7879         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7880
7881 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7882
7883         * modules/valgrind-tests: New file.
7884         * m4/valgrind-tests.m4: New file.
7885         * doc/valgrind-tests.texi: New file.
7886         * doc/gnulib.texi (Running self-tests under valgrind): New
7887         section.
7888
7889 2010-05-19  Bruno Haible  <bruno@clisp.org>
7890
7891         Clean up dead code in recent commit.
7892         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7893         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7894         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7895         Suggested by Paolo Bonzini.
7896
7897 2010-05-19  Bruno Haible  <bruno@clisp.org>
7898
7899         Avoid valgrind error reports from libunistring.
7900         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7901         * modules/libunistring (Files): Add it.
7902         * modules/libunistring-optional (Files): Likewise.
7903
7904 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7905             Bruno Haible  <bruno@clisp.org>
7906
7907         New module 'libunistring-optional'.
7908         * modules/libunistring-optional: New file.
7909         * m4/libunistring-base.m4: New file.
7910         * m4/libunistring-optional.m4: New file.
7911         * lib/unicase.in.h: Renamed from lib/unicase.h.
7912         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7913         * lib/unictype.in.h: Renamed from lib/unictype.h.
7914         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7915         * lib/uniname.in.h: Renamed from lib/uniname.h.
7916         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7917         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7918         * lib/unistr.in.h: Renamed from lib/unistr.h.
7919         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7920         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7921         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7922         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7923         gl_LIBUNISTRING. If the library was found, determine the installed
7924         version and set LIBUNISTRING_VERSION.
7925         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7926         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7927         handle a configuration option --with-included-libunistring.
7928         * modules/libunistring (Files): Add m4/absolute-header.m4.
7929         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7930         Add m4/libunistring-base.m4.
7931         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7932         (Makefile.am): Build unicase.h from unicase.in.h.
7933         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7934         Add m4/libunistring-base.m4.
7935         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7936         (Makefile.am): Build uniconv.h from uniconv.in.h.
7937         * modules/unictype/base (Files): Use unictype.in.h instead of
7938         unictype.h. Add m4/libunistring-base.m4.
7939         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7940         (Makefile.am): Build unictype.h from unictype.in.h.
7941         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7942         Add m4/libunistring-base.m4.
7943         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7944         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7945         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7946         Add m4/libunistring-base.m4.
7947         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7948         (Makefile.am): Build uniname.h from uniname.in.h.
7949         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7950         Add m4/libunistring-base.m4.
7951         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7952         (Makefile.am): Build uninorm.h from uninorm.in.h.
7953         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7954         unistdio.h. Add m4/libunistring-base.m4.
7955         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7956         (Makefile.am): Build unistdio.h from unistdio.in.h.
7957         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7958         Add m4/libunistring-base.m4.
7959         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7960         (Makefile.am): Build unistr.h from unistr.in.h.
7961         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7962         Add m4/libunistring-base.m4.
7963         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7964         (Makefile.am): Build unitypes.h from unitypes.in.h.
7965         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7966         Add m4/libunistring-base.m4.
7967         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7968         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7969         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7970         uniwidth.h. Add m4/libunistring-base.m4.
7971         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7972         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7973         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7974         instead of augmenting lib_SOURCES.
7975         * modules/unicase/empty-suffix-context: Likewise.
7976         * modules/unicase/locale-language: Likewise.
7977         * modules/unicase/tolower: Likewise.
7978         * modules/unicase/totitle: Likewise.
7979         * modules/unicase/toupper: Likewise.
7980         * modules/unicase/u8-casecmp: Likewise.
7981         * modules/unicase/u8-casecoll: Likewise.
7982         * modules/unicase/u8-casefold: Likewise.
7983         * modules/unicase/u8-casexfrm: Likewise.
7984         * modules/unicase/u8-ct-casefold: Likewise.
7985         * modules/unicase/u8-ct-tolower: Likewise.
7986         * modules/unicase/u8-ct-totitle: Likewise.
7987         * modules/unicase/u8-ct-toupper: Likewise.
7988         * modules/unicase/u8-is-cased: Likewise.
7989         * modules/unicase/u8-is-casefolded: Likewise.
7990         * modules/unicase/u8-is-lowercase: Likewise.
7991         * modules/unicase/u8-is-titlecase: Likewise.
7992         * modules/unicase/u8-is-uppercase: Likewise.
7993         * modules/unicase/u8-prefix-context: Likewise.
7994         * modules/unicase/u8-suffix-context: Likewise.
7995         * modules/unicase/u8-tolower: Likewise.
7996         * modules/unicase/u8-totitle: Likewise.
7997         * modules/unicase/u8-toupper: Likewise.
7998         * modules/unicase/u16-casecmp: Likewise.
7999         * modules/unicase/u16-casecoll: Likewise.
8000         * modules/unicase/u16-casefold: Likewise.
8001         * modules/unicase/u16-casexfrm: Likewise.
8002         * modules/unicase/u16-ct-casefold: Likewise.
8003         * modules/unicase/u16-ct-tolower: Likewise.
8004         * modules/unicase/u16-ct-totitle: Likewise.
8005         * modules/unicase/u16-ct-toupper: Likewise.
8006         * modules/unicase/u16-is-cased: Likewise.
8007         * modules/unicase/u16-is-casefolded: Likewise.
8008         * modules/unicase/u16-is-lowercase: Likewise.
8009         * modules/unicase/u16-is-titlecase: Likewise.
8010         * modules/unicase/u16-is-uppercase: Likewise.
8011         * modules/unicase/u16-prefix-context: Likewise.
8012         * modules/unicase/u16-suffix-context: Likewise.
8013         * modules/unicase/u16-tolower: Likewise.
8014         * modules/unicase/u16-totitle: Likewise.
8015         * modules/unicase/u16-toupper: Likewise.
8016         * modules/unicase/u32-casecmp: Likewise.
8017         * modules/unicase/u32-casecoll: Likewise.
8018         * modules/unicase/u32-casefold: Likewise.
8019         * modules/unicase/u32-casexfrm: Likewise.
8020         * modules/unicase/u32-ct-casefold: Likewise.
8021         * modules/unicase/u32-ct-tolower: Likewise.
8022         * modules/unicase/u32-ct-totitle: Likewise.
8023         * modules/unicase/u32-ct-toupper: Likewise.
8024         * modules/unicase/u32-is-cased: Likewise.
8025         * modules/unicase/u32-is-casefolded: Likewise.
8026         * modules/unicase/u32-is-lowercase: Likewise.
8027         * modules/unicase/u32-is-titlecase: Likewise.
8028         * modules/unicase/u32-is-uppercase: Likewise.
8029         * modules/unicase/u32-prefix-context: Likewise.
8030         * modules/unicase/u32-suffix-context: Likewise.
8031         * modules/unicase/u32-tolower: Likewise.
8032         * modules/unicase/u32-totitle: Likewise.
8033         * modules/unicase/u32-toupper: Likewise.
8034         * modules/unicase/ulc-casecmp: Likewise.
8035         * modules/unicase/ulc-casecoll: Likewise.
8036         * modules/unicase/ulc-casexfrm: Likewise.
8037         * modules/uniconv/u8-conv-from-enc: Likewise.
8038         * modules/uniconv/u8-conv-to-enc: Likewise.
8039         * modules/uniconv/u8-strconv-from-enc: Likewise.
8040         * modules/uniconv/u8-strconv-from-locale: Likewise.
8041         * modules/uniconv/u8-strconv-to-enc: Likewise.
8042         * modules/uniconv/u8-strconv-to-locale: Likewise.
8043         * modules/uniconv/u16-conv-from-enc: Likewise.
8044         * modules/uniconv/u16-conv-to-enc: Likewise.
8045         * modules/uniconv/u16-strconv-from-enc: Likewise.
8046         * modules/uniconv/u16-strconv-from-locale: Likewise.
8047         * modules/uniconv/u16-strconv-to-enc: Likewise.
8048         * modules/uniconv/u16-strconv-to-locale: Likewise.
8049         * modules/uniconv/u32-conv-from-enc: Likewise.
8050         * modules/uniconv/u32-conv-to-enc: Likewise.
8051         * modules/uniconv/u32-strconv-from-enc: Likewise.
8052         * modules/uniconv/u32-strconv-from-locale: Likewise.
8053         * modules/uniconv/u32-strconv-to-enc: Likewise.
8054         * modules/uniconv/u32-strconv-to-locale: Likewise.
8055         * modules/unictype/bidicategory-byname: Likewise.
8056         * modules/unictype/bidicategory-name: Likewise.
8057         * modules/unictype/bidicategory-of: Likewise.
8058         * modules/unictype/bidicategory-test: Likewise.
8059         * modules/unictype/block-list: Likewise.
8060         * modules/unictype/block-test: Likewise.
8061         * modules/unictype/category-C: Likewise.
8062         * modules/unictype/category-Cc: Likewise.
8063         * modules/unictype/category-Cf: Likewise.
8064         * modules/unictype/category-Cn: Likewise.
8065         * modules/unictype/category-Co: Likewise.
8066         * modules/unictype/category-Cs: Likewise.
8067         * modules/unictype/category-L: Likewise.
8068         * modules/unictype/category-Ll: Likewise.
8069         * modules/unictype/category-Lm: Likewise.
8070         * modules/unictype/category-Lo: Likewise.
8071         * modules/unictype/category-Lt: Likewise.
8072         * modules/unictype/category-Lu: Likewise.
8073         * modules/unictype/category-M: Likewise.
8074         * modules/unictype/category-Mc: Likewise.
8075         * modules/unictype/category-Me: Likewise.
8076         * modules/unictype/category-Mn: Likewise.
8077         * modules/unictype/category-N: Likewise.
8078         * modules/unictype/category-Nd: Likewise.
8079         * modules/unictype/category-Nl: Likewise.
8080         * modules/unictype/category-No: Likewise.
8081         * modules/unictype/category-P: Likewise.
8082         * modules/unictype/category-Pc: Likewise.
8083         * modules/unictype/category-Pd: Likewise.
8084         * modules/unictype/category-Pe: Likewise.
8085         * modules/unictype/category-Pf: Likewise.
8086         * modules/unictype/category-Pi: Likewise.
8087         * modules/unictype/category-Po: Likewise.
8088         * modules/unictype/category-Ps: Likewise.
8089         * modules/unictype/category-S: Likewise.
8090         * modules/unictype/category-Sc: Likewise.
8091         * modules/unictype/category-Sk: Likewise.
8092         * modules/unictype/category-Sm: Likewise.
8093         * modules/unictype/category-So: Likewise.
8094         * modules/unictype/category-Z: Likewise.
8095         * modules/unictype/category-Zl: Likewise.
8096         * modules/unictype/category-Zp: Likewise.
8097         * modules/unictype/category-Zs: Likewise.
8098         * modules/unictype/category-and: Likewise.
8099         * modules/unictype/category-and-not: Likewise.
8100         * modules/unictype/category-byname: Likewise.
8101         * modules/unictype/category-name: Likewise.
8102         * modules/unictype/category-none: Likewise.
8103         * modules/unictype/category-of: Likewise.
8104         * modules/unictype/category-or: Likewise.
8105         * modules/unictype/category-test: Likewise.
8106         * modules/unictype/combining-class: Likewise.
8107         * modules/unictype/ctype-alnum: Likewise.
8108         * modules/unictype/ctype-alpha: Likewise.
8109         * modules/unictype/ctype-blank: Likewise.
8110         * modules/unictype/ctype-cntrl: Likewise.
8111         * modules/unictype/ctype-digit: Likewise.
8112         * modules/unictype/ctype-graph: Likewise.
8113         * modules/unictype/ctype-lower: Likewise.
8114         * modules/unictype/ctype-print: Likewise.
8115         * modules/unictype/ctype-punct: Likewise.
8116         * modules/unictype/ctype-space: Likewise.
8117         * modules/unictype/ctype-upper: Likewise.
8118         * modules/unictype/ctype-xdigit: Likewise.
8119         * modules/unictype/decimal-digit: Likewise.
8120         * modules/unictype/digit: Likewise.
8121         * modules/unictype/mirror: Likewise.
8122         * modules/unictype/numeric: Likewise.
8123         * modules/unictype/property-alphabetic: Likewise.
8124         * modules/unictype/property-ascii-hex-digit: Likewise.
8125         * modules/unictype/property-bidi-arabic-digit: Likewise.
8126         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
8127         * modules/unictype/property-bidi-block-separator: Likewise.
8128         * modules/unictype/property-bidi-boundary-neutral: Likewise.
8129         * modules/unictype/property-bidi-common-separator: Likewise.
8130         * modules/unictype/property-bidi-control: Likewise.
8131         * modules/unictype/property-bidi-embedding-or-override: Likewise.
8132         * modules/unictype/property-bidi-eur-num-separator: Likewise.
8133         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
8134         * modules/unictype/property-bidi-european-digit: Likewise.
8135         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
8136         * modules/unictype/property-bidi-left-to-right: Likewise.
8137         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
8138         * modules/unictype/property-bidi-other-neutral: Likewise.
8139         * modules/unictype/property-bidi-pdf: Likewise.
8140         * modules/unictype/property-bidi-segment-separator: Likewise.
8141         * modules/unictype/property-bidi-whitespace: Likewise.
8142         * modules/unictype/property-byname: Likewise.
8143         * modules/unictype/property-combining: Likewise.
8144         * modules/unictype/property-composite: Likewise.
8145         * modules/unictype/property-currency-symbol: Likewise.
8146         * modules/unictype/property-dash: Likewise.
8147         * modules/unictype/property-decimal-digit: Likewise.
8148         * modules/unictype/property-default-ignorable-code-point: Likewise.
8149         * modules/unictype/property-deprecated: Likewise.
8150         * modules/unictype/property-diacritic: Likewise.
8151         * modules/unictype/property-extender: Likewise.
8152         * modules/unictype/property-format-control: Likewise.
8153         * modules/unictype/property-grapheme-base: Likewise.
8154         * modules/unictype/property-grapheme-extend: Likewise.
8155         * modules/unictype/property-grapheme-link: Likewise.
8156         * modules/unictype/property-hex-digit: Likewise.
8157         * modules/unictype/property-hyphen: Likewise.
8158         * modules/unictype/property-id-continue: Likewise.
8159         * modules/unictype/property-id-start: Likewise.
8160         * modules/unictype/property-ideographic: Likewise.
8161         * modules/unictype/property-ids-binary-operator: Likewise.
8162         * modules/unictype/property-ids-trinary-operator: Likewise.
8163         * modules/unictype/property-ignorable-control: Likewise.
8164         * modules/unictype/property-iso-control: Likewise.
8165         * modules/unictype/property-join-control: Likewise.
8166         * modules/unictype/property-left-of-pair: Likewise.
8167         * modules/unictype/property-line-separator: Likewise.
8168         * modules/unictype/property-logical-order-exception: Likewise.
8169         * modules/unictype/property-lowercase: Likewise.
8170         * modules/unictype/property-math: Likewise.
8171         * modules/unictype/property-non-break: Likewise.
8172         * modules/unictype/property-not-a-character: Likewise.
8173         * modules/unictype/property-numeric: Likewise.
8174         * modules/unictype/property-other-alphabetic: Likewise.
8175         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
8176         * modules/unictype/property-other-grapheme-extend: Likewise.
8177         * modules/unictype/property-other-id-continue: Likewise.
8178         * modules/unictype/property-other-id-start: Likewise.
8179         * modules/unictype/property-other-lowercase: Likewise.
8180         * modules/unictype/property-other-math: Likewise.
8181         * modules/unictype/property-other-uppercase: Likewise.
8182         * modules/unictype/property-paired-punctuation: Likewise.
8183         * modules/unictype/property-paragraph-separator: Likewise.
8184         * modules/unictype/property-pattern-syntax: Likewise.
8185         * modules/unictype/property-pattern-white-space: Likewise.
8186         * modules/unictype/property-private-use: Likewise.
8187         * modules/unictype/property-punctuation: Likewise.
8188         * modules/unictype/property-quotation-mark: Likewise.
8189         * modules/unictype/property-radical: Likewise.
8190         * modules/unictype/property-sentence-terminal: Likewise.
8191         * modules/unictype/property-soft-dotted: Likewise.
8192         * modules/unictype/property-space: Likewise.
8193         * modules/unictype/property-terminal-punctuation: Likewise.
8194         * modules/unictype/property-test: Likewise.
8195         * modules/unictype/property-titlecase: Likewise.
8196         * modules/unictype/property-unassigned-code-value: Likewise.
8197         * modules/unictype/property-unified-ideograph: Likewise.
8198         * modules/unictype/property-uppercase: Likewise.
8199         * modules/unictype/property-variation-selector: Likewise.
8200         * modules/unictype/property-white-space: Likewise.
8201         * modules/unictype/property-xid-continue: Likewise.
8202         * modules/unictype/property-xid-start: Likewise.
8203         * modules/unictype/property-zero-width: Likewise.
8204         * modules/unictype/scripts: Likewise.
8205         * modules/unictype/syntax-c-ident: Likewise.
8206         * modules/unictype/syntax-c-whitespace: Likewise.
8207         * modules/unictype/syntax-java-ident: Likewise.
8208         * modules/unictype/syntax-java-whitespace: Likewise.
8209         * modules/unilbrk/u8-possible-linebreaks: Likewise.
8210         * modules/unilbrk/u8-width-linebreaks: Likewise.
8211         * modules/unilbrk/u16-possible-linebreaks: Likewise.
8212         * modules/unilbrk/u16-width-linebreaks: Likewise.
8213         * modules/unilbrk/u32-possible-linebreaks: Likewise.
8214         * modules/unilbrk/u32-width-linebreaks: Likewise.
8215         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
8216         * modules/unilbrk/ulc-width-linebreaks: Likewise.
8217         * modules/uniname/uniname: Likewise.
8218         * modules/uninorm/canonical-decomposition: Likewise.
8219         * modules/uninorm/composition: Likewise.
8220         * modules/uninorm/decomposing-form: Likewise.
8221         * modules/uninorm/decomposition: Likewise.
8222         * modules/uninorm/filter: Likewise.
8223         * modules/uninorm/nfc: Likewise.
8224         * modules/uninorm/nfd: Likewise.
8225         * modules/uninorm/nfkc: Likewise.
8226         * modules/uninorm/nfkd: Likewise.
8227         * modules/uninorm/u8-normalize: Likewise.
8228         * modules/uninorm/u8-normcmp: Likewise.
8229         * modules/uninorm/u8-normcoll: Likewise.
8230         * modules/uninorm/u8-normxfrm: Likewise.
8231         * modules/uninorm/u16-normalize: Likewise.
8232         * modules/uninorm/u16-normcmp: Likewise.
8233         * modules/uninorm/u16-normcoll: Likewise.
8234         * modules/uninorm/u16-normxfrm: Likewise.
8235         * modules/uninorm/u32-normalize: Likewise.
8236         * modules/uninorm/u32-normcmp: Likewise.
8237         * modules/uninorm/u32-normcoll: Likewise.
8238         * modules/uninorm/u32-normxfrm: Likewise.
8239         * modules/unistdio/u8-asnprintf: Likewise.
8240         * modules/unistdio/u8-asprintf: Likewise.
8241         * modules/unistdio/u8-snprintf: Likewise.
8242         * modules/unistdio/u8-sprintf: Likewise.
8243         * modules/unistdio/u8-u8-asnprintf: Likewise.
8244         * modules/unistdio/u8-u8-asprintf: Likewise.
8245         * modules/unistdio/u8-u8-snprintf: Likewise.
8246         * modules/unistdio/u8-u8-sprintf: Likewise.
8247         * modules/unistdio/u8-u8-vasnprintf: Likewise.
8248         * modules/unistdio/u8-u8-vasprintf: Likewise.
8249         * modules/unistdio/u8-u8-vsnprintf: Likewise.
8250         * modules/unistdio/u8-u8-vsprintf: Likewise.
8251         * modules/unistdio/u8-vasnprintf: Likewise.
8252         * modules/unistdio/u8-vasprintf: Likewise.
8253         * modules/unistdio/u8-vsnprintf: Likewise.
8254         * modules/unistdio/u8-vsprintf: Likewise.
8255         * modules/unistdio/u16-asnprintf: Likewise.
8256         * modules/unistdio/u16-asprintf: Likewise.
8257         * modules/unistdio/u16-snprintf: Likewise.
8258         * modules/unistdio/u16-sprintf: Likewise.
8259         * modules/unistdio/u16-u16-asnprintf: Likewise.
8260         * modules/unistdio/u16-u16-asprintf: Likewise.
8261         * modules/unistdio/u16-u16-snprintf: Likewise.
8262         * modules/unistdio/u16-u16-sprintf: Likewise.
8263         * modules/unistdio/u16-u16-vasnprintf: Likewise.
8264         * modules/unistdio/u16-u16-vasprintf: Likewise.
8265         * modules/unistdio/u16-u16-vsnprintf: Likewise.
8266         * modules/unistdio/u16-u16-vsprintf: Likewise.
8267         * modules/unistdio/u16-vasnprintf: Likewise.
8268         * modules/unistdio/u16-vasprintf: Likewise.
8269         * modules/unistdio/u16-vsnprintf: Likewise.
8270         * modules/unistdio/u16-vsprintf: Likewise.
8271         * modules/unistdio/u32-asnprintf: Likewise.
8272         * modules/unistdio/u32-asprintf: Likewise.
8273         * modules/unistdio/u32-snprintf: Likewise.
8274         * modules/unistdio/u32-sprintf: Likewise.
8275         * modules/unistdio/u32-u32-asnprintf: Likewise.
8276         * modules/unistdio/u32-u32-asprintf: Likewise.
8277         * modules/unistdio/u32-u32-snprintf: Likewise.
8278         * modules/unistdio/u32-u32-sprintf: Likewise.
8279         * modules/unistdio/u32-u32-vasnprintf: Likewise.
8280         * modules/unistdio/u32-u32-vasprintf: Likewise.
8281         * modules/unistdio/u32-u32-vsnprintf: Likewise.
8282         * modules/unistdio/u32-u32-vsprintf: Likewise.
8283         * modules/unistdio/u32-vasnprintf: Likewise.
8284         * modules/unistdio/u32-vasprintf: Likewise.
8285         * modules/unistdio/u32-vsnprintf: Likewise.
8286         * modules/unistdio/u32-vsprintf: Likewise.
8287         * modules/unistdio/ulc-asnprintf: Likewise.
8288         * modules/unistdio/ulc-asprintf: Likewise.
8289         * modules/unistdio/ulc-fprintf: Likewise.
8290         * modules/unistdio/ulc-snprintf: Likewise.
8291         * modules/unistdio/ulc-sprintf: Likewise.
8292         * modules/unistdio/ulc-vasnprintf: Likewise.
8293         * modules/unistdio/ulc-vasprintf: Likewise.
8294         * modules/unistdio/ulc-vfprintf: Likewise.
8295         * modules/unistdio/ulc-vsnprintf: Likewise.
8296         * modules/unistdio/ulc-vsprintf: Likewise.
8297         * modules/unistr/u8-check: Likewise.
8298         * modules/unistr/u8-chr: Likewise.
8299         * modules/unistr/u8-cmp: Likewise.
8300         * modules/unistr/u8-cmp2: Likewise.
8301         * modules/unistr/u8-cpy: Likewise.
8302         * modules/unistr/u8-cpy-alloc: Likewise.
8303         * modules/unistr/u8-endswith: Likewise.
8304         * modules/unistr/u8-mblen: Likewise.
8305         * modules/unistr/u8-mbsnlen: Likewise.
8306         * modules/unistr/u8-mbtouc: Likewise.
8307         * modules/unistr/u8-mbtouc-unsafe: Likewise.
8308         * modules/unistr/u8-mbtoucr: Likewise.
8309         * modules/unistr/u8-move: Likewise.
8310         * modules/unistr/u8-next: Likewise.
8311         * modules/unistr/u8-prev: Likewise.
8312         * modules/unistr/u8-set: Likewise.
8313         * modules/unistr/u8-startswith: Likewise.
8314         * modules/unistr/u8-stpcpy: Likewise.
8315         * modules/unistr/u8-stpncpy: Likewise.
8316         * modules/unistr/u8-strcat: Likewise.
8317         * modules/unistr/u8-strchr: Likewise.
8318         * modules/unistr/u8-strcmp: Likewise.
8319         * modules/unistr/u8-strcoll: Likewise.
8320         * modules/unistr/u8-strcpy: Likewise.
8321         * modules/unistr/u8-strcspn: Likewise.
8322         * modules/unistr/u8-strdup: Likewise.
8323         * modules/unistr/u8-strlen: Likewise.
8324         * modules/unistr/u8-strmblen: Likewise.
8325         * modules/unistr/u8-strmbtouc: Likewise.
8326         * modules/unistr/u8-strncat: Likewise.
8327         * modules/unistr/u8-strncmp: Likewise.
8328         * modules/unistr/u8-strncpy: Likewise.
8329         * modules/unistr/u8-strnlen: Likewise.
8330         * modules/unistr/u8-strpbrk: Likewise.
8331         * modules/unistr/u8-strrchr: Likewise.
8332         * modules/unistr/u8-strspn: Likewise.
8333         * modules/unistr/u8-strstr: Likewise.
8334         * modules/unistr/u8-strtok: Likewise.
8335         * modules/unistr/u8-to-u16: Likewise.
8336         * modules/unistr/u8-to-u32: Likewise.
8337         * modules/unistr/u8-uctomb: Likewise.
8338         * modules/unistr/u16-check: Likewise.
8339         * modules/unistr/u16-chr: Likewise.
8340         * modules/unistr/u16-cmp: Likewise.
8341         * modules/unistr/u16-cmp2: Likewise.
8342         * modules/unistr/u16-cpy: Likewise.
8343         * modules/unistr/u16-cpy-alloc: Likewise.
8344         * modules/unistr/u16-endswith: Likewise.
8345         * modules/unistr/u16-mblen: Likewise.
8346         * modules/unistr/u16-mbsnlen: Likewise.
8347         * modules/unistr/u16-mbtouc: Likewise.
8348         * modules/unistr/u16-mbtouc-unsafe: Likewise.
8349         * modules/unistr/u16-mbtoucr: Likewise.
8350         * modules/unistr/u16-move: Likewise.
8351         * modules/unistr/u16-next: Likewise.
8352         * modules/unistr/u16-prev: Likewise.
8353         * modules/unistr/u16-set: Likewise.
8354         * modules/unistr/u16-startswith: Likewise.
8355         * modules/unistr/u16-stpcpy: Likewise.
8356         * modules/unistr/u16-stpncpy: Likewise.
8357         * modules/unistr/u16-strcat: Likewise.
8358         * modules/unistr/u16-strchr: Likewise.
8359         * modules/unistr/u16-strcmp: Likewise.
8360         * modules/unistr/u16-strcoll: Likewise.
8361         * modules/unistr/u16-strcpy: Likewise.
8362         * modules/unistr/u16-strcspn: Likewise.
8363         * modules/unistr/u16-strdup: Likewise.
8364         * modules/unistr/u16-strlen: Likewise.
8365         * modules/unistr/u16-strmblen: Likewise.
8366         * modules/unistr/u16-strmbtouc: Likewise.
8367         * modules/unistr/u16-strncat: Likewise.
8368         * modules/unistr/u16-strncmp: Likewise.
8369         * modules/unistr/u16-strncpy: Likewise.
8370         * modules/unistr/u16-strnlen: Likewise.
8371         * modules/unistr/u16-strpbrk: Likewise.
8372         * modules/unistr/u16-strrchr: Likewise.
8373         * modules/unistr/u16-strspn: Likewise.
8374         * modules/unistr/u16-strstr: Likewise.
8375         * modules/unistr/u16-strtok: Likewise.
8376         * modules/unistr/u16-to-u32: Likewise.
8377         * modules/unistr/u16-to-u8: Likewise.
8378         * modules/unistr/u16-uctomb: Likewise.
8379         * modules/unistr/u32-check: Likewise.
8380         * modules/unistr/u32-chr: Likewise.
8381         * modules/unistr/u32-cmp: Likewise.
8382         * modules/unistr/u32-cmp2: Likewise.
8383         * modules/unistr/u32-cpy: Likewise.
8384         * modules/unistr/u32-cpy-alloc: Likewise.
8385         * modules/unistr/u32-endswith: Likewise.
8386         * modules/unistr/u32-mblen: Likewise.
8387         * modules/unistr/u32-mbsnlen: Likewise.
8388         * modules/unistr/u32-mbtouc: Likewise.
8389         * modules/unistr/u32-mbtouc-unsafe: Likewise.
8390         * modules/unistr/u32-mbtoucr: Likewise.
8391         * modules/unistr/u32-move: Likewise.
8392         * modules/unistr/u32-next: Likewise.
8393         * modules/unistr/u32-prev: Likewise.
8394         * modules/unistr/u32-set: Likewise.
8395         * modules/unistr/u32-startswith: Likewise.
8396         * modules/unistr/u32-stpcpy: Likewise.
8397         * modules/unistr/u32-stpncpy: Likewise.
8398         * modules/unistr/u32-strcat: Likewise.
8399         * modules/unistr/u32-strchr: Likewise.
8400         * modules/unistr/u32-strcmp: Likewise.
8401         * modules/unistr/u32-strcoll: Likewise.
8402         * modules/unistr/u32-strcpy: Likewise.
8403         * modules/unistr/u32-strcspn: Likewise.
8404         * modules/unistr/u32-strdup: Likewise.
8405         * modules/unistr/u32-strlen: Likewise.
8406         * modules/unistr/u32-strmblen: Likewise.
8407         * modules/unistr/u32-strmbtouc: Likewise.
8408         * modules/unistr/u32-strncat: Likewise.
8409         * modules/unistr/u32-strncmp: Likewise.
8410         * modules/unistr/u32-strncpy: Likewise.
8411         * modules/unistr/u32-strnlen: Likewise.
8412         * modules/unistr/u32-strpbrk: Likewise.
8413         * modules/unistr/u32-strrchr: Likewise.
8414         * modules/unistr/u32-strspn: Likewise.
8415         * modules/unistr/u32-strstr: Likewise.
8416         * modules/unistr/u32-strtok: Likewise.
8417         * modules/unistr/u32-to-u16: Likewise.
8418         * modules/unistr/u32-to-u8: Likewise.
8419         * modules/unistr/u32-uctomb: Likewise.
8420         * modules/uniwbrk/u8-wordbreaks: Likewise.
8421         * modules/uniwbrk/u16-wordbreaks: Likewise.
8422         * modules/uniwbrk/u32-wordbreaks: Likewise.
8423         * modules/uniwbrk/ulc-wordbreaks: Likewise.
8424         * modules/uniwbrk/wordbreak-property: Likewise.
8425         * modules/uniwidth/u8-strwidth: Likewise.
8426         * modules/uniwidth/u8-width: Likewise.
8427         * modules/uniwidth/u16-strwidth: Likewise.
8428         * modules/uniwidth/u16-width: Likewise.
8429         * modules/uniwidth/u32-strwidth: Likewise.
8430         * modules/uniwidth/u32-width: Likewise.
8431         * modules/uniwidth/width: Likewise.
8432         * modules/unicase/cased-tests (Makefile.am): Link all test programs
8433         with $(LIBUNISTRING).
8434         * modules/unicase/ignorable-tests: Likewise.
8435         * modules/unicase/locale-language-tests: Likewise.
8436         * modules/unicase/tolower-tests: Likewise.
8437         * modules/unicase/totitle-tests: Likewise.
8438         * modules/unicase/toupper-tests: Likewise.
8439         * modules/unicase/u8-casecmp-tests: Likewise.
8440         * modules/unicase/u8-casecoll-tests: Likewise.
8441         * modules/unicase/u8-casefold-tests: Likewise.
8442         * modules/unicase/u8-is-cased-tests: Likewise.
8443         * modules/unicase/u8-is-casefolded-tests: Likewise.
8444         * modules/unicase/u8-is-lowercase-tests: Likewise.
8445         * modules/unicase/u8-is-titlecase-tests: Likewise.
8446         * modules/unicase/u8-is-uppercase-tests: Likewise.
8447         * modules/unicase/u8-tolower-tests: Likewise.
8448         * modules/unicase/u8-totitle-tests: Likewise.
8449         * modules/unicase/u8-toupper-tests: Likewise.
8450         * modules/unicase/u16-casecmp-tests: Likewise.
8451         * modules/unicase/u16-casecoll-tests: Likewise.
8452         * modules/unicase/u16-casefold-tests: Likewise.
8453         * modules/unicase/u16-is-cased-tests: Likewise.
8454         * modules/unicase/u16-is-casefolded-tests: Likewise.
8455         * modules/unicase/u16-is-lowercase-tests: Likewise.
8456         * modules/unicase/u16-is-titlecase-tests: Likewise.
8457         * modules/unicase/u16-is-uppercase-tests: Likewise.
8458         * modules/unicase/u16-tolower-tests: Likewise.
8459         * modules/unicase/u16-totitle-tests: Likewise.
8460         * modules/unicase/u16-toupper-tests: Likewise.
8461         * modules/unicase/u32-casecmp-tests: Likewise.
8462         * modules/unicase/u32-casecoll-tests: Likewise.
8463         * modules/unicase/u32-casefold-tests: Likewise.
8464         * modules/unicase/u32-is-cased-tests: Likewise.
8465         * modules/unicase/u32-is-casefolded-tests: Likewise.
8466         * modules/unicase/u32-is-lowercase-tests: Likewise.
8467         * modules/unicase/u32-is-titlecase-tests: Likewise.
8468         * modules/unicase/u32-is-uppercase-tests: Likewise.
8469         * modules/unicase/u32-tolower-tests: Likewise.
8470         * modules/unicase/u32-totitle-tests: Likewise.
8471         * modules/unicase/u32-toupper-tests: Likewise.
8472         * modules/unicase/ulc-casecmp-tests: Likewise.
8473         * modules/unicase/ulc-casecoll-tests: Likewise.
8474         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
8475         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
8476         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
8477         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
8478         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
8479         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
8480         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
8481         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
8482         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
8483         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
8484         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
8485         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
8486         * modules/unictype/bidicategory-byname-tests: Likewise.
8487         * modules/unictype/bidicategory-name-tests: Likewise.
8488         * modules/unictype/bidicategory-of-tests: Likewise.
8489         * modules/unictype/bidicategory-test-tests: Likewise.
8490         * modules/unictype/block-list-tests: Likewise.
8491         * modules/unictype/block-of-tests: Likewise.
8492         * modules/unictype/block-test-tests: Likewise.
8493         * modules/unictype/category-C-tests: Likewise.
8494         * modules/unictype/category-Cc-tests: Likewise.
8495         * modules/unictype/category-Cf-tests: Likewise.
8496         * modules/unictype/category-Cn-tests: Likewise.
8497         * modules/unictype/category-Co-tests: Likewise.
8498         * modules/unictype/category-Cs-tests: Likewise.
8499         * modules/unictype/category-L-tests: Likewise.
8500         * modules/unictype/category-Ll-tests: Likewise.
8501         * modules/unictype/category-Lm-tests: Likewise.
8502         * modules/unictype/category-Lo-tests: Likewise.
8503         * modules/unictype/category-Lt-tests: Likewise.
8504         * modules/unictype/category-Lu-tests: Likewise.
8505         * modules/unictype/category-M-tests: Likewise.
8506         * modules/unictype/category-Mc-tests: Likewise.
8507         * modules/unictype/category-Me-tests: Likewise.
8508         * modules/unictype/category-Mn-tests: Likewise.
8509         * modules/unictype/category-N-tests: Likewise.
8510         * modules/unictype/category-Nd-tests: Likewise.
8511         * modules/unictype/category-Nl-tests: Likewise.
8512         * modules/unictype/category-No-tests: Likewise.
8513         * modules/unictype/category-P-tests: Likewise.
8514         * modules/unictype/category-Pc-tests: Likewise.
8515         * modules/unictype/category-Pd-tests: Likewise.
8516         * modules/unictype/category-Pe-tests: Likewise.
8517         * modules/unictype/category-Pf-tests: Likewise.
8518         * modules/unictype/category-Pi-tests: Likewise.
8519         * modules/unictype/category-Po-tests: Likewise.
8520         * modules/unictype/category-Ps-tests: Likewise.
8521         * modules/unictype/category-S-tests: Likewise.
8522         * modules/unictype/category-Sc-tests: Likewise.
8523         * modules/unictype/category-Sk-tests: Likewise.
8524         * modules/unictype/category-Sm-tests: Likewise.
8525         * modules/unictype/category-So-tests: Likewise.
8526         * modules/unictype/category-Z-tests: Likewise.
8527         * modules/unictype/category-Zl-tests: Likewise.
8528         * modules/unictype/category-Zp-tests: Likewise.
8529         * modules/unictype/category-Zs-tests: Likewise.
8530         * modules/unictype/category-and-not-tests: Likewise.
8531         * modules/unictype/category-and-tests: Likewise.
8532         * modules/unictype/category-byname-tests: Likewise.
8533         * modules/unictype/category-name-tests: Likewise.
8534         * modules/unictype/category-none-tests: Likewise.
8535         * modules/unictype/category-of-tests: Likewise.
8536         * modules/unictype/category-or-tests: Likewise.
8537         * modules/unictype/category-test-withtable-tests: Likewise.
8538         * modules/unictype/combining-class-tests: Likewise.
8539         * modules/unictype/ctype-alnum-tests: Likewise.
8540         * modules/unictype/ctype-alpha-tests: Likewise.
8541         * modules/unictype/ctype-blank-tests: Likewise.
8542         * modules/unictype/ctype-cntrl-tests: Likewise.
8543         * modules/unictype/ctype-digit-tests: Likewise.
8544         * modules/unictype/ctype-graph-tests: Likewise.
8545         * modules/unictype/ctype-lower-tests: Likewise.
8546         * modules/unictype/ctype-print-tests: Likewise.
8547         * modules/unictype/ctype-punct-tests: Likewise.
8548         * modules/unictype/ctype-space-tests: Likewise.
8549         * modules/unictype/ctype-upper-tests: Likewise.
8550         * modules/unictype/ctype-xdigit-tests: Likewise.
8551         * modules/unictype/decimal-digit-tests: Likewise.
8552         * modules/unictype/digit-tests: Likewise.
8553         * modules/unictype/mirror-tests: Likewise.
8554         * modules/unictype/numeric-tests: Likewise.
8555         * modules/unictype/property-alphabetic-tests: Likewise.
8556         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
8557         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
8558         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
8559         * modules/unictype/property-bidi-block-separator-tests: Likewise.
8560         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
8561         * modules/unictype/property-bidi-common-separator-tests: Likewise.
8562         * modules/unictype/property-bidi-control-tests: Likewise.
8563         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
8564         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
8565         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
8566         * modules/unictype/property-bidi-european-digit-tests: Likewise.
8567         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
8568         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
8569         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
8570         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
8571         * modules/unictype/property-bidi-pdf-tests: Likewise.
8572         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8573         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8574         * modules/unictype/property-byname-tests: Likewise.
8575         * modules/unictype/property-combining-tests: Likewise.
8576         * modules/unictype/property-composite-tests: Likewise.
8577         * modules/unictype/property-currency-symbol-tests: Likewise.
8578         * modules/unictype/property-dash-tests: Likewise.
8579         * modules/unictype/property-decimal-digit-tests: Likewise.
8580         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8581         * modules/unictype/property-deprecated-tests: Likewise.
8582         * modules/unictype/property-diacritic-tests: Likewise.
8583         * modules/unictype/property-extender-tests: Likewise.
8584         * modules/unictype/property-format-control-tests: Likewise.
8585         * modules/unictype/property-grapheme-base-tests: Likewise.
8586         * modules/unictype/property-grapheme-extend-tests: Likewise.
8587         * modules/unictype/property-grapheme-link-tests: Likewise.
8588         * modules/unictype/property-hex-digit-tests: Likewise.
8589         * modules/unictype/property-hyphen-tests: Likewise.
8590         * modules/unictype/property-id-continue-tests: Likewise.
8591         * modules/unictype/property-id-start-tests: Likewise.
8592         * modules/unictype/property-ideographic-tests: Likewise.
8593         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8594         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8595         * modules/unictype/property-ignorable-control-tests: Likewise.
8596         * modules/unictype/property-iso-control-tests: Likewise.
8597         * modules/unictype/property-join-control-tests: Likewise.
8598         * modules/unictype/property-left-of-pair-tests: Likewise.
8599         * modules/unictype/property-line-separator-tests: Likewise.
8600         * modules/unictype/property-logical-order-exception-tests: Likewise.
8601         * modules/unictype/property-lowercase-tests: Likewise.
8602         * modules/unictype/property-math-tests: Likewise.
8603         * modules/unictype/property-non-break-tests: Likewise.
8604         * modules/unictype/property-not-a-character-tests: Likewise.
8605         * modules/unictype/property-numeric-tests: Likewise.
8606         * modules/unictype/property-other-alphabetic-tests: Likewise.
8607         * modules/unictype/property-other-default-ignorable-code-point-tests:
8608         Likewise.
8609         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
8610         * modules/unictype/property-other-id-continue-tests: Likewise.
8611         * modules/unictype/property-other-id-start-tests: Likewise.
8612         * modules/unictype/property-other-lowercase-tests: Likewise.
8613         * modules/unictype/property-other-math-tests: Likewise.
8614         * modules/unictype/property-other-uppercase-tests: Likewise.
8615         * modules/unictype/property-paired-punctuation-tests: Likewise.
8616         * modules/unictype/property-paragraph-separator-tests: Likewise.
8617         * modules/unictype/property-pattern-syntax-tests: Likewise.
8618         * modules/unictype/property-pattern-white-space-tests: Likewise.
8619         * modules/unictype/property-private-use-tests: Likewise.
8620         * modules/unictype/property-punctuation-tests: Likewise.
8621         * modules/unictype/property-quotation-mark-tests: Likewise.
8622         * modules/unictype/property-radical-tests: Likewise.
8623         * modules/unictype/property-sentence-terminal-tests: Likewise.
8624         * modules/unictype/property-soft-dotted-tests: Likewise.
8625         * modules/unictype/property-space-tests: Likewise.
8626         * modules/unictype/property-terminal-punctuation-tests: Likewise.
8627         * modules/unictype/property-test-tests: Likewise.
8628         * modules/unictype/property-titlecase-tests: Likewise.
8629         * modules/unictype/property-unassigned-code-value-tests: Likewise.
8630         * modules/unictype/property-unified-ideograph-tests: Likewise.
8631         * modules/unictype/property-uppercase-tests: Likewise.
8632         * modules/unictype/property-variation-selector-tests: Likewise.
8633         * modules/unictype/property-white-space-tests: Likewise.
8634         * modules/unictype/property-xid-continue-tests: Likewise.
8635         * modules/unictype/property-xid-start-tests: Likewise.
8636         * modules/unictype/property-zero-width-tests: Likewise.
8637         * modules/unictype/scripts-tests: Likewise.
8638         * modules/unictype/syntax-c-ident-tests: Likewise.
8639         * modules/unictype/syntax-c-whitespace-tests: Likewise.
8640         * modules/unictype/syntax-java-ident-tests: Likewise.
8641         * modules/unictype/syntax-java-whitespace-tests: Likewise.
8642         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
8643         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
8644         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
8645         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
8646         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
8647         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
8648         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
8649         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
8650         * modules/uniname/uniname-tests: Likewise.
8651         * modules/uninorm/canonical-decomposition-tests: Likewise.
8652         * modules/uninorm/compat-decomposition-tests: Likewise.
8653         * modules/uninorm/composition-tests: Likewise.
8654         * modules/uninorm/decomposing-form-tests: Likewise.
8655         * modules/uninorm/decomposition-tests: Likewise.
8656         * modules/uninorm/filter-tests: Likewise.
8657         * modules/uninorm/nfc-tests: Likewise.
8658         * modules/uninorm/nfd-tests: Likewise.
8659         * modules/uninorm/nfkc-tests: Likewise.
8660         * modules/uninorm/nfkd-tests: Likewise.
8661         * modules/uninorm/u8-normcmp-tests: Likewise.
8662         * modules/uninorm/u8-normcoll-tests: Likewise.
8663         * modules/uninorm/u16-normcmp-tests: Likewise.
8664         * modules/uninorm/u16-normcoll-tests: Likewise.
8665         * modules/uninorm/u32-normcmp-tests: Likewise.
8666         * modules/uninorm/u32-normcoll-tests: Likewise.
8667         * modules/unistdio/u8-asnprintf-tests: Likewise.
8668         * modules/unistdio/u8-vasnprintf-tests: Likewise.
8669         * modules/unistdio/u8-vasprintf-tests: Likewise.
8670         * modules/unistdio/u8-vsnprintf-tests: Likewise.
8671         * modules/unistdio/u8-vsprintf-tests: Likewise.
8672         * modules/unistdio/u16-asnprintf-tests: Likewise.
8673         * modules/unistdio/u16-vasnprintf-tests: Likewise.
8674         * modules/unistdio/u16-vasprintf-tests: Likewise.
8675         * modules/unistdio/u16-vsnprintf-tests: Likewise.
8676         * modules/unistdio/u16-vsprintf-tests: Likewise.
8677         * modules/unistdio/u32-asnprintf-tests: Likewise.
8678         * modules/unistdio/u32-vasnprintf-tests: Likewise.
8679         * modules/unistdio/u32-vasprintf-tests: Likewise.
8680         * modules/unistdio/u32-vsnprintf-tests: Likewise.
8681         * modules/unistdio/u32-vsprintf-tests: Likewise.
8682         * modules/unistdio/ulc-asnprintf-tests: Likewise.
8683         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
8684         * modules/unistdio/ulc-vasprintf-tests: Likewise.
8685         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
8686         * modules/unistdio/ulc-vsprintf-tests: Likewise.
8687         * modules/unistr/u8-check-tests: Likewise.
8688         * modules/unistr/u8-chr-tests: Likewise.
8689         * modules/unistr/u8-cmp-tests: Likewise.
8690         * modules/unistr/u8-cmp2-tests: Likewise.
8691         * modules/unistr/u8-cpy-alloc-tests: Likewise.
8692         * modules/unistr/u8-cpy-tests: Likewise.
8693         * modules/unistr/u8-mblen-tests: Likewise.
8694         * modules/unistr/u8-mbsnlen-tests: Likewise.
8695         * modules/unistr/u8-mbtouc-tests: Likewise.
8696         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
8697         * modules/unistr/u8-mbtoucr-tests: Likewise.
8698         * modules/unistr/u8-move-tests: Likewise.
8699         * modules/unistr/u8-next-tests: Likewise.
8700         * modules/unistr/u8-prev-tests: Likewise.
8701         * modules/unistr/u8-set-tests: Likewise.
8702         * modules/unistr/u8-stpcpy-tests: Likewise.
8703         * modules/unistr/u8-stpncpy-tests: Likewise.
8704         * modules/unistr/u8-strcat-tests: Likewise.
8705         * modules/unistr/u8-strcmp-tests: Likewise.
8706         * modules/unistr/u8-strcoll-tests: Likewise.
8707         * modules/unistr/u8-strcpy-tests: Likewise.
8708         * modules/unistr/u8-strdup-tests: Likewise.
8709         * modules/unistr/u8-strlen-tests: Likewise.
8710         * modules/unistr/u8-strmblen-tests: Likewise.
8711         * modules/unistr/u8-strmbtouc-tests: Likewise.
8712         * modules/unistr/u8-strncat-tests: Likewise.
8713         * modules/unistr/u8-strncmp-tests: Likewise.
8714         * modules/unistr/u8-strncpy-tests: Likewise.
8715         * modules/unistr/u8-strnlen-tests: Likewise.
8716         * modules/unistr/u8-to-u16-tests: Likewise.
8717         * modules/unistr/u8-to-u32-tests: Likewise.
8718         * modules/unistr/u8-uctomb-tests: Likewise.
8719         * modules/unistr/u16-check-tests: Likewise.
8720         * modules/unistr/u16-chr-tests: Likewise.
8721         * modules/unistr/u16-cmp-tests: Likewise.
8722         * modules/unistr/u16-cmp2-tests: Likewise.
8723         * modules/unistr/u16-cpy-alloc-tests: Likewise.
8724         * modules/unistr/u16-cpy-tests: Likewise.
8725         * modules/unistr/u16-mblen-tests: Likewise.
8726         * modules/unistr/u16-mbsnlen-tests: Likewise.
8727         * modules/unistr/u16-mbtouc-tests: Likewise.
8728         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
8729         * modules/unistr/u16-mbtoucr-tests: Likewise.
8730         * modules/unistr/u16-move-tests: Likewise.
8731         * modules/unistr/u16-next-tests: Likewise.
8732         * modules/unistr/u16-prev-tests: Likewise.
8733         * modules/unistr/u16-set-tests: Likewise.
8734         * modules/unistr/u16-stpcpy-tests: Likewise.
8735         * modules/unistr/u16-stpncpy-tests: Likewise.
8736         * modules/unistr/u16-strcat-tests: Likewise.
8737         * modules/unistr/u16-strcmp-tests: Likewise.
8738         * modules/unistr/u16-strcoll-tests: Likewise.
8739         * modules/unistr/u16-strcpy-tests: Likewise.
8740         * modules/unistr/u16-strdup-tests: Likewise.
8741         * modules/unistr/u16-strlen-tests: Likewise.
8742         * modules/unistr/u16-strmblen-tests: Likewise.
8743         * modules/unistr/u16-strmbtouc-tests: Likewise.
8744         * modules/unistr/u16-strncat-tests: Likewise.
8745         * modules/unistr/u16-strncmp-tests: Likewise.
8746         * modules/unistr/u16-strncpy-tests: Likewise.
8747         * modules/unistr/u16-strnlen-tests: Likewise.
8748         * modules/unistr/u16-to-u32-tests: Likewise.
8749         * modules/unistr/u16-to-u8-tests: Likewise.
8750         * modules/unistr/u16-uctomb-tests: Likewise.
8751         * modules/unistr/u32-check-tests: Likewise.
8752         * modules/unistr/u32-chr-tests: Likewise.
8753         * modules/unistr/u32-cmp-tests: Likewise.
8754         * modules/unistr/u32-cmp2-tests: Likewise.
8755         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8756         * modules/unistr/u32-cpy-tests: Likewise.
8757         * modules/unistr/u32-mblen-tests: Likewise.
8758         * modules/unistr/u32-mbsnlen-tests: Likewise.
8759         * modules/unistr/u32-mbtouc-tests: Likewise.
8760         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8761         * modules/unistr/u32-mbtoucr-tests: Likewise.
8762         * modules/unistr/u32-move-tests: Likewise.
8763         * modules/unistr/u32-next-tests: Likewise.
8764         * modules/unistr/u32-prev-tests: Likewise.
8765         * modules/unistr/u32-set-tests: Likewise.
8766         * modules/unistr/u32-stpcpy-tests: Likewise.
8767         * modules/unistr/u32-stpncpy-tests: Likewise.
8768         * modules/unistr/u32-strcat-tests: Likewise.
8769         * modules/unistr/u32-strcmp-tests: Likewise.
8770         * modules/unistr/u32-strcoll-tests: Likewise.
8771         * modules/unistr/u32-strcpy-tests: Likewise.
8772         * modules/unistr/u32-strdup-tests: Likewise.
8773         * modules/unistr/u32-strlen-tests: Likewise.
8774         * modules/unistr/u32-strmblen-tests: Likewise.
8775         * modules/unistr/u32-strmbtouc-tests: Likewise.
8776         * modules/unistr/u32-strncat-tests: Likewise.
8777         * modules/unistr/u32-strncmp-tests: Likewise.
8778         * modules/unistr/u32-strncpy-tests: Likewise.
8779         * modules/unistr/u32-strnlen-tests: Likewise.
8780         * modules/unistr/u32-to-u16-tests: Likewise.
8781         * modules/unistr/u32-to-u8-tests: Likewise.
8782         * modules/unistr/u32-uctomb-tests: Likewise.
8783         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8784         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8785         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8786         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8787         * modules/uniwidth/u8-strwidth-tests: Likewise.
8788         * modules/uniwidth/u8-width-tests: Likewise.
8789         * modules/uniwidth/u16-strwidth-tests: Likewise.
8790         * modules/uniwidth/u16-width-tests: Likewise.
8791         * modules/uniwidth/u32-strwidth-tests: Likewise.
8792         * modules/uniwidth/u32-width-tests: Likewise.
8793         * modules/uniwidth/width-tests: Likewise.
8794
8795 2010-05-18  Richard Jones  <rjones@redhat.com>
8796
8797         doc: users.txt: list hivex
8798         * users.txt: Add hivex.
8799
8800 2010-05-18  Richard Jones  <rjones@redhat.com>
8801
8802         doc: users.txt: list febootstrap
8803         * users.txt: Add febootstrap.
8804
8805 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8806
8807         bootstrap: fix an error when gnulib is not used as a git submodule
8808         * build-aux/bootstrap (gnulib_path): If its length is zero then
8809         assign "gnulib" to it.
8810         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8811
8812 2010-05-16  Bruno Haible  <bruno@clisp.org>
8813
8814         Avoid autoconf warnings about AM_ICONV.
8815         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8816         2.64.
8817
8818 2010-05-16  Bruno Haible  <bruno@clisp.org>
8819
8820         absolute-header: Make the macro usable in more situations.
8821         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8822         from gl_ABSOLUTE_HEADER.
8823         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8824
8825 2010-05-16  James Youngman  <jay@gnu.org>
8826
8827         doc: update users.txt
8828         * users.txt: Add CSSC.
8829
8830 2010-05-16  Jim Meyering  <meyering@redhat.com>
8831
8832         init.sh: fix an error in the previous change; add more comments
8833         * tests/init.sh: Compare exit code in loop against 9, not 2.
8834         Patch by Bruno Haible.
8835         Make the two tests more similar by adding an empty "then" clause.
8836         Add comments.
8837
8838         init.sh: avoid unnecessary shell re-exec
8839         * tests/init.sh: Improve the re-exec-required check to first test the
8840         current shell.  If it passes the test, do not search for a shell that
8841         does pass, and do not re-exec.  This test is particularly contorted to
8842         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8843         of $(...) evokes a syntax error and causes immediate shell exit with
8844         status 2.  Bruno Haible reported that the re-exec made it impossible
8845         to single-step through any init.sh-using script.
8846
8847 2010-05-16  Bruno Haible  <bruno@clisp.org>
8848
8849         Fix collision between gnulib's and libintl's printf replacements.
8850         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8851         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8852         (printf): When using GNU C, map the __printf__ function to rpl_printf
8853         via __asm__. When not using GNU C, define rpl_printf instead of
8854         __printf__.
8855         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8856         commit.
8857         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8858         commit.
8859         * m4/asm-underscore.m4: New file.
8860         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8861         * modules/stdio (Files): Add m4/asm-underscore.m4.
8862         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8863         Reported by Ben Pfaff.
8864
8865 2010-05-16  Bruno Haible  <bruno@clisp.org>
8866
8867         verify: Avoid skipping the test on openSUSE 11.0.
8868         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8869
8870 2010-05-13  Bruno Haible  <bruno@clisp.org>
8871
8872         Avoid useless warnings from G++.
8873         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8874         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8875         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8876
8877 2010-05-11  Jim Meyering  <meyering@redhat.com>
8878
8879         maint.mk: tweak preceding change
8880         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8881         regexps tighter by anchoring at EOL, and make the new group "shy"
8882         for slightly decreased overhead.
8883
8884 2010-05-11  Eric Blake  <eblake@redhat.com>
8885
8886         maint.mk: gnulib doesn't guarantee NSIG
8887         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8888
8889 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8890
8891         test-pwrite.c: Remove unused variable declaration.
8892         * tests/test-pwrite.c (main): Remove read_buf declaration.
8893
8894         Remove useless test-pwrite.sh file.
8895         * tests/test-pwrite.sh: Delete file.
8896         * modules/pwrite-tests: Remove references.
8897         Reported by Bruno Haible.
8898
8899 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8900
8901         init.sh: fix a typo
8902         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8903
8904 2010-05-10  Jim Meyering  <meyering@redhat.com>
8905
8906         maint.mk: avoid using a temporary file in the always-defined-macros check
8907         * top/maint.mk (.re-defmac): Remove rule.
8908         (gl_trap_): Remove definition.
8909         (sc_prohibit_always-defined_macros): Rewrite not to create and
8910         depend on a temporary file.  Instead, depend on GNU grep's ability
8911         to read a list of regular expressions from stdin when given "-f -".
8912
8913 2010-05-09  Bruno Haible  <bruno@clisp.org>
8914
8915         Update to GNU gettext 0.18, part 1.
8916         * m4/gettext.m4: Update to GNU gettext 0.18.
8917         * m4/intl.m4: Likewise.
8918         * m4/po.m4: Likewise.
8919         * modules/gettext (Files): Add m4/fcntl-o.m4.
8920         (configure.ac): Require gettext infrastructure from version 0.18.
8921
8922 2010-05-09  Jim Meyering  <meyering@redhat.com>
8923
8924         init.sh: enable MALLOC_PERTURB_
8925         * tests/init.sh: Enable glibc's malloc-perturbing option.
8926
8927         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8928         With my recent change in init.sh from the two-line form:
8929             -#   : ${srcdir=.}
8930             -#   . "$srcdir/init.sh"; path_prepend_ .
8931             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8932         I noticed that using the one-line form would cause this test
8933         to fail with a false-positive, or to stop working altogether,
8934         depending on whether help-version changed or all the tests did.
8935         * top/maint.mk (_hv_regex): Remove this definition.
8936         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8937         (_hv_regex_strong): Use a stronger regex to check for conformance.
8938         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8939         Give a separate diagnostic for lack of conforming use.
8940
8941         maint.mk: prohibit definition of symbols defined by gnulib
8942         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8943         definition of symbols defined by gnulib.
8944
8945 2010-05-09  Bruno Haible  <bruno@clisp.org>
8946
8947         acl: Avoid test failure on Cygwin-hosted mingw.
8948         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8949
8950 2010-05-09  Bruno Haible  <bruno@clisp.org>
8951
8952         error: Use system's fcntl function.
8953         * lib/error.c (fcntl): Undefine.
8954
8955 2010-05-09  Jim Meyering  <meyering@redhat.com>
8956
8957         verify: adjust formatting to be more consistent
8958         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8959         argument-list '('s, and after one comma.
8960
8961 2010-05-09  Bruno Haible  <bruno@clisp.org>
8962
8963         error: More reliable output on mingw.
8964         * lib/error.c: Include <windows.h>.
8965         (is_open): New function.
8966         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8967         defined.
8968
8969 2010-05-09  Bruno Haible  <bruno@clisp.org>
8970
8971         vasnprintf: Fix syntax errors in libintl build on mingw.
8972         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8973         pad_ourselves and prec_ourselves after use.
8974
8975 2010-05-08  Bruno Haible  <bruno@clisp.org>
8976
8977         * lib/config.charset: Update comments for Cygwin 1.7.
8978         * lib/localcharset.c: Likewise.
8979
8980 2010-05-07  Jim Meyering  <meyering@redhat.com>
8981
8982         init.sh: improve comments
8983         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8984         . "${srcdir=.}/init.sh"; path_prepend_ .
8985         Add a note about path_prepend_ and the alternative of using
8986         TESTS_ENVIRONMENT.
8987
8988 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8989
8990         exclude: Unescape hashed patterns in wildcard mode.
8991         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8992         to the hash list.
8993         * tests/test-exclude8.sh: New test case.
8994         * modules/exclude-tests: Add new test.
8995
8996 2010-05-05  Eric Blake  <eblake@redhat.com>
8997
8998         verify: automate tests
8999         * modules/verify-tests: New module.
9000         * tests/test-verify.sh: New file.
9001         * tests/test-verify.c: Guard each negative test with a unique id.
9002         Also avoid warning about unused left hand of comma expressions.
9003
9004 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9005
9006         Further improvements to verify.h, suggested by Eric Blake.
9007         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
9008         the GL_* versions, to avoid collision with OpenGL.
9009         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
9010         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
9011         than testing merely whether it's defined.
9012
9013         Modify verify.h to pacify gcc -Wredundant_decls.
9014         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
9015         These use the prefix "GL_" since they're likely to be useful elsewhere.
9016         We may need to break them out into a different .h file.
9017         (__COUNTER__): Define to 0 if the compiler doesn't support it.
9018         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
9019         of verify_function__.
9020
9021 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9022
9023         Tests for module pwrite.
9024         * modules/pwrite-tests: New file.
9025         * tests/test-pwrite.sh: New file.
9026         * tests/test-pwrite.c: New file.
9027
9028         New module pwrite.
9029         * lib/unistd.in.h (pwrite): New declaration.
9030         * lib/pwrite.c: New file, from glibc with modifications.
9031         * m4/pwrite.m4: New file.
9032         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
9033         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
9034         REPLACE_PWRITE.
9035         * modules/pwrite: New file.
9036         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
9037         REPLACE_PWRITE.
9038         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
9039         * doc/posix-functions/pwrite.texi: Mention the new module.
9040
9041 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9042
9043         pread: Update documentation.
9044         * doc/posix-functions/pread.texi: Mention the 'pread' module.
9045
9046 2010-05-04  Eric Blake  <eblake@redhat.com>
9047
9048         docs: update cygwin progress
9049         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
9050         this bug.
9051         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
9052         Added in cygwin 1.7.2.
9053         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
9054         Likewise.
9055         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
9056         Likewise.
9057         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9058         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9059         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9060         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
9061         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
9062         Mention nproc module.
9063         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
9064         bug in cygwin 1.7.5 addition.
9065         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
9066         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
9067         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
9068         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
9069         1.7.5.
9070         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
9071         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
9072         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
9073         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
9074         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
9075         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
9076         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
9077         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
9078         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
9079         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
9080         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
9081         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
9082         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
9083         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
9084         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
9085         Likewise.
9086         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
9087         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
9088         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
9089         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
9090         Likewise.
9091         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
9092         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
9093         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
9094         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
9095         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
9096         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
9097         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
9098         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
9099         Likewise.
9100         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
9101         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
9102         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
9103         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
9104         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
9105         Likewise.
9106         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
9107         Likewise.
9108         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
9109         Likewise.
9110         * doc/glibc-functions/xdrrec_endofrecord.texi
9111         (xdrrec_endofrecord): Likewise.
9112         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
9113         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
9114         Likewise.
9115         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
9116         Likewise.
9117
9118 2010-05-04  Jim Meyering  <meyering@redhat.com>
9119
9120         gendocs.sh: make its "-s FILE" option more useful
9121         * build-aux/gendocs.sh: When honoring the -s FILE option, update
9122         $PACKAGE to reflect the probably-different basename of "FILE".
9123
9124 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
9125
9126         bootstrap: don't ignore download_po_files failure
9127         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
9128         failure.
9129
9130 2010-05-03  Jim Meyering  <meyering@redhat.com>
9131
9132         maint.mk: allow to pass options to gendocs.sh
9133         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
9134         (gendocs_options_): New overridable variable.
9135
9136         gnu-web-doc-update: don't ignore configure or build failure
9137         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
9138
9139         announce-gen: backslash-escape '@'s in --help output
9140         * build-aux/announce-gen: Fix syntax errors.
9141
9142         maint.mk, announce-gen: allow project-specific announcement mail headers
9143         * top/maint.mk (translation_project_): Define default.
9144         (announcement_Cc_, announcement_mail_headers_): Likewise.
9145         (announcement): Invoke announce-gen with new --mail-headers option.
9146         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
9147
9148         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
9149         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
9150         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
9151         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
9152         line in the "err2" output file when running "make check" in verbose
9153         mode (i.e., with set -x enabled).
9154
9155 2010-05-03  Bruno Haible  <bruno@clisp.org>
9156
9157         wctob: Fix for weird platforms.
9158         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
9159         argument value.
9160
9161 2010-05-03  Jim Meyering  <meyering@redhat.com>
9162
9163         maint.mk: prohibit unwarranted use of <strings.h>
9164         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
9165         strings.h in a file that does not also use strcasecmp, strncasecmp,
9166         ffs or ffsll.
9167
9168         maint.mk: remove obsolete comments
9169         * top/maint.mk: Remove stale, commented-out rules.
9170
9171 2010-05-02  Bruno Haible  <bruno@clisp.org>
9172
9173         wcwidth: Declare also when it's aliased.
9174         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
9175         macro.
9176
9177 2010-05-02  Bruno Haible  <bruno@clisp.org>
9178
9179         Fix regression from 2010-04-25.
9180         * gnulib-tool (func_modules_transitive_closure): Check the status of
9181         all modules, not only of the tests that are of the form foo-tests where
9182         foo is a module.
9183
9184 2010-05-02  Bruno Haible  <bruno@clisp.org>
9185
9186         wctob: Work around nasty Cygwin 1.7.2 bug.
9187         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
9188         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
9189
9190 2010-05-01  Bruno Haible  <bruno@clisp.org>
9191
9192         fpurge: Sharper test.
9193         * tests/test-fpurge.c (main): Add one more ftell check.
9194         * modules/fpurge-tests (Depends-on): Add ftell.
9195         Suggested by Eric Blake.
9196
9197 2010-05-01  Bruno Haible  <bruno@clisp.org>
9198
9199         ftello: Another test.
9200         * tests/test-ftello3.c: New file.
9201         * modules/ftello-tests (Files): Add it.
9202         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9203         MOSTLYCLEANFILES.
9204
9205         ftell: Another test.
9206         * tests/test-ftell3.c: New file.
9207         * modules/ftell-tests (Files): Add it.
9208         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9209         MOSTLYCLEANFILES.
9210
9211 2010-05-01  Bruno Haible  <bruno@clisp.org>
9212
9213         ftell, ftello: Work around Solaris bug.
9214         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
9215         * lib/ftello.c: Include stdio-impl.h.
9216         (ftello): On Solaris, when _IOWRT is set, compute the result without
9217         looking at _IOREAD.
9218         * modules/ftello (Files): Add lib/stdio-impl.h.
9219         * doc/posix-functions/ftell.texi: Mention Solaris bug.
9220         * doc/posix-functions/ftello.texi: Likewise.
9221         Reported by Eric Blake.
9222
9223 2010-05-01  Bruno Haible  <bruno@clisp.org>
9224
9225         freading: Adapt to special meaning of _IOREAD flag on Solaris.
9226         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
9227         the _IOWRT flag is also set.
9228
9229 2010-05-01  Bruno Haible  <bruno@clisp.org>
9230
9231         Fix doc about a HP-UX stdio bug.
9232         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
9233         * doc/posix-functions/ftello.texi: Likewise.
9234
9235 2010-05-01  Bruno Haible  <bruno@clisp.org>
9236
9237         lseek test: Fix failure on Solaris.
9238         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
9239         output.
9240
9241 2010-04-30  Jim Meyering  <meyering@redhat.com>
9242
9243         bootstrap: don't ignore failure to generate po*/Makevars
9244         * build-aux/bootstrap (with_gettext): Don't ignore failure
9245         to create po/Makevars or runtime-po/Makevars.
9246
9247 2010-04-29  Eric Blake  <eblake@redhat.com>
9248
9249         headers: relax license to LGPLv2+
9250         * modules/fcntl-h (License): Relax license.
9251         * modules/getopt-posix (License): Likewise.
9252         * modules/locale (License): Likewise.
9253         * modules/math (License): Likewise.
9254         * modules/pty (License): Likewise.
9255         * modules/sched (License): Likewise.
9256         * modules/search (License): Likewise.
9257         * modules/spawn (License): Likewise.
9258         * modules/stdarg (License): Likewise.
9259         * modules/sysexits (License): Likewise.
9260
9261 2010-04-29  Jim Meyering  <meyering@redhat.com>
9262
9263         inttypes: relax license to LGPLv2+
9264         * modules/inttypes (License): Relax license.
9265
9266 2010-04-29  Simon Josefsson  <simon@josefsson.org>
9267
9268         * top/maint.mk (indent): Run twice to produce idempotent results.
9269
9270 2010-04-28  Bruno Haible  <bruno@clisp.org>
9271
9272         getdate: Generate getdate.c in the source directory.
9273         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
9274         MOSTLYCLEANFILES.
9275         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
9276
9277 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
9278
9279         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
9280         is not declared as a const *; avoid warnings in that case.
9281
9282 2010-04-28  Eric Blake  <eblake@redhat.com>
9283
9284         canonicalize-lgpl: avoid compiler warning
9285         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
9286         declaration' / 'extraneous semicolon' warning with some compilers.
9287         Reported by Andreas Gruenbacher.
9288
9289 2010-04-28  Jim Meyering  <meyering@redhat.com>
9290
9291         init.sh: ensure a more reliable exit status when exiting via trap
9292         * tests/init.sh (setup_): Don't rely on $? in signal handler.
9293         Inspired by patches from Dmitry V. Levin.
9294         Also trap on signal 3 (SIGQUIT).
9295
9296 2010-04-27  Bruno Haible  <bruno@clisp.org>
9297
9298         Update doc about utimes().
9299         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
9300         'utimens' module.
9301         Reported by Andreas Gruenbacher <agruen@suse.de>.
9302
9303 2010-04-27  Eric Blake  <eblake@redhat.com>
9304
9305         full-read, full-write: relax license
9306         * modules/full-read (License): Drop to LGPLv2+.
9307         * modules/full-write (License): Likewise.
9308         * modules/safe-read (License): Likewise.
9309         * modules/safe-write (License): Likewise.
9310
9311         pthread: mention library for linking
9312         * modules/pthread (Link): Mention $(LIB_PTHREAD).
9313
9314 2010-04-27  Jim Meyering  <meyering@redhat.com>
9315
9316         maint.mk: fix a bug introduced in last change
9317         * top/maint.mk (gl_assured_headers_): Now that all names are on
9318         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
9319         is not anchored to end of word, it should be adequate.
9320
9321         maint.mk: avoid side-effect in latest syntax-check
9322         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
9323         to run commands via $(shell...), and hence to incur cost only when
9324         the new rule is actually run.
9325
9326         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
9327         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
9328         and use that to create a regexp used to detect all #if HAVE_..._H uses.
9329         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
9330         (gl_assured_headers_, az_, AZ_): Define.
9331         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
9332
9333 2010-04-26  Jim Meyering  <jim@meyering.net>
9334             Bruno Haible  <bruno@clisp.org>
9335
9336         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
9337         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
9338         Prompted by an exchange with Gilles Espinasse.
9339
9340 2010-04-26  Jim Meyering  <meyering@redhat.com>
9341
9342         git-version-gen: aesthetic tweak
9343         * build-aux/git-version-gen: Use "$nl" rather than a literal,
9344         so that the command remains on a single line.
9345
9346 2010-04-26  Eric Blake  <eblake@redhat.com>
9347
9348         git-version-gen: allow use on EBCDIC hosts
9349         * build-aux/git-version-gen (dirty): Use literal rather than tying
9350         ourselves to ascii.
9351         Reported by Steve Goetze.
9352
9353 2010-04-25  Bruno Haible  <bruno@clisp.org>
9354
9355         netdb: Add support for GNULIB_POSIXCHECK.
9356         * lib/netdb.in.h: Include warn-on-use.h.
9357         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
9358         functions are used when GNULIB_POSIXCHECK is defined and the
9359         getaddrinfo module is not in use.
9360         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
9361         freeaddrinfo, gai_strerror, getnameinfo are declared.
9362         * modules/netdb (Depends-on): Add warn-on-use.
9363         (Makefile.am): Include warn-on-use.h in netdb.h.
9364
9365 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
9366
9367         build: avoid "make check" failure without .git/ directory
9368         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
9369         there is no .git/ directory.
9370
9371 2010-04-25  Bruno Haible  <bruno@clisp.org>
9372
9373         ptsname: Fix misuse of ttyname_r.
9374         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
9375         of errno.
9376
9377 2010-04-25  Bruno Haible  <bruno@clisp.org>
9378
9379         ttyname_r: Make it work on Solaris 10.
9380         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
9381         if the system function has the POSIX declaration. Test whether the
9382         function fails if the buffer is less than 128 bytes large.
9383         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
9384         system's ttyname_r function. Provide a reasonably large buffer.
9385         * modules/ttyname_r (Depends-on): Add extensions.
9386         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
9387
9388 2010-04-25  Bruno Haible  <bruno@clisp.org>
9389
9390         Use the 'extensions' module for some more functions on Solaris.
9391         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
9392         module.
9393         * doc/posix-functions/ctime_r.texi: Likewise.
9394         * doc/posix-functions/getgrgid_r.texi: Likewise.
9395         * doc/posix-functions/getgrnam_r.texi: Likewise.
9396         * doc/posix-functions/getpwnam_r.texi: Likewise.
9397         * doc/posix-functions/getpwuid_r.texi: Likewise.
9398         * doc/posix-functions/readdir_r.texi: Likewise.
9399         * doc/posix-functions/sigwait.texi: Likewise.
9400         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
9401         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
9402
9403 2010-04-25  Bruno Haible  <bruno@clisp.org>
9404
9405         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
9406         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
9407         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
9408         * lib/ttyname_r.c: Include <limits.h>.
9409         (ttyname_r): Define using the system's ttyname_r function, if it exists
9410         and not on Solaris.
9411         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
9412         set.
9413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
9414         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
9415         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
9416         Reported by Simon Josefsson.
9417
9418 2010-04-25  Bruno Haible  <bruno@clisp.org>
9419
9420         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
9421         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
9422         * doc/posix-functions/ctime_r.texi: Likewise.
9423         * doc/posix-functions/getgrgid_r.texi: Likewise.
9424         * doc/posix-functions/getgrnam_r.texi: Likewise.
9425         * doc/posix-functions/getlogin_r.texi: Likewise.
9426         * doc/posix-functions/getpwnam_r.texi: Likewise.
9427         * doc/posix-functions/getpwuid_r.texi: Likewise.
9428         * doc/posix-functions/readdir_r.texi: Likewise.
9429         * doc/posix-functions/sigwait.texi: Likewise.
9430         * doc/posix-functions/ttyname_r.texi: Likewise.
9431         Reported by Simon Josefsson.
9432
9433 2010-04-25  Bruno Haible  <bruno@clisp.org>
9434
9435         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
9436         * gnulib-tool (func_usage): Document that --with-*-tests options apply
9437         also to --create-testdir.
9438         (func_acceptable): Don't consider the status of *-tests modules here.
9439         (func_modules_transitive_closure): Consider it here, before including a
9440         test module.
9441         (func_import, func_create_testdir): Set inc_all_direct_tests,
9442         inc_all_indirect_tests.
9443         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
9444         --create-testdir and --create-megatestdir.
9445
9446 2010-04-25  Bruno Haible  <bruno@clisp.org>
9447
9448         gnulib-tool: Add --without-*-tests options.
9449         * gnulib-tool (func_usage): Document the --without-*-tests options.
9450         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
9451         excl_unportable_tests): New variables.
9452         Fail if they are specified with --import or --update.
9453         (func_acceptable): Respect the excl_*_tests variables.
9454         (func_import): Set the excl_*_tests variables to empty.
9455
9456 2010-04-25  Simon Josefsson  <simon@josefsson.org>
9457             Bruno Haible  <bruno@clisp.org>
9458
9459         Work around a MacOS X 10.4 bug with openpty.
9460         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
9461         * tests/test-openpty.c (main): Close the master side explicitly.
9462
9463 2010-04-25  Bruno Haible  <bruno@clisp.org>
9464
9465         strnlen: Fix a C++ test error on MacOS X and Solaris.
9466         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
9467         the function is not declared.
9468         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
9469         Simon Josefsson.
9470
9471 2010-04-24  Bruno Haible  <bruno@clisp.org>
9472
9473         Avoid a gcc warning.
9474         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
9475         of correct type for %08lx directive.
9476         Reported by Eric Blake.
9477
9478 2010-04-24  Bruno Haible  <bruno@clisp.org>
9479
9480         vasnprintf: Correct errno value in case of out-of-memory.
9481         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
9482         or sprintf. Use the errno value from SNPRINTF or sprintf.
9483         Reported by Ian Beckwith <ianb@erislabs.net>.
9484
9485 2010-04-24  Bruno Haible  <bruno@clisp.org>
9486
9487         ansi-c++-opt: Find correct compiler when cross-compiling.
9488         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
9489         AC_CHECK_PROGS.
9490         Reported by Simon Josefsson.
9491
9492 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
9493
9494         vc-list-files: Add support for subversion
9495         * build-aux/vc-list-files: Use "svn list" to generate the list of
9496         files controlled by subversion.
9497
9498 2010-04-23  Jim Meyering  <meyering@redhat.com>
9499
9500         vc-list-files tests: convert to use init.sh
9501         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
9502         path_prepend_.
9503         Use Exit, not exit.
9504         Use skip_ rather than open coding it.
9505         Remove trap set-up and compare definitions.
9506         * tests/test-vc-list-files-git.sh: Likewise.
9507         * modules/vc-list-files-tests (Files): Add tests/init.sh.
9508
9509 2010-04-22  Simon Josefsson  <simon@josefsson.org>
9510
9511         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
9512         backup files.
9513
9514 2010-04-21  Simon Josefsson  <simon@josefsson.org>
9515
9516         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
9517
9518 2010-04-20  Eric Blake  <eblake@redhat.com>
9519
9520         tests: be robust to ignored SIGPIPE
9521         * tests/test-select-in.sh: Consume all output.
9522         * tests/test-lseek.sh: Check correct exit status, while avoiding
9523         EPIPE.
9524
9525 2010-04-20  Simon Josefsson  <simon@josefsson.org>
9526             Bruno Haible  <bruno@clisp.org>
9527
9528         visibility: Don't use -fvisibility if it leads to a warning.
9529         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
9530         yes, don't pretend that visibility works if it leads to a warning.
9531         Reported by Mike Gran <spk121@yahoo.com>.
9532
9533 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
9534
9535         * build-aux/bootstrap: Use "git -h" for testing for supported options
9536         instead of "git --help".  The short-form option only shows a summary,
9537         and doesn't layout the full man page.  Grep for the full option name
9538         in the summary, too.
9539
9540 2010-04-19  Bruno Haible  <bruno@clisp.org>
9541
9542         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
9543         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
9544         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
9545         mention of RELOCATABLE_STRIP.
9546         Reported by Sylvain Beucler <beuc@beuc.net>.
9547
9548 2010-04-19  Bruno Haible  <bruno@clisp.org>
9549
9550         * lib/diffseq.h: Fix typo in comment.
9551         Reported by Eric Blake.
9552
9553 2010-04-19  Bruno Haible  <bruno@clisp.org>
9554
9555         ioctl: Move autoconf macro to a .m4 file.
9556         * m4/ioctl.m4: New file, extracted from modules/ioctl.
9557         * modules/ioctl (Files): Add it.
9558         (configure.ac): Simply invoke gl_FUNC_IOCTL.
9559         Reported by Ian Beckwith <ianb@erislabs.net>.
9560
9561 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
9562             Bruno Haible  <bruno@clisp.org>
9563
9564         diffseq: Accommodate use-case with abstract arrays.
9565         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
9566         is not defined.
9567         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
9568         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
9569
9570 2010-04-18  Bruno Haible  <bruno@clisp.org>
9571
9572         * doc/posix-headers/stdbool.texi: More precise wording.
9573
9574 2010-04-17  Jim Meyering  <meyering@redhat.com>
9575
9576         maint.mk: use gnu-style indentation in an embedded perl script
9577         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9578         Rename variable: s/two/last_two_bytes/
9579
9580 2010-04-16  Eric Blake  <eblake@redhat.com>
9581
9582         test-stdbool: skip test that fails with Solaris CC
9583         * tests/test-stdbool.c (f): Skip test that causes compilation
9584         error under buggy C++ compiler.
9585         * lib/stdbool.in.h: Document the limitation.
9586         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9587
9588         setenv: allow compilation with C++
9589         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9590         register keyword.
9591
9592         stdint: allow test to pass with C++
9593         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9594
9595         getopt: allow compilation with C++
9596         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9597         struct.
9598         * lib/getopt.c (_getopt_internal_r): Use correct type.
9599         Reported by Dagobert Michelson, via Joel E. Denny.
9600
9601 2010-04-16  Bruno Haible  <bruno@clisp.org>
9602
9603         Override netdb.h always.
9604         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9605         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
9606         Reported by Ludovic Courtès <ludo@gnu.org>.
9607
9608 2010-04-15  Bruno Haible  <bruno@clisp.org>
9609
9610         openpty: Fix mistake from 2010-03-21.
9611         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
9612         Reported by Simon Josefsson.
9613
9614 2010-04-15  Eric Blake  <eblake@redhat.com>
9615
9616         test-forkpty: fix expected signature
9617         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
9618         Reported by Simon Josefsson.
9619
9620 2010-04-15  Jim Meyering  <meyering@redhat.com>
9621
9622         maint.mk: texinfo_suffix_re_: correct the default regexp
9623         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
9624
9625         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
9626         make it configurable via texinfo_suffix_re_.
9627
9628 2010-04-14  Eric Blake  <eblake@redhat.com>
9629
9630         strtok_r: relax license to LGPLv2+
9631         * modules/strtok_r (License): Relax license.
9632         Reported by Matthias Bolte.
9633
9634 2010-04-14  Simon Josefsson  <simon@josefsson.org>
9635
9636         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
9637         version 1.4.4 by default instead of requiring the libgcrypt
9638         version used during build.  This makes it possible to use the
9639         application with older but still binary compatible libgcrypt
9640         versions.
9641
9642 2010-04-13  Eric Blake  <eblake@redhat.com>
9643
9644         getopt-gnu: match recent glibc fixes and posix ruling
9645         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
9646         '+' handling, when requesting extensions.
9647         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
9648         'W;' handling.
9649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
9650         * doc/posix-functions/getopt.texi (getopt): Document this.
9651         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9652         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9653         Likewise.
9654
9655         getopt: merge bug fixes from glibc
9656         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
9657         diagnostics.  Honor '+:' correctly.  Reject ';'.
9658
9659         getopt-posix: detect MacOS bug
9660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
9661         optind when missing a required argument.
9662         * doc/posix-functions/getopt.texi (getopt): Document the bug.
9663         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9664         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9665         Likewise.
9666
9667         getopt-posix: avoid spurious failure on Solaris
9668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
9669         an indicator that setting optind=1 is sufficient for reset.
9670
9671         getopt-posix: avoid spurious failure on FreeBSD
9672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
9673         in POSIX mode, since the m4 test uses it.
9674
9675         gnulib-tool: silence warning on BSD sh
9676         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
9677
9678 2010-04-13  Jim Meyering  <meyering@redhat.com>
9679
9680         doc: users.txt: GNU patch now uses gnulib
9681         * users.txt: Add patch.
9682
9683 2010-04-12  Jim Meyering  <meyering@redhat.com>
9684
9685         maint.mk: generate more concise timing data for syntax-check rules
9686         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
9687         " done" from each line that reports a syntax-check test duration.
9688
9689 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
9690
9691         git-version-gen: use "git update-index..." rather than "git status"
9692         * build-aux/git-version-gen: Use git update-index --refresh, not
9693         "git status".  With some versions of git, "git status" would fail
9694         to update the index and result in an unwarranted "-dirty" suffix.
9695
9696 2010-04-11  Jim Meyering  <meyering@redhat.com>
9697
9698         openat: correct formatting (no semantic change)
9699         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
9700         Suggested by Bruno Haible.
9701
9702 2010-04-11  Bruno Haible  <bruno@clisp.org>
9703
9704         Stricter declaration checking in testdirs.
9705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9706         If for_tests is true, augment AM_CPPFLAGS to define
9707         GNULIB_STRICT_CHECKING.
9708         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
9709         GNULIB_STRICT_CHECKING is defined, verify that the function is
9710         declared.
9711
9712 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
9713             Bruno Haible  <bruno@clisp.org>
9714
9715         libunistring: Improve configure output.
9716         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
9717         Don't say "consider installing GNU libunistring" when checking again
9718         with libiconv.
9719
9720 2010-04-11  Bruno Haible  <bruno@clisp.org>
9721
9722         libunistring: Correct value of $LTLIBUNISTRING.
9723         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
9724         correct the value of $LTLIBUNISTRING.
9725
9726 2010-04-11  Bruno Haible  <bruno@clisp.org>
9727
9728         havelib: Add static libraries to LIBS in the right order.
9729         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9730         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9731
9732 2010-04-11  Bruno Haible  <bruno@clisp.org>
9733
9734         libunistring: Detect libunistring also when it depends on libiconv.
9735         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9736         the second AC_LIB_HAVE_LINKFLAGS invocation.
9737
9738 2010-04-11  James Youngman  <jay@gnu.org>
9739
9740         close-stream: declare local scalars to be "const"
9741         * lib/close-stream.c (close_stream): Make boolean variables const
9742         to document the fact that we set but do not change them.
9743
9744 2010-04-11  Bruno Haible  <bruno@clisp.org>
9745
9746         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9747
9748 2010-04-11  Jim Meyering  <meyering@redhat.com>
9749
9750         maint.mk: don't include dist-check.mk
9751         * top/maint.mk: Remove bogus include directive.
9752
9753         maint.mk: improve empty-line-at-EOF check
9754         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9755         solution, rather than tail+Perl-based one.  The latter would read
9756         a few kilobytes from the end of each file, and did not handle empty
9757         files properly.
9758
9759         maint.mk: print the elapsed time for each syntax-check rule
9760         * top/maint.mk (sc_m_rules_): Save start time in a file.
9761         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9762         (local-check): Interpose the .z rules
9763
9764 2010-04-11  Jim Meyering  <meyering@redhat.com>
9765
9766         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9767         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9768         empty file with one that ends in an empty line.
9769
9770 2010-04-10  Bruno Haible  <bruno@clisp.org>
9771
9772         mkdir: Make it work on mingw64.
9773         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9774         * lib/mkdir.c: Update comment.
9775         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
9776
9777 2010-04-10  Bruno Haible  <bruno@clisp.org>
9778
9779         Don't override improved macro from newer autoconf.
9780         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9781         autoconf >= 2.62.
9782         Reported by Joel E. Denny <jdenny@clemson.edu>.
9783
9784 2010-04-10  Jim Meyering  <meyering@redhat.com>
9785
9786         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9787         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9788
9789         maint.mk: correct a diagnostic
9790         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9791         in diagnostic; now use $prohibit.
9792
9793 2010-04-10  Bruno Haible  <address@hidden>
9794
9795         fchownat: Fix a C++ test error on Solaris 8.
9796         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9797         the function does not exist.
9798
9799 2010-04-10  Bruno Haible  <bruno@clisp.org>
9800
9801         vasnprintf: Add more tests.
9802         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9803         (test_function): Test converting an invalid wide string.
9804
9805         vasnprintf: Correct handling of unconvertible wide string arguments.
9806         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9807         VASNPRINTF.
9808         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9809         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9810         smaller than the expected maximum need for the directive. Set errno to
9811         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9812         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9814         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9815         * modules/vasnprintf (Files): Add m4/printf.m4.
9816         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9817
9818 2010-04-10  Bruno Haible  <bruno@clisp.org>
9819
9820         vasnprintf: Fix crash in %ls directive.
9821         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9822         string is passed as argument to %ls, with no precision and no width.
9823         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9824
9825 2010-04-10  Bruno Haible  <bruno@clisp.org>
9826
9827         vasnprintf: Fix multiple test failures on mingw.
9828         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9829         _snprintf, or snwprintf, not _snwprintf.
9830
9831 2010-04-10  Bruno Haible  <bruno@clisp.org>
9832
9833         write: Fix a C++ test error on mingw.
9834         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9835
9836 2010-04-10  Bruno Haible  <bruno@clisp.org>
9837
9838         vasnprintf test: Reduce code duplication.
9839         * tests/test-vasnprintf.c (test_function): New function, extracted from
9840         test_vasnprintf.
9841         (test_vasnprintf, test_asnprintf): Invoke it.
9842
9843 2010-04-10  Bruno Haible  <bruno@clisp.org>
9844
9845         strnlen: Fix warning in C++ mode on MacOS X.
9846         * lib/string.in.h (strnlen): Use the modern idiom.
9847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9848         defining strnlen as a macro already in <config.h>.
9849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9850         REPLACE_STRNLEN.
9851         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9853
9854 2010-04-08  James Youngman  <jay@gnu.org>
9855
9856         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9857         the example.
9858
9859 2010-04-09  Jim Meyering  <meyering@redhat.com>
9860
9861         maint.mk: print better diagnostic when there is no $(_hv_file)
9862         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9863         announce that when $(_hv_file) (aka help-version) does not exist.
9864
9865         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9866         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9867         not try to interpret its random input bytes.  Jarno Rajahalme reported
9868         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9869         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9870         (mktempd_): Likewise, just in case.
9871
9872         ftruncate: add two years to projected module removal date: 2012
9873         * m4/ftruncate.m4: Adjust comments.
9874
9875         ftruncate: mark module as obsolete; even MinGW provides it, now
9876         * modules/ftruncate (Status): Obsolete.
9877         (Notice): Say that.
9878         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9879         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9880
9881 2010-04-08  Bruno Haible  <bruno@clisp.org>
9882
9883         Fix side effects from tests-related modules.
9884         * modules/dprintf-posix (Comment): New section.
9885         * modules/fprintf-posix (Comment): Likewise.
9886         * modules/obstack-printf-posix (Comment): Likewise.
9887         * modules/printf-posix (Comment): Likewise.
9888         * modules/snprintf-posix (Comment): Likewise.
9889         * modules/sprintf-posix (Comment): Likewise.
9890         * modules/vasnprintf-posix (Comment): Likewise.
9891         * modules/vasprintf-posix (Comment): Likewise.
9892         * modules/vdprintf-posix (Comment): Likewise.
9893         * modules/vfprintf-posix (Comment): Likewise.
9894         * modules/vprintf-posix (Comment): Likewise.
9895         * modules/vsnprintf-posix (Comment): Likewise.
9896         * modules/vsprintf-posix (Comment): Likewise.
9897         * modules/xprintf-posix (Comment): Likewise.
9898         * modules/xvasprintf-posix (Comment): Likewise.
9899         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9900         * modules/floorf-tests (Depends-on): Likewise.
9901         * modules/round-tests (Depends-on): Likewise.
9902         * modules/roundf-tests (Depends-on): Likewise.
9903         * modules/trunc-tests (Depends-on): Likewise.
9904         * modules/truncf-tests (Depends-on): Likewise.
9905         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9906         'fprintf-posix' module is not present.
9907         * tests/test-floorf2.c (check): Likewise.
9908         * tests/test-trunc2.c (check): Likewise.
9909         * tests/test-truncf2.c (check): Likewise.
9910         * tests/test-round2.c (equal): Likewise.
9911         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9912
9913 2010-04-07  Karl Berry  <karl@gnu.org>
9914
9915         * config/srclist.txt,
9916         * config/srclistvars.sh,
9917         * config/srclist-update: doc fixes.
9918
9919 2010-04-07  Jim Meyering  <meyering@redhat.com>
9920
9921         maint.mk: add a PATH crosschecking syntax-check rule
9922         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9923         Useful if you use a test like the one in help-version (coreutils,
9924         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9925         printed by prog --version.
9926
9927 2010-04-06  Bruno Haible  <bruno@clisp.org>
9928
9929         Fix link error on mingw.
9930         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9931         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9932
9933 2010-04-06  Bruno Haible  <bruno@clisp.org>
9934
9935         Assume rmdir exists.
9936         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9937
9938 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9939
9940         doc: update users.txt
9941         * users.txt: Add gcal.
9942
9943 2010-04-06  Jim Meyering  <meyering@redhat.com>
9944
9945         init.sh: simply unset TMPDIR rather than risking env -i
9946         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9947         although it probably works fine on all Unix-based systems, some
9948         systems (Cygwin?) cannot tolerate a totally cleared environment.
9949         Suggestion from Eric Blake.
9950
9951 2010-04-06  Jim Meyering  <meyering@redhat.com>
9952
9953         init.sh: portability fix: use env's POSIX-specified -i option not -u
9954         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9955         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9956
9957 2010-04-05  Bruno Haible  <bruno@clisp.org>
9958
9959         btowc: Work around Cygwin 1.7.2 bug.
9960         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9961         does not map NUL to 0.
9962         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9963
9964 2010-04-05  Bruno Haible  <bruno@clisp.org>
9965
9966         Make the multithread modules work on Cygwin 1.7.2.
9967         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9968         imported symbols can be declared weak, so that it returns "no" on
9969         Cygwin 1.7.2.
9970
9971 2010-04-05  Bruno Haible  <bruno@clisp.org>
9972
9973         Use the module 'strncat'.
9974         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9975
9976         Tests for module 'strncat'.
9977         * modules/strncat-tests: New file.
9978         * tests/test-strncat.c: New file.
9979
9980         New module 'strncat'.
9981         * lib/string.in.h (strncat): New declaration.
9982         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9983         * m4/strncat.m4: New file, based on m4/memchr.m4.
9984         * modules/strncat: New file.
9985         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9986         is declared.
9987         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9988         REPLACE_STRNCAT.
9989         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9990         REPLACE_STRNCAT.
9991         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9992         module.
9993         * tests/test-string-c++.cc: Check signature of strncat.
9994
9995 2010-04-05  Jim Meyering  <meyering@redhat.com>
9996
9997         xstrtoumax-tests: convert to use init.sh
9998         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9999         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10000         Use Exit, not exit.
10001         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10002
10003         xstrtoimax-tests: convert to use init.sh
10004         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
10005         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10006         Use Exit, not exit.
10007         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10008
10009 2010-04-05  Bruno Haible  <bruno@clisp.org>
10010
10011         sys_socket: Avoid #define replacements in C++ mode.
10012         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
10013         warning to the function if possible, rather than #defining the symbol
10014         to a dysfunctional alias.
10015
10016 2010-04-05  Bruno Haible  <bruno@clisp.org>
10017
10018         fseeko: Fix C++ test error on mingw.
10019         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
10020         gl_FUNC_FSEEKO.
10021         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
10022         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
10023         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
10024         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
10025
10026 2010-04-05  Bruno Haible  <bruno@clisp.org>
10027
10028         duplocale: Improve test output.
10029         * tests/test-duplocale.c (main): Print reason for skipped test.
10030
10031 2010-04-05  Bruno Haible  <bruno@clisp.org>
10032
10033         Assume rmdir exists.
10034         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
10035         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
10036
10037 2010-04-05  Bruno Haible  <bruno@clisp.org>
10038
10039         Fix link error on Solaris 8 with cc.
10040         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
10041
10042 2010-04-05  Bruno Haible  <bruno@clisp.org>
10043
10044         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10045         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
10046
10047 2010-04-05  Bruno Haible  <bruno@clisp.org>
10048
10049         vasprintf: Update documentation.
10050         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
10051
10052 2010-04-05  Bruno Haible  <bruno@clisp.org>
10053
10054         ptsname: Improve test.
10055         * tests/test-ptsname.c (main): Also try the various master names of BSD
10056         systems.
10057
10058 2010-04-05  Bruno Haible  <bruno@clisp.org>
10059
10060         memchr: Avoid a possible C++ test error.
10061         * lib/string.in.h (memchr): Provide declaration if function is missing.
10062         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
10063         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
10064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
10065         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
10066
10067 2010-04-05  Bruno Haible  <bruno@clisp.org>
10068
10069         strtok_r: Improve idiom.
10070         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
10071         AC_LIBOBJ is used.
10072
10073 2010-04-05  Bruno Haible  <bruno@clisp.org>
10074
10075         strdup: Improve idiom.
10076         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
10077         AC_LIBOBJ is used.
10078         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
10079         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
10080         when AC_LIBOBJ is used.
10081
10082 2010-04-05  Bruno Haible  <bruno@clisp.org>
10083
10084         mbsinit, mbrtowc, wcrtomb: Improve idioms.
10085         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
10086         don't set REPLACE_MBSINIT to 1.
10087         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
10088         don't set REPLACE_MBRTOWC to 1.
10089         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
10090         exist, don't set REPLACE_MBSRTOWCS to 1.
10091         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
10092         exist, don't set REPLACE_MBSNRTOWCS to 1.
10093         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
10094         don't set REPLACE_WCRTOMB to 1.
10095         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
10096         exist, don't set REPLACE_WCSRTOMBS to 1.
10097         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
10098         exist, don't set REPLACE_WCSNRTOMBS to 1.
10099
10100 2010-04-05  Bruno Haible  <bruno@clisp.org>
10101
10102         ldexpl: Improve idiom.
10103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
10104         make sure to set HAVE_DECL_LDEXPL to 0.
10105
10106 2010-04-05  Jim Meyering  <meyering@redhat.com>
10107
10108         xstrtol-tests: convert to use init.sh
10109         * modules/xstrtol-tests (Files): Add tests/init.sh.
10110         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10111         Use Exit, not exit.
10112         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10113
10114         atexit-tests: convert to use init.sh
10115         * modules/atexit-tests (Files): Add tests/init.sh.
10116         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10117         Use Exit, not exit.
10118         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10119
10120         init.sh: fix typo
10121         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
10122
10123         init.sh: make it easier for a test script to write to the tty, ...
10124         when using automake's parallel-tests mode.
10125         * tests/init.sh (stderr_fileno_): Define overridable variable.
10126         (warn_): New function, to use it.
10127         (fail_, skip_, framework_failure_): Use warn_.
10128
10129 2010-04-04  Bruno Haible  <bruno@clisp.org>
10130
10131         btowc: Avoid warning.
10132         * lib/btowc.c: Include <stdlib.h>.
10133         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
10134
10135 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10136             Bruno Haible  <bruno@clisp.org>
10137
10138         wchar: Port to NetBSD 1.5.
10139         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
10140         * lib/wctype.in.h (WEOF): Likewise.
10141
10142 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10143             Bruno Haible  <bruno@clisp.org>
10144
10145         Port extended stdio to NetBSD 1.5.
10146         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
10147         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
10148         older.
10149
10150 2010-04-04  Bruno Haible  <bruno@clisp.org>
10151
10152         string: Remove unused substitution.
10153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10154         HAVE_DECL_STRERROR.
10155         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
10156
10157 2010-04-04  Bruno Haible  <bruno@clisp.org>
10158
10159         strtod: Avoid a possible C++ test error.
10160         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
10161         set REPLACE_STRTOD.
10162
10163 2010-04-04  Bruno Haible  <bruno@clisp.org>
10164
10165         strerror: Update documentation.
10166         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
10167
10168 2010-04-04  Bruno Haible  <bruno@clisp.org>
10169
10170         stdio: Fix some C++ test errors on Solaris 8 with GCC.
10171         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
10172         _GL_CXXALIAS_SYS_CAST.
10173
10174 2010-04-04  Bruno Haible  <bruno@clisp.org>
10175
10176         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10177         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
10178         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
10179         REPLACE_FREXPL to 1.
10180         * doc/posix-functions/frexpl.texi: Update documentation.
10181
10182 2010-04-04  Bruno Haible  <bruno@clisp.org>
10183
10184         math: Fix some C++ test errors on Solaris 8 and Cygwin.
10185         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
10186
10187 2010-04-04  Bruno Haible  <bruno@clisp.org>
10188
10189         Implement nanosleep for native Windows.
10190         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
10191
10192 2010-04-04  Bruno Haible  <bruno@clisp.org>
10193
10194         math: Fix some C++ test errors on Solaris 8.
10195         * lib/math.in.h (truncf, trunc): Use simpler idiom.
10196
10197 2010-04-04  Bruno Haible  <bruno@clisp.org>
10198
10199         math: Fix some C++ test errors on Cygwin.
10200         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
10201         truncl): Provide declaration if the system does not have it.
10202         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
10203         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
10204         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
10205         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
10206         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
10207         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
10208         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
10209         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
10210         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
10211         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
10212         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
10213         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
10214         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
10215         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
10216         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
10217         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
10218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
10219         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10220         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10221         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
10222         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10223         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10224
10225 2010-04-04  Bruno Haible  <bruno@clisp.org>
10226
10227         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
10228         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10229         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10230         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10231         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10232         * m4/isinf.m4 (gl_ISINF): Likewise.
10233         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10234
10235 2010-04-04  Bruno Haible  <bruno@clisp.org>
10236
10237         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
10238         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10239
10240 2010-04-04  Bruno Haible  <bruno@clisp.org>
10241
10242         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
10243         * modules/tmpfile (configure.ac): Update.
10244
10245         tmpfile: Fix C++ test error on mingw.
10246         * lib/stdio.in.h (tmpfile): New declaration.
10247         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
10248         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
10249         * modules/tmpfile (Depends-on): Add stdio.
10250         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10251         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
10252         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
10253         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
10254         REPLACE_TMPFILE.
10255         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
10256
10257 2010-04-04  Bruno Haible  <bruno@clisp.org>
10258
10259         ioctl: Fix C++ test error on mingw.
10260         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
10261         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
10262         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
10263
10264 2010-04-03  Bruno Haible  <bruno@clisp.org>
10265
10266         wcwidth: Fix C++ test error on mingw.
10267         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
10268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
10269         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
10270
10271 2010-04-03  Bruno Haible  <bruno@clisp.org>
10272
10273         nanosleep: Fix C++ test error on mingw.
10274         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
10275         * lib/time.in.h (nanosleep): Use modern idiom.
10276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
10277         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
10278         REPLACE_NANOSLEEP to 1.
10279         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
10280         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
10281
10282 2010-04-03  Bruno Haible  <bruno@clisp.org>
10283
10284         strptime: Fix C++ test error on mingw.
10285         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
10286         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
10287         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
10288         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
10289         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
10290         not REPLACE_STRPTIME.
10291         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
10292         REPLACE_STRPTIME.
10293
10294 2010-04-03  Bruno Haible  <bruno@clisp.org>
10295
10296         timegm: Fix C++ test error on mingw.
10297         * lib/time.in.h (timegm): Use modern idiom.
10298         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
10299         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
10300         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
10301         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
10302
10303 2010-04-03  Bruno Haible  <bruno@clisp.org>
10304
10305         timegm: Assume declaration if function exists.
10306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
10307         if it exists. Don't clobber ac_cv_func_timegm.
10308
10309 2010-04-03  Bruno Haible  <bruno@clisp.org>
10310
10311         time_r: Fix C++ test error on mingw.
10312         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
10313         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
10314         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
10315         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
10316         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
10317
10318 2010-04-03  Bruno Haible  <bruno@clisp.org>
10319
10320         time_r: Minor updates.
10321         * modules/time_r (Description): Mention the provided functions.
10322         * lib/time_r.c: Don't include <string.h>.
10323         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
10324         * doc/posix-functions/localtime_r.texi: Likewise.
10325
10326 2010-04-03  Bruno Haible  <bruno@clisp.org>
10327
10328         time: Fix regression introduced on 2010-03-08.
10329         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
10330         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
10331
10332 2010-04-03  Jim Meyering  <meyering@redhat.com>
10333
10334         maint.mk: don't silently disable project-specific syntax-check rules
10335         * top/maint.mk (_prohibit_regexp): Define, to help people realize
10336         that they need to convert their project-specific syntax-check rules
10337         to use the new _sc_search_regexp.
10338
10339 2010-04-03  Bruno Haible  <bruno@clisp.org>
10340
10341         fchdir: Fix regression introduced on 2010-03-08.
10342         * lib/unistd.in.h (fchdir): Fix declaration.
10343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
10344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
10345         REPLACE_FCHDIR.
10346         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
10347         REPLACE_FCHDIR.
10348
10349 2010-04-03  Bruno Haible  <bruno@clisp.org>
10350
10351         getpagesize: Fix C++ test error on mingw.
10352         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
10353         system does not declare the function.
10354         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
10355         declared.
10356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10357         HAVE_DECL_GETPAGESIZE.
10358         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
10359
10360 2010-04-03  Bruno Haible  <bruno@clisp.org>
10361
10362         stdio: Make C++ tests work on mingw.
10363         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
10364         does not declare the function.
10365
10366 2010-04-03  Bruno Haible  <bruno@clisp.org>
10367
10368         ftello: Fix C++ test error on mingw.
10369         * lib/stdio.in.h (ftello): Use modern idiom.
10370         * lib/ftello.c (ftello): Renamed from rpl_ftello.
10371         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
10372         is missing and that it needs to be replaced.
10373         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
10374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
10375         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
10376
10377 2010-04-03  Bruno Haible  <bruno@clisp.org>
10378
10379         fseeko: Fix C++ test error on mingw.
10380         * lib/stdio.in.h (fseeko): Use modern idiom.
10381         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
10382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
10383         is missing and that it needs to be replaced.
10384         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
10385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10386         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
10387
10388 2010-04-03  Bruno Haible  <bruno@clisp.org>
10389
10390         mkstemp: Fix C++ test error on mingw.
10391         * lib/stdlib.in.h (mkstemp): Use modern idiom.
10392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
10393         function is missing and that it needs to be replaced.
10394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
10395         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
10396
10397 2010-04-03  Bruno Haible  <bruno@clisp.org>
10398
10399         stpncpy: Fix C++ test error on mingw.
10400         * lib/string.in.h (stpncpy): Use modern idiom.
10401         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
10402         function is missing and that it needs to be replaced.
10403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10404         REPLACE_STPNCPY.
10405         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
10406
10407 2010-04-03  Bruno Haible  <bruno@clisp.org>
10408
10409         sys_stat: Fix C++ test error on mingw.
10410         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
10411         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
10412
10413 2010-04-03  Bruno Haible  <bruno@clisp.org>
10414
10415         pty: Update doc.
10416         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
10417
10418 2010-04-03  Bruno Haible  <bruno@clisp.org>
10419
10420         unistd: Fix C++ test error on mingw.
10421         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
10422
10423 2010-04-03  Bruno Haible  <bruno@clisp.org>
10424
10425         Update doc regarding mingw.
10426         * doc/glibc-functions/openpty.texi: Update regarding mingw.
10427         * doc/glibc-functions/login_tty.texi: Likewise.
10428         * doc/glibc-functions/forkpty.texi: Likewise.
10429
10430 2010-04-03  Bruno Haible  <bruno@clisp.org>
10431
10432         stdlib: Avoid compilation failure of c-strtold on mingw.
10433         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
10434
10435 2010-04-03  Bruno Haible  <bruno@clisp.org>
10436
10437         locale: Make C++ tests work on Cygwin and mingw.
10438         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
10439         cannot provide the function.
10440         Reported by Simon Josefsson.
10441
10442 2010-04-03  Bruno Haible  <bruno@clisp.org>
10443
10444         localename: Port to MacOS X 10.6.
10445         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
10446         memory layout of the locales in MacOS X 10.6 as well.
10447         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
10448
10449 2010-04-02  Bruno Haible  <bruno@clisp.org>
10450
10451         gnulib-tool: Ensure that long-running tests are executed last.
10452         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
10453         running tests after the one for the other tests.
10454
10455 2010-04-02  Bruno Haible  <bruno@clisp.org>
10456
10457         gnulib-tool: Ensure the tests in the main directory are executed first.
10458         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
10459         start with the current directory.
10460
10461 2010-04-02  Bruno Haible  <bruno@clisp.org>
10462
10463         Tests for module 'havelib', moved here from GNU gettext.
10464         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
10465         modifications.
10466         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
10467         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
10468         with modifications.
10469         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
10470         modifications.
10471         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
10472         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
10473         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
10474         with modifications.
10475         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
10476         with modifications.
10477         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
10478         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
10479         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
10480         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
10481         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
10482         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
10483         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
10484         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
10485         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
10486         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
10487         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
10488         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
10489         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
10490         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
10491         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
10492         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
10493         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
10494         with modifications.
10495         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
10496         with modifications.
10497         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
10498         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
10499         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
10500         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
10501         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
10502         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
10503         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
10504         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
10505         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
10506         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
10507         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
10508         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
10509         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
10510         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
10511         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
10512         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
10513         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
10514         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
10515         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
10516         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
10517         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
10518         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
10519         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
10520         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
10521         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
10522         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
10523         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
10524         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
10525         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
10526         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
10527         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
10528         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
10529         * tests/havelib/rpathx/rpathx.c: New file, from
10530         gettext/autoconf-lib-link.
10531         * tests/havelib/rpathx/Makefile.am: New file, from
10532         gettext/autoconf-lib-link.
10533         * tests/havelib/rpathx/configure.ac: New file, from
10534         gettext/autoconf-lib-link with modifications.
10535         * tests/havelib/rpathy/rpathy.c: New file, from
10536         gettext/autoconf-lib-link.
10537         * tests/havelib/rpathy/Makefile.am: New file, from
10538         gettext/autoconf-lib-link.
10539         * tests/havelib/rpathy/configure.ac: New file, from
10540         gettext/autoconf-lib-link with modifications.
10541         * tests/havelib/rpathz/rpathz.c: New file, from
10542         gettext/autoconf-lib-link.
10543         * tests/havelib/rpathz/Makefile.am: New file, from
10544         gettext/autoconf-lib-link.
10545         * tests/havelib/rpathz/configure.ac: New file, from
10546         gettext/autoconf-lib-link with modifications.
10547         * tests/havelib/rpathlx/usex.c: New file, from
10548         gettext/autoconf-lib-link.
10549         * tests/havelib/rpathlx/Makefile.am: New file, from
10550         gettext/autoconf-lib-link.
10551         * tests/havelib/rpathlx/configure.ac: New file, from
10552         gettext/autoconf-lib-link with modifications.
10553         * tests/havelib/rpathly/usey.c: New file, from
10554         gettext/autoconf-lib-link.
10555         * tests/havelib/rpathly/Makefile.am: New file, from
10556         gettext/autoconf-lib-link.
10557         * tests/havelib/rpathly/configure.ac: New file, from
10558         gettext/autoconf-lib-link with modifications.
10559         * tests/havelib/rpathlz/usez.c: New file, from
10560         gettext/autoconf-lib-link.
10561         * tests/havelib/rpathlz/Makefile.am: New file, from
10562         gettext/autoconf-lib-link.
10563         * tests/havelib/rpathlz/configure.ac: New file, from
10564         gettext/autoconf-lib-link with modifications.
10565         * tests/havelib/rpathlyx/usey.c: New file, from
10566         gettext/autoconf-lib-link.
10567         * tests/havelib/rpathlyx/Makefile.am: New file, from
10568         gettext/autoconf-lib-link.
10569         * tests/havelib/rpathlyx/configure.ac: New file, from
10570         gettext/autoconf-lib-link with modifications.
10571         * tests/havelib/rpathlzyx/usez.c: New file, from
10572         gettext/autoconf-lib-link.
10573         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10574         gettext/autoconf-lib-link.
10575         * tests/havelib/rpathlzyx/configure.ac: New file, from
10576         gettext/autoconf-lib-link with modifications.
10577         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10578         with modifications.
10579
10580 2010-04-02  Bruno Haible  <bruno@clisp.org>
10581
10582         gnulib-tool: Create distributed built sources also for the tests.
10583         * gnulib-tool (func_create_testdir): Also generate distributed built
10584         sources in the tests directory.
10585
10586 2010-04-02  Bruno Haible  <bruno@clisp.org>
10587
10588         gnulib-tool: Obey user's environment variables.
10589         * gnulib-tool (func_create_testdir): When creating built sources,
10590         respect the environment variables for autoconf, automake, etc. given by
10591         the user.
10592
10593 2010-04-02  Bruno Haible  <bruno@clisp.org>
10594
10595         gnulib-tool: Provide the value of --m4-base to modules.
10596         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10597         of gl_m4_base.
10598
10599 2010-04-02  Eric Blake  <eblake@redhat.com>
10600
10601         maint.mk: fix some fallout
10602         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10603         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10604
10605 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10606
10607         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
10608         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
10609         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
10610         (sc_cast_of_x_alloc_return_value): Likewise.
10611         (sc_cast_of_alloca_return_value): Likewise.
10612         (sc_space_tab): Likewise.
10613         (sc_prohibit_atoi_atof): Likewise.
10614         (sc_prohibit_magic_number_exit): Likewise.
10615         (sc_error_exit_success): Likewise.
10616         (sc_file_system): Likewise.
10617         (sc_prohibit_have_config_h): Likewise.
10618         (sc_require_config_h): Likewise.
10619         (sc_prohibit_HAVE_MBRTOWC): Likewise.
10620         (sc_obsolete_symbols): Likewise.
10621         (sc_changelog): Likewise.
10622         (sc_program_name): Likewise.
10623         (sc_the_the): Likewise.
10624         (sc_trailing_blank): Likewise.
10625         (sc_two_space_separator_in_usage): Likewise.
10626         (sc_useless_cpp_parens): Likewise.
10627         (sc_GPL_version): Likewise.
10628         (sc_GFDL_version): Likewise.
10629         (sc_texinfo_acronym): Likewise.
10630         (sc_prohibit_cvs_keyword): Likewise.
10631         (sc_prohibit_stat_st_blocks): Likewise.
10632         (sc_prohibit_S_IS_definition): Likewise.
10633         (sc_redundant_const): Likewise.
10634         (sc_makefile_TAB_only_indentation): Likewise.
10635         (sc_m4_quote_check): Likewise.
10636         (sc_makefile_path_separator_check): Likewise.
10637         (sc_copyright_check): Likewise.
10638         (sc_Wundef_boolean): Likewise.
10639         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10640
10641         maint.mk: match 0 or more whitespace-before-function-call '('
10642         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
10643         that have zero or two-and-more spaces between the function name
10644         and the open parenthesis.
10645         (sc_error_message_warn_fatal): Likewise.
10646         (sc_error_message_uppercase): Likewise.
10647         (sc_error_message_period): Likewise.
10648
10649 2010-03-31  Eric Blake  <eblake@redhat.com>
10650
10651         maint.mk: check for [ as well as test
10652         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
10653         Based on a libvirt report by Matthias Bolte.
10654
10655         gnumakefile: don't squelch _version output
10656         * top/GNUmakefile (_version): Create one-shot dependency rather
10657         than using $(shell) when version must be regenerated.
10658         (_autoreconf): Run verbosely, by default.
10659
10660         sys_time: avoid compiler warnings
10661         * lib/sys_time.in.h (includes): Ensure gcc pragma is
10662         unconditional, fixing regression from 2010-03-29.
10663         Reported by Simon Josefsson.
10664
10665 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10666
10667         maint.mk: s/_header_without_use/_sc_header_without_use/
10668         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
10669         (sc_prohibit_assert_without_use): Use the new name.
10670         (sc_prohibit_close_stream_without_use): Likewise.
10671         (sc_prohibit_getopt_without_use): Likewise.
10672         (sc_prohibit_quotearg_without_use): Likewise.
10673         (sc_prohibit_quote_without_use): Likewise.
10674         (sc_prohibit_long_options_without_use): Likewise.
10675         (sc_prohibit_inttostr_without_use): Likewise.
10676         (sc_prohibit_ignore_value_without_use): Likewise.
10677         (sc_prohibit_error_without_use): Likewise.
10678         (sc_prohibit_xalloc_without_use): Likewise.
10679         (sc_prohibit_hash_without_use): Likewise.
10680         (sc_prohibit_hash_pjw_without_use): Likewise.
10681         (sc_prohibit_safe_read_without_use): Likewise.
10682         (sc_prohibit_argmatch_without_use): Likewise.
10683         (sc_prohibit_canonicalize_without_use): Likewise.
10684         (sc_prohibit_root_dev_ino_without_use): Likewise.
10685         (sc_prohibit_openat_without_use): Likewise.
10686         (sc_prohibit_c_ctype_without_use): Likewise.
10687         (sc_prohibit_signal_without_use): Likewise.
10688         (sc_prohibit_intprops_without_use): Likewise.
10689
10690 2010-03-30  Eric Blake  <eblake@redhat.com>
10691
10692         maint: improve module indicators
10693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
10694         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
10695         columns, and avoid extra macro expansion.
10696
10697         fdopendir: work around FreeBSD bug
10698         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10699         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
10700         * modules/dirent (Makefile.am): Substitute it.
10701         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
10702         declaration.
10703         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10704         fix.
10705         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10706
10707 2010-03-29  Bruno Haible  <bruno@clisp.org>
10708
10709         Emit #pragma system_header after the inclusion guard, not before.
10710         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
10711         guard that spans the entire file, not before. This enables an
10712         optimization in GCC's preprocessor.
10713         * lib/ctype.in.h: Likewise.
10714         * lib/dirent.in.h: Likewise.
10715         * lib/errno.in.h: Likewise.
10716         * lib/float.in.h: Likewise.
10717         * lib/getopt.in.h: Likewise.
10718         * lib/iconv.in.h: Likewise.
10719         * lib/langinfo.in.h: Likewise.
10720         * lib/locale.in.h: Likewise.
10721         * lib/math.in.h: Likewise.
10722         * lib/netdb.in.h: Likewise.
10723         * lib/netinet_in.in.h: Likewise.
10724         * lib/pty.in.h: Likewise.
10725         * lib/sched.in.h: Likewise.
10726         * lib/se-selinux.in.h: Likewise.
10727         * lib/search.in.h: Likewise.
10728         * lib/spawn.in.h: Likewise.
10729         * lib/stdarg.in.h: Likewise.
10730         * lib/stdint.in.h: Likewise.
10731         * lib/string.in.h: Likewise.
10732         * lib/strings.in.h: Likewise.
10733         * lib/sys_file.in.h: Likewise.
10734         * lib/sys_ioctl.in.h: Likewise.
10735         * lib/sys_time.in.h: Likewise.
10736         * lib/sys_times.in.h: Likewise.
10737         * lib/sys_utsname.in.h: Likewise.
10738         * lib/sys_wait.in.h: Likewise.
10739         * lib/sysexits.in.h: Likewise.
10740         * lib/wctype.in.h: Likewise.
10741
10742 2010-03-28  James Youngman  <jay@gnu.org>
10743
10744         save-cwd: don't leak a file descriptor when the caller execs.
10745         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10746         saved file descriptor.
10747         * modules/save-cwd (Depends-on): Depend on cloexec.
10748
10749 2010-03-29  Bruno Haible  <bruno@clisp.org>
10750
10751         Remove vestiges of fts-lgpl module.
10752         * lib/fts_.h: Assume GNULIB_FTS is 1.
10753         * lib/fts.c: Likewise.
10754         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10755
10756 2010-03-28  Bruno Haible  <bruno@clisp.org>
10757
10758         Fix definition of tests witness macro.
10759         * gnulib-tool (func_import): Fix definition of witness macro.
10760
10761 2010-03-28  Bruno Haible  <bruno@clisp.org>
10762
10763         Fix ioctl's protoype on glibc systems.
10764         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10765         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10766         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10767         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10768         signature. If not, arrange to replace the ioctl function.
10769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10770         REPLACE_IOCTL.
10771         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10772         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10773         Reported by Ludovic Courtès <ludo@gnu.org>.
10774
10775 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10776
10777         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10778         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10779         made it so grep -r --include=GLOB* ... did not work.
10780
10781 2010-03-26  Jim Meyering  <meyering@redhat.com>
10782             Eric Blake  <eblake@redhat.com>
10783
10784         maint.mk: prohibit use of test's -o and -a operators
10785         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10786
10787 2010-03-28  Bruno Haible  <bruno@clisp.org>
10788
10789         Remove unused GNULIB_XYZ macro definitions.
10790         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10791         invocation.
10792
10793 2010-03-28  Bruno Haible  <bruno@clisp.org>
10794
10795         Mark privileged tests modules.
10796         * modules/idpriv-drop-tests (Status): New section.
10797         * modules/idpriv-droptemp-tests (Status): New section.
10798
10799 2010-03-28  Bruno Haible  <bruno@clisp.org>
10800
10801         Split C++ tests into separate tests modules.
10802         * modules/dirent-c++-tests: New file, extracted from
10803         modules/dirent-tests.
10804         * modules/dirent-tests: Depend on it.
10805         * modules/fcntl-h-c++-tests: New file, extracted from
10806         modules/fcntl-h-tests.
10807         * modules/fcntl-h-tests: Depend on it.
10808         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10809         * modules/glob-tests: Depend on it.
10810         * modules/iconv-h-c++-tests: New file, extracted from
10811         modules/iconv-h-tests.
10812         * modules/iconv-h-tests: Depend on it.
10813         * modules/langinfo-c++-tests: New file, extracted from
10814         modules/langinfo-tests.
10815         * modules/langinfo-tests: Depend on it.
10816         * modules/locale-c++-tests: New file, extracted from
10817         modules/locale-tests.
10818         * modules/locale-tests: Depend on it.
10819         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10820         * modules/math-tests: Depend on it.
10821         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10822         * modules/pty-tests: Depend on it.
10823         * modules/search-c++-tests: New file, extracted from
10824         modules/search-tests.
10825         * modules/search-tests: Depend on it.
10826         * modules/signal-c++-tests: New file, extracted from
10827         modules/signal-tests.
10828         * modules/signal-tests: Depend on it.
10829         * modules/spawn-c++-tests: New file, extracted from
10830         modules/spawn-tests.
10831         * modules/spawn-tests: Depend on it.
10832         * modules/stdio-c++-tests: New file, extracted from
10833         modules/stdio-tests.
10834         * modules/stdio-tests: Depend on it.
10835         * modules/stdlib-c++-tests: New file, extracted from
10836         modules/stdlib-tests.
10837         * modules/stdlib-tests: Depend on it.
10838         * modules/string-c++-tests: New file, extracted from
10839         modules/string-tests.
10840         * modules/string-tests: Depend on it.
10841         * modules/sys_ioctl-c++-tests: New file, extracted from
10842         modules/sys_ioctl-tests.
10843         * modules/sys_ioctl-tests: Depend on it.
10844         * modules/sys_select-c++-tests: New file, extracted from
10845         modules/sys_select-tests.
10846         * modules/sys_select-tests: Depend on it.
10847         * modules/sys_socket-c++-tests: New file, extracted from
10848         modules/sys_socket-tests.
10849         * modules/sys_socket-tests: Depend on it.
10850         * modules/sys_stat-c++-tests: New file, extracted from
10851         modules/sys_stat-tests.
10852         * modules/sys_stat-tests: Depend on it.
10853         * modules/sys_time-c++-tests: New file, extracted from
10854         modules/sys_time-tests.
10855         * modules/sys_time-tests: Depend on it.
10856         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10857         * modules/time-tests: Depend on it.
10858         * modules/unistd-c++-tests: New file, extracted from
10859         modules/unistd-tests.
10860         * modules/unistd-tests: Depend on it.
10861         * modules/wchar-c++-tests: New file, extracted from
10862         modules/wchar-tests.
10863         * modules/wchar-tests: Depend on it.
10864         * modules/wctype-c++-tests: New file, extracted from
10865         modules/wctype-tests.
10866         * modules/wctype-tests: Depend on it.
10867         Reported by Simon Josefsson.
10868
10869 2010-03-28  Bruno Haible  <bruno@clisp.org>
10870
10871         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10872         * gnulib-tool (func_exists_module): New function, extracted from
10873         func_verify_module.
10874         (func_verify_module): Use it.
10875         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10876         'foo' only if 'foo' exists.
10877         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10878         module.
10879
10880 2010-03-28  Bruno Haible  <bruno@clisp.org>
10881
10882         gnulib-tool: Add support for special categories of tests.
10883         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10884         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10885         (func_usage): Document them.
10886         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10887         inc_unportable_tests, inc_all_tests): New variables.
10888         (func_acceptable): Consider these variables.
10889         (func_modules_transitive_closure): Make it work when the 'Status' field
10890         consists of multiple words.
10891         (func_import): Store and restore the values of inc_cxx_tests,
10892         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10893         inc_all_tests in gnulib-comp.m4.
10894         (func_create_testdir): Set inc_all_tests to true.
10895         * doc/gnulib.texi (Extra tests modules): New section.
10896         Suggested by Jim Meyering.
10897
10898 2010-03-28  Bruno Haible  <bruno@clisp.org>
10899
10900         ansi-c++-opt: Allow turning off the C++ build by default.
10901         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10902         gl_CXX_CHOICE_DEFAULT_NO is defined.
10903         Requested by Eric Blake.
10904
10905 2010-03-28  Bruno Haible  <bruno@clisp.org>
10906
10907         unistd: Avoid #define replacements in C++ mode.
10908         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10909         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10910         setsockopt, shutdown, select): In C++, attach a warning to the function
10911         if possible, rather than #defining the symbol to a dysfunctional alias.
10912         Reported by John W. Eaton <jwe@gnu.org>.
10913
10914 2010-03-28  Bruno Haible  <bruno@clisp.org>
10915
10916         Fix link errors on mingw.
10917         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10918         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10919         $(LIBSOCKET).
10920         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10921         $(LIBSOCKET).
10922
10923 2010-03-28  Bruno Haible  <bruno@clisp.org>
10924             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10925
10926         lib-ignore: Determine different options for different compilers.
10927         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10928         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10929         Add comments.
10930         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10931         * NEWS: Mention the change.
10932
10933 2010-03-27  Bruno Haible  <bruno@clisp.org>
10934
10935         Remove unused GNULIB_XYZ macro definitions.
10936         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10937         * modules/fseek (configure.ac): Likewise.
10938         * modules/ioctl (configure.ac): Likewise.
10939         * modules/open (configure.ac): Likewise.
10940         * modules/stdlib-safer (configure.ac): Likewise.
10941
10942 2010-03-27  Bruno Haible  <bruno@clisp.org>
10943
10944         Add a remark about certain modules.
10945         * modules/malloc (Comment): New section.
10946         * modules/realloc (Comment): Likewise.
10947         * modules/sigpipe (Comment): Likewise.
10948
10949 2010-03-27  Bruno Haible  <bruno@clisp.org>
10950
10951         Resolve conflict between the two kinds of module indicators.
10952         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10953         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10954         * modules/canonicalize (configure.ac): Invoke
10955         gl_MODULE_INDICATOR_FOR_TESTS.
10956         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10957         GNULIB_XYZ.
10958         * tests/test-dirent-c++.cc: Likewise.
10959         * tests/test-dirent-safer.c: Likewise.
10960         * tests/test-dup2.c: Likewise.
10961         * tests/test-fchdir.c: Likewise.
10962         * tests/test-fcntl-h-c++.cc: Likewise.
10963         * tests/test-getopt.c: Likewise.
10964         * tests/test-getopt.h: Likewise.
10965         * tests/test-langinfo-c++.cc: Likewise.
10966         * tests/test-locale-c++.cc: Likewise.
10967         * tests/test-math-c++.cc: Likewise.
10968         * tests/test-pty-c++.cc: Likewise.
10969         * tests/test-search-c++.cc: Likewise.
10970         * tests/test-signal-c++.cc: Likewise.
10971         * tests/test-spawn-c++.cc: Likewise.
10972         * tests/test-stdio-c++.cc: Likewise.
10973         * tests/test-stdlib-c++.cc: Likewise.
10974         * tests/test-string-c++.cc: Likewise.
10975         * tests/test-sys_ioctl-c++.cc: Likewise.
10976         * tests/test-sys_select-c++.cc: Likewise.
10977         * tests/test-sys_socket-c++.cc: Likewise.
10978         * tests/test-sys_stat-c++.cc: Likewise.
10979         * tests/test-sys_time-c++.cc: Likewise.
10980         * tests/test-time-c++.cc: Likewise.
10981         * tests/test-unistd-c++.cc: Likewise.
10982         * tests/test-wchar-c++.cc: Likewise.
10983         * tests/uninorm/test-u8-nfc.c: Likewise.
10984         * tests/uninorm/test-u8-nfd.c: Likewise.
10985         * tests/uninorm/test-u8-nfkc.c: Likewise.
10986         * tests/uninorm/test-u8-nfkd.c: Likewise.
10987         * tests/uninorm/test-u16-nfc.c: Likewise.
10988         * tests/uninorm/test-u16-nfd.c: Likewise.
10989         * tests/uninorm/test-u16-nfkc.c: Likewise.
10990         * tests/uninorm/test-u16-nfkd.c: Likewise.
10991         * tests/uninorm/test-u32-nfc.c: Likewise.
10992         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10993         * tests/uninorm/test-u32-nfd.c: Likewise.
10994         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10995         * tests/uninorm/test-u32-nfkc.c: Likewise.
10996         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10997         * tests/uninorm/test-u32-nfkd.c: Likewise.
10998         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10999         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11000
11001 2010-03-27  Bruno Haible  <bruno@clisp.org>
11002
11003         Distinguish two kinds of module indicators.
11004         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
11005         gl_MODULE_INDICATOR.
11006         (gl_MODULE_INDICATOR): New macro.
11007         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11008         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
11009         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11010         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11011         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11012         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11013         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11014         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11015         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11016         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11017         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11018         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11020         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11021         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11022         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11023         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11024         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11025         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11026         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11027         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11028         * modules/cloexec (configure.ac): Likewise.
11029         * modules/getopt-gnu (configure.ac): Likewise.
11030         * modules/uninorm/u8-normalize (configure.ac): Likewise.
11031         * modules/uninorm/u16-normalize (configure.ac): Likewise.
11032         * modules/uninorm/u32-normalize (configure.ac): Likewise.
11033         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
11034
11035 2010-03-27  Bruno Haible  <bruno@clisp.org>
11036
11037         New module description field 'Comment'.
11038         * gnulib-tool: New option --extract-comment.
11039         (func_usage): Document it.
11040         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
11041         (func_get_comment): New function.
11042         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
11043
11044 2010-03-27  Bruno Haible  <bruno@clisp.org>
11045
11046         Addendum to 2010-02-07 commit.
11047         * gnulib-tool (func_usage): Document --extract-applicability option.
11048
11049 2010-03-27  Bruno Haible  <bruno@clisp.org>
11050
11051         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
11052         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
11053         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
11054         rather than link errors.
11055
11056 2010-03-27  Bruno Haible  <bruno@clisp.org>
11057
11058         Avoid side effects from tests-related modules on the compilation of lib.
11059         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
11060         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
11061         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
11062         parameter. Emit into AM_CPPFLAGS a definition of the designated C
11063         macro.
11064         (func_import): Define a witness macro. Assign it a value that depends
11065         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
11066         tests-related modules.
11067         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
11068         Reported by Jim Meyering.
11069
11070 2010-03-27  Bruno Haible  <bruno@clisp.org>
11071
11072         Factorize common .m4 code.
11073         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
11074         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
11075         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
11076         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
11077         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11078         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
11079         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
11080         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11081         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11082         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11083         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
11084         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11085         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11086         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11087         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11088         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
11089         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11090         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11092         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
11093         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
11094         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11095         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11096         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11097         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11098         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11099         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
11100         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
11101         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
11102         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11103         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11104         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11105
11106 2010-03-27  Bruno Haible  <bruno@clisp.org>
11107
11108         Fix a compilation error on Cygwin with g++ >= 4.3.
11109         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
11110         if it is undefined or if we alias it to chmod.
11111         (lstat): Don't warn about the use of this function if it is undefined
11112         or if we alias it to stat.
11113         Reported by Simon Josefsson.
11114
11115 2010-03-27  Bruno Haible  <bruno@clisp.org>
11116
11117         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
11118         * modules/getlogin (configure.ac): Update.
11119
11120         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
11121         * modules/getlogin_r (configure.ac): Update.
11122
11123         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
11124         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
11125         * modules/inet_ntop (configure.ac): Update.
11126
11127         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
11128         * modules/inet_pton (configure.ac): Update.
11129
11130         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
11131         * modules/mbslen (configure.ac): Update.
11132
11133         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
11134         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
11135         * modules/forkpty (configure.ac): Update.
11136         * modules/openpty (configure.ac): Update.
11137
11138 2010-03-26  Simon Josefsson  <simon@josefsson.org>
11139
11140         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
11141         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
11142
11143 2010-03-25  Eric Blake  <eblake@redhat.com>
11144
11145         maint: use pragma consistently across replacement headers
11146         * lib/ctype.in.h (system_header): Hoist for consistent placement.
11147         * lib/dirent.in.h (system_header): Likewise.
11148         * lib/errno.in.h (system_header): Likewise.
11149         * lib/float.in.h (system_header): Likewise.
11150         * lib/getopt.in.h (system_header): Likewise.
11151         * lib/iconv.in.h (system_header): Likewise.
11152         * lib/inttypes.in.h (system_header): Likewise.
11153         * lib/langinfo.in.h (system_header): Likewise.
11154         * lib/locale.in.h (system_header): Likewise.
11155         * lib/math.in.h (system_header): Likewise.
11156         * lib/netdb.in.h (system_header): Likewise.
11157         * lib/netinet_in.in.h (system_header): Likewise.
11158         * lib/pty.in.h (system_header): Likewise.
11159         * lib/sched.in.h (system_header): Likewise.
11160         * lib/se-selinux.in.h (system_header): Likewise.
11161         * lib/search.in.h (system_header): Likewise.
11162         * lib/spawn.in.h (system_header): Likewise.
11163         * lib/stdarg.in.h (system_header): Likewise.
11164         * lib/stdint.in.h (system_header): Likewise.
11165         * lib/string.in.h (system_header): Likewise.
11166         * lib/strings.in.h (system_header): Likewise.
11167         * lib/sys_file.in.h (system_header): Likewise.
11168         * lib/sys_ioctl.in.h (system_header): Likewise.
11169         * lib/sys_socket.in.h (system_header): Likewise.
11170         * lib/sys_times.in.h (system_header): Likewise.
11171         * lib/sys_utsname.in.h (system_header): Likewise.
11172         * lib/sys_wait.in.h (system_header): Likewise.
11173         * lib/sysexits.in.h (system_header): Likewise.
11174         * lib/unistd.in.h (system_header): Likewise.
11175         * lib/wctype.in.h (system_header): Likewise.
11176
11177         arpa/inet: fix mingw compilation warning
11178         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
11179         Reported by Matthew Bolte.
11180
11181 2010-03-25  Bruno Haible  <bruno@clisp.org>
11182
11183         Avoid collision between gnulib wrapper and libintl wrapper.
11184         * lib/printf.c (printf): Don't define if a printf wrapper is already
11185         defined in intl/printf.c.
11186         Reported by Michel Boaventura <michel@michelboaventura.com>.
11187
11188 2010-03-25  Bruno Haible  <bruno@clisp.org>
11189
11190         Use ANSI C.
11191         * lib/readutmp.h (getutent): Provide ANSI C prototype.
11192
11193 2010-03-25  Bruno Haible  <bruno@clisp.org>
11194
11195         Minor formatting changes.
11196         * lib/acosl.c: Insert space before function argument list.
11197         * lib/argz.c: Likewise.
11198         * lib/asinl.c: Likewise.
11199         * lib/expl.c: Likewise.
11200         * lib/gen-uni-tables.c: Likewise.
11201         * lib/gettext.h: Likewise.
11202         * lib/glthread/lock.h: Likewise.
11203         * lib/tanl.c: Likewise.
11204         * lib/uniname/uniname.c: Likewise.
11205         * tests/test-idpriv-drop.c: Likewise.
11206         * tests/test-idpriv-droptemp.c: Likewise.
11207         * tests/test-lock.c: Likewise.
11208         * tests/test-tls.c: Likewise.
11209         * lib/argp-help.c: Insert space before function-like macro argument
11210         list.
11211         * lib/memcmp.c: Likewise.
11212         * tests/test-base64.c: Likewise.
11213         * lib/localename.c: Insert space before sizeof's argument list.
11214         * lib/safe-alloc.h: Likewise.
11215         * lib/file-set.h: Insert space before macro argument list.
11216         * tests/test-argp.c: Likewise.
11217         * lib/argp-namefrob.h: Insert space before function parameter list.
11218         * lib/getaddrinfo.c: Likewise.
11219         * lib/netdb.in.h: Likewise.
11220         * lib/parse-duration.h: Likewise.
11221         * lib/parse-duration.c: Likewise.
11222         * lib/poll.c: Likewise.
11223         * lib/select.c: Likewise.
11224         * lib/trim.h: Likewise.
11225         * tests/test-usleep.c: Likewise.
11226         * lib/ldexpl.c: Insert space before function parameter list and before
11227         function argument list.
11228         * lib/logl.c: Likewise.
11229         * lib/sqrtl.c: Likewise.
11230         * lib/trim.c: Likewise.
11231         * lib/cosl.c: Use GNU style indentation. Insert space before function
11232         argument list.
11233         * lib/sinl.c: Likewise.
11234         * lib/tsearch.c: Insert space after 'for'.
11235         Reported by Jim Meyering.
11236
11237 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
11238
11239         * maint.mk (sc_Wundef_boolean): Check for the presence of the
11240         config header before grepping, as it's not present before
11241         autoreconf/configure are run.  Reported by Simon Josefsson.
11242
11243 2010-03-23  Bruno Haible  <bruno@clisp.org>
11244
11245         pt_chown: Make it work with automake < 1.11.
11246         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11247         Reported by Simon Josefsson.
11248
11249 2010-03-23  Bruno Haible  <bruno@clisp.org>
11250
11251         pt_chown: Don't depend on GPLed modules.
11252         * lib/pt_chown.c: Don't include idpriv.h.
11253         (main): Don't drop privileges.
11254         * modules/pt_chown (Depends-on): Remove idpriv-drop.
11255         Reported by Simon Josefsson.
11256
11257 2010-03-24  Simon Josefsson  <simon@josefsson.org>
11258
11259         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
11260         suggestions from karl@freefriends.org (Karl Berry).
11261
11262 2010-03-22  Eric Blake  <eblake@redhat.com>
11263
11264         gethostname: further tweaks
11265         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
11266         are overriding gethostname.
11267         Suggested by Bruno Haible.
11268
11269 2010-03-21  Bruno Haible  <bruno@clisp.org>
11270
11271         Fix comments.
11272         * lib/forkpty.c (rpl_forkpty): Fix comment.
11273         * lib/openpty.c (rpl_openpty): Likewise.
11274         Reported by Eric Blake.
11275
11276 2010-03-22  Eric Blake  <eblake@redhat.com>
11277
11278         gethostname: fix build on mingw
11279         * lib/unistd.in.h (includes): Work around fact that mingw
11280         <winsock2.h> re-includes <unistd.h>, by avoiding any
11281         redeclarations if we are being included by <winsock2.h>.
11282         Reported by Matthias Bolte.
11283
11284 2010-03-21  Bruno Haible  <bruno@clisp.org>
11285
11286         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11287         * lib/forkpty.c (forkpty): New replacement function, from glibc with
11288         modifications.
11289         * lib/pty.in.h (forkpty): Update declaration. Add comments.
11290         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
11291         provide the replacement.
11292         * modules/forkpty (Depends-on): Add openpty, login_tty.
11293         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11294         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
11295         * doc/glibc-functions/forkpty.texi: More supported platforms.
11296         * config/srclist.txt: Add forkpty.c (commented).
11297
11298 2010-03-21  Bruno Haible  <bruno@clisp.org>
11299
11300         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
11301         (Makefile.am): Verify that PTY_LIB is defined.
11302
11303         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
11304
11305 2010-03-21  Bruno Haible  <bruno@clisp.org>
11306
11307         Tests for module 'login_tty'.
11308         * modules/login_tty-tests: New file.
11309         * tests/test-login_tty.c: New file.
11310
11311         New module 'login_tty'.
11312         * lib/login_tty.c: New file.
11313         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
11314         * modules/login_tty: New file.
11315         * doc/glibc-functions/login_tty.texi: Mention the new module.
11316
11317 2010-03-21  Bruno Haible  <bruno@clisp.org>
11318
11319         login_tty: Documentation.
11320         * doc/glibc-functions/login_tty.texi: New file.
11321         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
11322
11323 2010-03-21  Bruno Haible  <bruno@clisp.org>
11324
11325         pty: Consistent macro naming.
11326         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
11327         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
11328         * modules/pty (configure.ac): Update.
11329
11330 2010-03-21  Bruno Haible  <bruno@clisp.org>
11331
11332         Tests for openpty: Make stricter.
11333         * tests/test-openpty.c (main): Add test of canonical processing and
11334         erase.
11335         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
11336
11337         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11338         * lib/openpty.c (openpty): New replacement function.
11339         * lib/pty.in.h: Include <termios.h>.
11340         (openpty): Update declaration. Add comments.
11341         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
11342         is not declared, arrange to provide the replacement. Check for _getpty
11343         and posix_openpt.
11344         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11345         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
11346         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
11347         * modules/pty-tests (test_pty_c___LDADD): New variable.
11348         * doc/glibc-functions/openpty.texi: More supported platforms.
11349
11350 2010-03-21  Bruno Haible  <bruno@clisp.org>
11351
11352         setenv: Tweaks.
11353         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
11354         the test program.
11355         * doc/posix-functions/setenv.texi: Update platforms list.
11356
11357 2010-03-21  Bruno Haible  <bruno@clisp.org>
11358
11359         New module 'unlockpt'.
11360         * lib/unlockpt.c: New file, from glibc with modifications.
11361         * m4/unlockpt.m4: New file.
11362         * modules/unlockpt: New file.
11363         * lib/stdlib.in.h (unlockpt): New declaration.
11364         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
11365         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
11366         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11367         HAVE_UNLOCKPT.
11368         * doc/posix-functions/unlockpt.texi: Mention the new module.
11369         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
11370         * config/srclist.txt: Add unlockpt.c (commented).
11371
11372 2010-03-21  Jim Meyering  <meyering@redhat.com>
11373
11374         maint.mk: prohibit inclusion of "intprops.h" without use
11375         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
11376
11377 2010-03-21  Bruno Haible  <bruno@clisp.org>
11378
11379         New module 'grantpt'.
11380         * lib/grantpt.c: New file, from glibc with modifications.
11381         * m4/grantpt.m4: New file.
11382         * modules/grantpt: New file.
11383         * lib/stdlib.in.h (grantpt): New declaration.
11384         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
11385         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
11386         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
11387         HAVE_GRANTPT.
11388         * doc/posix-functions/grantpt.texi: Mention the new module.
11389         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
11390         * config/srclist.txt: Add grantpt.c (commented).
11391
11392 2010-03-21  Bruno Haible  <bruno@clisp.org>
11393
11394         New module 'pt_chown'.
11395         * lib/pt_chown.c: New file, from glibc with modifications.
11396         * lib/pty-private.h: New file, from glibc with modifications.
11397         * modules/pt_chown: New file.
11398         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
11399
11400 2010-03-21  Bruno Haible  <bruno@clisp.org>
11401
11402         Tests for module 'ptsname'.
11403         * modules/ptsname-tests: New file.
11404         * tests/test-ptsname.c: New file.
11405
11406         New module 'ptsname'.
11407         * lib/ptsname.c: New file, from glibc with modifications.
11408         * m4/ptsname.m4: New file.
11409         * modules/ptsname: New file.
11410         * lib/stdlib.in.h (ptsname): New declaration.
11411         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
11412         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
11413         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
11414         HAVE_PTSNAME.
11415         * doc/posix-functions/ptsname.texi: Mention the new module.
11416         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
11417         * config/srclist.txt: Add ptsname.c (commented).
11418
11419 2010-03-21  Bruno Haible  <bruno@clisp.org>
11420
11421         Tests for module 'ttyname_r'.
11422         * modules/ttyname_r-tests: New file.
11423         * tests/test-ttyname_r.c: New file.
11424
11425         New module 'ttyname_r'.
11426         * lib/ttyname_r.c: New file.
11427         * m4/ttyname_r.m4: New file.
11428         * modules/ttyname_r: New file.
11429         * lib/unistd.in.h (ttyname_r): New declaration.
11430         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
11431         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
11432         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
11433         HAVE_TTYNAME_R.
11434         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
11435         * doc/posix-functions/ttyname_r.texi: Mention the new module.
11436
11437 2010-03-20  Bruno Haible  <bruno@clisp.org>
11438
11439         signal: Undefine macro definitions in C++ mode.
11440         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
11441         sigfillset): Undefine macro definitions from the system header in C++
11442         mode.
11443         Reported by John W. Eaton <jwe@gnu.org>.
11444
11445 2010-03-20  Bruno Haible  <bruno@clisp.org>
11446
11447         Ensure no #include statements inside extern "C" { ... }.
11448         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
11449         contain #include statements.
11450         * lib/time.in.h: Likewise.
11451
11452 2010-03-20  Bruno Haible  <bruno@clisp.org>
11453
11454         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
11455         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
11456         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
11457         Reported by John W. Eaton <jwe@gnu.org>.
11458
11459 2010-03-20  Bruno Haible  <bruno@clisp.org>
11460
11461         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
11462         Reported by Jim Meyering.
11463
11464 2010-03-20  Bruno Haible  <bruno@clisp.org>
11465
11466         pipe: Set errno upon failure.
11467         * lib/pipe.h: Specify that when -1 is returned, errno is set.
11468         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
11469         errno value in error message.
11470
11471 2010-03-20  Bruno Haible  <bruno@clisp.org>
11472             Jim Meyering  <meyering@redhat.com>
11473
11474         lchown: Avoid "unused variable" warning.
11475         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
11476
11477 2010-03-20  Bruno Haible  <bruno@clisp.org>
11478
11479         Work around unlink() bug on MacOS X 10.5.6.
11480         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
11481         attempting to unlink a parent directory.
11482         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
11483         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
11484         activate for the replacement function.
11485         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
11486
11487 2010-03-20  Bruno Haible  <bruno@clisp.org>
11488
11489         Fix link errors on Solaris 8.
11490         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
11491         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
11492
11493 2010-03-19  Jim Meyering  <meyering@redhat.com>
11494
11495         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
11496         The _LIBC implementation of build_range_exp correctly honors the
11497         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
11498         However, the non-_LIBC implementation would ignore that syntax-bit
11499         flag and return REG_ERANGE unconditionally.
11500         This change makes it honor that flag.
11501         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
11502         Make two pointer parameters "const".
11503         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
11504         (parse_bracket_exp): Update caller.
11505
11506         regex.m4: correct the reversed range endpoint ([b-a]) test
11507         * m4/regex.m4: When requiring that [b-a] evoke failure,
11508         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
11509         test pass once again for x86-based systems.
11510
11511 2010-03-19  Bruno Haible  <bruno@clisp.org>
11512
11513         scandir: Fix link error on Solaris 8.
11514         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
11515         macros.
11516
11517 2010-03-19  Bruno Haible  <bruno@clisp.org>
11518
11519         getusershell: Fix documentation.
11520         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
11521         module.
11522         * doc/glibc-functions/setusershell.texi: Likewise.
11523
11524         getusershell: Provide declaration, missing on Solaris 9.
11525         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
11526         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
11527         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
11528         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
11529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11530         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
11531         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
11532         HAVE_GETUSERSHELL.
11533         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
11534
11535 2010-03-19  Bruno Haible  <bruno@clisp.org>
11536
11537         wctype: Provide iswblank function.
11538         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
11539         exists and is fine.
11540         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
11541         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
11542         * tests/test-wctype.c (main): Re-enable the iswblank tests.
11543         * doc/posix-functions/iswblank.texi: Update.
11544
11545 2010-03-19  Bruno Haible  <bruno@clisp.org>
11546
11547         Tests of module 'pty' in C++ mode.
11548         * modules/pty-tests: New file.
11549         * tests/test-pty-c++.cc: New file.
11550         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11551
11552 2010-03-19  Eric Blake  <eblake@redhat.com>
11553
11554         logb: fix documentation
11555         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
11556         1.5 declaration bug.
11557
11558         forkpty, openpty: prefer glibc's const-safe prototype
11559         * lib/forkpty.c (rpl_forkpty): New file.
11560         * lib/openpty.c (rpl_openpty): Likewise.
11561         * modules/forkpty (Files): Distribute it.
11562         * modules/openpty (Files): Likewise.
11563         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
11564         check...
11565         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
11566         replacement for for non-const BSD signature.
11567         * modules/pty (Makefile.am): Substitute witnesses.
11568         * lib/pty.in.h (forkpty, openpty): Declare replacements.
11569         * tests/test-forkpty.c: Update signature check.
11570         * tests/test-openpty.c: Likewise.
11571         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11572         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11573
11574         forkpty, openpty: split functions into new modules
11575         * modules/pty (Makefile.am): Substitute new witnesses.
11576         (Libraries): Move library detection...
11577         * modules/forkpty: ...into new module.
11578         * modules/openpty: Another new module.
11579         * modules/pty-tests: Rename and split...
11580         * modules/forkpty-tests: ...to this...
11581         * modules/openpty-tests: ...and this.
11582         * tests/test-pty.c: Rename and split...
11583         * tests/test-forkpty.c: ...to this...
11584         * tests/test-openpty.c: ...and this.
11585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11586         (gl_PTY): Split library searching...
11587         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11588         (gl_FORKPTY, gl_OPENPTY): New macros.
11589         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11590         * NEWS: Mention the split.
11591         * MODULES.html.sh (Misc): Document the modules.
11592         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11593         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11594
11595         pty: improve replacement header
11596         * lib/pty.in.h: New file.
11597         * modules/pty (Files): Ship it.
11598         (Makefile.am): Always build replacement.
11599         * m4/pty.m4: Rename...
11600         * m4/pty_h.m4: ...to this.
11601         (gl_PTY): Modernize setting of witness macros; update check of
11602         forkpty to take proper advantage of cache.
11603         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11604
11605         getopt: avoid compiler warning
11606         * lib/getopt.c (attribute_hidden): Remove unused macro.
11607
11608 2010-03-18  Bruno Haible  <bruno@clisp.org>
11609
11610         Fix link errors on Solaris 8.
11611         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
11612         * modules/search-tests (test_search_c___LDADD): Likewise.
11613         * modules/signal-tests (test_signal_c___LDADD): Likewise.
11614         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
11615         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
11616         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
11617         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
11618         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
11619         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
11620
11621 2010-03-18  Bruno Haible  <bruno@clisp.org>
11622
11623         Fix bug introduced on 2010-03-14.
11624         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
11625         (gl_SPAWN_H): Require it.
11626         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
11627         Reported by Simon Josefsson.
11628
11629 2010-03-18  Bruno Haible  <bruno@clisp.org>
11630
11631         Fix typo introduced on 2009-12-31.
11632         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
11633         posix_spawn_file_actions_adddup2.
11634
11635 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
11636         and Eric Blake  <eblake@redhat.com>
11637
11638         test-vc-list-files-git: make more robust
11639         * tests/test-vc-list-files-git.sh: Unset problematic environment
11640         variables.  Chain commands together.
11641
11642 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
11643
11644         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11645         `AC_CHECK_DECL' invocation.
11646
11647 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
11648
11649         * lib/inttostr.c (inttostr): Make sure the invocation of verify
11650         appears before executable statements. Suggested by Petr Sumbera
11651         <Petr.Sumbera@Sun.COM>.
11652
11653 2010-03-14  Bruno Haible  <bruno@clisp.org>
11654
11655         * tests/test-flock.c (test_exclusive): Comment out a test that causes
11656         portability problems. Instead use a simpler test.
11657         (main): Check that invalid arguments are rejected only on Linux.
11658
11659 2010-03-14  Bruno Haible  <bruno@clisp.org>
11660
11661         Fix bug introduced on 2009-12-31.
11662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11663         gl_PREREQ_SYS_H_WINSOCK2 always.
11664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
11665         SYS_SOCKET_H variable.
11666         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
11667         Update comments.
11668         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11669         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11670         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11673
11674 2010-03-14  Bruno Haible  <bruno@clisp.org>
11675
11676         Fix values returned by sinl, cosl.
11677         * lib/trigl.h: Add specification comments.
11678         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
11679         that combines the values from the precomputed table with the values of
11680         the Chebyshev polynomials.
11681
11682 2010-03-14  Bruno Haible  <bruno@clisp.org>
11683
11684         Fix compilation error when modules 'posix_spawn[p]' are not used.
11685         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
11686         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
11687
11688 2010-03-14  Bruno Haible  <bruno@clisp.org>
11689
11690         Fix compilation error on mingw when module 'time_r' is not used.
11691         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
11692         is 1.
11693         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
11694         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11695         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
11696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
11697
11698 2010-03-14  Bruno Haible  <bruno@clisp.org>
11699
11700         Fix compilation error with Sun C.
11701         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
11702         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
11703         instead of GCC specific ULONG_LONG_MAX.
11704         * lib/xstrtoll.c: Likewise.
11705         * lib/xstrtoull.c: Likewise.
11706
11707 2010-03-13  Bruno Haible  <bruno@clisp.org>
11708
11709         Allow the user to disable C++ code and tests.
11710         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
11711         (gl_PROG_ANSI_CXX): Require it.
11712
11713 2010-03-13  Bruno Haible  <bruno@clisp.org>
11714
11715         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
11716         cases.
11717
11718 2010-03-13  Bruno Haible  <bruno@clisp.org>
11719
11720         Test that gnulib does not break the standard C++ headers.
11721         * tests/test-locale-c++2.cc: New file.
11722         * modules/locale-tests (Files): Add it.
11723         (Makefile.am): Compile it for test-locale-c++.
11724         * tests/test-math-c++2.cc: New file.
11725         * modules/math-tests (Files): Add it.
11726         (Makefile.am): Compile it for test-math-c++.
11727         * tests/test-signal-c++2.cc: New file.
11728         * modules/signal-tests (Files): Add it.
11729         (Makefile.am): Compile it for test-signal-c++.
11730         * tests/test-stdio-c++2.cc: New file.
11731         * modules/stdio-tests (Files): Add it.
11732         (Makefile.am): Compile it for test-stdio-c++.
11733         * tests/test-stdlib-c++2.cc: New file.
11734         * modules/stdlib-tests (Files): Add it.
11735         (Makefile.am): Compile it for test-stdlib-c++.
11736         * tests/test-string-c++2.cc: New file.
11737         * modules/string-tests (Files): Add it.
11738         (Makefile.am): Compile it for test-string-c++.
11739         * tests/test-time-c++2.cc: New file.
11740         * modules/time-tests (Files): Add it.
11741         (Makefile.am): Compile it for test-time-c++.
11742         Reported by John W. Eaton <jwe@gnu.org>.
11743
11744 2010-03-13  Bruno Haible  <bruno@clisp.org>
11745
11746         * gnulib-tool (func_usage): Clarify which options are available for
11747         --create-testdir and --create-megatestdir.
11748
11749 2010-03-13  Bruno Haible  <bruno@clisp.org>
11750
11751         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11752         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11753         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11754         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11755         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11756         when appropriate.
11757         Reported by Jim Meyering.
11758
11759 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11760
11761         * gnulib-tool (func_import): Explain origin of code.
11762
11763 2010-03-12  Bruno Haible  <bruno@clisp.org>
11764
11765         Fix problem with automake's definition of CXXLINK.
11766         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11767         Reported by Simon Josefsson and Ludovic Courtès.
11768
11769 2010-03-12  Bruno Haible  <bruno@clisp.org>
11770
11771         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11772         stable releases.
11773
11774 2010-03-11  Bruno Haible  <bruno@clisp.org>
11775
11776         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11777         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11778         whether the system provides one variant or multiple variants of the
11779         function.
11780         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11781         C++ compilers.
11782         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11783         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11784         Reported by Jim Meyering.
11785
11786 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11787
11788         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11789
11790 2010-03-08  Bruno Haible  <bruno@clisp.org>
11791
11792         gnulib-tool: Add support for --libtool in --create-testdir.
11793         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11794         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11795
11796 2010-03-08  Eric Blake  <eblake@redhat.com>
11797
11798         gnulib-tool.texi: mention possibility of git submodule
11799         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11800         submodules.
11801         * doc/.gitignore: Ignore another generated file.
11802
11803 2010-03-08  Karl Berry  <karl@gnu.org>
11804
11805         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11806         of committing gnulib files while skipping others.
11807
11808 2010-03-07  Bruno Haible  <bruno@clisp.org>
11809
11810         Tests of module 'wctype' in C++ mode.
11811         * tests/test-wctype-c++.cc: New file.
11812         * modules/wctype-tests (Files): Add it and tests/signature.h.
11813         (Depends-on): Add ansi-c++-opt.
11814         (Makefile.am): Arrange to compile and run test-wctype-c++.
11815
11816         Tests of module 'wchar' in C++ mode.
11817         * tests/test-wchar-c++.cc: New file.
11818         * modules/wchar-tests (Files): Add it and tests/signature.h.
11819         (Depends-on): Add ansi-c++-opt.
11820         (Makefile.am): Arrange to compile and run test-wchar-c++.
11821         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11822         gl_MODULE_INDICATOR.
11823
11824         Tests of module 'unistd' in C++ mode.
11825         * tests/test-unistd-c++.cc: New file.
11826         * modules/unistd-tests (Files): Add it and tests/signature.h.
11827         (Depends-on): Add ansi-c++-opt.
11828         (Makefile.am): Arrange to compile and run test-unistd-c++.
11829         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11830         gl_MODULE_INDICATOR.
11831
11832         Tests of module 'time' in C++ mode.
11833         * tests/test-time-c++.cc: New file.
11834         * modules/time-tests (Files): Add it and tests/signature.h.
11835         (Depends-on): Add ansi-c++-opt.
11836         (Makefile.am): Arrange to compile and run test-time-c++.
11837         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11838
11839         Tests of module 'sys_time' in C++ mode.
11840         * tests/test-sys_time-c++.cc: New file.
11841         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11842         (Depends-on): Add ansi-c++-opt.
11843         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11844         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11845         gl_MODULE_INDICATOR.
11846
11847         Tests of module 'sys_stat' in C++ mode.
11848         * tests/test-sys_stat-c++.cc: New file.
11849         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11850         (Depends-on): Add ansi-c++-opt.
11851         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11852         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11853         gl_MODULE_INDICATOR.
11854
11855         Tests of module 'sys_socket' in C++ mode.
11856         * tests/test-sys_socket-c++.cc: New file.
11857         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11858         (Depends-on): Add ansi-c++-opt.
11859         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11860         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11861         gl_MODULE_INDICATOR.
11862
11863         Tests of module 'sys_select' in C++ mode.
11864         * tests/test-sys_select-c++.cc: New file.
11865         * modules/sys_select-tests (Files): Add it and tests/signature.h.
11866         (Depends-on): Add ansi-c++-opt.
11867         (Makefile.am): Arrange to compile and run test-sys_select-c++.
11868         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11869         gl_MODULE_INDICATOR.
11870
11871         Tests of module 'sys_ioctl' in C++ mode.
11872         * tests/test-sys_ioctl-c++.cc: New file.
11873         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
11874         (Depends-on): Add ansi-c++-opt.
11875         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
11876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11877         gl_MODULE_INDICATOR.
11878
11879         Tests of module 'string' in C++ mode.
11880         * tests/test-string-c++.cc: New file.
11881         * modules/string-tests (Files): Add it and tests/signature.h.
11882         (Depends-on): Add ansi-c++-opt.
11883         (Makefile.am): Arrange to compile and run test-string-c++.
11884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11885         gl_MODULE_INDICATOR.
11886
11887         Tests of module 'stdlib' in C++ mode.
11888         * tests/test-stdlib-c++.cc: New file.
11889         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11890         (Depends-on): Add ansi-c++-opt.
11891         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11892         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11893         gl_MODULE_INDICATOR.
11894
11895         Tests of module 'stdio' in C++ mode.
11896         * tests/test-stdio-c++.cc: New file.
11897         * modules/stdio-tests (Files): Add it and tests/signature.h.
11898         (Depends-on): Add ansi-c++-opt.
11899         (Makefile.am): Arrange to compile and run test-stdio-c++.
11900         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11901         gl_MODULE_INDICATOR.
11902
11903         Tests of module 'spawn' in C++ mode.
11904         * tests/test-spawn-c++.cc: New file.
11905         * modules/spawn-tests (Files): Add it and tests/signature.h.
11906         (Depends-on): Add ansi-c++-opt.
11907         (Makefile.am): Arrange to compile and run test-spawn-c++.
11908         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11909         gl_MODULE_INDICATOR.
11910
11911         Tests of module 'signal' in C++ mode.
11912         * tests/test-signal-c++.cc: New file.
11913         * modules/signal-tests (Files): Add it and tests/signature.h.
11914         (Depends-on): Add ansi-c++-opt.
11915         (Makefile.am): Arrange to compile and run test-signal-c++.
11916         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11917         gl_MODULE_INDICATOR.
11918
11919         Tests of module 'search' in C++ mode.
11920         * tests/test-search-c++.cc: New file.
11921         * modules/search-tests (Files): Add it and tests/signature.h.
11922         (Depends-on): Add ansi-c++-opt.
11923         (Makefile.am): Arrange to compile and run test-search-c++.
11924         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11925         gl_MODULE_INDICATOR.
11926
11927         Tests of module 'math' in C++ mode.
11928         * tests/test-math-c++.cc: New file.
11929         * modules/math-tests (Files): Add it and tests/signature.h.
11930         (Depends-on): Add ansi-c++-opt.
11931         (Makefile.am): Arrange to compile and run test-math-c++.
11932         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11933
11934         Tests of module 'locale' in C++ mode.
11935         * tests/test-locale-c++.cc: New file.
11936         * modules/locale-tests (Files): Add it and tests/signature.h.
11937         (Depends-on): Add ansi-c++-opt.
11938         (Makefile.am): Arrange to compile and run test-locale-c++.
11939         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11940         gl_MODULE_INDICATOR.
11941
11942         Tests of module 'langinfo' in C++ mode.
11943         * tests/test-langinfo-c++.cc: New file.
11944         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11945         (Depends-on): Add ansi-c++-opt.
11946         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11947         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11948         gl_MODULE_INDICATOR.
11949
11950         Tests of module 'iconv-h' in C++ mode.
11951         * tests/test-iconv-h-c++.cc: New file.
11952         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11953         (Depends-on): Add ansi-c++-opt.
11954         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11955
11956         Tests of module 'glob' in C++ mode.
11957         * tests/test-glob-c++.cc: New file.
11958         * modules/glob-tests (Files): Add it.
11959         (Depends-on): Add ansi-c++-opt.
11960         (Makefile.am): Arrange to compile and run test-glob-c++.
11961
11962         Tests of module 'fcntl-h' in C++ mode.
11963         * tests/test-fcntl-h-c++.cc: New file.
11964         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11965         (Depends-on): Add ansi-c++-opt.
11966         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11967         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11968         gl_MODULE_INDICATOR.
11969
11970         Tests of module 'dirent' in C++ mode.
11971         * tests/test-dirent-c++.cc: New file.
11972         * modules/dirent-tests (Files): Add it and tests/signature.h.
11973         (Depends-on): Add ansi-c++-opt.
11974         (Makefile.am): Arrange to compile and run test-dirent-c++.
11975         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11976         gl_MODULE_INDICATOR.
11977
11978         New module 'ansi-c++-opt'.
11979         * modules/ansi-c++-opt: New file.
11980         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11981
11982         Document C++ namespace mode.
11983         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11984
11985         wctype: Avoid #define replacements in C++ mode.
11986         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11987         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11988         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11989         In C++, define a namespaced alias symbol.
11990         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11991         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11992         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11993         rule.
11994
11995         wchar: Avoid #define replacements in C++ mode.
11996         * lib/wchar.in.h: Include c++defs.h.
11997         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11998         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11999         symbol.
12000         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
12001         * modules/wchar (Depends-on): Add c++defs.
12002         (Makefile.am): Update wchar.h rule.
12003
12004         unistd: Avoid #define replacements in C++ mode.
12005         * lib/unistd.in.h: Include c++defs.h.
12006         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
12007         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
12008         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
12009         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
12010         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
12011         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
12012         symbol.
12013         (environ): Update.
12014         * modules/unistd (Depends-on): Add c++defs.
12015         (Makefile.am): Update unistd.h rule.
12016
12017         time: Avoid #define replacements in C++ mode.
12018         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
12019         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
12020         define a namespaced alias symbol.
12021         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
12022         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
12023         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
12024         * modules/time (Depends-on): Add c++defs, warn-on-use.
12025         (Makefile.am): Update time.h rule.
12026         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12027         * modules/nanosleep (configure.ac): Likewise.
12028         * modules/strptime (configure.ac): Likewise.
12029         * modules/timegm (configure.ac): Likewise.
12030
12031         sys_time: Avoid #define replacements in C++ mode.
12032         * lib/sys_time.in.h: Include c++defs.h.
12033         (gettimeofday): In C++, define a namespaced alias symbol.
12034         * modules/sys_time (Depends-on): Add c++defs.
12035         (Makefile.am): Update sys/time.h rule.
12036
12037         sys_stat: Avoid #define replacements in C++ mode.
12038         * lib/sys_stat.in.h: Include c++defs.h.
12039         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
12040         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
12041         namespaced alias symbol.
12042         In C++, define a namespaced alias symbol.
12043         * modules/sys_stat (Depends-on): Add c++defs.
12044         (Makefile.am): Update sys/stat.h rule.
12045
12046         sys_socket: Avoid #define replacements in C++ mode.
12047         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
12048         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
12049         definitions also when the system has a <sys/socket.h>.
12050         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12051         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
12052         In C++, define a namespaced alias symbol.
12053         * modules/sys_socket (Depends-on): Add c++defs.
12054         (Makefile.am): Update sys/socket.h rule.
12055
12056         sys_select: Avoid #define replacements in C++ mode.
12057         * lib/sys_select.in.h: Include c++defs.h. Enable the function
12058         definitions also when the system has a <sys/select.h>.
12059         (select): In C++, define a namespaced alias symbol.
12060         * modules/sys_select (Depends-on): Add c++defs.
12061         (Makefile.am): Update sys/select.h rule.
12062
12063         sys_ioctl: Avoid #define replacements in C++ mode.
12064         * lib/sys_ioctl.in.h: Include c++defs.h.
12065         (ioctl): In C++, define a namespaced alias symbol.
12066         * modules/sys_ioctl (Depends-on): Add c++defs.
12067         (Makefile.am): Update sys/ioctl.h rule.
12068
12069         string: Avoid #define replacements in C++ mode.
12070         * lib/string.in.h: Include c++defs.h.
12071         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
12072         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12073         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12074         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
12075         strsignal, strverscmp): In C++, define a namespaced alias symbol.
12076         * modules/string (Depends-on): Add c++defs.
12077         (Makefile.am): Update string.h rule.
12078
12079         stdlib: Avoid #define replacements in C++ mode.
12080         * lib/stdlib.in.h: Include c++defs.h.
12081         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
12082         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
12083         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
12084         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
12085         symbol.
12086         * modules/stdlib (Depends-on): Add c++defs.
12087         (Makefile.am): Update stdlib.h rule.
12088
12089         stdio: Avoid #define replacements in C++ mode.
12090         * lib/stdio.in.h: Include c++defs.h.
12091         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
12092         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
12093         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
12094         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
12095         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
12096         namespaced alias symbol.
12097         * modules/stdio (Depends-on): Add c++defs.
12098         (Makefile.am): Update stdio.h rule.
12099
12100         spawn: Avoid #define replacements in C++ mode.
12101         * lib/spawn.in.h: Include c++defs.h.
12102         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12103         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12104         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12105         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12106         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12107         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12108         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12109         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12110         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12111         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12112         In C++, define a namespaced alias symbol.
12113         * modules/spawn (Depends-on): Add c++defs.
12114         (Makefile.am): Update spawn.h rule.
12115
12116         signal: Avoid #define replacements in C++ mode.
12117         * lib/signal.in.h: Include c++defs.h.
12118         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12119         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
12120         namespaced alias symbol.
12121         * modules/signal (Depends-on): Add c++defs.
12122         (Makefile.am): Update signal.h rule.
12123
12124         search: Avoid #define replacements in C++ mode.
12125         * lib/search.in.h: Include c++defs.h.
12126         (_gl_search_compar_fn, _gl_search_action_fn): New types.
12127         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
12128         symbol.
12129         * modules/search (Depends-on): Add c++defs.
12130         (Makefile.am): Update search.h rule.
12131
12132         math: Avoid #define replacements in C++ mode.
12133         * lib/math.in.h: Include c++defs.h.
12134         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
12135         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
12136         trunc, truncl): In C++, define a namespaced alias symbol.
12137         * modules/math (Depends-on): Add c++defs.
12138         (Makefile.am): Update math.h rule.
12139
12140         locale: Avoid #define replacements in C++ mode.
12141         * lib/locale.in.h: Include c++defs.h.
12142         (duplocale): In C++, define a namespaced alias symbol.
12143         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
12144         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
12145         * modules/locale (Depends-on): Add c++defs.
12146         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
12147
12148         langinfo: Avoid #define replacements in C++ mode.
12149         * lib/langinfo.in.h: Include c++defs.h.
12150         (nl_langinfo): In C++, define a namespaced alias symbol.
12151         * modules/langinfo (Depends-on): Add c++defs.
12152         (Makefile.am): Update langinfo.h rule.
12153
12154         iconv-h: Avoid #define replacements in C++ mode.
12155         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
12156         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
12157         symbol.
12158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12159         whenever iconv is present.
12160         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
12161         (Makefile.am): Update iconv.h rule.
12162
12163         glob: Avoid #define replacements in C++ mode.
12164         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
12165         (_gl_glob_errfunc_fn): New type.
12166         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
12167         symbol.
12168         * modules/glob (Depends-on): Add c++defs, warn-on-use.
12169         (Makefile.am): Update glob.h rule.
12170
12171         fcntl-h: Avoid #define replacements in C++ mode.
12172         * lib/fcntl.in.h: Include c++defs.h.
12173         (fcntl, open, openat): In C++, define a namespaced alias symbol.
12174         * modules/fcntl-h (Depends-on): Add c++defs.
12175         (Makefile.am): Update fcntl.h rule.
12176
12177         dirent: Avoid #define replacements in C++ mode.
12178         * lib/dirent.in.h: Include c++defs.h.
12179         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
12180         namespaced alias symbol.
12181         (dirfd): Update declaration.
12182         * modules/dirent (Depends-on): Add c++defs.
12183         (Makefile.am): Update dirent.h rule.
12184
12185         ctype: Make it usable in C++ code.
12186         * lib/ctype.in.h: Include c++defs.h.
12187         (isblank): Declare as extern "C".
12188         * modules/ctype (Depends-on): Add c++defs.
12189         (Makefile.am): Update ctype.h rule.
12190
12191         New module 'c++defs'.
12192         * modules/c++defs: New file.
12193         * build-aux/c++defs.h: New file.
12194         Reported by John W. Eaton <jwe@gnu.org>.
12195
12196 2010-03-07  Bruno Haible  <bruno@clisp.org>
12197
12198         logb: Provide missing declaration for Cygwin.
12199         * lib/math.in.h (logb): New declaration.
12200         * m4/logb.m4: New file.
12201         * modules/logb (Files): Add m4/logb.m4.
12202         (Depends-on): Add math.
12203         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
12204         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
12205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
12206         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
12207         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
12208
12209 2010-03-07  Bruno Haible  <bruno@clisp.org>
12210
12211         Fix test-cond link error.
12212         * tests/test-cond.c: Include <stdio.h>.
12213
12214 2010-03-07  Bruno Haible  <bruno@clisp.org>
12215
12216         Fix test-dirent-safer link error.
12217         * modules/dirent-safer-tests (Makefile.am): Define
12218         test_dirent_safer_LDADD.
12219
12220 2010-03-07  Bruno Haible  <bruno@clisp.org>
12221
12222         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
12223         among default module list.
12224
12225 2010-03-07  Bruno Haible  <bruno@clisp.org>
12226
12227         Fix link error on platforms with GNU libiconv.
12228         * modules/unistr/u8-strcoll-tests (Makefile): Define
12229         test_u8_strcoll_LDADD.
12230         * modules/unistr/u16-strcoll-tests (Makefile): Define
12231         test_u16_strcoll_LDADD.
12232         * modules/unistr/u32-strcoll-tests (Makefile): Define
12233         test_u32_strcoll_LDADD.
12234
12235 2010-03-07  Bruno Haible  <bruno@clisp.org>
12236
12237         Use POSIX declarations for socket functions.
12238         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
12239         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
12240         rpl_sendto): Change declaration to match POSIX.
12241         * lib/connect.c (rpl_connect): Likewise.
12242         * lib/accept.c (rpl_accept): Likewise.
12243         * lib/bind.c (rpl_bind): Likewise.
12244         * lib/getpeername.c (rpl_getpeername): Likewise.
12245         * lib/getsockname.c (rpl_getsockname): Likewise.
12246         * lib/recv.c (rpl_recv): Likewise.
12247         * lib/send.c (rpl_send): Likewise.
12248         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12249         * lib/sendto.c (rpl_sendto): Likewise.
12250
12251 2010-03-06  Bruno Haible  <bruno@clisp.org>
12252
12253         Clarify access, euidaccess, faccessat.
12254         * doc/posix-functions/faccessat.texi: Mention security problem under
12255         "Other problems", not "Portability problems".
12256         * doc/posix-functions/access.texi: Likewise. Mention a related security
12257         problem.
12258         * doc/glibc-functions/euidaccess.texi: Mention security problems.
12259         * lib/euidaccess.c: Add comments about platforms.
12260         * lib/unistd.in.h (access, euidaccess): Add warnings.
12261
12262 2010-03-07  Bruno Haible  <bruno@clisp.org>
12263
12264         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
12265         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
12266         (POSIX_SPAWN_SETSCHEDULER): Likewise.
12267         (POSIX_SPAWN_USEVFORK): Define in a way that works when
12268         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12269         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
12270         declare when POSIX_SPAWN_SETSCHEDULER is zero.
12271         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
12272         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
12273         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
12274         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
12275         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
12276         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
12277         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
12278         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
12279         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
12280         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
12281         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
12282         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
12283         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
12284         Likewise.
12285         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
12286         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
12287         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
12288         Likewise.
12289         * tests/test-spawn.c (main): Make it work when
12290         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12291
12292 2010-03-07  Bruno Haible  <bruno@clisp.org>
12293
12294         Fix incorrect Makefile.am generation in German locale.
12295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12296         Execute sed command with character range in C locale.
12297
12298 2010-03-06  Bruno Haible  <bruno@clisp.org>
12299
12300         Tests for module 'iconv-h'.
12301         * modules/iconv-h-tests: New file.
12302         * tests/test-iconv-h.c: New file.
12303
12304         New module 'iconv-h'.
12305         * modules/iconv-h: New file.
12306         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
12307         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
12308         (configure.ac): Remove gl_ICONV_H.
12309         (Makefile.am): Remove rule for iconv.h.
12310
12311 2010-03-06  Bruno Haible  <bruno@clisp.org>
12312
12313         More consistent naming of *.m4 files.
12314         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
12315         * modules/wctype (Files): Update.
12316
12317         More consistent naming of *.m4 files.
12318         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
12319         * modules/wchar (Files): Update.
12320
12321 2010-03-06  Jim Meyering  <meyering@redhat.com>
12322
12323         euidaccess: relax license to LGPLv2+
12324         * modules/euidaccess (License): Relax to LGPLv2+.
12325
12326 2010-03-06  Bruno Haible  <bruno@clisp.org>
12327
12328         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
12329         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
12330         (Makefile.am): Augment lib_SOURCES instead.
12331
12332 2010-03-04  Jim Meyering  <meyering@redhat.com>
12333
12334         utime: remove obsolete module
12335         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
12336         unnecessary for years, and has been marked as obsolete for 10 months.
12337         * modules/utime: Remove file.
12338         * lib/utime.c: Remove file.
12339         * m4/utime.m4: Remove file.
12340         * m4/utimes-null.m4: Remove file.
12341         * doc/posix-functions/utime.texi (utime): Remove reference to
12342         the module.  Move the sole "fixed by gnulib" item into the
12343         "problems not fixed by Gnulib" list.
12344         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
12345
12346 2010-03-05  Simon Josefsson  <simon@josefsson.org>
12347
12348         * modules/exit (License): Relax license to LGPLv2+.
12349         (Status): Mark as obsolete.
12350         * NEWS: Mention deprecated 'exit' module.
12351         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
12352         of now obsolete 'exit'.
12353
12354 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12355
12356         fts-lgpl: remove unused module
12357         * modules/fts-lgpl: Remove.
12358         * MODULES.html.sh (func_all_modules): Adjust.
12359         * check-module (find_included_lib_files): Adjust.
12360         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
12361
12362 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
12363
12364         copy-acl: enhance Solaris ACL error handling
12365         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
12366         * lib/set-mode-acl.c (qset_acl): Likewise.
12367
12368 2010-03-02  Bruno Haible  <bruno@clisp.org>
12369
12370         spawn: Don't override the system defined values on FreeBSD 8.
12371         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
12372         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
12373         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
12374         if HAVE_POSIX_SPAWN is 1.
12375         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
12376
12377 2010-03-01  Bruno Haible  <bruno@clisp.org>
12378
12379         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
12380         regarding Automake.
12381
12382 2010-02-25  Bruno Haible  <bruno@clisp.org>
12383
12384         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
12385         * gnulib-tool: Define 'echo' as a function only before the ksh alias
12386         setting, not afterwards.
12387         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
12388
12389 2010-02-24  Eric Blake  <eblake@redhat.com>
12390
12391         bootstrap, git-version-gen: use timestamp
12392         * build-aux/git-version-gen (scriptversion): Force UTC.
12393         * build-aux/bootstrap (scriptversion): New variable.
12394
12395         bootstrap: allow older git
12396         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
12397         older than 1.6.4.  Requested by the libvirt project.
12398
12399 2010-02-23  Eric Blake  <eblake@redhat.com>
12400
12401         warn-on-use: work with old autoconf
12402         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
12403         AS_VAR semantics of autoconf 2.60.
12404         Reported by Bruno Haible.
12405
12406         bootstrap: improve some comments
12407         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
12408         clarification comments.
12409
12410         gettimeofday: provide correct function
12411         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
12412         when replacement is declared, otherwise provide gettimeofday.
12413         Reported by Michael Goffioul.
12414
12415 2010-02-23  Jim Meyering  <meyering@redhat.com>
12416
12417         lib-ignore: relax license to "unlimited", not LGPLv2+
12418         * modules/lib-ignore (License): Relax to "unlimited".
12419
12420 2010-02-23  Jim Meyering  <meyering@redhat.com>
12421
12422         lib-ignore: relax license to LGPLv2+
12423         * modules/lib-ignore (License): Relax to LGPLv2+.
12424
12425 2010-02-22  Eric Blake  <eblake@redhat.com>
12426
12427         lseek: avoid bash 3.2 broken pipe bug
12428         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
12429         warning from bash 3.2.
12430         Reported by Ben Pfaff, with analysis from Bruno Haible.
12431
12432         bootstrap: support non-FSF copyright holder
12433         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
12434         bootstrap.conf override of COPYRIGHT_HOLDER.
12435         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
12436
12437         bootstrap: interoperate with gettext 0.14.1
12438         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
12439
12440         bootstrap: allow for alternate submodule location
12441         * build-aux/bootstrap (gnulib_path): New variable; use instead of
12442         hardcoding submodule location.
12443         (gnulib_mk): Allow direct use of Makefile.am.
12444
12445         bootstrap: use GNULIB_SRCDIR to reduce disk usage
12446         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
12447         rather than reconfiguring where the submodule points.
12448
12449         gettimeofday: restore support for platforms that lack function
12450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
12451         replacement if function is missing.
12452         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
12453         * modules/sys_time (Makefile.am): Substitute it.
12454         * lib/sys_time.in.h (gettimeofday): Check it.
12455         Reported by Michael Goffioul.
12456
12457 2010-02-21  Bruno Haible  <bruno@clisp.org>
12458
12459         * lib/stdio.in.h (obstack_printf): Fix typo.
12460
12461 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
12462
12463         vc-list-files: use bzr ls's -R option
12464         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
12465         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
12466
12467 2010-02-21  Jim Meyering  <meyering@redhat.com>
12468
12469         init.sh: fix EXEEXT shims to work also for names like test-prog
12470         * tests/init.sh: Re-exec a better shell, when needed.
12471         If the current shell lacks support for posix $(...), an init.sh-using
12472         test will now try to find a shell that supports that.  If EXEEXT is
12473         nonempty, we also require support for hyphen-in-alias-name and shell
12474         substitutions like ${var#glob}.  Failure to find such a shell results
12475         in a skipped test.
12476
12477 2010-02-21  Bruno Haible  <bruno@clisp.org>
12478
12479         Really work around around "broken pipe" error message from bash 3.2.
12480         * gnulib-tool (func_reset_sigpipe): Remove function.
12481         (echo): In bash 3.2, define to a function that uses printf.
12482         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
12483
12484 2010-02-20  Bruno Haible  <bruno@clisp.org>
12485
12486         Restore support for automake 1.9.6 with autoconf 2.61.
12487         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
12488         Reported by James Youngman <jay@gnu.org>.
12489
12490 2010-02-20  Bruno Haible  <bruno@clisp.org>
12491
12492         Improve *printf warning condition.
12493         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
12494         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
12495         and the function is overridden due to SIGPIPE emulation.
12496
12497 2010-02-20  Bruno Haible  <bruno@clisp.org>
12498
12499         * lib/stdio.in.h: Tweak comments.
12500
12501 2010-02-19  Bruno Haible  <bruno@clisp.org>
12502
12503         Make it easier to find modules. New gnulib-tool option '--find'.
12504         * gnulib-tool: New option --find.
12505         (func_usage): Document it.
12506         (func_sanitize_modulelist): New function, extracted from
12507         func_all_modules.
12508         (func_all_modules): Invoke it.
12509         * doc/gnulib-tool.texi (Which modules?): New node.
12510
12511 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
12512
12513         * lib/sys_select.in.h: Provide select replacement even if
12514         sys/select.h exists on a system, for Interix.
12515
12516 2010-02-18  Jim Meyering  <meyering@redhat.com>
12517
12518         init.sh: don't use $(...) just yet
12519         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
12520         to accommodate e.g., Solaris' /bin/sh.
12521
12522 2010-02-17  Bruno Haible  <bruno@clisp.org>
12523
12524         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
12525         Reported by Ludovic Courtès <ludo@gnu.org>.
12526
12527 2010-02-16  Simon Josefsson  <simon@josefsson.org>
12528
12529         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
12530         linking with -lintl.
12531
12532 2010-02-17  Simon Josefsson  <simon@josefsson.org>
12533
12534         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
12535         if not provided by the system's netdb.h.  Reported by
12536         ludo@gnu.org (Ludovic Courtès).
12537
12538 2010-02-15  Jim Meyering  <meyering@redhat.com>
12539
12540         init.sh: improve portability and efficiency
12541         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
12542         "dummy" in a for loop.
12543         Use '!', not '^' to select the complement of a character set used
12544         in a "case" statement.
12545         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
12546         Suggestions from Eric Blake.
12547
12548         init.sh: automatically accommodate programs with the .exe suffix
12549         Automatically arrange for an invocation of "prog" to execute the
12550         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
12551         may use the simpler "prog", yet still work when built on a system
12552         that requires specifying the added suffix.
12553         Do this by constructing a function named "prog" that invokes
12554         "prog.exe" for each .exe file in selected directories.
12555         * tests/init.sh (find_exe_basenames_): New function.
12556         (create_exe_shim_functions_): New function.
12557         (path_prepend_): Use it.
12558
12559         maint.mk: mark syntax-check sc_*.m rules as .PHONY
12560         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
12561         "make -t syntax-check" doesn't create a ton of sc_*.m files.
12562
12563 2010-02-14  Jim Meyering  <meyering@redhat.com>
12564
12565         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
12566         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
12567         (sc_prohibit_hash_pjw_without_use): New rule.
12568
12569         maint.mk: allow the default upload destination dir to be overridden
12570         * top/maint.mk (upload_dest_dir_): Define with a default that
12571         preserves the status quo.
12572         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12573         Reported by Peter Simons.
12574
12575         maint.mk: prohibit inclusion of "hash.h" without_use
12576         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12577
12578 2010-02-10  Jim Meyering  <meyering@redhat.com>
12579
12580         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12581         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12582
12583 2010-02-09  Eric Blake  <ebb9@byu.net>
12584         and Bruno Haible  <bruno@clisp.org>
12585
12586         obstack-printf-posix: ensure declaration
12587         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12588         extracted from gl_FUNC_OBSTACK_PRINTF.
12589         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12590         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12591         Likewise.
12592         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12593         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12594         0.
12595
12596 2010-02-08  Bruno Haible  <bruno@clisp.org>
12597
12598         gnulib-tool: Fix typo in 2010-02-07 commit.
12599         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12600         Reported by Eric Blake.
12601
12602 2010-02-07  Bruno Haible  <bruno@clisp.org>
12603
12604         gnulib-tool: Fix up caching patches.
12605         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
12606         option --no-cache. Use associative arrays when supported by the shell.
12607         (sed_comments): New variable.
12608         (modcache): Renamed from do_cache.
12609         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
12610         abbreviate unnecessarily.
12611         (have_associative): New variable.
12612         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
12613         way also for ksh and zsh.
12614         (func_init_sed_convert_to_cache_statements): New function, extracted
12615         from func_cache_lookup_module. Add support for associative arrays.
12616         Don't set the c_MODULE_cached variable here. Ignore all lines before
12617         the first field header. Remove only the final newline, not all trailing
12618         newlines. Support empty fields correctly. Limit the use of 'eval' to
12619         assignments.
12620         (func_get_description, func_get_status, func_get_notice,
12621         func_get_applicability, func_get_filelist, func_get_dependencies,
12622         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
12623         func_get_automake_snippet, func_get_include_directive,
12624         func_get_link_directive, func_get_license, func_get_maintainer):
12625         Update documentation. List the unoptimized code first. Add support for
12626         associative arrays. Limit the use of 'eval' to assignments.
12627         (func_get_applicability): Undo stylistic pessimisations.
12628         (func_get_automake_snippet, func_get_include_directive): Reduce code
12629         duplication.
12630         (func_modules_transitive_closure, func_modules_add_dummy,
12631         func_modules_notice, func_modules_to_filelist, func_add_file,
12632         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
12633         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
12634         func_create_testdir, func_create_megatestdir): Update documentation.
12635
12636 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12637
12638         * gnulib-tool (func_cache_lookup_module): Store the module name
12639         belonging to the cache variable; error out if two different
12640         module names map to the same cache variable name.
12641
12642 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12643
12644         gnulib-tool: Make caching optional.
12645         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
12646         Update matching short versions of --no-changelog.
12647         (func_usage): Update.
12648         (sed_extract_cache_prog): Renamed from ...
12649         (sed_extract_prog): ... this; revert to old extraction script.
12650         (func_get_description, func_get_status)
12651         (func_get_notice, func_get_applicability, func_get_filelist)
12652         (func_get_dependencies, func_get_autoconf_early_snippet)
12653         (func_get_autoconf_snippet, func_get_automake_snippet)
12654         (func_get_include_directive, func_get_link_directive)
12655         (func_get_license, func_get_maintainer): If $do_cache is false,
12656         use old, non-caching extraction scripts.
12657         Suggestion by Bruno Haible.
12658
12659 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12660
12661         gnulib-tool: cache module metainformation.
12662         * gnulib-tool (sed_extract_prog): Match newline before each
12663         header, and rewrite header to a shell variable suffix.
12664         (func_cache_var, func_cache_lookup_module): New functions,
12665         to turn a module name into a cache variable prefix, and to
12666         look up and cache module metainformation.
12667         (func_get_description, func_get_status)
12668         (func_get_notice, func_get_applicability, func_get_filelist)
12669         (func_get_dependencies, func_get_autoconf_early_snippet)
12670         (func_get_autoconf_snippet, func_get_automake_snippet)
12671         (func_get_include_directive, func_get_link_directive)
12672         (func_get_license, func_get_maintainer): Use
12673         func_cache_lookup_module.
12674
12675 2010-02-07  Bruno Haible  <bruno@clisp.org>
12676
12677         fnctl: Fix missing dependency.
12678         * modules/fcntl (Depends-on): Add getdtablesize.
12679         Reported by John W. Eaton <jwe@gnu.org>.
12680
12681 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12682
12683         Argp: fix recognition of short alias options.
12684
12685         * lib/argp-parse.c (convert_options): Fix improper use of
12686         `|' between character values.
12687         * tests/test-argp.c (group1_option): New alias option
12688         --read (-r).
12689         (group1_parser): Special handling for 'r'.
12690         (test15): New test case.
12691         (test_fun): Add test15.
12692         * tests/test-argp-2.sh: Update expected --help and --usage
12693         outputs.
12694
12695 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12696
12697         * tests/test-argp.c: Fix indentation.
12698
12699 2010-02-04  Eric Blake  <ebb9@byu.net>
12700
12701         gettimeofday: expose type of second argument
12702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
12703         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
12704         * tests/test-gettimeofday.c: Use it to silence warning.
12705         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
12706         the issue.
12707
12708 2010-02-03  Jim Meyering  <meyering@redhat.com>
12709
12710         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
12711         * lib/regcomp.c (TYPE_SIGNED): Define.
12712         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
12713
12714         regcomp.c: avoid a new -Wshadow warning
12715         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
12716
12717 2010-02-01  Jim Meyering  <meyering@redhat.com>
12718
12719         removing useless parentheses in cpp #define directives
12720         For motivation, see commit c0221df4, "define STREQ(a,b)
12721         consistently, removing useless parentheses"
12722         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
12723         * lib/mountlist.c (MNT_IGNORE): Likewise.
12724         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
12725
12726 2010-02-01  Eric Blake  <ebb9@byu.net>
12727
12728         sys_time: use link-warning
12729         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12730         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12731         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12732         * modules/sys_time (Depends-on): Add warn-on-use.
12733         (Makefile.am): Always build replacement.
12734         (configure.ac): Update substitutions.
12735         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12736         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12737         bother with SYS_TIME_H.
12738         * modules/gettimeofday (configure.ac): Declare indicator.
12739         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12740         in use.
12741
12742         closein-tests: silence compiler warning
12743         * tests/test-closein.c (main): Ignore fread result.
12744         * modules/closein-tests (Depends-on): Add ignore-value.
12745
12746         tests: silence warning about system return
12747         * tests/test-areadlink-with-size.c (main): Ignore system result.
12748         * tests/test-areadlink.c (main): Likewise.
12749         * tests/test-areadlinkat-with-size.c (main): Likewise.
12750         * tests/test-areadlinkat.c (main): Likewise.
12751         * tests/test-canonicalize-lgpl.c (main): Likewise.
12752         * tests/test-canonicalize.c (main): Likewise.
12753         * tests/test-chown.c (main): Likewise.
12754         * tests/test-fchownat.c (main): Likewise.
12755         * tests/test-fdutimensat.c (main): Likewise.
12756         * tests/test-fstatat.c (main): Likewise.
12757         * tests/test-futimens.c (main): Likewise.
12758         * tests/test-lchown.c (main): Likewise.
12759         * tests/test-link.c (main): Likewise.
12760         * tests/test-linkat.c (main): Likewise.
12761         * tests/test-lstat.c (main): Likewise.
12762         * tests/test-mkdir.c (main): Likewise.
12763         * tests/test-mkdirat.c (main): Likewise.
12764         * tests/test-mkfifo.c (main): Likewise.
12765         * tests/test-mkfifoat.c (main): Likewise.
12766         * tests/test-mknod.c (main): Likewise.
12767         * tests/test-readlink.c (main): Likewise.
12768         * tests/test-remove.c (main): Likewise.
12769         * tests/test-rename.c (main): Likewise.
12770         * tests/test-renameat.c (main): Likewise.
12771         * tests/test-rmdir.c (main): Likewise.
12772         * tests/test-symlink.c (main): Likewise.
12773         * tests/test-symlinkat.c (main): Likewise.
12774         * tests/test-unlink.c (main): Likewise.
12775         * tests/test-unlinkat.c (main): Likewise.
12776         * tests/test-utimens.c (main): Likewise.
12777         * tests/test-utimensat.c (main): Likewise.
12778         * modules/areadlink-tests (Depends-on): Add ignore-value.
12779         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12780         * modules/areadlinkat-tests (Depends-on): Likewise.
12781         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12782         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12783         * modules/canonicalize-tests (Depends-on): Likewise.
12784         * modules/chown-tests (Depends-on): Likewise.
12785         * modules/fdutimensat-tests (Depends-on): Likewise.
12786         * modules/futimens-tests (Depends-on): Likewise.
12787         * modules/lchown-tests (Depends-on): Likewise.
12788         * modules/link-tests (Depends-on): Likewise.
12789         * modules/linkat-tests (Depends-on): Likewise.
12790         * modules/lstat-tests (Depends-on): Likewise.
12791         * modules/mkdir-tests (Depends-on): Likewise.
12792         * modules/mkfifo-tests (Depends-on): Likewise.
12793         * modules/mkfifoat-tests (Depends-on): Likewise.
12794         * modules/mknod-tests (Depends-on): Likewise.
12795         * modules/openat-tests (Depends-on): Likewise.
12796         * modules/readlink-tests (Depends-on): Likewise.
12797         * modules/remove-tests (Depends-on): Likewise.
12798         * modules/rename-tests (Depends-on): Likewise.
12799         * modules/renameat-tests (Depends-on): Likewise.
12800         * modules/rmdir-tests (Depends-on): Likewise.
12801         * modules/symlink-tests (Depends-on): Likewise.
12802         * modules/symlinkat-tests (Depends-on): Likewise.
12803         * modules/unlink-tests (Depends-on): Likewise.
12804         * modules/utimens-tests (Depends-on): Likewise.
12805         * modules/utimensat-tests (Depends-on): Likewise.
12806
12807 2010-01-31  Bruno Haible  <bruno@clisp.org>
12808
12809         Perform the same test for many <math.h> functions.
12810         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12811         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12812         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12813         of gl_MATHFUNC.
12814         * modules/acos (configure.ac): Likewise.
12815         * modules/asin (configure.ac): Likewise.
12816         * modules/atan (configure.ac): Likewise.
12817         * modules/atan2 (configure.ac): Likewise.
12818         * modules/cbrt (configure.ac): Likewise.
12819         * modules/copysign (configure.ac): Likewise.
12820         * modules/cos (configure.ac): Likewise.
12821         * modules/cosh (configure.ac): Likewise.
12822         * modules/erf (configure.ac): Likewise.
12823         * modules/erfc (configure.ac): Likewise.
12824         * modules/exp (configure.ac): Likewise.
12825         * modules/fmod (configure.ac): Likewise.
12826         * modules/hypot (configure.ac): Likewise.
12827         * modules/j0 (configure.ac): Likewise.
12828         * modules/j1 (configure.ac): Likewise.
12829         * modules/jn (configure.ac): Likewise.
12830         * modules/lgamma (configure.ac): Likewise.
12831         * modules/log (configure.ac): Likewise.
12832         * modules/log10 (configure.ac): Likewise.
12833         * modules/log1p (configure.ac): Likewise.
12834         * modules/pow (configure.ac): Likewise.
12835         * modules/remainder (configure.ac): Likewise.
12836         * modules/sin (configure.ac): Likewise.
12837         * modules/sinh (configure.ac): Likewise.
12838         * modules/tan (configure.ac): Likewise.
12839         * modules/tanh (configure.ac): Likewise.
12840         * modules/y0 (configure.ac): Likewise.
12841         * modules/y1 (configure.ac): Likewise.
12842         * modules/yn (configure.ac): Likewise.
12843         Suggested by Paolo Bonzini.
12844
12845 2010-01-31  Bruno Haible  <bruno@clisp.org>
12846
12847         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12848
12849 2010-01-31  Bruno Haible  <bruno@clisp.org>
12850
12851         Work around getdelim() bug on FreeBSD 8.0.
12852         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12853         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12854         not work.
12855         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12856         is 1.
12857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12858         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12859         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12860         a non-zero size.
12861         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12862
12863 2010-01-31  Bruno Haible  <bruno@clisp.org>
12864
12865         Work around getline() bug on FreeBSD 8.0.
12866         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12867         and a non-zero size.
12868         * tests/test-getline.c (main): Likewise.
12869         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12870         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12871
12872 2010-01-28  Eric Blake  <ebb9@byu.net>
12873
12874         regex: fix build failure
12875         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12876         platforms.
12877
12878 2010-01-28  Jim Meyering  <meyering@redhat.com>
12879
12880         regex: do not ignore memory allocation failure
12881         * lib/regex_internal.c (create_cd_newstate): Detect
12882         re_node_set_init_copy failure.   Extracted from glibc commit
12883         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12884
12885         regex: sync more white-space changes from libc
12886         * lib/regex_internal.c: White-space only changes.
12887         * lib/regexec.c: Likewise.
12888
12889         regex: add many uses of __attribute_warn_unused_result__
12890         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12891         * lib/regexec.c: Likewise.
12892         Extracted from a messy glibc commit.
12893
12894         regcomp.c: spelling and merge-artifact from glibc
12895         * lib/regcomp.c: Merge remainder of glibc's
12896         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12897
12898         regcomp.c: sync white-space changes from glibc
12899         * lib/regcomp.c: Merge to accommodate white space
12900         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12901
12902         regcomp.c: do not ignore internal return values
12903         * lib/regcomp.c: Do not ignore internal return values.
12904         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12905         but without its white-space changes and spelling fixes.
12906
12907         regex_internal.h: define __attribute_warn_unused_result__
12908         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12909
12910         maint: add a syntax-check rule to check for vulnerable Makefile.in
12911         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12912
12913 2010-01-27  Jim Meyering  <meyering@redhat.com>
12914
12915         ncftpput-ftp: clean up spaces
12916         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12917         Remove trailing blanks.
12918
12919 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12920
12921         * build-aux/git-version-gen: Fix copyright statement.
12922         * build-aux/gnupload: Likewise.
12923         * tests/test-arcfour.c: Likewise.
12924         * tests/test-arctwo.c: Likewise.
12925         * tests/test-count-one-bits.c: Likewise.
12926         * tests/test-crc.c: Likewise.
12927         * tests/test-des.c: Likewise.
12928         * tests/test-gc-arcfour.c: Likewise.
12929         * tests/test-gc-arctwo.c: Likewise.
12930         * tests/test-gc-des.c: Likewise.
12931         * tests/test-gc-hmac-md5.c: Likewise.
12932         * tests/test-gc-hmac-sha1.c: Likewise.
12933         * tests/test-gc-md2.c: Likewise.
12934         * tests/test-gc-md4.c: Likewise.
12935         * tests/test-gc-md5.c: Likewise.
12936         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12937         * tests/test-gc-rijndael.c: Likewise.
12938         * tests/test-gc-sha1.c: Likewise.
12939         * tests/test-gc.c: Likewise.
12940         * tests/test-gethostname.c: Likewise.
12941         * tests/test-gettimeofday.c: Likewise.
12942         * tests/test-hash.c: Likewise.
12943         * tests/test-hmac-md5.c: Likewise.
12944         * tests/test-hmac-sha1.c: Likewise.
12945         * tests/test-md2.c: Likewise.
12946         * tests/test-md4.c: Likewise.
12947         * tests/test-md5.c: Likewise.
12948         * tests/test-memchr.c: Likewise.
12949         * tests/test-memchr2.c: Likewise.
12950         * tests/test-memcmp.c: Likewise.
12951         * tests/test-memmem.c: Likewise.
12952         * tests/test-memrchr.c: Likewise.
12953         * tests/test-rawmemchr.c: Likewise.
12954         * tests/test-read-file.c: Likewise.
12955         * tests/test-rijndael.c: Likewise.
12956         * tests/test-sockets.c: Likewise.
12957         * tests/test-strchrnul.c: Likewise.
12958         * tests/test-strstr.c: Likewise.
12959         * tests/test-strtod.c: Likewise.
12960         * build-aux/ncftpput-ftp: Likewise.
12961
12962 2010-01-26  Eric Blake  <ebb9@byu.net>
12963
12964         ignore-value: update recommended header name
12965         * modules/ignore-value (Include): Only use <> for headers that
12966         exist in glibc.
12967
12968 2010-01-26  Jim Meyering  <meyering@redhat.com>
12969
12970         test-userspec.c: avoid compiler warnings
12971         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12972         and "initialization discards qualifiers..." warnings.
12973         Put the first "uid" in its own scope, and make char* members "const".
12974
12975 2010-01-25  Bruno Haible  <bruno@clisp.org>
12976
12977         gnulib-tool: Make warning diagnostics consistent.
12978         * gnulib-tool (func_warning): New function.
12979         Use it everywhere where gnulib-tool produces output to stderr and it is
12980         not a fatal error.
12981
12982 2010-01-25  Bruno Haible  <bruno@clisp.org>
12983
12984         Fix test dependencies.
12985         * modules/xstrtol-tests (Depends-on): Add inttypes.
12986         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12987
12988 2010-01-25 Pádraig Brady <P@draigBrady.com>
12989
12990         syntax-check: detect incorrect boolean macro values in config.h
12991         * modules/maintainer-makefile (configure.ac): Parameterize the location
12992         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12993         The logic is from Eric Blake and the location indicated by Jim Meyering.
12994         Note the more natural CONFIG_HEADER name is prohibited by automake
12995         for backwards compatibility reasons.
12996         * top/maint.mk (sc_Wundef_boolean): New rule.
12997
12998 2010-01-25  Jim Meyering  <meyering@redhat.com>
12999
13000         bootstrap: detect MacOS 10.6's shasum, too
13001         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
13002         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
13003
13004 2010-01-23  Jim Meyering  <meyering@redhat.com>
13005
13006         xstrtoll: new module
13007         * modules/xstrtoll: New file.
13008         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
13009         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
13010         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
13011         ./configure fails if you use this module and lack "long long".
13012         * modules/xstrtoll-tests: New module.
13013         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
13014         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
13015         new init.sh-based test framework.
13016
13017 2010-01-24  Bruno Haible  <bruno@clisp.org>
13018
13019         Tests for module 'yn'.
13020         * modules/yn-tests: New file.
13021         * tests/test-yn.c: New file.
13022
13023         Tests for module 'y1'.
13024         * modules/y1-tests: New file.
13025         * tests/test-y1.c: New file.
13026
13027         Tests for module 'y0'.
13028         * modules/y0-tests: New file.
13029         * tests/test-y0.c: New file.
13030
13031         Tests for module 'tanh'.
13032         * modules/tanh-tests: New file.
13033         * tests/test-tanh.c: New file.
13034
13035         Tests for module 'tan'.
13036         * modules/tan-tests: New file.
13037         * tests/test-tan.c: New file.
13038
13039         Tests for module 'sqrt'.
13040         * modules/sqrt-tests: New file.
13041         * tests/test-sqrt.c: New file.
13042
13043         Tests for module 'sinh'.
13044         * modules/sinh-tests: New file.
13045         * tests/test-sinh.c: New file.
13046
13047         Tests for module 'sin'.
13048         * modules/sin-tests: New file.
13049         * tests/test-sin.c: New file.
13050
13051         Tests for module 'rint'.
13052         * modules/rint-tests: New file.
13053         * tests/test-rint.c: New file.
13054
13055         Tests for module 'remainder'.
13056         * modules/remainder-tests: New file.
13057         * tests/test-remainder.c: New file.
13058
13059         Tests for module 'pow'.
13060         * modules/pow-tests: New file.
13061         * tests/test-pow.c: New file.
13062
13063         Tests for module 'nextafter'.
13064         * modules/nextafter-tests: New file.
13065         * tests/test-nextafter.c: New file.
13066
13067         Tests for module 'modf'.
13068         * modules/modf-tests: New file.
13069         * tests/test-modf.c: New file.
13070
13071         Tests for module 'logb'.
13072         * modules/logb-tests: New file.
13073         * tests/test-logb.c: New file.
13074
13075         Tests for module 'log1p'.
13076         * modules/log1p-tests: New file.
13077         * tests/test-log1p.c: New file.
13078
13079         Tests for module 'log10'.
13080         * modules/log10-tests: New file.
13081         * tests/test-log10.c: New file.
13082
13083         Tests for module 'log'.
13084         * modules/log-tests: New file.
13085         * tests/test-log.c: New file.
13086
13087         Tests for module 'lgamma'.
13088         * modules/lgamma-tests: New file.
13089         * tests/test-lgamma.c: New file.
13090
13091         Tests for module 'ldexp'.
13092         * modules/ldexp-tests: New file.
13093         * tests/test-ldexp.c: New file.
13094
13095         Tests for module 'jn'.
13096         * modules/jn-tests: New file.
13097         * tests/test-jn.c: New file.
13098
13099         Tests for module 'j1'.
13100         * modules/j1-tests: New file.
13101         * tests/test-j1.c: New file.
13102
13103         Tests for module 'j0'.
13104         * modules/j0-tests: New file.
13105         * tests/test-j0.c: New file.
13106
13107         Tests for module 'hypot'.
13108         * modules/hypot-tests: New file.
13109         * tests/test-hypot.c: New file.
13110
13111         Tests for module 'fmod'.
13112         * modules/fmod-tests: New file.
13113         * tests/test-fmod.c: New file.
13114
13115         Tests for module 'fabs'.
13116         * modules/fabs-tests: New file.
13117         * tests/test-fabs.c: New file.
13118
13119         Tests for module 'exp'.
13120         * modules/exp-tests: New file.
13121         * tests/test-exp.c: New file.
13122
13123         Tests for module 'erfc'.
13124         * modules/erfc-tests: New file.
13125         * tests/test-erfc.c: New file.
13126
13127         Tests for module 'erf'.
13128         * modules/erf-tests: New file.
13129         * tests/test-erf.c: New file.
13130
13131         Tests for module 'cosh'.
13132         * modules/cosh-tests: New file.
13133         * tests/test-cosh.c: New file.
13134
13135         Tests for module 'cos'.
13136         * modules/cos-tests: New file.
13137         * tests/test-cos.c: New file.
13138
13139         Tests for module 'copysign'.
13140         * modules/copysign-tests: New file.
13141         * tests/test-copysign.c: New file.
13142
13143         Tests for module 'cbrt'.
13144         * modules/cbrt-tests: New file.
13145         * tests/test-cbrt.c: New file.
13146
13147         Tests for module 'atan2'.
13148         * modules/atan2-tests: New file.
13149         * tests/test-atan2.c: New file.
13150
13151         Tests for module 'atan'.
13152         * modules/atan-tests: New file.
13153         * tests/test-atan.c: New file.
13154
13155         Tests for module 'asin'.
13156         * modules/asin-tests: New file.
13157         * tests/test-asin.c: New file.
13158
13159         Tests for module 'acos'.
13160         * modules/acos-tests: New file.
13161         * tests/test-acos.c: New file.
13162
13163 2010-01-24  Bruno Haible  <bruno@clisp.org>
13164
13165         Fix tests for common <math.h> functions.
13166         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
13167         code snippet that references the function pointer, rather than merely
13168         calling the function. Substitute the FUNC_LIBM variable.
13169         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
13170         * modules/acos (configure.ac): Likewise.
13171         * modules/asin (configure.ac): Likewise.
13172         * modules/atan (configure.ac): Likewise.
13173         * modules/atan2 (configure.ac): Likewise.
13174         * modules/cbrt (configure.ac): Likewise.
13175         * modules/copysign (configure.ac): Likewise.
13176         * modules/cos (configure.ac): Likewise.
13177         * modules/cosh (configure.ac): Likewise.
13178         * modules/erf (configure.ac): Likewise.
13179         * modules/erfc (configure.ac): Likewise.
13180         * modules/exp (configure.ac): Likewise.
13181         * modules/fabs (configure.ac): Likewise.
13182         * modules/fmod (configure.ac): Likewise.
13183         * modules/hypot (configure.ac): Likewise.
13184         * modules/j0 (configure.ac): Likewise.
13185         * modules/j1 (configure.ac): Likewise.
13186         * modules/jn (configure.ac): Likewise.
13187         * modules/ldexp (configure.ac): Likewise.
13188         * modules/lgamma (configure.ac): Likewise.
13189         * modules/log (configure.ac): Likewise.
13190         * modules/log10 (configure.ac): Likewise.
13191         * modules/log1p (configure.ac): Likewise.
13192         * modules/logb (configure.ac): Likewise.
13193         * modules/modf (configure.ac): Likewise.
13194         * modules/nextafter (configure.ac): Likewise.
13195         * modules/pow (configure.ac): Likewise.
13196         * modules/remainder (configure.ac): Likewise.
13197         * modules/rint (configure.ac): Likewise.
13198         * modules/sin (configure.ac): Likewise.
13199         * modules/sinh (configure.ac): Likewise.
13200         * modules/tan (configure.ac): Likewise.
13201         * modules/tanh (configure.ac): Likewise.
13202         * modules/y0 (configure.ac): Likewise.
13203         * modules/y1 (configure.ac): Likewise.
13204         * modules/yn (configure.ac): Likewise.
13205
13206 2010-01-24  Bruno Haible  <bruno@clisp.org>
13207
13208         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
13209         * tests/test-acosl.c (x): New variable.
13210         (main): Store argument in x and fetch it from x.
13211         * tests/test-asinl.c (x): New variable.
13212         (main): Store argument in x and fetch it from x.
13213         * tests/test-atanl.c (x): New variable.
13214         (main): Store argument in x and fetch it from x.
13215         * tests/test-cosl.c (x): New variable.
13216         (main): Store argument in x and fetch it from x.
13217         * tests/test-expl.c (x): New variable.
13218         (main): Store argument in x and fetch it from x.
13219         * tests/test-logl.c (x): New variable.
13220         (main): Store argument in x and fetch it from x.
13221         * tests/test-sinl.c (x): New variable.
13222         (main): Store argument in x and fetch it from x.
13223         * tests/test-sqrtl.c (x): New variable.
13224         (main): Store argument in x and fetch it from x.
13225         * tests/test-tanl.c (x): New variable.
13226         (main): Store argument in x and fetch it from x.
13227
13228 2010-01-24  Bruno Haible  <bruno@clisp.org>
13229
13230         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
13231         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
13232         assignments to the initial TESTS_ENVIRONMENT.
13233         * doc/gnulib.texi (Unit test modules): Document it.
13234         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
13235         TESTS_ENVIRONMENT.
13236         * modules/btowc-tests (Makefile.am): Likewise.
13237         * modules/c-stack-tests (Makefile.am): Likewise.
13238         * modules/c-strcase-tests (Makefile.am): Likewise.
13239         * modules/copy-file-tests (Makefile.am): Likewise.
13240         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
13241         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
13242         * modules/mbrtowc-tests (Makefile.am): Likewise.
13243         * modules/mbscasecmp-tests (Makefile.am): Likewise.
13244         * modules/mbscasestr-tests (Makefile.am): Likewise.
13245         * modules/mbschr-tests (Makefile.am): Likewise.
13246         * modules/mbscspn-tests (Makefile.am): Likewise.
13247         * modules/mbsinit-tests (Makefile.am): Likewise.
13248         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13249         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
13250         * modules/mbspbrk-tests (Makefile.am): Likewise.
13251         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13252         * modules/mbsrchr-tests (Makefile.am): Likewise.
13253         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
13254         * modules/mbsspn-tests (Makefile.am): Likewise.
13255         * modules/mbsstr-tests (Makefile.am): Likewise.
13256         * modules/nl_langinfo-tests (Makefile.am): Likewise.
13257         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
13258         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13259         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13260         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13261         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13262         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
13263         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13264         * modules/wcrtomb-tests (Makefile.am): Likewise.
13265         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
13266         * modules/wcsrtombs-tests (Makefile.am): Likewise.
13267         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
13268         assignments from TESTS_ENVIRONMENT.
13269         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
13270         augmentation.
13271         * modules/argp-version-etc-tests (Makefile.am): Likewise.
13272         * modules/atexit-tests (Makefile.am): Likewise.
13273         * modules/binary-io-tests (Makefile.am): Likewise.
13274         * modules/closein-tests (Makefile.am): Likewise.
13275         * modules/dprintf-posix-tests (Makefile.am): Likewise.
13276         * modules/exclude-tests (Makefile.am): Likewise.
13277         * modules/fflush-tests (Makefile.am): Likewise.
13278         * modules/fpending-tests (Makefile.am): Likewise.
13279         * modules/fprintf-posix-tests (Makefile.am): Likewise.
13280         * modules/freadahead-tests (Makefile.am): Likewise.
13281         * modules/freadptr-tests (Makefile.am): Likewise.
13282         * modules/freadseek-tests (Makefile.am): Likewise.
13283         * modules/fseek-tests (Makefile.am): Likewise.
13284         * modules/fseeko-tests (Makefile.am): Likewise.
13285         * modules/ftell-tests (Makefile.am): Likewise.
13286         * modules/ftello-tests (Makefile.am): Likewise.
13287         * modules/idpriv-drop-tests (Makefile.am): Likewise.
13288         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
13289         * modules/lseek-tests (Makefile.am): Likewise.
13290         * modules/parse-duration-tests (Makefile.am): Likewise.
13291         * modules/perror-tests (Makefile.am): Likewise.
13292         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
13293         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
13294         * modules/pipe-tests (Makefile.am): Likewise.
13295         * modules/pread-tests (Makefile.am): Likewise.
13296         * modules/printf-posix-tests (Makefile.am): Likewise.
13297         * modules/select-tests (Makefile.am): Likewise.
13298         * modules/sigpipe-tests (Makefile.am): Likewise.
13299         * modules/tsearch-tests (Makefile.am): Likewise.
13300         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
13301         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
13302         * modules/uniname/uniname-tests (Makefile.am): Likewise.
13303         * modules/uniwidth/width-tests (Makefile.am): Likewise.
13304         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
13305         * modules/version-etc-tests (Makefile.am): Likewise.
13306         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13307         * modules/vprintf-posix-tests (Makefile.am): Likewise.
13308         * modules/xalloc-die-tests (Makefile.am): Likewise.
13309         * modules/xprintf-posix-tests (Makefile.am): Likewise.
13310         * modules/xstrtoimax-tests (Makefile.am): Likewise.
13311         * modules/xstrtol-tests (Makefile.am): Likewise.
13312         * modules/xstrtoumax-tests (Makefile.am): Likewise.
13313         * modules/yesno-tests (Makefile.am): Likewise.
13314         Suggested by Jim Meyering.
13315
13316 2010-01-24  Bruno Haible  <bruno@clisp.org>
13317
13318         More documentation.
13319         * doc/gnulib.texi (Writing modules): New chapter.
13320         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
13321         the new chapter.
13322
13323 2010-01-24  Jim Meyering  <meyering@redhat.com>
13324
13325         maint.mk: do not prepend "./" after filtering
13326         * top/maint.mk (_prepend_srcdir_prefix): New variable
13327         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
13328         "./" when $(srcdir) is ".".
13329
13330         define STREQ(a,b) consistently, removing useless parentheses
13331         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
13332         since the only risk is that "a" or "b" contains an unparenthesized
13333         comma, but if either did that, STREQ would have 3 or more arguments.
13334         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
13335         * lib/fts.c (STREQ): Remove unnecessary parentheses.
13336         * lib/hash-triple.c (STREQ): Likewise.
13337         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
13338         * lib/getugroups.c (STREQ): Likewise.
13339
13340 2010-01-23  Jim Meyering  <meyering@redhat.com>
13341
13342         maint.mk: fix syntax-check in a non-srcdir build directory
13343         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
13344         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
13345
13346 2010-01-22  Jim Meyering  <meyering@redhat.com>
13347
13348         userspec: add unit tests
13349         * tests/test-userspec.c: New file.
13350         * modules/userspec-tests: Likewise.
13351
13352 2010-01-21  Jim Meyering  <meyering@redhat.com>
13353
13354         maint.mk: handle source file names containing "." robustly
13355         * top/maint.mk (_dot_escaped_srcdir): Define.
13356         (VC_LIST): Use it in LHS of sed substitution.
13357
13358 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
13359
13360         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
13361         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
13362         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
13363         from a non-srcdir build.
13364
13365 2010-01-20  Eric Blake  <ebb9@byu.net>
13366
13367         warn-on-use: use instead of link-warning
13368         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
13369         * modules/unistd (Depends-on, Makefile.am): Likewise.
13370         * modules/arpa_inet (Depends-on): Replace link-warning with
13371         warn-on-use.
13372         (Makefile.am): Update rules accordingly.
13373         * modules/ctype (Depends-on, Makefile.am): Likewise.
13374         * modules/dirent (Depends-on, Makefile.am): Likewise.
13375         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
13376         * modules/inttypes (Depends-on, Makefile.am): Likewise.
13377         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13378         * modules/locale (Depends-on, Makefile.am): Likewise.
13379         * modules/math (Depends-on, Makefile.am): Likewise.
13380         * modules/search (Depends-on, Makefile.am): Likewise.
13381         * modules/signal (Depends-on, Makefile.am): Likewise.
13382         * modules/spawn (Depends-on, Makefile.am): Likewise.
13383         * modules/stdlib (Depends-on, Makefile.am): Likewise.
13384         * modules/string (Depends-on, Makefile.am): Likewise.
13385         * modules/strings (Depends-on, Makefile.am): Likewise.
13386         * modules/sys_file (Depends-on, Makefile.am): Likewise.
13387         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
13388         * modules/sys_select (Depends-on, Makefile.am): Likewise.
13389         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
13390         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
13391         * modules/sys_times (Depends-on, Makefile.am): Likewise.
13392         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13393         * modules/wchar (Depends-on, Makefile.am): Likewise.
13394         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
13395         should be poisoned.
13396         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
13397         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
13398         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
13399         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13400         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13401         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13402         * m4/math_h.m4 (gl_MATH_H): Likewise.
13403         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13404         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13405         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13406         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13407         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13408         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13409         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13410         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
13411         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13413         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13415         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13416         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13417         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13418         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13419         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
13420         GL_LINK_WARNING.
13421         * lib/ctype.in.h: Likewise.
13422         * lib/dirent.in.h: Likewise.
13423         * lib/fcntl.in.h: Likewise.
13424         * lib/inttypes.in.h: Likewise.
13425         * lib/langinfo.in.h: Likewise.
13426         * lib/locale.in.h: Likewise.
13427         * lib/math.in.h: Likewise.
13428         * lib/search.in.h: Likewise.
13429         * lib/signal.in.h: Likewise.
13430         * lib/spawn.in.h: Likewise.
13431         * lib/stdio.in.h: Likewise.
13432         * lib/stdlib.in.h: Likewise.
13433         * lib/string.in.h: Likewise.
13434         * lib/strings.in.h: Likewise.
13435         * lib/sys_file.in.h: Likewise.
13436         * lib/sys_ioctl.in.h: Likewise.
13437         * lib/sys_select.in.h: Likewise.
13438         * lib/sys_socket.in.h: Likewise.
13439         * lib/sys_stat.in.h: Likewise.
13440         * lib/sys_times.in.h: Likewise.
13441         * lib/sys_utsname.in.h: Likewise.
13442         * lib/unistd.in.h: Likewise.
13443         * lib/wchar.in.h: Likewise.
13444
13445 2010-01-20  Bruno Haible  <bruno@clisp.org>
13446
13447         Avoid duplicate -lm.
13448         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
13449         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
13450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
13451         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
13452         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
13453         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
13454         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
13455         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
13456         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
13457         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
13458         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
13459         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13460         Reported by Paolo Bonzini.
13461
13462 2010-01-19  Bruno Haible  <bruno@clisp.org>
13463
13464         langinfo, nl_langinfo: Relicense under LGPLv2+.
13465         * modules/langinfo (License): Change to LGPLv2+.
13466         * modules/nl_langinfo (License): Likewise.
13467         Patch by David Lutterkort <lutter@redhat.com>.
13468
13469 2010-01-19  Bruno Haible  <bruno@clisp.org>
13470
13471         Avoid compilation error with cc on OSF/1 5.1.
13472         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
13473         statement, not before.
13474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13475
13476 2010-01-18  Bruno Haible  <bruno@clisp.org>
13477
13478         Avoid a link error due to the __printf__ symbol.
13479         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
13480         and 2.6.x.
13481         (__format__, __printf__): Remove definitions.
13482         * lib/argp-fmtstream.h: Likewise.
13483         * lib/argp.h: Likewise.
13484         * lib/error.h: Likewise.
13485         * lib/vasnprintf.h: Likewise.
13486         * lib/xprintf.h: Likewise.
13487         * lib/xvasprintf.h: Likewise.
13488         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13489
13490 2010-01-18  Bruno Haible  <bruno@clisp.org>
13491
13492         Tests for module 'tanl'.
13493         * modules/tanl-tests: New file.
13494         * tests/test-tanl.c: New file.
13495
13496         Tests for module 'sqrtl'.
13497         * modules/sqrtl-tests: New file.
13498         * tests/test-sqrtl.c: New file.
13499
13500         Tests for module 'sinl'.
13501         * modules/sinl-tests: New file.
13502         * tests/test-sinl.c: New file.
13503
13504         Tests for module 'logl'.
13505         * modules/logl-tests: New file.
13506         * tests/test-logl.c: New file.
13507
13508         Tests for module 'expl'.
13509         * modules/expl-tests: New file.
13510         * tests/test-expl.c: New file.
13511
13512         Tests for module 'cosl'.
13513         * modules/cosl-tests: New file.
13514         * tests/test-cosl.c: New file.
13515
13516         Tests for module 'atanl'.
13517         * modules/atanl-tests: New file.
13518         * tests/test-atanl.c: New file.
13519
13520         Tests for module 'asinl'.
13521         * modules/asinl-tests: New file.
13522         * tests/test-asinl.c: New file.
13523
13524         Tests for module 'acosl'.
13525         * modules/acosl-tests: New file.
13526         * tests/test-acosl.c: New file.
13527
13528         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13529         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
13530         tanl): Use the standard gnulib idiom.
13531         * lib/cosl.c: Don't include trigl.c and sincosl.c.
13532         * lib/sinl.c: Likewise.
13533         * lib/tanl.c: Don't include trigl.c.
13534         (kernel_tanl): Make static.
13535         * lib/sincosl.c: Include trigl.h first.
13536         * lib/trigl.c: Likewise.
13537         * m4/acosl.m4: New file.
13538         * m4/asinl.m4: New file.
13539         * m4/atanl.m4: New file.
13540         * m4/cosl.m4: New file.
13541         * m4/expl.m4: New file.
13542         * m4/logl.m4: New file.
13543         * m4/sinl.m4: New file.
13544         * m4/sqrtl.m4: New file.
13545         * m4/tanl.m4: New file.
13546         * m4/mathl.m4: Remove file.
13547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
13548         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13549         Don't initialize GNULIB_MATHL.
13550         * modules/acosl: New file.
13551         * modules/asinl: New file.
13552         * modules/atanl: New file.
13553         * modules/cosl: New file.
13554         * modules/expl: New file.
13555         * modules/logl: New file.
13556         * modules/sinl: New file.
13557         * modules/sqrtl: New file.
13558         * modules/tanl: New file.
13559         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
13560         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
13561         substitute GNULIB_MATHL.
13562         * modules/mathl: Rewritten.
13563         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
13564         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
13565         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
13566         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
13567         * doc/posix-functions/expl.texi: Mention the 'expl' module.
13568         * doc/posix-functions/logl.texi: Mention the 'logl' module.
13569         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
13570         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
13571         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13572
13573 2010-01-18  Bruno Haible  <bruno@clisp.org>
13574
13575         sqrt: Make gl_FUNC_SQRT requirable.
13576         * m4/sqrt.m4: New file.
13577         * modules/sqrt (Files): Add it.
13578         (configure.ac): Invoke gl_FUNC_SQRT.
13579
13580 2010-01-18  Bruno Haible  <bruno@clisp.org>
13581
13582         New modules for common <math.h> functions.
13583         * m4/mathfunc.m4: New file.
13584         * modules/acos: New file.
13585         * modules/asin: New file.
13586         * modules/atan: New file.
13587         * modules/atan2: New file.
13588         * modules/cbrt: New file.
13589         * modules/copysign: New file.
13590         * modules/cos: New file.
13591         * modules/cosh: New file.
13592         * modules/erf: New file.
13593         * modules/erfc: New file.
13594         * modules/exp: New file.
13595         * modules/fabs: New file.
13596         * modules/fmod: New file.
13597         * modules/hypot: New file.
13598         * modules/j0: New file.
13599         * modules/j1: New file.
13600         * modules/jn: New file.
13601         * modules/ldexp: New file.
13602         * modules/lgamma: New file.
13603         * modules/log: New file.
13604         * modules/log10: New file.
13605         * modules/log1p: New file.
13606         * modules/logb: New file.
13607         * modules/modf: New file.
13608         * modules/nextafter: New file.
13609         * modules/pow: New file.
13610         * modules/remainder: New file.
13611         * modules/rint: New file.
13612         * modules/sin: New file.
13613         * modules/sinh: New file.
13614         * modules/sqrt: New file.
13615         * modules/tan: New file.
13616         * modules/tanh: New file.
13617         * modules/y0: New file.
13618         * modules/y1: New file.
13619         * modules/yn: New file.
13620         * doc/posix-functions/acos.texi: Mention the 'acos' module.
13621         * doc/posix-functions/asin.texi: Mention the 'asin' module.
13622         * doc/posix-functions/atan.texi: Mention the 'atan' module.
13623         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
13624         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
13625         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
13626         * doc/posix-functions/cos.texi: Mention the 'cos' module.
13627         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
13628         * doc/posix-functions/erf.texi: Mention the 'erf' module.
13629         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
13630         * doc/posix-functions/exp.texi: Mention the 'exp' module.
13631         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
13632         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
13633         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
13634         * doc/posix-functions/j0.texi: Mention the 'j0' module.
13635         * doc/posix-functions/j1.texi: Mention the 'j1' module.
13636         * doc/posix-functions/jn.texi: Mention the 'jn' module.
13637         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
13638         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
13639         * doc/posix-functions/log.texi: Mention the 'log' module.
13640         * doc/posix-functions/log10.texi: Mention the 'log10' module.
13641         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
13642         * doc/posix-functions/logb.texi: Mention the 'logb' module.
13643         * doc/posix-functions/modf.texi: Mention the 'modf' module.
13644         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
13645         * doc/posix-functions/pow.texi: Mention the 'pow' module.
13646         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
13647         * doc/posix-functions/rint.texi: Mention the 'rint' module.
13648         * doc/posix-functions/sin.texi: Mention the 'sin' module.
13649         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
13650         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
13651         * doc/posix-functions/tan.texi: Mention the 'tan' module.
13652         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
13653         * doc/posix-functions/y0.texi: Mention the 'y0' module.
13654         * doc/posix-functions/y1.texi: Mention the 'y1' module.
13655         * doc/posix-functions/yn.texi: Mention the 'yn' module.
13656
13657 2010-01-18  Jim Meyering  <meyering@redhat.com>
13658
13659         ignore-value: relax license to LGPLv2+
13660         * modules/ignore-value (License): Relax to LGPLv2+.
13661
13662         getdate: don't leak when TZ contains two or more '"'s
13663         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
13664         double quote in TZ after the first one.
13665
13666         readtokens: do not leak internal token_lengths buffer
13667         * lib/readtokens.c (readtokens): Free the local, lengths,
13668         when the supplied "token_lengths" parameter is NULL.
13669
13670 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13671
13672         Fix a couple of missing LIBTHREAD link failures on AIX.
13673         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
13674         $(LIBTHREAD).
13675         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
13676
13677         Link test-poll against INET_PTON_LIB.
13678         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
13679         for inet_pton on Solaris 10.
13680
13681 2010-01-17  Bruno Haible  <bruno@clisp.org>
13682
13683         unistdio/*-sprintf: Fix typo in module description.
13684         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
13685         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
13686         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
13687         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
13688         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
13689         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
13690         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
13691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13692
13693 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13694
13695         gnulib-tool: fix filelist for AIX, HP-UX ksh.
13696         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
13697         variables in shell case patterns, for AIX and HP-UX ksh.
13698
13699         Split large sed scripts, for HP-UX sed.
13700         * modules/stdio: Split sed scripts around 50 sed commands,
13701         to avoid HP-UX limit of 99 commands, in the near future.
13702         * modules/string: Likewise.
13703         * modules/unistd: Likewise.
13704
13705         gnulib-tool: avoid writing in the current directory.
13706         * gnulib-tool (func_emit_lib_Makefile_am)
13707         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
13708         not in the current directory, so concurrent gnulib-tool
13709         instances do not interfere.
13710
13711 2010-01-16  Jim Meyering  <meyering@redhat.com>
13712
13713         doc: update users.txt
13714         * users.txt: Add grep.
13715         (diffutils, gzip): Update URLs.
13716
13717 2010-01-12  Bruno Haible  <bruno@clisp.org>
13718
13719         posix_spawn: Avoid test failure on Cygwin.
13720         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
13721         characters.
13722         Reported by Simon Josefsson.
13723
13724 2010-01-12  Bruno Haible  <bruno@clisp.org>
13725
13726         * tests/test-cond.c (main): When skipping the test, show the reason.
13727
13728 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13729
13730         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13731
13732 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13733
13734         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13735         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13736
13737 2010-01-12  Eric Blake  <ebb9@byu.net>
13738
13739         build: guarantee AS_VAR_IF
13740         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13741         (gl_AS_VAR_IF): Move...
13742         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13743         Reported by Simon Josefsson.
13744
13745 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13746
13747         * lib/stdio.in.h: Fix typo.
13748
13749 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13750
13751         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13752         libgpg-error.
13753
13754 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13755
13756         * tests/test-xalloc-die.sh: Use $EXEEXT.
13757
13758 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13759             Bruno Haible  <bruno@clisp.org>
13760
13761         getlogin, getlogin_r: Avoid test failure.
13762         * tests/test-getlogin.c: Include <stdio.h>.
13763         (main): Skip the test when the function fails because stdin is not a
13764         tty.
13765         * tests/test-getlogin_r.c: Include <stdio.h>.
13766         (main): Skip the test when the function fails because stdin is not a
13767         tty.
13768
13769 2010-01-11  Eric Blake  <ebb9@byu.net>
13770
13771         tests: avoid more large file warnings
13772         * tests/test-fflush.c: Avoid warning about ftell use.
13773         * tests/test-fseek.c: Avoid warning about fseek use.
13774
13775 2010-01-10  Bruno Haible  <bruno@clisp.org>
13776
13777         nproc: Work better on Linux when /proc and /sys are not mounted.
13778         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13779         as lower bound when, on glibc/Linux systems,
13780         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13781         Suggested by Pádraig Brady <P@draigbrady.com>.
13782         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13783
13784         nproc: Refactor.
13785         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13786         extracted from num_processors.
13787         (num_processors): Call it.
13788
13789 2010-01-11  Jim Meyering  <meyering@redhat.com>
13790
13791         utimecmp: avoid new warning from upcoming gcc-4.5.0
13792         * lib/utimecmp.c (BILLION): Define using #define rather than an
13793         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13794
13795 2010-01-11  Eric Blake  <ebb9@byu.net>
13796
13797         math: add portability warnings for classification macros
13798         * modules/math (Depends-on): Add warn-on-use.
13799         (Makefile.am): Provide new substitutions.
13800         * m4/math_h.m4 (gl_MATH_H): Require inline.
13801         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13802         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13803         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13804         implement warnings.
13805
13806         unistd: warn on use of environ without module
13807         * modules/unistd (Depends-on): Add warn-on-use.
13808         (Makefile.am): Provide new substitutions.
13809         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13810         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13811
13812         stdio: warn on suspicious uses
13813         * modules/stdio (Depends-on): Add warn-on-use.
13814         (Makefile.am): Provide new substitutions.
13815         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13816         fseeko.
13817         * lib/stdio.in.h (gets): Always warn on use.
13818         (fseek, ftell): Adjust when warnings are issued, and honor
13819         _GL_NO_LARGE_FILES as a way to silence the warning.
13820         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13821         any warning about large file offsets.
13822         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13823         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13824         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13825         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13826         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13827         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13828         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13829         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13830
13831         warn-on-use: new module
13832         * modules/warn-on-use: New file.
13833         * build-aux/warn-on-use.h: Likewise.
13834         * m4/warn-on-use.m4: Likewise.
13835         * MODULES.html.sh (Support for building): Mention it.
13836
13837 2010-01-10  Bruno Haible  <bruno@clisp.org>
13838
13839         Tests for module 'unistr/u32-strdup'.
13840         * modules/unistr/u32-strdup-tests: New file.
13841         * tests/unistr/test-u32-strdup.c: New file.
13842
13843         Tests for module 'unistr/u16-strdup'.
13844         * modules/unistr/u16-strdup-tests: New file.
13845         * tests/unistr/test-u16-strdup.c: New file.
13846
13847         Tests for module 'unistr/u8-strdup'.
13848         * modules/unistr/u8-strdup-tests: New file.
13849         * tests/unistr/test-u8-strdup.c: New file.
13850         * tests/unistr/test-strdup.h: New file.
13851
13852         Tests for module 'unistr/u32-strncmp'.
13853         * modules/unistr/u32-strncmp-tests: New file.
13854         * tests/unistr/test-u32-strncmp.c: New file.
13855
13856         Tests for module 'unistr/u16-strncmp'.
13857         * modules/unistr/u16-strncmp-tests: New file.
13858         * tests/unistr/test-u16-strncmp.c: New file.
13859
13860         Tests for module 'unistr/u8-strncmp'.
13861         * modules/unistr/u8-strncmp-tests: New file.
13862         * tests/unistr/test-u8-strncmp.c: New file.
13863         * tests/unistr/test-strncmp.h: New file.
13864
13865         Tests for module 'unistr/u32-strcoll'.
13866         * modules/unistr/u32-strcoll-tests: New file.
13867         * tests/unistr/test-u32-strcoll.c: New file.
13868
13869         Tests for module 'unistr/u16-strcoll'.
13870         * modules/unistr/u16-strcoll-tests: New file.
13871         * tests/unistr/test-u16-strcoll.c: New file.
13872
13873         Tests for module 'unistr/u8-strcoll'.
13874         * modules/unistr/u8-strcoll-tests: New file.
13875         * tests/unistr/test-u8-strcoll.c: New file.
13876
13877         Tests for module 'unistr/u32-strcmp'.
13878         * modules/unistr/u32-strcmp-tests: New file.
13879         * tests/unistr/test-u32-strcmp.c: New file.
13880         * tests/unistr/test-u32-strcmp.h: New file.
13881
13882         Tests for module 'unistr/u16-strcmp'.
13883         * modules/unistr/u16-strcmp-tests: New file.
13884         * tests/unistr/test-u16-strcmp.c: New file.
13885         * tests/unistr/test-u16-strcmp.h: New file.
13886
13887         Tests for module 'unistr/u8-strcmp'.
13888         * modules/unistr/u8-strcmp-tests: New file.
13889         * tests/unistr/test-u8-strcmp.c: New file.
13890         * tests/unistr/test-u8-strcmp.h: New file.
13891         * tests/unistr/test-strcmp.h: New file.
13892
13893         Tests for module 'unistr/u32-strncat'.
13894         * modules/unistr/u32-strncat-tests: New file.
13895         * tests/unistr/test-u32-strncat.c: New file.
13896
13897         Tests for module 'unistr/u16-strncat'.
13898         * modules/unistr/u16-strncat-tests: New file.
13899         * tests/unistr/test-u16-strncat.c: New file.
13900
13901         Tests for module 'unistr/u8-strncat'.
13902         * modules/unistr/u8-strncat-tests: New file.
13903         * tests/unistr/test-u8-strncat.c: New file.
13904         * tests/unistr/test-strncat.h: New file.
13905
13906         Tests for module 'unistr/u32-strcat'.
13907         * modules/unistr/u32-strcat-tests: New file.
13908         * tests/unistr/test-u32-strcat.c: New file.
13909
13910         Tests for module 'unistr/u16-strcat'.
13911         * modules/unistr/u16-strcat-tests: New file.
13912         * tests/unistr/test-u16-strcat.c: New file.
13913
13914         Tests for module 'unistr/u8-strcat'.
13915         * modules/unistr/u8-strcat-tests: New file.
13916         * tests/unistr/test-u8-strcat.c: New file.
13917         * tests/unistr/test-strcat.h: New file.
13918
13919         Tests for module 'unistr/u32-stpncpy'.
13920         * modules/unistr/u32-stpncpy-tests: New file.
13921         * tests/unistr/test-u32-stpncpy.c: New file.
13922
13923         Tests for module 'unistr/u16-stpncpy'.
13924         * modules/unistr/u16-stpncpy-tests: New file.
13925         * tests/unistr/test-u16-stpncpy.c: New file.
13926
13927         Tests for module 'unistr/u8-stpncpy'.
13928         * modules/unistr/u8-stpncpy-tests: New file.
13929         * tests/unistr/test-u8-stpncpy.c: New file.
13930         * tests/unistr/test-stpncpy.h: New file.
13931
13932         Tests for module 'unistr/u32-strncpy'.
13933         * modules/unistr/u32-strncpy-tests: New file.
13934         * tests/unistr/test-u32-strncpy.c: New file.
13935
13936         Tests for module 'unistr/u16-strncpy'.
13937         * modules/unistr/u16-strncpy-tests: New file.
13938         * tests/unistr/test-u16-strncpy.c: New file.
13939
13940         Tests for module 'unistr/u8-strncpy'.
13941         * modules/unistr/u8-strncpy-tests: New file.
13942         * tests/unistr/test-u8-strncpy.c: New file.
13943         * tests/unistr/test-strncpy.h: New file.
13944
13945         Tests for module 'unistr/u32-stpcpy'.
13946         * modules/unistr/u32-stpcpy-tests: New file.
13947         * tests/unistr/test-u32-stpcpy.c: New file.
13948
13949         Tests for module 'unistr/u16-stpcpy'.
13950         * modules/unistr/u16-stpcpy-tests: New file.
13951         * tests/unistr/test-u16-stpcpy.c: New file.
13952
13953         Tests for module 'unistr/u8-stpcpy'.
13954         * modules/unistr/u8-stpcpy-tests: New file.
13955         * tests/unistr/test-u8-stpcpy.c: New file.
13956         * tests/unistr/test-stpcpy.h: New file.
13957
13958         Tests for module 'unistr/u32-strcpy'.
13959         * modules/unistr/u32-strcpy-tests: New file.
13960         * tests/unistr/test-u32-strcpy.c: New file.
13961
13962         Tests for module 'unistr/u16-strcpy'.
13963         * modules/unistr/u16-strcpy-tests: New file.
13964         * tests/unistr/test-u16-strcpy.c: New file.
13965
13966         Tests for module 'unistr/u8-strcpy'.
13967         * modules/unistr/u8-strcpy-tests: New file.
13968         * tests/unistr/test-u8-strcpy.c: New file.
13969         * tests/unistr/test-strcpy.h: New file.
13970
13971         Tests for module 'unistr/u32-strnlen'.
13972         * modules/unistr/u32-strnlen-tests: New file.
13973         * tests/unistr/test-u32-strnlen.c: New file.
13974
13975         Tests for module 'unistr/u16-strnlen'.
13976         * modules/unistr/u16-strnlen-tests: New file.
13977         * tests/unistr/test-u16-strnlen.c: New file.
13978
13979         Tests for module 'unistr/u8-strnlen'.
13980         * modules/unistr/u8-strnlen-tests: New file.
13981         * tests/unistr/test-u8-strnlen.c: New file.
13982         * tests/unistr/test-strnlen.h: New file.
13983
13984         Tests for module 'unistr/u32-strlen'.
13985         * modules/unistr/u32-strlen-tests: New file.
13986         * tests/unistr/test-u32-strlen.c: New file.
13987
13988         Tests for module 'unistr/u16-strlen'.
13989         * modules/unistr/u16-strlen-tests: New file.
13990         * tests/unistr/test-u16-strlen.c: New file.
13991
13992         Tests for module 'unistr/u8-strlen'.
13993         * modules/unistr/u8-strlen-tests: New file.
13994         * tests/unistr/test-u8-strlen.c: New file.
13995
13996         Tests for module 'unistr/u32-prev'.
13997         * modules/unistr/u32-prev-tests: New file.
13998         * tests/unistr/test-u32-prev.c: New file.
13999
14000         Tests for module 'unistr/u16-prev'.
14001         * modules/unistr/u16-prev-tests: New file.
14002         * tests/unistr/test-u16-prev.c: New file.
14003
14004         Tests for module 'unistr/u8-prev'.
14005         * modules/unistr/u8-prev-tests: New file.
14006         * tests/unistr/test-u8-prev.c: New file.
14007
14008         Tests for module 'unistr/u32-next'.
14009         * modules/unistr/u32-next-tests: New file.
14010         * tests/unistr/test-u32-next.c: New file.
14011
14012         Tests for module 'unistr/u16-next'.
14013         * modules/unistr/u16-next-tests: New file.
14014         * tests/unistr/test-u16-next.c: New file.
14015
14016         Tests for module 'unistr/u8-next'.
14017         * modules/unistr/u8-next-tests: New file.
14018         * tests/unistr/test-u8-next.c: New file.
14019
14020         Tests for module 'unistr/u32-strmbtouc'.
14021         * modules/unistr/u32-strmbtouc-tests: New file.
14022         * tests/unistr/test-u32-strmbtouc.c: New file.
14023
14024         Tests for module 'unistr/u16-strmbtouc'.
14025         * modules/unistr/u16-strmbtouc-tests: New file.
14026         * tests/unistr/test-u16-strmbtouc.c: New file.
14027
14028         Tests for module 'unistr/u8-strmbtouc'.
14029         * modules/unistr/u8-strmbtouc-tests: New file.
14030         * tests/unistr/test-u8-strmbtouc.c: New file.
14031
14032         Tests for module 'unistr/u32-strmblen'.
14033         * modules/unistr/u32-strmblen-tests: New file.
14034         * tests/unistr/test-u32-strmblen.c: New file.
14035
14036         Tests for module 'unistr/u16-strmblen'.
14037         * modules/unistr/u16-strmblen-tests: New file.
14038         * tests/unistr/test-u16-strmblen.c: New file.
14039
14040         Tests for module 'unistr/u8-strmblen'.
14041         * modules/unistr/u8-strmblen-tests: New file.
14042         * tests/unistr/test-u8-strmblen.c: New file.
14043
14044         Tests for module 'unistr/u32-cpy-alloc'.
14045         * modules/unistr/u32-cpy-alloc-tests: New file.
14046         * tests/unistr/test-u32-cpy-alloc.c: New file.
14047
14048         Tests for module 'unistr/u16-cpy-alloc'.
14049         * modules/unistr/u16-cpy-alloc-tests: New file.
14050         * tests/unistr/test-u16-cpy-alloc.c: New file.
14051
14052         Tests for module 'unistr/u8-cpy-alloc'.
14053         * modules/unistr/u8-cpy-alloc-tests: New file.
14054         * tests/unistr/test-u8-cpy-alloc.c: New file.
14055         * tests/unistr/test-cpy-alloc.h: New file.
14056
14057         Tests for module 'unistr/u32-mbsnlen'.
14058         * modules/unistr/u32-mbsnlen-tests: New file.
14059         * tests/unistr/test-u32-mbsnlen.c: New file.
14060
14061         Tests for module 'unistr/u16-mbsnlen'.
14062         * modules/unistr/u16-mbsnlen-tests: New file.
14063         * tests/unistr/test-u16-mbsnlen.c: New file.
14064
14065         Tests for module 'unistr/u8-mbsnlen'.
14066         * modules/unistr/u8-mbsnlen-tests: New file.
14067         * tests/unistr/test-u8-mbsnlen.c: New file.
14068
14069         Tests for module 'unistr/u32-chr'.
14070         * modules/unistr/u32-chr-tests: New file.
14071         * tests/unistr/test-u32-chr.c: New file.
14072
14073         Tests for module 'unistr/u16-chr'.
14074         * modules/unistr/u16-chr-tests: New file.
14075         * tests/unistr/test-u16-chr.c: New file.
14076
14077         Tests for module 'unistr/u8-chr'.
14078         * modules/unistr/u8-chr-tests: New file.
14079         * tests/unistr/test-u8-chr.c: New file.
14080         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
14081
14082         Tests for module 'unistr/u32-cmp2'.
14083         * modules/unistr/u32-cmp2-tests: New file.
14084         * tests/unistr/test-u32-cmp2.c: New file.
14085
14086         Tests for module 'unistr/u16-cmp2'.
14087         * modules/unistr/u16-cmp2-tests: New file.
14088         * tests/unistr/test-u16-cmp2.c: New file.
14089
14090         Tests for module 'unistr/u8-cmp2'.
14091         * modules/unistr/u8-cmp2-tests: New file.
14092         * tests/unistr/test-u8-cmp2.c: New file.
14093         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
14094
14095         Tests for module 'unistr/u32-cmp'.
14096         * modules/unistr/u32-cmp-tests: New file.
14097         * tests/unistr/test-u32-cmp.c: New file.
14098
14099         Tests for module 'unistr/u16-cmp'.
14100         * modules/unistr/u16-cmp-tests: New file.
14101         * tests/unistr/test-u16-cmp.c: New file.
14102
14103         Tests for module 'unistr/u8-cmp'.
14104         * modules/unistr/u8-cmp-tests: New file.
14105         * tests/unistr/test-u8-cmp.c: New file.
14106         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
14107
14108         Tests for module 'unistr/u32-set'.
14109         * modules/unistr/u32-set-tests: New file.
14110         * tests/unistr/test-u32-set.c: New file.
14111
14112         Tests for module 'unistr/u16-set'.
14113         * modules/unistr/u16-set-tests: New file.
14114         * tests/unistr/test-u16-set.c: New file.
14115
14116         Tests for module 'unistr/u8-set'.
14117         * modules/unistr/u8-set-tests: New file.
14118         * tests/unistr/test-u8-set.c: New file.
14119         * tests/unistr/test-set.h: New file.
14120
14121         Tests for module 'unistr/u32-move'.
14122         * modules/unistr/u32-move-tests: New file.
14123         * tests/unistr/test-u32-move.c: New file.
14124
14125         Tests for module 'unistr/u16-move'.
14126         * modules/unistr/u16-move-tests: New file.
14127         * tests/unistr/test-u16-move.c: New file.
14128
14129         Tests for module 'unistr/u8-move'.
14130         * modules/unistr/u8-move-tests: New file.
14131         * tests/unistr/test-u8-move.c: New file.
14132         * tests/unistr/test-move.h: New file.
14133
14134         Tests for module 'unistr/u32-cpy'.
14135         * modules/unistr/u32-cpy-tests: New file.
14136         * tests/unistr/test-u32-cpy.c: New file.
14137
14138         Tests for module 'unistr/u16-cpy'.
14139         * modules/unistr/u16-cpy-tests: New file.
14140         * tests/unistr/test-u16-cpy.c: New file.
14141
14142         Tests for module 'unistr/u8-cpy'.
14143         * modules/unistr/u8-cpy-tests: New file.
14144         * tests/unistr/test-u8-cpy.c: New file.
14145         * tests/unistr/test-cpy.h: New file.
14146
14147 2010-01-09  Bruno Haible  <bruno@clisp.org>
14148
14149         Tests for module 'unistr/u32-uctomb'.
14150         * modules/unistr/u32-uctomb-tests: New file.
14151         * tests/unistr/test-u32-uctomb.c: New file.
14152
14153         Tests for module 'unistr/u16-uctomb'.
14154         * modules/unistr/u16-uctomb-tests: New file.
14155         * tests/unistr/test-u16-uctomb.c: New file.
14156
14157         Tests for module 'unistr/u8-uctomb'.
14158         * modules/unistr/u8-uctomb-tests: New file.
14159         * tests/unistr/test-u8-uctomb.c: New file.
14160
14161         Tests for module 'unistr/u32-mbtoucr'.
14162         * modules/unistr/u32-mbtoucr-tests: New file.
14163         * tests/unistr/test-u32-mbtoucr.c: New file.
14164
14165         Tests for module 'unistr/u16-mbtoucr'.
14166         * modules/unistr/u16-mbtoucr-tests: New file.
14167         * tests/unistr/test-u16-mbtoucr.c: New file.
14168
14169         Tests for module 'unistr/u8-mbtoucr'.
14170         * modules/unistr/u8-mbtoucr-tests: New file.
14171         * tests/unistr/test-u8-mbtoucr.c: New file.
14172
14173         Tests for module 'unistr/u32-mbtouc'.
14174         * modules/unistr/u32-mbtouc-tests: New file.
14175         * tests/unistr/test-u32-mbtouc.c: New file.
14176
14177         Tests for module 'unistr/u16-mbtouc'.
14178         * modules/unistr/u16-mbtouc-tests: New file.
14179         * tests/unistr/test-u16-mbtouc.c: New file.
14180
14181         Tests for module 'unistr/u8-mbtouc'.
14182         * modules/unistr/u8-mbtouc-tests: New file.
14183         * tests/unistr/test-u8-mbtouc.c: New file.
14184
14185         Tests for module 'unistr/u32-mbtouc-unsafe'.
14186         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
14187         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
14188         * tests/unistr/test-u32-mbtouc.h: New file.
14189
14190         Tests for module 'unistr/u16-mbtouc-unsafe'.
14191         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
14192         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
14193         * tests/unistr/test-u16-mbtouc.h: New file.
14194
14195         Tests for module 'unistr/u8-mbtouc-unsafe'.
14196         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
14197         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
14198         * tests/unistr/test-u8-mbtouc.h: New file.
14199
14200         Tests for module 'unistr/u32-mblen'.
14201         * modules/unistr/u32-mblen-tests: New file.
14202         * tests/unistr/test-u32-mblen.c: New file.
14203
14204         Tests for module 'unistr/u16-mblen'.
14205         * modules/unistr/u16-mblen-tests: New file.
14206         * tests/unistr/test-u16-mblen.c: New file.
14207
14208         Tests for module 'unistr/u8-mblen'.
14209         * modules/unistr/u8-mblen-tests: New file.
14210         * tests/unistr/test-u8-mblen.c: New file.
14211
14212         Tests for module 'unistr/u32-to-u16'.
14213         * modules/unistr/u32-to-u16-tests: New file.
14214         * tests/unistr/test-u32-to-u16.c: New file.
14215
14216         Tests for module 'unistr/u32-to-u8'.
14217         * modules/unistr/u32-to-u8-tests: New file.
14218         * tests/unistr/test-u32-to-u8.c: New file.
14219
14220         Tests for module 'unistr/u16-to-u32'.
14221         * modules/unistr/u16-to-u32-tests: New file.
14222         * tests/unistr/test-u16-to-u32.c: New file.
14223
14224         Tests for module 'unistr/u16-to-u8'.
14225         * modules/unistr/u16-to-u8-tests: New file.
14226         * tests/unistr/test-u16-to-u8.c: New file.
14227
14228         Tests for module 'unistr/u8-to-u32'.
14229         * modules/unistr/u8-to-u32-tests: New file.
14230         * tests/unistr/test-u8-to-u32.c: New file.
14231
14232         Tests for module 'unistr/u8-to-u16'.
14233         * modules/unistr/u8-to-u16-tests: New file.
14234         * tests/unistr/test-u8-to-u16.c: New file.
14235
14236         Tests for module 'unistr/u32-check'.
14237         * modules/unistr/u32-check-tests: New file.
14238         * tests/unistr/test-u32-check.c: New file.
14239
14240         Tests for module 'unistr/u16-check'.
14241         * modules/unistr/u16-check-tests: New file.
14242         * tests/unistr/test-u16-check.c: New file.
14243
14244         Tests for module 'unistr/u8-check'.
14245         * modules/unistr/u8-check-tests: New file.
14246         * tests/unistr/test-u8-check.c: New file.
14247
14248         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
14249         (category_equals): New function.
14250         (main): Add more tests.
14251         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
14252
14253         * tests/unictype/test-bidi_byname.c (main): Add more tests.
14254
14255 2010-01-10  Bruno Haible  <bruno@clisp.org>
14256
14257         unistr/u*-strcoll: Try harder to distinguish different strings.
14258         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
14259         compare s1 and s2 to see if they are different.
14260
14261 2010-01-10  Bruno Haible  <bruno@clisp.org>
14262
14263         unistr/u*-stpncpy: Fix the return value.
14264         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
14265         description of the return value consistent with stpncpy in glibc.
14266         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
14267         written non-NUL unit.
14268
14269 2010-01-10  Bruno Haible  <bruno@clisp.org>
14270
14271         unistr/u*-next: Add missing dependencies.
14272         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
14273         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14274         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
14275
14276 2010-01-10  Bruno Haible  <bruno@clisp.org>
14277
14278         unistr/u8-mbsnlen: Fix return value for incomplete character.
14279         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
14280         u8_mblen.
14281         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
14282         Remove unistr/u8-mblen.
14283         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
14284         u16_mblen.
14285         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
14286         Remove unistr/u16-mblen.
14287
14288 2010-01-10  Bruno Haible  <bruno@clisp.org>
14289
14290         wchar: Fix compilation error when <wchar.h> is used from coreutils.
14291         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
14292         Reported by Brian Gough <bjg@gnu.org> and
14293         Chris Clayton <chris2553@googlemail.com> via
14294         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
14295
14296 2010-01-09  Bruno Haible  <bruno@clisp.org>
14297
14298         unistr/u16-to-u32: Reject invalid input.
14299         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
14300         u16_mbtouc.
14301         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
14302         Remove unistr/u16-mbtouc.
14303
14304         unistr/u16-to-u8: Reject invalid input.
14305         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
14306         u16_mbtouc.
14307         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
14308         Remove unistr/u16-mbtouc.
14309
14310         unistr/u8-to-u32: Reject invalid input.
14311         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
14312         u8_mbtouc.
14313         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
14314         Remove unistr/u8-mbtouc.
14315
14316         unistr/u8-to-u16: Reject invalid input.
14317         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
14318         u8_mbtouc.
14319         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
14320         Remove unistr/u8-mbtouc.
14321
14322 2010-01-09  Bruno Haible  <bruno@clisp.org>
14323
14324         Tests for module 'getlogin'.
14325         * modules/getlogin-tests: New file.
14326         * tests/test-getlogin.c: New file.
14327
14328         New module 'getlogin'.
14329         * lib/unistd.in.h (getlogin): New declaration.
14330         * lib/getlogin.c: New file.
14331         * m4/getlogin.m4: New file.
14332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
14333         HAVE_GETLOGIN.
14334         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
14335         HAVE_GETLOGIN.
14336         * modules/getlogin: New file.
14337         * doc/posix-functions/getlogin.texi: Mention the new module.
14338         Reported by John W. Eaton <jwe@gnu.org>.
14339
14340 2010-01-09  Bruno Haible  <bruno@clisp.org>
14341
14342         getlogin_r: Support for native Windows.
14343         * lib/getlogin_r.c: Include <windows.h>
14344         (getlogin_r): Implement for native Windows.
14345         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
14346         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
14347         via John W. Eaton <jwe@gnu.org>.
14348
14349 2010-01-09  Bruno Haible  <bruno@clisp.org>
14350
14351         getlogin_r: Small fixes.
14352         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
14353         succeeds.
14354         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
14355         before testing whether getlogin_r is declared. No need to set
14356         HAVE_DECL_GETLOGIN_R to 1.
14357         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
14358
14359 2010-01-09  Bruno Haible  <bruno@clisp.org>
14360
14361         * lib/unistd.in.h (getlogin_r): Add comment.
14362
14363 2010-01-09  Bruno Haible  <bruno@clisp.org>
14364
14365         Tests for module 'getlogin_r'.
14366         * modules/getlogin_r-tests: New file.
14367         * tests/test-getlogin_r.c: New file.
14368
14369 2010-01-09  Jim Meyering  <meyering@redhat.com>
14370
14371         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
14372         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
14373         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
14374
14375 2010-01-08  Simon Josefsson  <simon@josefsson.org>
14376
14377         * lib/dup2.c (rpl_dup2): Improve comment.
14378
14379 2010-01-08  Eric Blake  <ebb9@byu.net>
14380
14381         maint.mk: allow packages to add makefile @@ exceptions
14382         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
14383         (sc_makefile_check): Rename...
14384         (sc_makefile_at_at_check): ...to this, and use hook.
14385
14386         dup2: work around mingw bug
14387         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
14388         Reported by Simon Josefsson.
14389
14390 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
14391
14392         glob: Fix C++ compilation.
14393         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
14394         C++.
14395
14396 2010-01-07  Bruno Haible  <bruno@clisp.org>
14397
14398         Fix indentation of wctype.in.h, broken since 2007-01-06.
14399         * lib/wctype.in.h: Fix indentation of preprocessor directives.
14400
14401 2010-01-07  Bruno Haible  <bruno@clisp.org>
14402
14403         mbslen: Avoid collision with system function.
14404         * lib/string.in.h [MirBSD]: Include <wchar.h>.
14405         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
14406         * m4/mbslen.m4: New file.
14407         * modules/mbslen (Files): Add it.
14408         (configure.ac): Invoke gl_MBSLEN.
14409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
14410         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
14411         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
14412         via Ian Beckwith <ianb@erislabs.net>.
14413
14414 2010-01-07  Bruno Haible  <bruno@clisp.org>
14415
14416         dirent: Document the last fix.
14417         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
14418
14419 2010-01-07  Bruno Haible  <bruno@clisp.org>
14420
14421         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
14422         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
14423         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
14424         va_list are defined.
14425         * doc/posix-headers/stdio.texi: Document the bug of missing types.
14426         Reported by Eric Blake.
14427
14428 2010-01-07  Bruno Haible  <bruno@clisp.org>
14429
14430         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
14431         * modules/xlist (Depends-on): Add 'list',
14432         * modules/xoset (Depends-on): Add 'oset'.
14433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14434
14435 2010-01-07  Bruno Haible  <bruno@clisp.org>
14436
14437         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
14438         * doc/posix-functions/strncasecmp.texi: Likewise.
14439
14440 2010-01-07  Bruno Haible  <bruno@clisp.org>
14441
14442         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
14443
14444 2010-01-07  John W. Eaton  <jwe@octave.org>
14445
14446         wctype: allow C++ use
14447         * lib/wctype.in.h: Add extern "C" block for C++.
14448
14449 2010-01-06  Eric Blake  <ebb9@byu.net>
14450
14451         maint.mk: detect incorrect GFDL usage
14452         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
14453
14454 2010-01-06  Jim Meyering  <meyering@redhat.com>
14455         and Eric Blake  <ebb9@byu.net>
14456
14457         maint.mk: ignore multi-line copyright in NEWS
14458         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
14459
14460 2010-01-06  Eric Blake  <ebb9@byu.net>
14461
14462         select: add missing dependency
14463         * modules/select-tests (Depends-on): Move sockets dependency...
14464         * modules/select (Depends-on): ...here.
14465         Reported by Ian Beckwith.
14466
14467         doc: regenerate INSTALL
14468         * doc/INSTALL: Reflect recent autoconf update.
14469         * doc/INSTALL.ISO: Likewise.
14470         * doc/INSTALL.UTF-8: Likewise.
14471
14472         pread: fix compilation on glibc
14473         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
14474         Reported by Ralf Wildenhues.
14475
14476         dirent: fix test failure
14477         * lib/dirent.in.h (includes): Guarantee ino_t.
14478         Reported by Ralf Wildenhues.
14479
14480 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
14481
14482         linkat, renameat: avoid bad free
14483         * lib/at-func2.c (at_func2): Fix typo.
14484         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
14485
14486 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14487
14488         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
14489         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
14490         to avoid failure of symlink test later.
14491
14492 2010-01-06  Eric Blake  <ebb9@byu.net>
14493
14494         stdio, unistd: guarantee ssize_t
14495         * lib/unistd.in.h (includes): Ensure that types required by POSIX
14496         2008 are exposed when needed.
14497         * lib/stdio.in.h (includes): Likewise.
14498         Reported by Ralf Wildenhues.
14499
14500 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
14501
14502         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
14503         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
14504         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
14505
14506 2010-01-06  Jim Meyering  <meyering@redhat.com>
14507
14508         readtokens: this module *does* require xalloc.h
14509         It uses only functions that were omitted by the old syntax-check rule.
14510         * lib/readtokens.c: Include "xalloc.h" once again.
14511         * modules/readtokens (Depends-on): Add xalloc.
14512         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
14513
14514 2010-01-05  Eric Blake  <ebb9@byu.net>
14515
14516         maint: support 'make announcement' from a VPATH build
14517         * top/maint.mk (announcement): Look for correct NEWS file.
14518
14519 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
14520
14521         utimens (fdutimens): ignore a negative FD, per contract
14522         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
14523         when we have a valid file descriptor.  Otherwise, using a brand
14524         new glibc (with just-patched futimens that now fails with EBADF)
14525         would cause this function to fail with ENOSYS.
14526         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
14527         See also http://bugzilla.redhat.com/552320.
14528
14529 2010-01-05  Eric Blake  <ebb9@byu.net>
14530
14531         strcase: document what it provides
14532         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
14533         gnulib module.
14534         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
14535         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
14536
14537 2010-01-05  Jim Meyering  <meyering@redhat.com>
14538
14539         maint: remove useless inclusions of "xalloc.h"
14540         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
14541         * lib/readtokens.c: Likewise.
14542         * lib/same.c: Likewise.
14543         * modules/getloadavg (Depends-on): Remove xalloc.
14544         * modules/readtokens: Likewise.
14545         * modules/same: Likewise.
14546
14547         maint.mk: include 4 more function names in alloca.h-checking regexp
14548         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
14549         regexp.  Before, we would give a false-positive (saying alloca.h
14550         is included unnecessarily) when the only uses involved omitted symbols.
14551
14552         xalloc.h: use consistent formatting
14553         * lib/xalloc.h: Move declarations to start in the first column.
14554
14555 2010-01-05  Eric Blake  <ebb9@byu.net>
14556
14557         mkdir: avoid xalloc
14558         * lib/mkdir.c (includes): Drop unused header.
14559         Reported by John W. Eaton.
14560
14561 2010-01-04  Jim Meyering  <meyering@redhat.com>
14562
14563         nl_langinfo: avoid configure-time syntax error
14564         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
14565         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
14566         the empty string.  Don't let that provoke a shell syntax error.
14567
14568         regcomp, regexec, fnmatch: avoid array bounds read error
14569         * lib/regcomp.c (build_equiv_class): From glibc:
14570         Use only the low 24 bits of a findidx return value as an index
14571         into the weights array.  Patch by Ulrich Drepper:
14572         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14573         * lib/regexec.c (check_node_accept_bytes): Likewise.
14574         * lib/fnmatch_loop.c (FCT): Likewise.
14575
14576         regcomp: skip collseq lookup when there are no rules
14577         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14578         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14579
14580         regcomp: recognize ill-formed { } expressions
14581         * lib/regcomp.c (parse_dup_op): From glibc:
14582         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14583
14584         regcomp: fix typo in comment
14585         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14586         s/satisfy/satisfies/.
14587
14588         regcomp: sync from glibc: remove dead store
14589         * lib/regcomp.c (duplicate_node_closure): Remove useless
14590         search_duplicated_node call and dead store.
14591
14592         regcomp: sync from glibc; always use nl_langinfo
14593         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14594         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14595         * modules/regex (Depends-on): Add nl_langinfo.
14596
14597 2010-01-04  Eric Blake  <ebb9@byu.net>
14598
14599         fdopendir: fix configure test
14600         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14601
14602 2010-01-01  Bruno Haible  <bruno@clisp.org>
14603
14604         wchar: Remove unused configure check.
14605         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
14606
14607 2010-01-01  Eric Blake  <ebb9@byu.net>
14608
14609         headers: make check of system header explicit
14610         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
14611         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
14612         ourselves.
14613         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14614         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14615         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14616         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
14617         internals.
14618         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
14619         missing.
14620         Suggested by Bruno Haible.
14621
14622 2010-01-01  Jim Meyering  <meyering@redhat.com>
14623
14624         ChangeLog: tweak to eliminate unnecessary copyright line
14625         * ChangeLog: Remove a copyright line that was mistakenly updated
14626         by today's update-copyright run.  Reported by Eric Blake.
14627
14628         test-update-copyright: don't let envvar setting cause test failure
14629         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14630
14631 2010-01-01  Bruno Haible  <bruno@clisp.org>
14632
14633         localename: Avoid gcc warning.
14634         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
14635         function if it is not used.
14636
14637 2010-01-01  Jim Meyering  <meyering@redhat.com>
14638
14639         update nearly all FSF copyright year lists to include 2010
14640         Use the same procedure as for 2009, outlined in
14641         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
14642
14643         version-etc: set COPYRIGHT_YEAR to 2010
14644         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
14645
14646 2009-12-31  Eric Blake  <ebb9@byu.net>
14647
14648         doc: correct availability of cygwin 1.5.x getopt
14649         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
14650         variables.
14651         * doc/posix-functions/opterr.texi (opterr): Likewise.
14652         * doc/posix-functions/optind.texi (optind): Likewise.
14653         * doc/posix-functions/optopt.texi (optopt): Likewise.
14654         * doc/posix-functions/tzname.texi (tzname): Likewise.
14655
14656         openat: update maintainer
14657         * modules/openat (Maintainer): Add myself.
14658
14659         utimens: avoid shadowing warning
14660         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
14661         buffers into one, to avoid shadowing, as well as avoiding a
14662         redundant stat.
14663         Reported by Jim Meyering.
14664
14665         test-dup2: avoid compiler warning
14666         * tests/test-dup2.c (is_inheritable): Only define if used.
14667
14668 2010-01-01  Bruno Haible  <bruno@clisp.org>
14669
14670         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
14671         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
14672         defined, use wctomb instead of wcrtomb.
14673
14674 2010-01-01  Bruno Haible  <bruno@clisp.org>
14675
14676         iconv: Reject native Solaris iconv.
14677         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
14678         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
14679
14680 2009-12-31  Bruno Haible  <bruno@clisp.org>
14681
14682         * tests/test-signal.c (main): Remove test of 'SIG'.
14683
14684 2009-12-31  Bruno Haible  <bruno@clisp.org>
14685
14686         spawn: Fix incomplete fix.
14687         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14688         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14689         warnings for GNULIB_POSIXCHECK again.
14690         Reported by Eric Blake.
14691
14692 2009-12-31  Bruno Haible  <bruno@clisp.org>
14693
14694         Avoid namespace pollution on glibc systems.
14695         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
14696         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
14697         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
14698         glibc systems.
14699
14700 2009-12-31  Bruno Haible  <bruno@clisp.org>
14701
14702         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
14703         (gl_REPLACE_WCHAR_H): Turn into a no-op.
14704         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
14705         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14706         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14707         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14708         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14709
14710 2009-12-31  Bruno Haible  <bruno@clisp.org>
14711
14712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14713         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
14714         afterwards.
14715
14716 2009-12-31  Bruno Haible  <bruno@clisp.org>
14717
14718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
14719         SYS_UTSNAME_H.
14720
14721 2009-12-31  Bruno Haible  <bruno@clisp.org>
14722
14723         spawn: Fix misapplied patch.
14724         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14725         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14726         warnings for GNULIB_POSIXCHECK.
14727
14728 2009-12-31  Bruno Haible  <bruno@clisp.org>
14729
14730         times: Update after sys_times changed.
14731         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14732         * modules/times (Files): Add it.
14733         (configure.ac): Invoke gl_FUNC_TIMES.
14734
14735 2009-12-31  Bruno Haible  <bruno@clisp.org>
14736
14737         Use AC_C_INLINE where necessary.
14738         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14739         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14741         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14742         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14743         * m4/mbiter.m4 (gl_MBITER): Likewise.
14744         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14745         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14746         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14747         * modules/u64 (configure.ac): Likewise.
14748
14749 2009-12-31  Bruno Haible  <bruno@clisp.org>
14750
14751         Use AC_C_INLINE instead of module 'inline' where possible.
14752         * modules/inline (Description): Clarify purpose.
14753         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14754         * modules/count-one-bits (Depends-on): Remove inline.
14755         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14756         * modules/openat (Depends-on): Remove inline.
14757         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14758         instead of depending on module 'inline'.
14759         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14760         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14761         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14762         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14763         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14764         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14765         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14766         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14767         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14768         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14769         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14770         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14771         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14772         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14773         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14774         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14775         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14776         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14777         Likewise.
14778         * modules/unictype/property-ascii-hex-digit (Depends-on,
14779         configure.ac): Likewise.
14780         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14781         configure.ac): Likewise.
14782         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14783         configure.ac): Likewise.
14784         * modules/unictype/property-bidi-block-separator (Depends-on,
14785         configure.ac): Likewise.
14786         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14787         configure.ac): Likewise.
14788         * modules/unictype/property-bidi-common-separator (Depends-on,
14789         configure.ac): Likewise.
14790         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14791         Likewise.
14792         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14793         configure.ac): Likewise.
14794         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14795         configure.ac): Likewise.
14796         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14797         configure.ac): Likewise.
14798         * modules/unictype/property-bidi-european-digit (Depends-on,
14799         configure.ac): Likewise.
14800         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14801         configure.ac): Likewise.
14802         * modules/unictype/property-bidi-left-to-right (Depends-on,
14803         configure.ac): Likewise.
14804         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14805         configure.ac): Likewise.
14806         * modules/unictype/property-bidi-other-neutral (Depends-on,
14807         configure.ac): Likewise.
14808         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14809         Likewise.
14810         * modules/unictype/property-bidi-segment-separator (Depends-on,
14811         configure.ac): Likewise.
14812         * modules/unictype/property-bidi-whitespace (Depends-on,
14813         configure.ac): Likewise.
14814         * modules/unictype/property-combining (Depends-on, configure.ac):
14815         Likewise.
14816         * modules/unictype/property-composite (Depends-on, configure.ac):
14817         Likewise.
14818         * modules/unictype/property-currency-symbol (Depends-on,
14819         configure.ac): Likewise.
14820         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14821         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14822         Likewise.
14823         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14824         configure.ac): Likewise.
14825         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14826         Likewise.
14827         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14828         Likewise.
14829         * modules/unictype/property-extender (Depends-on, configure.ac):
14830         Likewise.
14831         * modules/unictype/property-format-control (Depends-on, configure.ac):
14832         Likewise.
14833         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14834         Likewise.
14835         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14836         Likewise.
14837         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14838         Likewise.
14839         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14840         Likewise.
14841         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14842         Likewise.
14843         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14844         Likewise.
14845         * modules/unictype/property-id-start (Depends-on, configure.ac):
14846         Likewise.
14847         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14848         Likewise.
14849         * modules/unictype/property-ids-binary-operator (Depends-on,
14850         configure.ac): Likewise.
14851         * modules/unictype/property-ids-trinary-operator (Depends-on,
14852         configure.ac): Likewise.
14853         * modules/unictype/property-ignorable-control (Depends-on,
14854         configure.ac): Likewise.
14855         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14856         Likewise.
14857         * modules/unictype/property-join-control (Depends-on, configure.ac):
14858         Likewise.
14859         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14860         Likewise.
14861         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14862         Likewise.
14863         * modules/unictype/property-logical-order-exception (Depends-on,
14864         configure.ac): Likewise.
14865         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14866         Likewise.
14867         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14868         * modules/unictype/property-non-break (Depends-on, configure.ac):
14869         Likewise.
14870         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14871         Likewise.
14872         * modules/unictype/property-numeric (Depends-on, configure.ac):
14873         Likewise.
14874         * modules/unictype/property-other-alphabetic (Depends-on,
14875         configure.ac): Likewise.
14876         * modules/unictype/property-other-default-ignorable-code-point
14877         (Depends-on, configure.ac): Likewise.
14878         * modules/unictype/property-other-grapheme-extend (Depends-on,
14879         configure.ac): Likewise.
14880         * modules/unictype/property-other-id-continue (Depends-on,
14881         configure.ac): Likewise.
14882         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14883         Likewise.
14884         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14885         Likewise.
14886         * modules/unictype/property-other-math (Depends-on, configure.ac):
14887         Likewise.
14888         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14889         Likewise.
14890         * modules/unictype/property-paired-punctuation (Depends-on,
14891         configure.ac): Likewise.
14892         * modules/unictype/property-paragraph-separator (Depends-on,
14893         configure.ac): Likewise.
14894         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14895         Likewise.
14896         * modules/unictype/property-pattern-white-space (Depends-on,
14897         configure.ac): Likewise.
14898         * modules/unictype/property-private-use (Depends-on, configure.ac):
14899         Likewise.
14900         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14901         Likewise.
14902         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14903         Likewise.
14904         * modules/unictype/property-radical (Depends-on, configure.ac):
14905         Likewise.
14906         * modules/unictype/property-sentence-terminal (Depends-on,
14907         configure.ac): Likewise.
14908         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14909         Likewise.
14910         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14911         * modules/unictype/property-terminal-punctuation (Depends-on,
14912         configure.ac): Likewise.
14913         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14914         Likewise.
14915         * modules/unictype/property-unassigned-code-value (Depends-on,
14916         configure.ac): Likewise.
14917         * modules/unictype/property-unified-ideograph (Depends-on,
14918         configure.ac): Likewise.
14919         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14920         Likewise.
14921         * modules/unictype/property-variation-selector (Depends-on,
14922         configure.ac): Likewise.
14923         * modules/unictype/property-white-space (Depends-on, configure.ac):
14924         Likewise.
14925         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14926         Likewise.
14927         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14928         Likewise.
14929         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14930         Likewise.
14931         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14932         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14933         Likewise.
14934
14935 2009-12-31  Bruno Haible  <bruno@clisp.org>
14936
14937         Remove unnecessary AC_C_INLINE invocation.
14938         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14939         since 2009-08-21.
14940
14941 2009-12-31  Jim Meyering  <meyering@redhat.com>
14942
14943         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14944         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14945         With this change, we can all remove the gpg_key_ID = ... definition
14946         from our respective cfg.mk files.
14947
14948         maint.mk: create announcement template in ~/, not in /tmp
14949         * top/maint.mk (emit_upload_commands): Adjust.
14950         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14951         Remove temporary file, .ci-msg.
14952
14953 2009-12-31  Eric Blake  <ebb9@byu.net>
14954
14955         link-warning: always build headers with link warnings
14956         * modules/arpa_inet (Makefile.am): Always build replacement
14957         header.
14958         * modules/ctype (Makefile.am): Likewise.
14959         * modules/dirent (Makefile.am): Likewise.
14960         * modules/inttypes (Makefile.am): Likewise.
14961         * modules/langinfo (Makefile.am): Likewise.
14962         * modules/locale (Makefile.am): Likewise.
14963         * modules/spawn (Makefile.am): Likewise.
14964         * modules/sys_file (Makefile.am): Likewise.
14965         * modules/sys_ioctl (Makefile.am): Likewise.
14966         * modules/sys_select (Makefile.am): Likewise.
14967         * modules/sys_socket (Makefile.am): Likewise.
14968         * modules/sys_times (Makefile.am): Likewise.
14969         * modules/sys_utsname (Makefile.am): Likewise.
14970         * modules/sys_wait (Makefile.am): Likewise.
14971         * modules/wchar (Makefile.am): Likewise.
14972         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14973         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14974         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14975         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14976         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14977         Likewise.
14978         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14979         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14980         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14981         Likewise.
14982         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14983         Likewise.
14984         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14985         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14986         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14988         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14989         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14990         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14991         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14992         (gl_WCHAR_H_DEFAULTS): Likewise.
14993
14994 2009-12-31  Eric Blake  <ebb9@byu.net>
14995
14996         signal, spawn: use link warnings
14997         * lib/signal.in.h (sigset_t): Make unconditional.
14998         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14999         (sigpending, sigprocmask, sigaction): Add link warnings.
15000         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
15001         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
15002         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
15003         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
15004         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
15005         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
15006         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
15007         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
15008         (posix_spawn_file_actions_destroy)
15009         (posix_spawn_file_actions_addopen)
15010         (posix_spawn_file_actions_addclose)
15011         (posix_spawn_file_actions_adddup2): Likewise.
15012         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
15013         * tests/test-signal.c (main): Enhance test.
15014
15015         spawn: improve wrapper support
15016         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
15017         (gl_SPAWN_H_DEFAULTS): New defaults.
15018         * modules/spawn (Makefile.am): Substitute them.
15019         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
15020         Only declare if missing or broken.
15021
15022         sys_times, sys_utsname: use include_next
15023         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
15024         header.
15025         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
15026         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15027         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15028         * modules/sys_times (Depends-on): Add include_next.
15029         (Makefile.am): Substitute additional values.
15030         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15031         * lib/sys_times.in.h (includes): Include native header, if
15032         available.
15033         * lib/sys_utsname.in.h (includes): Likewise.
15034         * tests/test-sys_times.c (main): Enhance test.
15035
15036         fdutimensat: revert prior patch
15037         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
15038         utimens.h.
15039         Reported by Bruno Haible.
15040
15041 2009-12-30  Eric Blake  <ebb9@byu.net>
15042
15043         sys_wait: drop link-warning dependency
15044         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
15045         link-warning efforts.
15046         * lib/sys_wait.in.h: Likewise.
15047
15048         fdutimensat: remove bogus dependency
15049         * modules/fdutimensat (Depends-on): Drop inline.
15050
15051         unistd: fix typo
15052         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
15053
15054 2009-12-30  Bruno Haible  <bruno@clisp.org>
15055
15056         Fix compilation error with Solaris cc.
15057         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
15058         * lib/unicase/u16-is-invariant.c: Likewise.
15059         * lib/unicase/u32-is-invariant.c: Likewise.
15060         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15061
15062 2009-12-30  Bruno Haible  <bruno@clisp.org>
15063
15064         Fix test crash.
15065         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
15066         locales.
15067         Reported by Simon Josefsson <simon@josefsson.org>.
15068
15069 2009-12-30  Bruno Haible  <bruno@clisp.org>
15070
15071         Fix compilation error on most platforms.
15072         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
15073         Reported by Simon Josefsson <simon@josefsson.org>
15074         and Nelson H. F. Beebe <beebe@math.utah.edu>.
15075
15076 2009-12-30  Eric Blake  <ebb9@byu.net>
15077
15078         futimens, utimensat: work around ntfs-3g bug
15079         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
15080         a ctime bug is present, and expand workaround to cover ntfs-3g.
15081         * lib/utimens.c (fdutimens, lutimens): Likewise.
15082         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
15083         (validate_timespec): Adjust return value.
15084         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
15085         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15086         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
15087
15088 2009-12-29  Eric Blake  <ebb9@byu.net>
15089
15090         link-warning: make usage consistent
15091         * modules/ctype (Depends-on): Add link-warning.
15092         (Makefile.am): Update rules accordingly.
15093         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15094         * modules/locale (Depends-on, Makefile.am): Likewise.
15095         * modules/sys_file (Makefile.am): Likewise.
15096         * modules/getopt-posix (Makefile.am): Delete unused link warning
15097         efforts.
15098         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
15099         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
15100         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
15101         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
15102
15103         stdio: remove unused variables
15104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
15105         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
15106         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15107
15108         tests: test more substitute headers
15109         * modules/ctype-tests: New file.
15110         * modules/dirent-tests: Likewise.
15111         * modules/spawn-tests: Likewise.
15112         * modules/sys_file-tests: Likewise.
15113         * modules/sys_ioctl-tests: Likewise.
15114         * modules/sys_wait-tests: Likewise.
15115         * tests/test-ctype.c: Likewise.
15116         * tests/test-dirent.c: Likewise.
15117         * tests/test-spawn.c: Likewise.
15118         * tests/test-sys_file.c: Likewise.
15119         * tests/test-sys_ioctl.c: Likewise.
15120         * tests/test-sys_wait.c: Likewise.
15121         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
15122         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
15123         whether or not flock is in use.
15124
15125         tests: remove License section from module
15126         * modules/arpa_inet-tests: Remove unneeded section.
15127         * modules/byteswap-tests: Likewise.
15128         * modules/ceilf-tests: Likewise.
15129         * modules/ceill-tests: Likewise.
15130         * modules/crypto/des-tests: Likewise.
15131         * modules/crypto/gc-arcfour-tests: Likewise.
15132         * modules/crypto/gc-arctwo-tests: Likewise.
15133         * modules/crypto/gc-des-tests: Likewise.
15134         * modules/crypto/gc-hmac-md5-tests: Likewise.
15135         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15136         * modules/crypto/gc-md2-tests: Likewise.
15137         * modules/crypto/gc-md4-tests: Likewise.
15138         * modules/crypto/gc-md5-tests: Likewise.
15139         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15140         * modules/crypto/gc-rijndael-tests: Likewise.
15141         * modules/crypto/gc-sha1-tests: Likewise.
15142         * modules/crypto/gc-tests: Likewise.
15143         * modules/crypto/md2-tests: Likewise.
15144         * modules/crypto/md4-tests: Likewise.
15145         * modules/fcntl-h-tests: Likewise.
15146         * modules/floorf-tests: Likewise.
15147         * modules/floorl-tests: Likewise.
15148         * modules/frexp-nolibm-tests: Likewise.
15149         * modules/frexp-tests: Likewise.
15150         * modules/frexpl-nolibm-tests: Likewise.
15151         * modules/frexpl-tests: Likewise.
15152         * modules/getaddrinfo-tests: Likewise.
15153         * modules/inttypes-tests: Likewise.
15154         * modules/isfinite-tests: Likewise.
15155         * modules/isinf-tests: Likewise.
15156         * modules/ldexpl-tests: Likewise.
15157         * modules/locale-tests: Likewise.
15158         * modules/math-tests: Likewise.
15159         * modules/netdb-tests: Likewise.
15160         * modules/netinet_in-tests: Likewise.
15161         * modules/printf-frexp-tests: Likewise.
15162         * modules/printf-frexpl-tests: Likewise.
15163         * modules/priv-set-tests: Likewise.
15164         * modules/random_r-tests: Likewise.
15165         * modules/round-tests: Likewise.
15166         * modules/roundf-tests: Likewise.
15167         * modules/roundl-tests: Likewise.
15168         * modules/search-tests: Likewise.
15169         * modules/select-tests: Likewise.
15170         * modules/signal-tests: Likewise.
15171         * modules/stdbool-tests: Likewise.
15172         * modules/stddef-tests: Likewise.
15173         * modules/stdint-tests: Likewise.
15174         * modules/stdio-tests: Likewise.
15175         * modules/stdlib-tests: Likewise.
15176         * modules/string-tests: Likewise.
15177         * modules/strings-tests: Likewise.
15178         * modules/sys_select-tests: Likewise.
15179         * modules/sys_socket-tests: Likewise.
15180         * modules/sys_stat-tests: Likewise.
15181         * modules/sys_time-tests: Likewise.
15182         * modules/sys_utsname-tests: Likewise.
15183         * modules/sysexits-tests: Likewise.
15184         * modules/time-tests: Likewise.
15185         * modules/trunc-tests: Likewise.
15186         * modules/truncf-tests: Likewise.
15187         * modules/truncl-tests: Likewise.
15188         * modules/tsearch-tests: Likewise.
15189         * modules/unistd-tests: Likewise.
15190         * modules/wchar-tests: Likewise.
15191         * modules/wctype-tests: Likewise.
15192
15193         tests: fix license on several tests
15194         * tests/test-des.c: Update to GPLv3+.
15195         * tests/test-flock.c: Likewise.
15196         * tests/test-fsync.c: Likewise.
15197         * tests/test-futimens.h: Likewise.
15198         * tests/test-gc-arcfour.c: Likewise.
15199         * tests/test-gc-arctwo.c: Likewise.
15200         * tests/test-gc-des.c: Likewise.
15201         * tests/test-gc-hmac-md5.c: Likewise.
15202         * tests/test-gc-hmac-sha1.c: Likewise.
15203         * tests/test-gc-md2.c: Likewise.
15204         * tests/test-gc-md4.c: Likewise.
15205         * tests/test-gc-md5.c: Likewise.
15206         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15207         * tests/test-gc-rijndael.c: Likewise.
15208         * tests/test-gc-sha1.c: Likewise.
15209         * tests/test-gc.c: Likewise.
15210         * tests/test-getcwd.c: Likewise.
15211         * tests/test-link.c: Likewise.
15212         * tests/test-link.h: Likewise.
15213         * tests/test-lutimens.h: Likewise.
15214         * tests/test-md2.c: Likewise.
15215         * tests/test-md4.c: Likewise.
15216         * tests/test-mkdir.h: Likewise.
15217         * tests/test-rename.c: Likewise.
15218         * tests/test-rename.h: Likewise.
15219         * tests/test-safe-alloc.c: Likewise.
15220         * tests/test-utimens-common.h: Likewise.
15221         * tests/test-utimens.h: Likewise.
15222
15223         maint: sync license texts
15224         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
15225         * doc/gpl-3.0.texi: Revert copyright year update.
15226         * doc/lgpl-3.0.texi: Likewise.
15227
15228 2009-12-29  Jim Meyering  <meyering@redhat.com>
15229
15230         update nearly all FSF copyright year lists to include 2009
15231         The files named by the following are exempted:
15232             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
15233               test -f "$dst" && { echo "$dst"; continue; }
15234               test -d "$dst" || continue
15235               echo "$dst"/$(basename "$src")
15236             done > exempt
15237             git ls-files tests/unictype >> exempt
15238         In the remaining files, convert to all-interval notation if
15239         - there is already at least one year interval like 2000-2003
15240         - the file is maintained by me
15241         - the file is in lib/uni*/, where that style already prevails
15242         Otherwise, use update-copyright's default.
15243
15244 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15245         and Eric Blake  <ebb9@byu.net>
15246
15247         tests: don't require debug system() to pass
15248         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
15249         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15250         * tests/test-unlink.h (test_unlink_func): Likewise.
15251         * tests/test-fstatat.c (main): ...into callers.
15252         * tests/test-lstat.c (main): Likewise.
15253         * tests/test-rmdir.c (main): Likewise.
15254         * tests/test-unlink.c (main): Likewise.
15255         * tests/test-unlinkat.c (main): Likewise.
15256         * tests/test-areadlink-with-size.c (main): Don't require a
15257         debug-only system call to pass, aiding cross-testing to mingw.
15258         * tests/test-areadlink.c (main): Likewise.
15259         * tests/test-areadlinkat-with-size.c (main): Likewise.
15260         * tests/test-areadlinkat.c (main): Likewise.
15261         * tests/test-canonicalize-lgpl.c (main): Likewise.
15262         * tests/test-canonicalize.c (main): Likewise.
15263         * tests/test-chown.c (main): Likewise.
15264         * tests/test-fchownat.c (main): Likewise.
15265         * tests/test-lchown.c (main): Likewise.
15266         * tests/test-fdutimensat.c (main): Likewise.
15267         * tests/test-futimens.c (main): Likewise.
15268         * tests/test-link.c (main): Likewise.
15269         * tests/test-linkat.c (main): Likewise.
15270         * tests/test-mkdir.c (main): Likewise.
15271         * tests/test-mkdirat.c (main): Likewise.
15272         * tests/test-mkfifo.c (main): Likewise.
15273         * tests/test-mkfifoat.c (main): Likewise.
15274         * tests/test-mknod.c (main): Likewise.
15275         * tests/test-readlink.c (main): Likewise.
15276         * tests/test-remove.c (main): Likewise.
15277         * tests/test-rename.c (main): Likewise.
15278         * tests/test-renameat.c (main): Likewise.
15279         * tests/test-symlink.c (main): Likewise.
15280         * tests/test-symlinkat.c (main): Likewise.
15281         * tests/test-utimens.c (main): Likewise.
15282         * tests/test-utimensat.c (main): Likewise.
15283
15284 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15285
15286         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
15287         on $(UNUSED_PARAMETER_H) to avoid build failure.
15288
15289 2009-12-28  Jim Meyering  <meyering@redhat.com>
15290
15291         update-copyright: you may specify a max. line length other than 72
15292         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15293
15294         maint: use consistent FSF copyright line syntax
15295         * lib/posixtm.c: Add missing comma in FSF copyright line.
15296         * lib/posixtm.h: Likewise.
15297         * lib/getugroups.c: Add missing ", Inc.".
15298
15299         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
15300         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
15301         FSF copyright line.  Remove trailing blanks.
15302
15303 2009-12-28  Eric Blake  <ebb9@byu.net>
15304
15305         test-dup2: reduce dependencies
15306         * modules/cloexec (Configure.ac): Set witness.
15307         * modules/dup2-tests (Depends-on): Drop cloexec.
15308         * tests/test-dup2.c (main): Skip portion of test if cloexec module
15309         not present.
15310         Suggested by Bruno Haible.
15311
15312 2009-12-26  Bruno Haible  <bruno@clisp.org>
15313
15314         Remove an unneeded dependency.
15315         * modules/fseterr (Depends-on): Remove dup2.
15316
15317 2009-12-26  Eric Blake  <ebb9@byu.net>
15318
15319         tests: use macros.h in more places
15320         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
15321         (ASSERT_STREAM): Provide default of stderr.
15322         * tests/test-dirent-safer.c: Include macros.h, using alternate
15323         stream for assertions.
15324         * tests/test-dup-safer.c: Likewise.
15325         * tests/test-freopen-safer.c: Likewise.
15326         * tests/test-getopt.c: Likewise.
15327         * tests/test-openat-safer.c: Likewise.
15328         * tests/test-pipe.c: Likewise.
15329         * tests/test-popen-safer.c: Likewise.
15330         * modules/dirent-safer-tests (Files): Include macros.h.
15331         * modules/unistd-safer-tests (Files): Likewise.
15332         * modules/freopen-safer-tests (Files): Likewise.
15333         * modules/getopt-posix-tests (Files): Likewise.
15334         * modules/openat-safer-tests (Files): Likewise.
15335         * modules/pipe-tests (Files): Likewise.
15336
15337 2009-12-26  Bruno Haible  <bruno@clisp.org>
15338
15339         javacomp: Portability fix.
15340         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
15341         that it also works on Solaris.
15342
15343 2009-12-26  Bruno Haible  <bruno@clisp.org>
15344
15345         localename: Fix storage allocation of gl_locale_name_thread's result.
15346         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
15347         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
15348         all platforms that have 'uselocale'.
15349         (gl_locale_name_thread_unsafe): New function, extracted from
15350         gl_locale_name_thread.
15351         (gl_locale_name_thread): Call struniq on all platforms that have
15352         'uselocale'.
15353         * tests/test-localename.c (test_locale_name_thread): Check that the
15354         resulting strings are permanently allocated.
15355         * modules/localename-tests (Depends-on): Add strdup.
15356
15357 2009-12-26  Bruno Haible  <bruno@clisp.org>
15358
15359         * tests/test-localename.c (categories): Fill in the strings.
15360
15361 2009-12-26  Jim Meyering  <meyering@redhat.com>
15362
15363         isdir: complete the removal of m4/isdir.m4
15364         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
15365
15366         isdir: clean up, since at least grep still uses it
15367         * lib/isdir.c: Include "isdir.h".
15368         (S_ISDIR): Remove now-unneeded definition.
15369         * modules/isdir (Files): Add lib/isdir.h.
15370         * lib/isdir.h: New file, with declaration.
15371         * m4/isdir.m4: Remove file -- unneeded.
15372
15373 2009-12-25  Bruno Haible  <bruno@clisp.org>
15374
15375         selinux-h: Make generated .h files standalone.
15376         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
15377         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
15378         * lib/se-selinux.in.h: Likewise.
15379         * modules/selinux-h (Depends-on): Add unused-parameter.
15380         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
15381         selinux/selinux.h and selinux/context.h.
15382         Suggested by Eric Blake.
15383
15384 2009-12-25  Bruno Haible  <bruno@clisp.org>
15385
15386         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
15387         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
15388         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
15389         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
15390         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
15391
15392 2009-12-24  Bruno Haible  <bruno@clisp.org>
15393
15394         openat: Fix warning.
15395         * lib/openat-proc.c: Include <unistd.h>.
15396
15397 2009-12-24  Bruno Haible  <bruno@clisp.org>
15398
15399         New module 'unused-parameter'.
15400         * build-aux/unused-parameter.h: New file, extracted from earlier
15401         gnulib-common.m4.
15402         * modules/unused-parameter: New file.
15403         * lib/unistr.h: Include unused-parameter.h.
15404         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
15405         _GL_UNUSED.
15406         * modules/unistr/base (Depends-on): Add unused-parameter.
15407
15408 2009-12-24  Bruno Haible  <bruno@clisp.org>
15409
15410         Add missing dependencies to 'extensions' module.
15411         * m4/extensions.m4: Add comment.
15412         * modules/accept4 (Depends-on): Add extensions.
15413         * modules/dup3 (Depends-on): Likewise.
15414         * modules/fcntl (Depends-on): Likewise.
15415         * modules/futimens (Depends-on): Likewise.
15416         * modules/mknod (Depends-on): Likewise.
15417         * modules/pipe2 (Depends-on): Likewise.
15418         * modules/stat-time (Depends-on): Likewise.
15419         * modules/strcasestr-simple (Depends-on): Likewise.
15420         * modules/strsignal (Depends-on): Likewise.
15421         * modules/utimensat (Depends-on): Likewise.
15422         * modules/localcharset (Depends-on): Likewise. Needed because of
15423         gl_FCNTL_O_FLAGS.
15424         * modules/wcrtomb (Depends-on): Likewise. Needed because of
15425         AC_TYPE_MBSTATE_T.
15426         * modules/wcsnrtombs (Depends-on): Likewise.
15427         * modules/wcsrtombs (Depends-on): Likewise.
15428
15429 2009-12-24  Bruno Haible  <bruno@clisp.org>
15430
15431         binary-io: Avoid gcc warning due to SET_BINARY.
15432         * lib/binary-io.h (SET_BINARY): Cast the result to void.
15433         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
15434
15435 2009-12-24  Bruno Haible  <bruno@clisp.org>
15436
15437         Avoid future namespace pollution on glibc systems.
15438         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
15439         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
15440         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
15441         glibc systems.
15442
15443 2009-12-24  Bruno Haible  <bruno@clisp.org>
15444
15445         Refactor common macros used in tests.
15446         * tests/macros.h: New file.
15447         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
15448         and/or <stdlib.h>, if appropriate.
15449         (ASSERT, SIZEOF): Remove macros.
15450         * tests/test-areadlink-with-size.c: Likewise.
15451         * tests/test-areadlinkat.c: Likewise.
15452         * tests/test-areadlinkat-with-size.c: Likewise.
15453         * tests/test-argmatch.c: Likewise.
15454         * tests/test-argv-iter.c: Likewise.
15455         * tests/test-array-mergesort.c: Likewise.
15456         * tests/test-array_list.c: Likewise.
15457         * tests/test-array_oset.c: Likewise.
15458         * tests/test-avltree_list.c: Likewise.
15459         * tests/test-avltree_oset.c: Likewise.
15460         * tests/test-avltreehash_list.c: Likewise.
15461         * tests/test-base64.c: Likewise.
15462         * tests/test-binary-io.c: Likewise.
15463         * tests/test-bitrotate.c: Likewise.
15464         * tests/test-btowc.c: Likewise.
15465         * tests/test-byteswap.c: Likewise.
15466         * tests/test-c-ctype.c: Likewise.
15467         * tests/test-c-stack.c: Likewise.
15468         * tests/test-c-strcasecmp.c: Likewise.
15469         * tests/test-c-strcasestr.c: Likewise.
15470         * tests/test-c-strncasecmp.c: Likewise.
15471         * tests/test-c-strstr.c: Likewise.
15472         * tests/test-canonicalize-lgpl.c: Likewise.
15473         * tests/test-canonicalize.c: Likewise.
15474         * tests/test-carray_list.c: Likewise.
15475         * tests/test-ceilf1.c: Likewise.
15476         * tests/test-ceilf2.c: Likewise.
15477         * tests/test-ceill.c: Likewise.
15478         * tests/test-chown.c: Likewise.
15479         * tests/test-cloexec.c: Likewise.
15480         * tests/test-copy-acl.c: Likewise.
15481         * tests/test-copy-file.c: Likewise.
15482         * tests/test-count-one-bits.c: Likewise.
15483         * tests/test-dprintf-posix.c: Likewise.
15484         * tests/test-dup2.c: Likewise.
15485         * tests/test-dup3.c: Likewise.
15486         * tests/test-duplocale.c: Likewise.
15487         * tests/test-fbufmode.c: Likewise.
15488         * tests/test-fchdir.c: Likewise.
15489         * tests/test-fchownat.c: Likewise.
15490         * tests/test-fcntl-safer.c: Likewise.
15491         * tests/test-fcntl.c: Likewise.
15492         * tests/test-fdopendir.c: Likewise.
15493         * tests/test-fdutimensat.c: Likewise.
15494         * tests/test-fflush2.c: Likewise.
15495         * tests/test-file-has-acl.c: Likewise.
15496         * tests/test-filevercmp.c: Likewise.
15497         * tests/test-flock.c: Likewise.
15498         * tests/test-floorf1.c: Likewise.
15499         * tests/test-floorf2.c: Likewise.
15500         * tests/test-floorl.c: Likewise.
15501         * tests/test-fnmatch.c: Likewise.
15502         * tests/test-fopen.h: Likewise.
15503         * tests/test-fpending.c: Likewise.
15504         * tests/test-fprintf-posix.c: Likewise.
15505         * tests/test-fpurge.c: Likewise.
15506         * tests/test-freadable.c: Likewise.
15507         * tests/test-freadahead.c: Likewise.
15508         * tests/test-freading.c: Likewise.
15509         * tests/test-freadptr.c: Likewise.
15510         * tests/test-freadptr2.c: Likewise.
15511         * tests/test-freadseek.c: Likewise.
15512         * tests/test-freopen.c: Likewise.
15513         * tests/test-frexp.c: Likewise.
15514         * tests/test-frexpl.c: Likewise.
15515         * tests/test-fseek.c: Likewise.
15516         * tests/test-fseeko.c: Likewise.
15517         * tests/test-fstatat.c: Likewise.
15518         * tests/test-fstrcmp.c: Likewise.
15519         * tests/test-fsync.c: Likewise.
15520         * tests/test-ftell.c: Likewise.
15521         * tests/test-ftello.c: Likewise.
15522         * tests/test-func.c: Likewise.
15523         * tests/test-futimens.c: Likewise.
15524         * tests/test-fwritable.c: Likewise.
15525         * tests/test-fwriting.c: Likewise.
15526         * tests/test-getcwd.c: Likewise.
15527         * tests/test-getdate.c: Likewise.
15528         * tests/test-getdelim.c: Likewise.
15529         * tests/test-getdtablesize.c: Likewise.
15530         * tests/test-getgroups.c: Likewise.
15531         * tests/test-getline.c: Likewise.
15532         * tests/test-getndelim2.c: Likewise.
15533         * tests/test-glob.c: Likewise.
15534         * tests/test-hash.c: Likewise.
15535         * tests/test-i-ring.c: Likewise.
15536         * tests/test-iconv-utf.c: Likewise.
15537         * tests/test-iconv.c: Likewise.
15538         * tests/test-idpriv-drop.c: Likewise.
15539         * tests/test-idpriv-droptemp.c: Likewise.
15540         * tests/test-inet_ntop.c: Likewise.
15541         * tests/test-inet_pton.c: Likewise.
15542         * tests/test-isblank.c: Likewise.
15543         * tests/test-isfinite.c: Likewise.
15544         * tests/test-isinf.c: Likewise.
15545         * tests/test-isnan.c: Likewise.
15546         * tests/test-isnand.h: Likewise.
15547         * tests/test-isnanf.h: Likewise.
15548         * tests/test-isnanl.h: Likewise.
15549         * tests/test-lchown.c: Likewise.
15550         * tests/test-ldexpl.c: Likewise.
15551         * tests/test-link.c: Likewise.
15552         * tests/test-linkat.c: Likewise.
15553         * tests/test-linked_list.c: Likewise.
15554         * tests/test-linkedhash_list.c: Likewise.
15555         * tests/test-localename.c: Likewise.
15556         * tests/test-lseek.c: Likewise.
15557         * tests/test-lstat.c: Likewise.
15558         * tests/test-mbmemcasecmp.c: Likewise.
15559         * tests/test-mbmemcasecoll.c: Likewise.
15560         * tests/test-mbrtowc.c: Likewise.
15561         * tests/test-mbscasecmp.c: Likewise.
15562         * tests/test-mbscasestr1.c: Likewise.
15563         * tests/test-mbscasestr2.c: Likewise.
15564         * tests/test-mbscasestr3.c: Likewise.
15565         * tests/test-mbscasestr4.c: Likewise.
15566         * tests/test-mbschr.c: Likewise.
15567         * tests/test-mbscspn.c: Likewise.
15568         * tests/test-mbsinit.c: Likewise.
15569         * tests/test-mbsncasecmp.c: Likewise.
15570         * tests/test-mbsnrtowcs.c: Likewise.
15571         * tests/test-mbspbrk.c: Likewise.
15572         * tests/test-mbspcasecmp.c: Likewise.
15573         * tests/test-mbsrchr.c: Likewise.
15574         * tests/test-mbsrtowcs.c: Likewise.
15575         * tests/test-mbsspn.c: Likewise.
15576         * tests/test-mbsstr1.c: Likewise.
15577         * tests/test-mbsstr2.c: Likewise.
15578         * tests/test-mbsstr3.c: Likewise.
15579         * tests/test-memchr.c: Likewise.
15580         * tests/test-memchr2.c: Likewise.
15581         * tests/test-memcmp.c: Likewise.
15582         * tests/test-memmem.c: Likewise.
15583         * tests/test-memrchr.c: Likewise.
15584         * tests/test-mkdir.c: Likewise.
15585         * tests/test-mkdirat.c: Likewise.
15586         * tests/test-mkfifo.c: Likewise.
15587         * tests/test-mkfifoat.c: Likewise.
15588         * tests/test-mknod.c: Likewise.
15589         * tests/test-nanosleep.c: Likewise.
15590         * tests/test-nl_langinfo.c: Likewise.
15591         * tests/test-obstack-printf.c: Likewise.
15592         * tests/test-open.c: Likewise.
15593         * tests/test-openat.c: Likewise.
15594         * tests/test-pipe-filter-gi1.c: Likewise.
15595         * tests/test-pipe-filter-gi2-main.c: Likewise.
15596         * tests/test-pipe-filter-ii1.c: Likewise.
15597         * tests/test-pipe-filter-ii2-main.c: Likewise.
15598         * tests/test-pipe2.c: Likewise.
15599         * tests/test-popen.h: Likewise.
15600         * tests/test-posixtm.c: Likewise.
15601         * tests/test-pread.c: Likewise.
15602         * tests/test-printf-frexp.c: Likewise.
15603         * tests/test-printf-frexpl.c: Likewise.
15604         * tests/test-printf-posix.c: Likewise.
15605         * tests/test-priv-set.c: Likewise.
15606         * tests/test-quotearg.c: Likewise.
15607         * tests/test-random_r.c: Likewise.
15608         * tests/test-rawmemchr.c: Likewise.
15609         * tests/test-rbtree_list.c: Likewise.
15610         * tests/test-rbtree_oset.c: Likewise.
15611         * tests/test-rbtreehash_list.c: Likewise.
15612         * tests/test-readlink.c: Likewise.
15613         * tests/test-remove.c: Likewise.
15614         * tests/test-rename.c: Likewise.
15615         * tests/test-renameat.c: Likewise.
15616         * tests/test-rmdir.c: Likewise.
15617         * tests/test-round1.c: Likewise.
15618         * tests/test-roundf1.c: Likewise.
15619         * tests/test-roundl.c: Likewise.
15620         * tests/test-safe-alloc.c: Likewise.
15621         * tests/test-sameacls.c: Likewise.
15622         * tests/test-set-mode-acl.c: Likewise.
15623         * tests/test-setenv.c: Likewise.
15624         * tests/test-sigaction.c: Likewise.
15625         * tests/test-signbit.c: Likewise.
15626         * tests/test-sleep.c: Likewise.
15627         * tests/test-snprintf-posix.c: Likewise.
15628         * tests/test-snprintf.c: Likewise.
15629         * tests/test-sprintf-posix.c: Likewise.
15630         * tests/test-stat-time.c: Likewise.
15631         * tests/test-stat.c: Likewise.
15632         * tests/test-strcasestr.c: Likewise.
15633         * tests/test-strchrnul.c: Likewise.
15634         * tests/test-strerror.c: Likewise.
15635         * tests/test-striconv.c: Likewise.
15636         * tests/test-striconveh.c: Likewise.
15637         * tests/test-striconveha.c: Likewise.
15638         * tests/test-strsignal.c: Likewise.
15639         * tests/test-strstr.c: Likewise.
15640         * tests/test-strtod.c: Likewise.
15641         * tests/test-strverscmp.c: Likewise.
15642         * tests/test-symlink.c: Likewise.
15643         * tests/test-symlinkat.c: Likewise.
15644         * tests/test-trunc1.c: Likewise.
15645         * tests/test-trunc2.c: Likewise.
15646         * tests/test-truncf1.c: Likewise.
15647         * tests/test-truncf2.c: Likewise.
15648         * tests/test-truncl.c: Likewise.
15649         * tests/test-uname.c: Likewise.
15650         * tests/test-unlink.c: Likewise.
15651         * tests/test-unlinkat.c: Likewise.
15652         * tests/test-unsetenv.c: Likewise.
15653         * tests/test-usleep.c: Likewise.
15654         * tests/test-utimens.c: Likewise.
15655         * tests/test-utimensat.c: Likewise.
15656         * tests/test-vasnprintf-posix.c: Likewise.
15657         * tests/test-vasnprintf-posix2.c: Likewise.
15658         * tests/test-vasnprintf.c: Likewise.
15659         * tests/test-vasprintf-posix.c: Likewise.
15660         * tests/test-vasprintf.c: Likewise.
15661         * tests/test-vdprintf-posix.c: Likewise.
15662         * tests/test-vfprintf-posix.c: Likewise.
15663         * tests/test-vprintf-posix.c: Likewise.
15664         * tests/test-vsnprintf-posix.c: Likewise.
15665         * tests/test-vsnprintf.c: Likewise.
15666         * tests/test-vsprintf-posix.c: Likewise.
15667         * tests/test-wcrtomb.c: Likewise.
15668         * tests/test-wcsnrtombs.c: Likewise.
15669         * tests/test-wcsrtombs.c: Likewise.
15670         * tests/test-wctype.c: Likewise.
15671         * tests/test-wcwidth.c: Likewise.
15672         * tests/test-xfprintf-posix.c: Likewise.
15673         * tests/test-xmemdup0.c: Likewise.
15674         * tests/test-xprintf-posix.c: Likewise.
15675         * tests/test-xvasprintf.c: Likewise.
15676         * tests/unicase/test-locale-language.c: Likewise.
15677         * tests/unicase/test-mapping-part1.h: Likewise.
15678         * tests/unicase/test-predicate-part1.h: Likewise.
15679         * tests/unicase/test-u8-casecmp.c: Likewise.
15680         * tests/unicase/test-u8-casecoll.c: Likewise.
15681         * tests/unicase/test-u8-casefold.c: Likewise.
15682         * tests/unicase/test-u8-is-cased.c: Likewise.
15683         * tests/unicase/test-u8-is-casefolded.c: Likewise.
15684         * tests/unicase/test-u8-is-lowercase.c: Likewise.
15685         * tests/unicase/test-u8-is-titlecase.c: Likewise.
15686         * tests/unicase/test-u8-is-uppercase.c: Likewise.
15687         * tests/unicase/test-u8-tolower.c: Likewise.
15688         * tests/unicase/test-u8-totitle.c: Likewise.
15689         * tests/unicase/test-u8-toupper.c: Likewise.
15690         * tests/unicase/test-u16-casecmp.c: Likewise.
15691         * tests/unicase/test-u16-casecoll.c: Likewise.
15692         * tests/unicase/test-u16-casefold.c: Likewise.
15693         * tests/unicase/test-u16-is-cased.c: Likewise.
15694         * tests/unicase/test-u16-is-casefolded.c: Likewise.
15695         * tests/unicase/test-u16-is-lowercase.c: Likewise.
15696         * tests/unicase/test-u16-is-titlecase.c: Likewise.
15697         * tests/unicase/test-u16-is-uppercase.c: Likewise.
15698         * tests/unicase/test-u16-tolower.c: Likewise.
15699         * tests/unicase/test-u16-totitle.c: Likewise.
15700         * tests/unicase/test-u16-toupper.c: Likewise.
15701         * tests/unicase/test-u32-casecmp.c: Likewise.
15702         * tests/unicase/test-u32-casecoll.c: Likewise.
15703         * tests/unicase/test-u32-casefold.c: Likewise.
15704         * tests/unicase/test-u32-is-cased.c: Likewise.
15705         * tests/unicase/test-u32-is-casefolded.c: Likewise.
15706         * tests/unicase/test-u32-is-lowercase.c: Likewise.
15707         * tests/unicase/test-u32-is-titlecase.c: Likewise.
15708         * tests/unicase/test-u32-is-uppercase.c: Likewise.
15709         * tests/unicase/test-u32-tolower.c: Likewise.
15710         * tests/unicase/test-u32-totitle.c: Likewise.
15711         * tests/unicase/test-u32-toupper.c: Likewise.
15712         * tests/unicase/test-ulc-casecmp.c: Likewise.
15713         * tests/unicase/test-ulc-casecoll.c: Likewise.
15714         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15715         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15716         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15717         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15718         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15719         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15720         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15721         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15722         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15723         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15724         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15725         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15726         * tests/unictype/test-bidi_byname.c: Likewise.
15727         * tests/unictype/test-bidi_name.c: Likewise.
15728         * tests/unictype/test-bidi_of.c: Likewise.
15729         * tests/unictype/test-bidi_test.c: Likewise.
15730         * tests/unictype/test-block_list.c: Likewise.
15731         * tests/unictype/test-block_of.c: Likewise.
15732         * tests/unictype/test-block_test.c: Likewise.
15733         * tests/unictype/test-categ_and.c: Likewise.
15734         * tests/unictype/test-categ_and_not.c: Likewise.
15735         * tests/unictype/test-categ_byname.c: Likewise.
15736         * tests/unictype/test-categ_name.c: Likewise.
15737         * tests/unictype/test-categ_none.c: Likewise.
15738         * tests/unictype/test-categ_of.c: Likewise.
15739         * tests/unictype/test-categ_or.c: Likewise.
15740         * tests/unictype/test-categ_test_withtable.c: Likewise.
15741         * tests/unictype/test-combining.c: Likewise.
15742         * tests/unictype/test-decdigit.c: Likewise.
15743         * tests/unictype/test-digit.c: Likewise.
15744         * tests/unictype/test-mirror.c: Likewise.
15745         * tests/unictype/test-numeric.c: Likewise.
15746         * tests/unictype/test-pr_byname.c: Likewise.
15747         * tests/unictype/test-pr_test.c: Likewise.
15748         * tests/unictype/test-predicate-part1.h: Likewise.
15749         * tests/unictype/test-scripts.c: Likewise.
15750         * tests/unictype/test-sy_c_ident.c: Likewise.
15751         * tests/unictype/test-sy_java_ident.c: Likewise.
15752         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15753         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15754         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15755         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15756         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15757         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15758         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15759         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15760         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15761         * tests/uninorm/test-compat-decomposition.c: Likewise.
15762         * tests/uninorm/test-composition.c: Likewise.
15763         * tests/uninorm/test-decomposing-form.c: Likewise.
15764         * tests/uninorm/test-decomposition.c: Likewise.
15765         * tests/uninorm/test-u8-nfc.c: Likewise.
15766         * tests/uninorm/test-u8-nfd.c: Likewise.
15767         * tests/uninorm/test-u8-nfkc.c: Likewise.
15768         * tests/uninorm/test-u8-nfkd.c: Likewise.
15769         * tests/uninorm/test-u8-normcmp.c: Likewise.
15770         * tests/uninorm/test-u8-normcoll.c: Likewise.
15771         * tests/uninorm/test-u16-nfc.c: Likewise.
15772         * tests/uninorm/test-u16-nfd.c: Likewise.
15773         * tests/uninorm/test-u16-nfkc.c: Likewise.
15774         * tests/uninorm/test-u16-nfkd.c: Likewise.
15775         * tests/uninorm/test-u16-normcmp.c: Likewise.
15776         * tests/uninorm/test-u16-normcoll.c: Likewise.
15777         * tests/uninorm/test-u32-nfc.c: Likewise.
15778         * tests/uninorm/test-u32-nfd.c: Likewise.
15779         * tests/uninorm/test-u32-nfkc.c: Likewise.
15780         * tests/uninorm/test-u32-nfkd.c: Likewise.
15781         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15782         * tests/uninorm/test-u32-normcmp.c: Likewise.
15783         * tests/uninorm/test-u32-normcoll.c: Likewise.
15784         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15785         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15786         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15787         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15788         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15789         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15790         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15791         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15792         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15793         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15794         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15795         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15796         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15797         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15798         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15799         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15800         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15801         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15802         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15803         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15804         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15805         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15806         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15807         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15808         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15809         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15810         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15811         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15812         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15813         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15814         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15815         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15816         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15817         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15818         * tests/uniwidth/test-u8-width.c: Likewise.
15819         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15820         * tests/uniwidth/test-u16-width.c: Likewise.
15821         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15822         * tests/uniwidth/test-u32-width.c: Likewise.
15823         * tests/uniwidth/test-uc_width.c: Likewise.
15824         * tests/uniwidth/test-uc_width2.c: Likewise.
15825         * modules/acl-tests (Files): Add tests/macros.h.
15826         * modules/areadlink-tests (Files): Likewise.
15827         * modules/areadlink-with-size-tests (Files): Likewise.
15828         * modules/areadlinkat-tests (Files): Likewise.
15829         * modules/areadlinkat-with-size-tests (Files): Likewise.
15830         * modules/argmatch-tests (Files): Likewise.
15831         * modules/argv-iter-tests (Files): Likewise.
15832         * modules/array-list-tests (Files): Likewise.
15833         * modules/array-mergesort-tests (Files): Likewise.
15834         * modules/array-oset-tests (Files): Likewise.
15835         * modules/avltree-list-tests (Files): Likewise.
15836         * modules/avltree-oset-tests (Files): Likewise.
15837         * modules/avltreehash-list-tests (Files): Likewise.
15838         * modules/base64-tests (Files): Likewise.
15839         * modules/binary-io-tests (Files): Likewise.
15840         * modules/bitrotate-tests (Files): Likewise.
15841         * modules/btowc-tests (Files): Likewise.
15842         * modules/byteswap-tests (Files): Likewise.
15843         * modules/c-ctype-tests (Files): Likewise.
15844         * modules/c-stack-tests (Files): Likewise.
15845         * modules/c-strcase-tests (Files): Likewise.
15846         * modules/c-strcasestr-tests (Files): Likewise.
15847         * modules/c-strstr-tests (Files): Likewise.
15848         * modules/canonicalize-lgpl-tests (Files): Likewise.
15849         * modules/canonicalize-tests (Files): Likewise.
15850         * modules/carray-list-tests (Files): Likewise.
15851         * modules/ceilf-tests (Files): Likewise.
15852         * modules/ceill-tests (Files): Likewise.
15853         * modules/chown-tests (Files): Likewise.
15854         * modules/cloexec-tests (Files): Likewise.
15855         * modules/copy-file-tests (Files): Likewise.
15856         * modules/count-one-bits-tests (Files): Likewise.
15857         * modules/dprintf-posix-tests (Files): Likewise.
15858         * modules/dup2-tests (Files): Likewise.
15859         * modules/dup3-tests (Files): Likewise.
15860         * modules/duplocale-tests (Files): Likewise.
15861         * modules/fbufmode-tests (Files): Likewise.
15862         * modules/fchdir-tests (Files): Likewise.
15863         * modules/fcntl-safer-tests (Files): Likewise.
15864         * modules/fcntl-tests (Files): Likewise.
15865         * modules/fdopendir-tests (Files): Likewise.
15866         * modules/fdutimensat-tests (Files): Likewise.
15867         * modules/fflush-tests (Files): Likewise.
15868         * modules/filevercmp-tests (Files): Likewise.
15869         * modules/flock-tests (Files): Likewise.
15870         * modules/floorf-tests (Files): Likewise.
15871         * modules/floorl-tests (Files): Likewise.
15872         * modules/fnmatch-tests (Files): Likewise.
15873         * modules/fopen-safer-tests (Files): Likewise.
15874         * modules/fopen-tests (Files): Likewise.
15875         * modules/fpending-tests (Files): Likewise.
15876         * modules/fprintf-posix-tests (Files): Likewise.
15877         * modules/fpurge-tests (Files): Likewise.
15878         * modules/freadable-tests (Files): Likewise.
15879         * modules/freadahead-tests (Files): Likewise.
15880         * modules/freading-tests (Files): Likewise.
15881         * modules/freadptr-tests (Files): Likewise.
15882         * modules/freadseek-tests (Files): Likewise.
15883         * modules/freopen-tests (Files): Likewise.
15884         * modules/frexp-nolibm-tests (Files): Likewise.
15885         * modules/frexp-tests (Files): Likewise.
15886         * modules/frexpl-nolibm-tests (Files): Likewise.
15887         * modules/frexpl-tests (Files): Likewise.
15888         * modules/fseek-tests (Files): Likewise.
15889         * modules/fseeko-tests (Files): Likewise.
15890         * modules/fstrcmp-tests (Files): Likewise.
15891         * modules/fsync-tests (Files): Likewise.
15892         * modules/ftell-tests (Files): Likewise.
15893         * modules/ftello-tests (Files): Likewise.
15894         * modules/func-tests (Files): Likewise.
15895         * modules/futimens-tests (Files): Likewise.
15896         * modules/fwritable-tests (Files): Likewise.
15897         * modules/fwriting-tests (Files): Likewise.
15898         * modules/getcwd-tests (Files): Likewise.
15899         * modules/getdate-tests (Files): Likewise.
15900         * modules/getdelim-tests (Files): Likewise.
15901         * modules/getdtablesize-tests (Files): Likewise.
15902         * modules/getgroups-tests (Files): Likewise.
15903         * modules/getline-tests (Files): Likewise.
15904         * modules/getndelim2-tests (Files): Likewise.
15905         * modules/glob-tests (Files): Likewise.
15906         * modules/hash-tests (Files): Likewise.
15907         * modules/i-ring-tests (Files): Likewise.
15908         * modules/iconv-tests (Files): Likewise.
15909         * modules/iconv_open-utf-tests (Files): Likewise.
15910         * modules/idpriv-drop-tests (Files): Likewise.
15911         * modules/idpriv-droptemp-tests (Files): Likewise.
15912         * modules/inet_ntop-tests (Files): Likewise.
15913         * modules/inet_pton-tests (Files): Likewise.
15914         * modules/isblank-tests (Files): Likewise.
15915         * modules/isfinite-tests (Files): Likewise.
15916         * modules/isinf-tests (Files): Likewise.
15917         * modules/isnan-tests (Files): Likewise.
15918         * modules/isnand-nolibm-tests (Files): Likewise.
15919         * modules/isnand-tests (Files): Likewise.
15920         * modules/isnanf-nolibm-tests (Files): Likewise.
15921         * modules/isnanf-tests (Files): Likewise.
15922         * modules/isnanl-nolibm-tests (Files): Likewise.
15923         * modules/isnanl-tests (Files): Likewise.
15924         * modules/lchown-tests (Files): Likewise.
15925         * modules/ldexpl-tests (Files): Likewise.
15926         * modules/link-tests (Files): Likewise.
15927         * modules/linkat-tests (Files): Likewise.
15928         * modules/linked-list-tests (Files): Likewise.
15929         * modules/linkedhash-list-tests (Files): Likewise.
15930         * modules/localename-tests (Files): Likewise.
15931         * modules/lseek-tests (Files): Likewise.
15932         * modules/lstat-tests (Files): Likewise.
15933         * modules/mbmemcasecmp-tests (Files): Likewise.
15934         * modules/mbmemcasecoll-tests (Files): Likewise.
15935         * modules/mbrtowc-tests (Files): Likewise.
15936         * modules/mbscasecmp-tests (Files): Likewise.
15937         * modules/mbscasestr-tests (Files): Likewise.
15938         * modules/mbschr-tests (Files): Likewise.
15939         * modules/mbscspn-tests (Files): Likewise.
15940         * modules/mbsinit-tests (Files): Likewise.
15941         * modules/mbsncasecmp-tests (Files): Likewise.
15942         * modules/mbsnrtowcs-tests (Files): Likewise.
15943         * modules/mbspbrk-tests (Files): Likewise.
15944         * modules/mbspcasecmp-tests (Files): Likewise.
15945         * modules/mbsrchr-tests (Files): Likewise.
15946         * modules/mbsrtowcs-tests (Files): Likewise.
15947         * modules/mbsspn-tests (Files): Likewise.
15948         * modules/mbsstr-tests (Files): Likewise.
15949         * modules/memchr-tests (Files): Likewise.
15950         * modules/memchr2-tests (Files): Likewise.
15951         * modules/memcmp-tests (Files): Likewise.
15952         * modules/memmem-tests (Files): Likewise.
15953         * modules/memrchr-tests (Files): Likewise.
15954         * modules/mkdir-tests (Files): Likewise.
15955         * modules/mkfifo-tests (Files): Likewise.
15956         * modules/mkfifoat-tests (Files): Likewise.
15957         * modules/mknod-tests (Files): Likewise.
15958         * modules/nanosleep-tests (Files): Likewise.
15959         * modules/nl_langinfo-tests (Files): Likewise.
15960         * modules/obstack-printf-tests (Files): Likewise.
15961         * modules/open-tests (Files): Likewise.
15962         * modules/openat-tests (Files): Likewise.
15963         * modules/pipe-filter-gi-tests (Files): Likewise.
15964         * modules/pipe-filter-ii-tests (Files): Likewise.
15965         * modules/pipe2-tests (Files): Likewise.
15966         * modules/popen-safer-tests (Files): Likewise.
15967         * modules/popen-tests (Files): Likewise.
15968         * modules/posixtm-tests (Files): Likewise.
15969         * modules/pread-tests (Files): Likewise.
15970         * modules/printf-frexp-tests (Files): Likewise.
15971         * modules/printf-frexpl-tests (Files): Likewise.
15972         * modules/printf-posix-tests (Files): Likewise.
15973         * modules/priv-set-tests (Files): Likewise.
15974         * modules/quotearg-tests (Files): Likewise.
15975         * modules/random_r-tests (Files): Likewise.
15976         * modules/rawmemchr-tests (Files): Likewise.
15977         * modules/rbtree-list-tests (Files): Likewise.
15978         * modules/rbtree-oset-tests (Files): Likewise.
15979         * modules/rbtreehash-list-tests (Files): Likewise.
15980         * modules/readlink-tests (Files): Likewise.
15981         * modules/remove-tests (Files): Likewise.
15982         * modules/rename-tests (Files): Likewise.
15983         * modules/renameat-tests (Files): Likewise.
15984         * modules/rmdir-tests (Files): Likewise.
15985         * modules/round-tests (Files): Likewise.
15986         * modules/roundf-tests (Files): Likewise.
15987         * modules/roundl-tests (Files): Likewise.
15988         * modules/safe-alloc-tests (Files): Likewise.
15989         * modules/setenv-tests (Files): Likewise.
15990         * modules/sigaction-tests (Files): Likewise.
15991         * modules/signbit-tests (Files): Likewise.
15992         * modules/sleep-tests (Files): Likewise.
15993         * modules/snprintf-posix-tests (Files): Likewise.
15994         * modules/snprintf-tests (Files): Likewise.
15995         * modules/sprintf-posix-tests (Files): Likewise.
15996         * modules/stat-tests (Files): Likewise.
15997         * modules/stat-time-tests (Files): Likewise.
15998         * modules/strcasestr-tests (Files): Likewise.
15999         * modules/strchrnul-tests (Files): Likewise.
16000         * modules/strerror-tests (Files): Likewise.
16001         * modules/striconv-tests (Files): Likewise.
16002         * modules/striconveh-tests (Files): Likewise.
16003         * modules/striconveha-tests (Files): Likewise.
16004         * modules/strsignal-tests (Files): Likewise.
16005         * modules/strstr-tests (Files): Likewise.
16006         * modules/strtod-tests (Files): Likewise.
16007         * modules/strverscmp-tests (Files): Likewise.
16008         * modules/symlink-tests (Files): Likewise.
16009         * modules/symlinkat-tests (Files): Likewise.
16010         * modules/trunc-tests (Files): Likewise.
16011         * modules/truncf-tests (Files): Likewise.
16012         * modules/truncl-tests (Files): Likewise.
16013         * modules/uname-tests (Files): Likewise.
16014         * modules/unicase/cased-tests (Files): Likewise.
16015         * modules/unicase/ignorable-tests (Files): Likewise.
16016         * modules/unicase/locale-language-tests (Files): Likewise.
16017         * modules/unicase/tolower-tests (Files): Likewise.
16018         * modules/unicase/totitle-tests (Files): Likewise.
16019         * modules/unicase/toupper-tests (Files): Likewise.
16020         * modules/unicase/u8-casecmp-tests (Files): Likewise.
16021         * modules/unicase/u8-casecoll-tests (Files): Likewise.
16022         * modules/unicase/u8-casefold-tests (Files): Likewise.
16023         * modules/unicase/u8-is-cased-tests (Files): Likewise.
16024         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
16025         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
16026         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
16027         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
16028         * modules/unicase/u8-tolower-tests (Files): Likewise.
16029         * modules/unicase/u8-totitle-tests (Files): Likewise.
16030         * modules/unicase/u8-toupper-tests (Files): Likewise.
16031         * modules/unicase/u16-casecmp-tests (Files): Likewise.
16032         * modules/unicase/u16-casecoll-tests (Files): Likewise.
16033         * modules/unicase/u16-casefold-tests (Files): Likewise.
16034         * modules/unicase/u16-is-cased-tests (Files): Likewise.
16035         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
16036         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
16037         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
16038         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
16039         * modules/unicase/u16-tolower-tests (Files): Likewise.
16040         * modules/unicase/u16-totitle-tests (Files): Likewise.
16041         * modules/unicase/u16-toupper-tests (Files): Likewise.
16042         * modules/unicase/u32-casecmp-tests (Files): Likewise.
16043         * modules/unicase/u32-casecoll-tests (Files): Likewise.
16044         * modules/unicase/u32-casefold-tests (Files): Likewise.
16045         * modules/unicase/u32-is-cased-tests (Files): Likewise.
16046         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
16047         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
16048         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
16049         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
16050         * modules/unicase/u32-tolower-tests (Files): Likewise.
16051         * modules/unicase/u32-totitle-tests (Files): Likewise.
16052         * modules/unicase/u32-toupper-tests (Files): Likewise.
16053         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
16054         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
16055         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
16056         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
16057         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
16058         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
16059         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
16060         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
16061         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
16062         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
16063         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
16064         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
16065         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
16066         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
16067         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
16068         * modules/unictype/bidicategory-name-tests (Files): Likewise.
16069         * modules/unictype/bidicategory-of-tests (Files): Likewise.
16070         * modules/unictype/bidicategory-test-tests (Files): Likewise.
16071         * modules/unictype/block-list-tests (Files): Likewise.
16072         * modules/unictype/block-of-tests (Files): Likewise.
16073         * modules/unictype/block-test-tests (Files): Likewise.
16074         * modules/unictype/category-C-tests (Files): Likewise.
16075         * modules/unictype/category-Cc-tests (Files): Likewise.
16076         * modules/unictype/category-Cf-tests (Files): Likewise.
16077         * modules/unictype/category-Cn-tests (Files): Likewise.
16078         * modules/unictype/category-Co-tests (Files): Likewise.
16079         * modules/unictype/category-Cs-tests (Files): Likewise.
16080         * modules/unictype/category-L-tests (Files): Likewise.
16081         * modules/unictype/category-Ll-tests (Files): Likewise.
16082         * modules/unictype/category-Lm-tests (Files): Likewise.
16083         * modules/unictype/category-Lo-tests (Files): Likewise.
16084         * modules/unictype/category-Lt-tests (Files): Likewise.
16085         * modules/unictype/category-Lu-tests (Files): Likewise.
16086         * modules/unictype/category-M-tests (Files): Likewise.
16087         * modules/unictype/category-Mc-tests (Files): Likewise.
16088         * modules/unictype/category-Me-tests (Files): Likewise.
16089         * modules/unictype/category-Mn-tests (Files): Likewise.
16090         * modules/unictype/category-N-tests (Files): Likewise.
16091         * modules/unictype/category-Nd-tests (Files): Likewise.
16092         * modules/unictype/category-Nl-tests (Files): Likewise.
16093         * modules/unictype/category-No-tests (Files): Likewise.
16094         * modules/unictype/category-P-tests (Files): Likewise.
16095         * modules/unictype/category-Pc-tests (Files): Likewise.
16096         * modules/unictype/category-Pd-tests (Files): Likewise.
16097         * modules/unictype/category-Pe-tests (Files): Likewise.
16098         * modules/unictype/category-Pf-tests (Files): Likewise.
16099         * modules/unictype/category-Pi-tests (Files): Likewise.
16100         * modules/unictype/category-Po-tests (Files): Likewise.
16101         * modules/unictype/category-Ps-tests (Files): Likewise.
16102         * modules/unictype/category-S-tests (Files): Likewise.
16103         * modules/unictype/category-Sc-tests (Files): Likewise.
16104         * modules/unictype/category-Sk-tests (Files): Likewise.
16105         * modules/unictype/category-Sm-tests (Files): Likewise.
16106         * modules/unictype/category-So-tests (Files): Likewise.
16107         * modules/unictype/category-Z-tests (Files): Likewise.
16108         * modules/unictype/category-Zl-tests (Files): Likewise.
16109         * modules/unictype/category-Zp-tests (Files): Likewise.
16110         * modules/unictype/category-Zs-tests (Files): Likewise.
16111         * modules/unictype/category-and-not-tests (Files): Likewise.
16112         * modules/unictype/category-and-tests (Files): Likewise.
16113         * modules/unictype/category-byname-tests (Files): Likewise.
16114         * modules/unictype/category-name-tests (Files): Likewise.
16115         * modules/unictype/category-none-tests (Files): Likewise.
16116         * modules/unictype/category-of-tests (Files): Likewise.
16117         * modules/unictype/category-or-tests (Files): Likewise.
16118         * modules/unictype/category-test-withtable-tests (Files): Likewise.
16119         * modules/unictype/combining-class-tests (Files): Likewise.
16120         * modules/unictype/ctype-alnum-tests (Files): Likewise.
16121         * modules/unictype/ctype-alpha-tests (Files): Likewise.
16122         * modules/unictype/ctype-blank-tests (Files): Likewise.
16123         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
16124         * modules/unictype/ctype-digit-tests (Files): Likewise.
16125         * modules/unictype/ctype-graph-tests (Files): Likewise.
16126         * modules/unictype/ctype-lower-tests (Files): Likewise.
16127         * modules/unictype/ctype-print-tests (Files): Likewise.
16128         * modules/unictype/ctype-punct-tests (Files): Likewise.
16129         * modules/unictype/ctype-space-tests (Files): Likewise.
16130         * modules/unictype/ctype-upper-tests (Files): Likewise.
16131         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
16132         * modules/unictype/decimal-digit-tests (Files): Likewise.
16133         * modules/unictype/digit-tests (Files): Likewise.
16134         * modules/unictype/mirror-tests (Files): Likewise.
16135         * modules/unictype/numeric-tests (Files): Likewise.
16136         * modules/unictype/property-alphabetic-tests (Files): Likewise.
16137         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
16138         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
16139         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
16140         Likewise.
16141         * modules/unictype/property-bidi-block-separator-tests (Files):
16142         Likewise.
16143         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
16144         Likewise.
16145         * modules/unictype/property-bidi-common-separator-tests (Files):
16146         Likewise.
16147         * modules/unictype/property-bidi-control-tests (Files): Likewise.
16148         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
16149         Likewise.
16150         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
16151         Likewise.
16152         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
16153         Likewise.
16154         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
16155         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
16156         Likewise.
16157         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
16158         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
16159         Likewise.
16160         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
16161         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
16162         * modules/unictype/property-bidi-segment-separator-tests (Files):
16163         Likewise.
16164         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
16165         * modules/unictype/property-byname-tests (Files): Likewise.
16166         * modules/unictype/property-combining-tests (Files): Likewise.
16167         * modules/unictype/property-composite-tests (Files): Likewise.
16168         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
16169         * modules/unictype/property-dash-tests (Files): Likewise.
16170         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
16171         * modules/unictype/property-default-ignorable-code-point-tests (Files):
16172         Likewise.
16173         * modules/unictype/property-deprecated-tests (Files): Likewise.
16174         * modules/unictype/property-diacritic-tests (Files): Likewise.
16175         * modules/unictype/property-extender-tests (Files): Likewise.
16176         * modules/unictype/property-format-control-tests (Files): Likewise.
16177         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
16178         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
16179         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
16180         * modules/unictype/property-hex-digit-tests (Files): Likewise.
16181         * modules/unictype/property-hyphen-tests (Files): Likewise.
16182         * modules/unictype/property-id-continue-tests (Files): Likewise.
16183         * modules/unictype/property-id-start-tests (Files): Likewise.
16184         * modules/unictype/property-ideographic-tests (Files): Likewise.
16185         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
16186         * modules/unictype/property-ids-trinary-operator-tests (Files):
16187         Likewise.
16188         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
16189         * modules/unictype/property-iso-control-tests (Files): Likewise.
16190         * modules/unictype/property-join-control-tests (Files): Likewise.
16191         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
16192         * modules/unictype/property-line-separator-tests (Files): Likewise.
16193         * modules/unictype/property-logical-order-exception-tests (Files):
16194         Likewise.
16195         * modules/unictype/property-lowercase-tests (Files): Likewise.
16196         * modules/unictype/property-math-tests (Files): Likewise.
16197         * modules/unictype/property-non-break-tests (Files): Likewise.
16198         * modules/unictype/property-not-a-character-tests (Files): Likewise.
16199         * modules/unictype/property-numeric-tests (Files): Likewise.
16200         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
16201         * modules/unictype/property-other-default-ignorable-code-point-tests
16202         (Files): Likewise.
16203         * modules/unictype/property-other-grapheme-extend-tests (Files):
16204         Likewise.
16205         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
16206         * modules/unictype/property-other-id-start-tests (Files): Likewise.
16207         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
16208         * modules/unictype/property-other-math-tests (Files): Likewise.
16209         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
16210         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
16211         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
16212         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
16213         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
16214         * modules/unictype/property-private-use-tests (Files): Likewise.
16215         * modules/unictype/property-punctuation-tests (Files): Likewise.
16216         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
16217         * modules/unictype/property-radical-tests (Files): Likewise.
16218         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
16219         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
16220         * modules/unictype/property-space-tests (Files): Likewise.
16221         * modules/unictype/property-terminal-punctuation-tests (Files):
16222         Likewise.
16223         * modules/unictype/property-test-tests (Files): Likewise.
16224         * modules/unictype/property-titlecase-tests (Files): Likewise.
16225         * modules/unictype/property-unassigned-code-value-tests (Files):
16226         Likewise.
16227         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
16228         * modules/unictype/property-uppercase-tests (Files): Likewise.
16229         * modules/unictype/property-variation-selector-tests (Files): Likewise.
16230         * modules/unictype/property-white-space-tests (Files): Likewise.
16231         * modules/unictype/property-xid-continue-tests (Files): Likewise.
16232         * modules/unictype/property-xid-start-tests (Files): Likewise.
16233         * modules/unictype/property-zero-width-tests (Files): Likewise.
16234         * modules/unictype/scripts-tests (Files): Likewise.
16235         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
16236         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
16237         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
16238         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
16239         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
16240         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
16241         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
16242         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
16243         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
16244         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
16245         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
16246         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
16247         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
16248         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
16249         * modules/uninorm/composition-tests (Files): Likewise.
16250         * modules/uninorm/decomposing-form-tests (Files): Likewise.
16251         * modules/uninorm/decomposition-tests (Files): Likewise.
16252         * modules/uninorm/filter-tests (Files): Likewise.
16253         * modules/uninorm/nfc-tests (Files): Likewise.
16254         * modules/uninorm/nfd-tests (Files): Likewise.
16255         * modules/uninorm/nfkc-tests (Files): Likewise.
16256         * modules/uninorm/nfkd-tests (Files): Likewise.
16257         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
16258         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
16259         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
16260         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
16261         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
16262         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
16263         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
16264         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16265         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
16266         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
16267         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
16268         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
16269         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16270         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
16271         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
16272         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
16273         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
16274         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16275         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
16276         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
16277         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
16278         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
16279         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16280         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
16281         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
16282         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
16283         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
16284         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
16285         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
16286         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
16287         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
16288         * modules/uniwidth/u8-width-tests (Files): Likewise.
16289         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
16290         * modules/uniwidth/u16-width-tests (Files): Likewise.
16291         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
16292         * modules/uniwidth/u32-width-tests (Files): Likewise.
16293         * modules/uniwidth/width-tests (Files): Likewise.
16294         * modules/unlink-tests (Files): Likewise.
16295         * modules/unsetenv-tests (Files): Likewise.
16296         * modules/usleep-tests (Files): Likewise.
16297         * modules/utimens-tests (Files): Likewise.
16298         * modules/utimensat-tests (Files): Likewise.
16299         * modules/vasnprintf-posix-tests (Files): Likewise.
16300         * modules/vasnprintf-tests (Files): Likewise.
16301         * modules/vasprintf-posix-tests (Files): Likewise.
16302         * modules/vasprintf-tests (Files): Likewise.
16303         * modules/vdprintf-posix-tests (Files): Likewise.
16304         * modules/vfprintf-posix-tests (Files): Likewise.
16305         * modules/vprintf-posix-tests (Files): Likewise.
16306         * modules/vsnprintf-posix-tests (Files): Likewise.
16307         * modules/vsnprintf-tests (Files): Likewise.
16308         * modules/vsprintf-posix-tests (Files): Likewise.
16309         * modules/wcrtomb-tests (Files): Likewise.
16310         * modules/wcsnrtombs-tests (Files): Likewise.
16311         * modules/wcsrtombs-tests (Files): Likewise.
16312         * modules/wctype-tests (Files): Likewise.
16313         * modules/wcwidth-tests (Files): Likewise.
16314         * modules/xmemdup0-tests (Files): Likewise.
16315         * modules/xprintf-posix-tests (Files): Likewise.
16316         * modules/xvasprintf-tests (Files): Likewise.
16317
16318 2009-12-24  Eric Blake  <ebb9@byu.net>
16319
16320         test-nanosleep: fix typo
16321         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
16322         patch.
16323         Reported by Bruno Haible.
16324
16325 2009-12-24  Bruno Haible  <bruno@clisp.org>
16326
16327         Reduce namespace pollution on glibc systems.
16328         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
16329         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
16330         systems.
16331         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
16332         <getopt.h> on glibc systems.
16333         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
16334         systems.
16335         * lib/fcntl.c: Include <unistd.h> here instead.
16336
16337 2009-12-24  Bruno Haible  <bruno@clisp.org>
16338
16339         * lib/stdlib.in.h (includes): Fix typo in today's commit.
16340
16341 2009-12-24  Eric Blake  <ebb9@byu.net>
16342
16343         tests: add signature checks
16344         * tests/signature.h (SIGNATURE_CHECK): New file.
16345         * modules/atexit-tests (Files): Use it.
16346         * modules/btowc-tests (Files): Likewise.
16347         * modules/canonicalize-lgpl-tests (Files): Likewise.
16348         * modules/ceilf-tests (Files): Likewise.
16349         * modules/ceill-tests (Files): Likewise.
16350         * modules/chown-tests (Files): Likewise.
16351         * modules/dprintf-posix-tests (Files): Likewise.
16352         * modules/dup2-tests (Files): Likewise.
16353         * modules/dup3-tests (Files): Likewise.
16354         * modules/duplocale-tests (Files): Likewise.
16355         * modules/fchdir-tests (Files): Likewise.
16356         * modules/fcntl-tests (Files): Likewise.
16357         * modules/fdopendir-tests (Files): Likewise.
16358         * modules/fflush-tests (Files): Likewise.
16359         * modules/flock-tests (Files): Likewise.
16360         * modules/floorf-tests (Files): Likewise.
16361         * modules/floorl-tests (Files): Likewise.
16362         * modules/fnmatch-tests (Files): Likewise.
16363         * modules/fopen-tests (Files): Likewise.
16364         * modules/fprintf-posix-tests (Files): Likewise.
16365         * modules/freopen-tests (Files): Likewise.
16366         * modules/frexp-nolibm-tests (Files): Likewise.
16367         * modules/frexp-tests (Files): Likewise.
16368         * modules/frexpl-nolibm-tests (Files): Likewise.
16369         * modules/frexpl-tests (Files): Likewise.
16370         * modules/fseek-tests (Files): Likewise.
16371         * modules/fseeko-tests (Files): Likewise.
16372         * modules/fsync-tests (Files): Likewise.
16373         * modules/ftell-tests (Files): Likewise.
16374         * modules/ftello-tests (Files): Likewise.
16375         * modules/futimens-tests (Files): Likewise.
16376         * modules/getaddrinfo-tests (Files): Likewise.
16377         * modules/getcwd-tests (Files): Likewise.
16378         * modules/getdelim-tests (Files): Likewise.
16379         * modules/getdtablesize-tests (Files): Likewise.
16380         * modules/getgroups-tests (Files): Likewise.
16381         * modules/gethostname-tests (Files): Likewise.
16382         * modules/getline-tests (Files): Likewise.
16383         * modules/getopt-posix-tests (Files): Likewise.
16384         * modules/gettimeofday-tests (Files): Likewise.
16385         * modules/glob-tests (Files): Likewise.
16386         * modules/iconv-tests (Files): Likewise.
16387         * modules/inet_ntop-tests (Files): Likewise.
16388         * modules/inet_pton-tests (Files): Likewise.
16389         * modules/isblank-tests (Files): Likewise.
16390         * modules/lchown-tests (Files): Likewise.
16391         * modules/ldexpl-tests (Files): Likewise.
16392         * modules/link-tests (Files): Likewise.
16393         * modules/linkat-tests (Files): Likewise.
16394         * modules/lseek-tests (Files): Likewise.
16395         * modules/lstat-tests (Files): Likewise.
16396         * modules/mbrtowc-tests (Files): Likewise.
16397         * modules/mbsinit-tests (Files): Likewise.
16398         * modules/mbsnrtowcs-tests (Files): Likewise.
16399         * modules/mbsrtowcs-tests (Files): Likewise.
16400         * modules/memchr-tests (Files): Likewise.
16401         * modules/memcmp-tests (Files): Likewise.
16402         * modules/memmem-tests (Files): Likewise.
16403         * modules/memrchr-tests (Files): Likewise.
16404         * modules/mkdir-tests (Files): Likewise.
16405         * modules/mkfifo-tests (Files): Likewise.
16406         * modules/mkfifoat-tests (Files): Likewise.
16407         * modules/mknod-tests (Files): Likewise.
16408         * modules/nanosleep-tests (Files): Likewise.
16409         * modules/nl_langinfo-tests (Files): Likewise.
16410         * modules/obstack-printf-tests (Files): Likewise.
16411         * modules/open-tests (Files): Likewise.
16412         * modules/openat-tests (Files): Likewise.
16413         * modules/perror-tests (Files): Likewise.
16414         * modules/pipe2-tests (Files): Likewise.
16415         * modules/poll-tests (Files): Likewise.
16416         * modules/popen-tests (Files): Likewise.
16417         * modules/posix_spawn-tests (Files): Likewise.
16418         * modules/posix_spawnp-tests (Files): Likewise.
16419         * modules/pread-tests (Files): Likewise.
16420         * modules/printf-posix-tests (Files): Likewise.
16421         * modules/pty-tests (Files): Likewise.
16422         * modules/random_r-tests (Files): Likewise.
16423         * modules/rawmemchr-tests (Files): Likewise.
16424         * modules/readlink-tests (Files): Likewise.
16425         * modules/remove-tests (Files): Likewise.
16426         * modules/rename-tests (Files): Likewise.
16427         * modules/renameat-tests (Files): Likewise.
16428         * modules/rmdir-tests (Files): Likewise.
16429         * modules/round-tests (Files): Likewise.
16430         * modules/roundf-tests (Files): Likewise.
16431         * modules/roundl-tests (Files): Likewise.
16432         * modules/select-tests (Files): Likewise.
16433         * modules/setenv-tests (Files): Likewise.
16434         * modules/sigaction-tests (Files): Likewise.
16435         * modules/sleep-tests (Files): Likewise.
16436         * modules/snprintf-posix-tests (Files): Likewise.
16437         * modules/snprintf-tests (Files): Likewise.
16438         * modules/sprintf-posix-tests (Files): Likewise.
16439         * modules/stat-tests (Files): Likewise.
16440         * modules/strcasestr-tests (Files): Likewise.
16441         * modules/strchrnul-tests (Files): Likewise.
16442         * modules/strerror-tests (Files): Likewise.
16443         * modules/strsignal-tests (Files): Likewise.
16444         * modules/strstr-tests (Files): Likewise.
16445         * modules/strtod-tests (Files): Likewise.
16446         * modules/strverscmp-tests (Files): Likewise.
16447         * modules/symlink-tests (Files): Likewise.
16448         * modules/symlinkat-tests (Files): Likewise.
16449         * modules/times-tests (Files): Likewise.
16450         * modules/trunc-tests (Files): Likewise.
16451         * modules/truncf-tests (Files): Likewise.
16452         * modules/truncl-tests (Files): Likewise.
16453         * modules/tsearch-tests (Files): Likewise.
16454         * modules/uname-tests (Files): Likewise.
16455         * modules/unlink-tests (Files): Likewise.
16456         * modules/unsetenv-tests (Files): Likewise.
16457         * modules/usleep-tests (Files): Likewise.
16458         * modules/utimensat-tests (Files): Likewise.
16459         * modules/vasprintf-tests (Files): Likewise.
16460         * modules/vdprintf-posix-tests (Files): Likewise.
16461         * modules/vfprintf-posix-tests (Files): Likewise.
16462         * modules/vprintf-posix-tests (Files): Likewise.
16463         * modules/vsnprintf-posix-tests (Files): Likewise.
16464         * modules/vsnprintf-tests (Files): Likewise.
16465         * modules/vsprintf-posix-tests (Files): Likewise.
16466         * modules/wcrtomb-tests (Files): Likewise.
16467         * modules/wcsnrtombs-tests (Files): Likewise.
16468         * modules/wcsrtombs-tests (Files): Likewise.
16469         * modules/wcwidth-tests (Files): Likewise.
16470         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
16471         * tests/test-isinf.c (isinf): Likewise.
16472         * tests/test-isnan.c (isnan): Likewise.
16473         * tests/test-signbit.c (signbit): Likewise.
16474         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
16475         declaration, either as macro or with correct signature.
16476         (select): Ensure function under test is declared with correct
16477         signature in correct header.
16478         * tests/test-atexit.c (atexit): Likewise.
16479         * tests/test-btowc.c (btowc): Likewise.
16480         * tests/test-canonicalize-lgpl.c (realpath)
16481         (canonicalize_file_name): Likewise.
16482         * tests/test-ceilf1.c (ceilf): Likewise.
16483         * tests/test-ceill.c (ceill): Likewise.
16484         * tests/test-chown.c (chown): Likewise.
16485         * tests/test-dprintf-posix.c (dprintf): Likewise.
16486         * tests/test-dup2.c (dup2): Likewise.
16487         * tests/test-dup3.c (dup3): Likewise.
16488         * tests/test-duplocale.c (duplocale): Likewise.
16489         * tests/test-fchdir.c (fchdir): Likewise.
16490         * tests/test-fchownat.c (fchownat): Likewise.
16491         * tests/test-fcntl.c (fcntl): Likewise.
16492         * tests/test-fdopendir.c (fdopendir): Likewise.
16493         * tests/test-fflush.c (fflush): Likewise.
16494         * tests/test-flock.c (flock): Likewise.
16495         * tests/test-floorf1.c (floorf): Likewise.
16496         * tests/test-floorl.c (floorl): Likewise.
16497         * tests/test-fnmatch.c (fnmatch): Likewise.
16498         * tests/test-fopen.c (fopen): Likewise.
16499         * tests/test-fprintf-posix.c (fprintf): Likewise.
16500         * tests/test-freopen.c (freopen): Likewise.
16501         * tests/test-frexp.c (frexp): Likewise.
16502         * tests/test-frexpl.c (frexpl): Likewise.
16503         * tests/test-fseek.c (fseek): Likewise.
16504         * tests/test-fseeko.c (fseeko): Likewise.
16505         * tests/test-fstatat.c (fstatat): Likewise.
16506         * tests/test-fsync.c (fsync): Likewise.
16507         * tests/test-ftell.c (ftell): Likewise.
16508         * tests/test-ftello.c (ftello): Likewise.
16509         * tests/test-futimens.c (futimens): Likewise.
16510         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
16511         (gai_strerror): Likewise.
16512         * tests/test-getcwd.c (getcwd): Likewise.
16513         * tests/test-getdelim.c (getdelim): Likewise.
16514         * tests/test-getdtablesize.c (getdtablesize): Likewise.
16515         * tests/test-getgroups.c (getgroups): Likewise.
16516         * tests/test-gethostname.c (gethostname): Likewise.
16517         * tests/test-getline.c (getline): Likewise.
16518         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
16519         Likewise.
16520         * tests/test-gettimeofday.c (gettimeofday): Likewise.
16521         * tests/test-glob.c (glob, globfree): Likewise.
16522         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
16523         * tests/test-inet_ntop.c (inet_ntop): Likewise.
16524         * tests/test-inet_pton.c (inet_pton): Likewise.
16525         * tests/test-isblank.c (isblank): Likewise.
16526         * tests/test-lchown.c (lchown): Likewise.
16527         * tests/test-ldexpl.c (ldexpl): Likewise.
16528         * tests/test-link.c (link): Likewise.
16529         * tests/test-linkat.c (linkat): Likewise.
16530         * tests/test-lseek.c (lseek): Likewise.
16531         * tests/test-lstat.c (lstat): Likewise.
16532         * tests/test-mbrtowc.c (mbrtowc): Likewise.
16533         * tests/test-mbsinit.c (mbsinit): Likewise.
16534         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
16535         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
16536         * tests/test-memchr.c (memchr): Likewise.
16537         * tests/test-memcmp.c (memcmp): Likewise.
16538         * tests/test-memmem.c (memmem): Likewise.
16539         * tests/test-memrchr.c (memrchr): Likewise.
16540         * tests/test-mkdir.c (mkdir): Likewise.
16541         * tests/test-mkdirat.c (mkdirat): Likewise.
16542         * tests/test-mkfifo.c (mkfifo): Likewise.
16543         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
16544         * tests/test-mknod.c (mknod): Likewise.
16545         * tests/test-nanosleep.c (nanosleep): Likewise.
16546         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
16547         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
16548         Likewise.
16549         * tests/test-open.c (open): Likewise.
16550         * tests/test-openat.c (openat): Likewise.
16551         * tests/test-perror.c (perror): Likewise.
16552         * tests/test-pipe2.c (pipe2): Likewise.
16553         * tests/test-poll.c (poll): Likewise.
16554         * tests/test-popen.c (popen, pclose): Likewise.
16555         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
16556         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
16557         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
16558         (posix_spawn_file_actions_destroy)
16559         (posix_spawn_file_actions_addclose)
16560         (posix_spawn_file_actions_addopen)
16561         (posix_spawn_file_actions_adddup2): Likewise.
16562         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
16563         * tests/test-pread.c (pread): Likewise.
16564         * tests/test-printf-posix.c (printf): Likewise.
16565         * tests/test-pty.c (openpty, forkpty): Likewise.
16566         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
16567         (random_r): Likewise.
16568         * tests/test-rawmemchr.c (rawmemchr): Likewise.
16569         * tests/test-readlink.c (readlink): Likewise.
16570         * tests/test-remove.c (remove): Likewise.
16571         * tests/test-rename.c (rename): Likewise.
16572         * tests/test-renameat.c (renameat): Likewise.
16573         * tests/test-rmdir.c (rmdir): Likewise.
16574         * tests/test-round1.c (round): Likewise.
16575         * tests/test-roundf1.c (roundf): Likewise.
16576         * tests/test-roundl.c (roundl): Likewise.
16577         * tests/test-setenv.c (setenv): Likewise.
16578         * tests/test-sigaction.c (sigaction): Likewise.
16579         * tests/test-sleep.c (sleep): Likewise.
16580         * tests/test-snprintf.c (snprintf): Likewise.
16581         * tests/test-sprintf-posix.c (sprintf): Likewise.
16582         * tests/test-stat.c (stat): Likewise.
16583         * tests/test-stpncpy.c (stpncpy): Likewise.
16584         * tests/test-strcasestr.c (strcasestr): Likewise.
16585         * tests/test-strchrnul.c (strchrnul): Likewise.
16586         * tests/test-strerror.c (strerror): Likewise.
16587         * tests/test-strsignal.c (strsignal): Likewise.
16588         * tests/test-strstr.c (strstr): Likewise.
16589         * tests/test-strtod.c (strtod): Likewise.
16590         * tests/test-strverscmp.c (strverscmp): Likewise.
16591         * tests/test-symlink.c (symlink): Likewise.
16592         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16593         * tests/test-times.c (times): Likewise.
16594         * tests/test-trunc1.c (trunc): Likewise.
16595         * tests/test-truncf1.c (truncf): Likewise.
16596         * tests/test-truncl.c (truncl): Likewise.
16597         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16598         Likewise.
16599         * tests/test-uname.c (uname): Likewise.
16600         * tests/test-unlink.c (unlink): Likewise.
16601         * tests/test-unlinkat.c (unlinkat): Likewise.
16602         * tests/test-unsetenv.c (unsetenv): Likewise.
16603         * tests/test-usleep.c (usleep): Likewise.
16604         * tests/test-utimensat.c (utimensat): Likewise.
16605         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
16606         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
16607         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
16608         * tests/test-vprintf-posix.c (vprintf): Likewise.
16609         * tests/test-vsnprintf.c (vsnprintf): Likewise.
16610         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
16611         * tests/test-wcrtomb.c (wcrtomb): Likewise.
16612         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
16613         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
16614         * tests/test-wcwidth.c (wcwidth): Likewise.
16615
16616         build: pull in conditional headers during GNULIB_POSIXCHECK
16617         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
16618         definitions from any conditionally-included headers.
16619         * lib/stdlib.in.h (includes): Likewise.
16620         * lib/unistd.in.h (includes): Likewise.
16621
16622 2009-12-24  Bruno Haible  <bruno@clisp.org>
16623
16624         * tests/test-argv-iter.c: Include header file being tested immediately
16625         after config.h.
16626         * tests/test-base64.c: Likewise.
16627         * tests/test-flock.c: Likewise.
16628         * tests/test-fsync.c: Likewise.
16629         * tests/test-getdate.c: Likewise.
16630         * tests/test-getndelim2.c: Likewise.
16631         * tests/test-isfinite.c: Likewise.
16632         * tests/test-isinf.c: Likewise.
16633         * tests/test-strerror.c: Likewise.
16634         * tests/test-strsignal.c: Likewise.
16635
16636 2009-12-23  Eric Blake  <ebb9@byu.net>
16637
16638         unistd: work around cygwin bug
16639         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
16640         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
16641         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16642
16643 2009-12-23  Bruno Haible  <bruno@clisp.org>
16644
16645         localename: More tests.
16646         * tests/test-localename.c (SIZEOF): New macro.
16647         (categories): New variable.
16648         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
16649         test_locale_name_default): Add test w.r.t. thread locale.
16650         (test_locale_name_thread): New function.
16651         (main): Invoke it.
16652
16653         localename: Make aware of thread locale.
16654         * lib/localename.h (gl_locale_name_thread): New declaration.
16655         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
16656         behaviour with respect to thread locale.
16657         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
16658         <langinfo.h>, glthread/lock.h.
16659         (SIZE_BITS): New macro.
16660         (string_hash): New function.
16661         (struct hash_node): New type.
16662         (HASH_TABLE_SIZE): New macro.
16663         (struniq_hash_table, struniq_lock): New variables.
16664         (struniq): New function.
16665         (gl_locale_name_thread): New function.
16666         (gl_locale_name): Invoke it.
16667         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
16668         * modules/localename (Depends-on): Add lock.
16669         Reported by Mike Gran <spk121@yahoo.com>.
16670
16671 2009-12-23  Eric Blake  <ebb9@byu.net>
16672
16673         va-args: new module
16674         * modules/va-args: New file.
16675         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
16676         * MODULES.html.sh (Core language properties): Mention it.
16677
16678         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
16679         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
16680         named alias for __attribute__((__unused__)).
16681         * lib/chown.c: Update client.
16682         * lib/fchmodat.c: Likewise.
16683         * lib/fts.c: Likewise.
16684         * lib/getdate.y: Likewise.
16685         * lib/getgroups.c: Likewise.
16686         * lib/getopt.c: Likewise.
16687         * lib/getugroups.c: Likewise.
16688         * lib/mkdir.c: Likewise.
16689         * lib/mkfifo.c: Likewise.
16690         * lib/mkfifoat.c: Likewise.
16691         * lib/mknod.c: Likewise.
16692         * lib/mknodat.c: Likewise.
16693         * lib/readlink.c: Likewise.
16694         * lib/se-context.in.h: Likewise.
16695         * lib/se-selinux.in.h: Likewise.
16696         * lib/sockets.c: Likewise.
16697         * lib/symlink.c: Likewise.
16698         * lib/symlinkat.c: Likewise.
16699         * lib/unicodeio.c: Likewise.
16700         * lib/unistr.h: Likewise.
16701         * tests/test-areadlink.c: Likewise.
16702         * tests/test-areadlinkat.c: Likewise.
16703         * tests/test-filenamecat.c: Likewise.
16704         * tests/test-fseeko.c: Likewise.
16705         * tests/test-ftello.c: Likewise.
16706         * tests/test-getdate.c: Likewise.
16707         * tests/test-getgroups.c: Likewise.
16708         * tests/test-gethostname.c: Likewise.
16709         * tests/test-quotearg.c: Likewise.
16710         * tests/test-version-etc.c: Likewise.
16711         * tests/test-xalloc-die.c: Likewise.
16712         * tests/test-xfprintf-posix.c: Likewise.
16713         * tests/test-xprintf-posix.c: Likewise.
16714         * tests/test-xvasprintf.c: Likewise.
16715
16716         tests: avoid compiler warnings
16717         * tests/test-fcntl.c (main): Delete unused parameters.
16718         * tests/test-freopen-safer.c (main): Likewise.
16719         * tests/test-xalloc-die.c (main): Mark unused parameters.
16720         * tests/test-fseeko.c (main): Likewise.
16721         * tests/test-ftello.c (main): Likewise.
16722         * tests/test-nanosleep.c (main): Avoid declaration warning.
16723         * tests/test-sleep.c (main): Likewise.
16724         * tests/test-unsetenv.c (main): Silence warning about string
16725         literal.
16726         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16727
16728 2009-12-23  Bruno Haible  <bruno@clisp.org>
16729
16730         * tests/test-localename.c (test_locale_name): New function, extracted
16731         from main. Also test mixed situations.
16732         (test_locale_name_posix, test_locale_name_environ,
16733         test_locale_name_default): New functions.
16734         (main): Invoke them all.
16735         * modules/localename-tests (configure.ac): Test for newlocale.
16736
16737 2009-12-23  Bruno Haible  <bruno@clisp.org>
16738
16739         unistd: Ensure getcwd gets declared before being overridden.
16740         * lib/unistd.in.h: Conditionally include <io.h>.
16741
16742 2009-12-22  Bruno Haible  <bruno@clisp.org>
16743
16744         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16745         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16746         (gl_WCHAR_H): Invoke it.
16747         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16748         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16749         Reported by Karl Berry <karl@freefriends.org>.
16750
16751 2009-12-22  Eric Blake  <ebb9@byu.net>
16752
16753         math, unistd: avoid redundant includes
16754         * lib/math.in.h (isnan): No need to re-include <math.h>.
16755         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16756
16757         getsubopt: work around cygwin bug
16758         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16759         avoid conflicting with system getsubopt.
16760         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16761         bug.
16762
16763         getopt: synchronize from glibc
16764         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16765         parameter order.  Adjust all callers.
16766         (_getopt_internal_r, main): Adjust quoting in error messages.
16767         Drop considerations for outdated POSIX 1003.2 error message.
16768         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16769         callers.
16770         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16771
16772         test-getopt: test stderr behavior
16773         * modules/getopt-posix-tests (Depends-on): Add dup2.
16774         * tests/test-getopt.c (ASSERT): Avoid stderr.
16775         (main): Move stderr to a temporary file.
16776         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16777         Instead, add parameter to inform caller if output occurred.
16778         (test_getopt): Adjust all existing tests to expect silence, and
16779         add new tests of leading ":".
16780         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16781         glibc shortcomings with leading "-:" or "+:" in optstring.
16782         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16783         Likewise.
16784         * doc/posix-functions/getopt.texi (getopt): Likewise.
16785
16786         test-getopt: enhance test
16787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16788         supports optind=0.
16789         * tests/test-getopt.c (OPTIND_MIN): Move...
16790         * tests/test-getopt.h (OPTIND_MIN): ...here.
16791         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16792         Require that optind=0 works, since modern BSD supports it in
16793         addition to optreset, and since coreutils expects it.
16794         (test_getopt_long_only): New test.
16795         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16796         glibc shortcomings with 'W;', and enforcement of optind=0.
16797         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16798         Likewise.
16799
16800 2009-12-21  Bruno Haible  <bruno@clisp.org>
16801
16802         localename: Improvements for MacOS X and Cygwin.
16803         * lib/localename.h (gl_locale_name_environ): New declaration.
16804         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16805         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16806         (gl_locale_name_posix): Invoke it.
16807         (gl_locale_name_default): Add comments. Use Windows native API also on
16808         Cygwin.
16809
16810 2009-12-21  Bruno Haible  <bruno@clisp.org>
16811
16812         Update list of Win32 locale ids.
16813         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16814         (LANG_SAMI): Renamed from LANG_SAAMI.
16815         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16816         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16817         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16818         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16819         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16820         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16821         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16822         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16823         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16824         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16825         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16826         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16827         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16828         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16829         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16830         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16831         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16832         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16833         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16834         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16835         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16836         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16837         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16838         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16839         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16840         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16841         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16842         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16843         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16844         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16845         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16846         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16847         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16848         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16849         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16850         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16851         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16852         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16853         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16854         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16855         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16856         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16857         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16858         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16859         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16860         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16861         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16862         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16863         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16864         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16865         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16866         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16867         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16868         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16869         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16870         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16871         Add more languages and countries for Sami, Sorbian. Add more countries
16872         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16873         for Pashto. Change country for Syriac, Tswana.
16874
16875 2009-12-21  Eric Blake  <ebb9@byu.net>
16876
16877         test-utimens: avoid spurious failure
16878         * tests/test-chown.h (nap): Factor...
16879         * tests/nap.h: ...into new file.
16880         * tests/test-lchown.h (nap): Avoid duplication.
16881         * tests/test-utimens-common.h (nap): Use shared implementation,
16882         necessary on file systems with 1-second resolution.
16883         * modules/chown-tests (Files): Include new file.
16884         * modules/fdutimensat-tests (Files): Likewise.
16885         * modules/futimens-tests (Files): Likewise.
16886         * modules/lchown-tests (Files): Likewise.
16887         * modules/openat-tests (Files): Likewise.
16888         * modules/utimens-tests (Files): Likewise.
16889         * modules/utimensat-tests (Files): Likewise.
16890
16891 2009-12-19  Eric Blake  <ebb9@byu.net>
16892
16893         futimens, utimensat: work around Linux bug
16894         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16895         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16896         * lib/utimensat.c (rpl_utimensat): Work around it.
16897         * lib/futimens.c (rpl_futimens): Adjust comment.
16898
16899         utimens: work around Linux ctime bug
16900         * lib/utimens.c (detect_ctime_bug): New helper function.
16901         (update_timespec): Differentiate between workaround needed for
16902         this bug vs. what is needed for systems that lack utimensat.
16903         (fdutimens, lutimens): Work around bug.
16904
16905         utimens: check for ctime update
16906         * tests/test-utimens-common.h (check_ctime): Define.
16907         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16908         * tests/test-futimens.h (test_futimens): Likewise.
16909         * tests/test-lutimens.h (test_lutimens): Likewise.
16910         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16911         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16912
16913 2009-12-19  Bruno Haible  <bruno@clisp.org>
16914
16915         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16916         * tests/test-dprintf-posix2.sh: New file.
16917         * tests/test-dprintf-posix2.c: New file.
16918         * modules/dprintf-posix-tests (Files): Add them.
16919         (configure.ac): Check for getrlimit and setrlimit.
16920         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16921
16922 2009-12-19  Bruno Haible  <bruno@clisp.org>
16923
16924         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16925         * tests/test-fprintf-posix3.sh: New file.
16926         * tests/test-fprintf-posix3.c: New file.
16927         * modules/fprintf-posix-tests (Files): Add them.
16928         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16929
16930 2009-12-19  Eric Blake  <ebb9@byu.net>
16931
16932         dirfd: fix prototype
16933         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16934         * lib/dirfd.c (dirfd): Likewise.
16935
16936         canonicalize: reduce memory usage
16937         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16938         allocation to size.
16939         Reported by Solar Designer <solar@openwall.com>.
16940
16941 2009-12-19  Bruno Haible  <bruno@clisp.org>
16942
16943         New module attribute 'Applicability'.
16944         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16945         * gnulib-tool: New option --extract-applicability.
16946         (func_usage): Document it.
16947         (sed_extract_prog): Recognize it.
16948         (func_get_applicability): New function.
16949         (func_import): Generalize handling of 'link-warning' module.
16950         * modules/link-warning (Applicability): New section.
16951         * modules/arg-nonnull (Applicability): New section.
16952         Repoted by Simon Josefsson <simon@josefsson.org>.
16953
16954 2009-12-19  Bruno Haible  <bruno@clisp.org>
16955
16956         fflush: tweak
16957         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16958         * lib/fseeko.c (rpl_fseeko): Likewise.
16959
16960 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16961
16962         * lib/gl_list.h: Fix typo in comment.
16963
16964 2009-12-16  Eric Blake  <ebb9@byu.net>
16965
16966         fcntl: use to simplify other modules
16967         * modules/cloexec (Depends-on): Add fcntl.
16968         * modules/fchdir (Depends-on): Likewise.
16969         * modules/fd-safer-flag (Depends-on): Likewise.
16970         * modules/unistd-safer (Depends-on): Likewise.
16971         * modules/dup3 (configure.ac): Set module indicator.
16972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16973         missing.
16974         * lib/fchdir.c (_gl_register_dup): Fix comment.
16975         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16976         * lib/dup-safer.c (dup_safer): Likewise.
16977         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16978         * lib/dup3.c (dup3): Likewise.
16979         * tests/test-fchdir.c (main): Enhance test.
16980         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
16981
16982         fcntl: port portions of fcntl to mingw
16983         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16984         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16985         replacement for mingw.
16986         * modules/fcntl (Description): Update.
16987         (Depends-on): Add dup2.
16988         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16989         * modules/fcntl-h (Makefile.am): Substitute it.
16990         * lib/fcntl.in.h (fcntl): Update declaration.
16991         (F_DUPFD, F_GETFD): New macros, when needed.
16992         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16993         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16994         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16995         we now guarantee.
16996
16997         fcntl: work around cygwin bug in F_DUPFD
16998         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16999         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
17000         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
17001         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
17002         * doc/posix-functions/fcntl.texi (fcntl): Document it.
17003
17004         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
17005         * modules/fcntl (Files): List new files.
17006         (configure.ac): Run a test.
17007         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
17008         * lib/fcntl.c (rpl_fcntl): Likewise.
17009         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
17010         (gl_FCNTL_H): Always replace fcntl.h.
17011         * modules/fcntl-h (Makefile.am): Substitute witnesses.
17012         * lib/fcntl.in.h (fcntl): Declare replacement.
17013         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
17014         needed, plus a witness.
17015         * doc/posix-functions/fcntl.texi (fcntl): Document this.
17016         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17017         * tests/test-fcntl.c: New file.
17018         * modules/fcntl-tests: Likewise.
17019
17020         binary-io: avoid potential compilation warning
17021         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
17022         directives.
17023
17024         fflush: avoid compilation error on NetBSD
17025         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
17026         between off_t and fpos_t, since the latter is sometimes a struct.
17027         * lib/fseeko.c (rpl_fseeko): Likewise.
17028         Reported by Alexander Nasonov <alnsn@yandex.ru>.
17029
17030 2009-12-15  Eric Blake  <ebb9@byu.net>
17031
17032         fcntl-h, stdio, sys_ioctl: fix declarations
17033         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
17034         function must not take arguments.
17035         * lib/sys_ioctl.in.h (ioctl): Likewise.
17036         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
17037         (open): Add a link warning.
17038
17039 2009-12-15  Jim Meyering  <meyering@redhat.com>
17040
17041         areadlink, areadlink-with-size: relax license to LGPLv2+
17042         * modules/areadlink (License): Relax to LGPLv2+.
17043         * modules/areadlink-with-size (License): Likewise.
17044
17045 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
17046             Bruno Haible  <bruno@clisp.org>
17047
17048         *printf: Fix memory leak.
17049         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
17050         * lib/vfprintf.c (vfprintf): Likewise.
17051         * lib/dprintf.c (dprintf): Likewise.
17052         * lib/vdprintf.c (vdprintf): Likewise.
17053
17054 2009-12-14  Eric Blake  <ebb9@byu.net>
17055
17056         accept4: adjust module dependencies
17057         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
17058
17059         utimens: one more try at avoiding compiler warning
17060         * lib/utimens.c (lutimens): Lower scope of result.
17061
17062 2009-12-13  Bruno Haible  <bruno@clisp.org>
17063
17064         Move the malloc checking from module 'list' to new module 'xlist'.
17065         * modules/xlist: New file.
17066         * lib/gl_xlist.h: New file.
17067         * lib/gl_xlist.c: New file.
17068         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
17069         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
17070         gl_list_add_last, gl_list_add_before, gl_list_add_after,
17071         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
17072         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
17073         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
17074         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
17075         gl_sortedlist_nx_add): New declarations.
17076         (struct gl_list_implementation): Rename and change methods accordingly.
17077         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
17078         (gl_list_nx_create): Renamed from gl_list_create.
17079         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17080         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17081         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17082         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17083         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17084         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17085         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17086         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17087         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
17088         gl_list_create_empty.
17089         (gl_list_nx_create): Renamed from gl_list_create.
17090         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17091         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17092         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17093         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17094         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17095         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17096         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17097         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17098         * lib/gl_array_list.c: Don't include xalloc.h.
17099         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
17100         NULL upon out-of-memory.
17101         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
17102         out-of-memory.
17103         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
17104         Change return type to 'int'.
17105         (gl_array_nx_set_at): Renamed from gl_array_set_at.
17106         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17107         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
17108         upon out-of-memory.
17109         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
17110         upon out-of-memory.
17111         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
17112         upon out-of-memory.
17113         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
17114         upon out-of-memory.
17115         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
17116         out-of-memory.
17117         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
17118         Update.
17119         (gl_array_list_implementation): Update.
17120         * lib/gl_carray_list.c: Don't include xalloc.h.
17121         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
17122         Return NULL upon out-of-memory.
17123         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
17124         out-of-memory.
17125         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
17126         Change return type to 'int'.
17127         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
17128         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17129         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
17130         upon out-of-memory.
17131         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
17132         upon out-of-memory.
17133         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
17134         out-of-memory.
17135         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
17136         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
17137         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
17138         Update.
17139         (gl_carray_list_implementation): Update.
17140         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
17141         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
17142         gl_linked_create_empty. Return NULL upon out-of-memory.
17143         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
17144         out-of-memory.
17145         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
17146         Change return type to 'int'. Return -1 upon out-of-memory.
17147         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
17148         out-of-memory.
17149         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
17150         upon out-of-memory.
17151         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
17152         upon out-of-memory.
17153         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
17154         NULL upon out-of-memory.
17155         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
17156         upon out-of-memory.
17157         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
17158         out-of-memory.
17159         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
17160         Update.
17161         * lib/gl_linked_list.c: Don't include xalloc.h.
17162         (gl_linked_list_implementation): Update.
17163         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
17164         (add_to_bucket): Change return type to 'int'.
17165         (gl_linkedhash_list_implementation): Update.
17166         * lib/gl_anytree_list1.h (free_subtree): New function.
17167         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
17168         gl_tree_create_empty. Return NULL upon out-of-memory.
17169         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
17170         Change return type to 'int'. Return -1 upon out-of-memory.
17171         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
17172         out-of-memory.
17173         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
17174         (gl_tree_remove_node): New function, moved here from
17175         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
17176         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
17177         Update.
17178         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
17179         malloc, not xmalloc. Return NULL upon out-of-memory.
17180         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17181         out-of-memory.
17182         (gl_tree_remove_node_from_tree): New function, extracted from
17183         gl_tree_remove_node.
17184         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17185         upon out-of-memory.
17186         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17187         out-of-memory.
17188         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17189         upon out-of-memory.
17190         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17191         upon out-of-memory.
17192         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17193         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
17194         not xmalloc. Return NULL upon out-of-memory.
17195         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17196         out-of-memory.
17197         (gl_tree_remove_node_from_tree): New function, extracted from
17198         gl_tree_remove_node.
17199         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17200         upon out-of-memory.
17201         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17202         out-of-memory.
17203         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17204         upon out-of-memory.
17205         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17206         upon out-of-memory.
17207         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17208         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
17209         gl_anytree_list1.h before gl_anyavltree_list2.h.
17210         (gl_avltree_list_implementation): Update.
17211         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
17212         gl_anytree_list1.h before gl_anyavltree_list2.h.
17213         (gl_rbtree_list_implementation): Update.
17214         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
17215         Change return type to 'int'. Return -1 upon out-of-memory. Use
17216         __builtin_expect.
17217         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
17218         (gl_avltreehash_list_implementation): Update.
17219         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
17220         (gl_rbtreehash_list_implementation): Update.
17221         * modules/array-list (Depends-on): Remove xalloc.
17222         * modules/carray-list (Depends-on): Likewise.
17223         * modules/linked-list (Depends-on): Likewise.
17224         * modules/linkedhash-list (Depends-on): Likewise.
17225         * modules/avltree-list (Depends-on): Likewise.
17226         * modules/rbtree-list (Depends-on): Likewise.
17227         * modules/avltreehash-list (Depends-on): Likewise.
17228         * modules/rbtreehash-list (Depends-on): Likewise.
17229
17230         * modules/xsublist: New file.
17231         * lib/gl_xsublist.h: New file.
17232         * lib/gl_xsublist.c: New file.
17233         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
17234         (gl_sublist_nx_create): New declaration.
17235         * lib/gl_sublist.c: Don't include xalloc.h.
17236         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
17237         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
17238         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
17239         Change return type to 'int'. Return -1 upon out-of-memory.
17240         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
17241         upon out-of-memory.
17242         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
17243         NULL upon out-of-memory.
17244         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
17245         upon out-of-memory.
17246         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
17247         NULL upon out-of-memory.
17248         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
17249         NULL upon out-of-memory.
17250         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
17251         upon out-of-memory.
17252         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
17253         (gl_sublist_list_implementation): Update.
17254         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
17255         upon out-of-memory.
17256         * modules/sublist (Depends-on): Remove xalloc.
17257
17258         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
17259         * tests/test-carray_list.c: Likewise.
17260         * tests/test-linked_list.c: Likewise.
17261         * tests/test-linkedhash_list.c: Likewise.
17262         * tests/test-avltree_list.c: Likewise.
17263         * tests/test-rbtree_list.c: Likewise.
17264         * tests/test-avltreehash_list.c: Likewise.
17265         * tests/test-rbtreehash_list.c: Likewise.
17266         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
17267         * modules/carray-list-tests (Makefile.am): Likewise.
17268         * modules/linked-list-tests (Makefile.am): Likewise.
17269         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17270         * modules/avltree-list-tests (Makefile.am): Likewise.
17271         * modules/rbtree-list-tests (Makefile.am): Likewise.
17272         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17273         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17274
17275         * NEWS: Mention the changes.
17276
17277         * lib/clean-temp.c: Include gl_xlist.h.
17278         * modules/clean-temp (Depends-on): Add xlist.
17279
17280         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
17281         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
17282
17283         * tests/test-array_oset.c: Include gl_xlist.h.
17284         * modules/array-oset-tests (Depends-on): Add xlist.
17285
17286         Reported by José E. Marchesi <jemarch@gnu.org>.
17287
17288 2009-12-13  Bruno Haible  <bruno@clisp.org>
17289
17290         Move the malloc checking from module 'oset' to new module 'xoset'.
17291         * modules/xoset: New file.
17292         * lib/gl_xoset.h: New file.
17293         * lib/gl_xoset.c: New file.
17294         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
17295         declarations.
17296         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
17297         (struct gl_oset_implementation): Rename and change methods accordingly.
17298         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
17299         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17300         'int'. Mark as __warn_unused_result__.
17301         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
17302         gl_oset_create_empty.
17303         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17304         'int'.
17305         * lib/gl_array_oset.c: Don't include xalloc.h.
17306         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
17307         malloc, not xmalloc.
17308         (grow): Change return type to 'int'. Don't call xalloc_die.
17309         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
17310         to 'int'.
17311         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
17312         'int'.
17313         (gl_array_oset_implementation): Update.
17314         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
17315         gl_tree_create_empty.
17316         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
17317         'int'.
17318         * lib/gl_avltree_oset.c: Don't include xalloc.h.
17319         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17320         xmalloc.
17321         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17322         not xmalloc.
17323         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17324         xmalloc.
17325         (gl_avltree_oset_implementation): Update.
17326         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
17327         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17328         xmalloc.
17329         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17330         not xmalloc.
17331         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17332         xmalloc.
17333         (gl_rbtree_oset_implementation): Update.
17334         * modules/array-oset (Depends-on): Remove xalloc.
17335         * modules/avltree-oset (Depends-on): Likewise.
17336         * modules/rbtree-oset (Depends-on): Likewise.
17337         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
17338         * tests/test-avltree_oset.c: Likewise.
17339         * tests/test-rbtree_oset.c: Likewise.
17340         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17341         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
17342         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17343         * NEWS: Mention the change.
17344
17345 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
17346
17347         maint.mk: allow a project to override release-prep commands
17348         * top/maint.mk (alpha, beta, stable): Move release-preparatory
17349         commands into a new rule.
17350         (release-prep): New rule.
17351         (release-prep-hook): New overridable variable.
17352
17353 2009-12-13  Bruno Haible  <bruno@clisp.org>
17354
17355         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
17356
17357 2009-12-13  Jim Meyering  <meyering@redhat.com>
17358
17359         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
17360         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
17361
17362 2009-12-12  Bruno Haible  <bruno@clisp.org>
17363
17364         duplocale: Tweak.
17365         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
17366
17367 2009-12-12  Karl Berry  <karl@gnu.org>
17368
17369         * config/srclist.txt (strtoll.c): tab changes, no more sync.
17370
17371 2009-12-12  Bruno Haible  <bruno@clisp.org>
17372
17373         * m4/po.m4: Undo incorrect untabification.
17374
17375 2009-12-12  Bruno Haible  <bruno@clisp.org>
17376
17377         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
17378         * modules/c-strtod (Depends-on): Add locale.
17379         * modules/c-strtold (Depends-on): Likewise.
17380
17381 2009-12-12  Bruno Haible  <bruno@clisp.org>
17382
17383         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
17384
17385 2009-12-11  Eric Blake  <ebb9@byu.net>
17386
17387         setenv: relax requirement in light of POSIX ruling
17388         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
17389         not NULL.
17390         * tests/test-setenv.c (main): Relax test.
17391         * tests/test-unsetenv.c (main): Likewise.
17392         * doc/posix-functions/setenv.texi (setenv): Document this.
17393         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17394
17395 2009-12-11  Bruno Haible  <bruno@clisp.org>
17396
17397         New module 'fd-safer-flag'.
17398         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
17399         * lib/dup-safer.c (dup_safer_flag): Remove function.
17400         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
17401         * lib/fd-safer.c (fd_safer_flag): Remove function.
17402         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
17403         * modules/cloexec (configure.ac): Drop indicator macro.
17404         * modules/fd-safer-flag: New file.
17405         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
17406         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
17407         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
17408
17409 2009-12-11  Bruno Haible  <bruno@clisp.org>
17410
17411         Tests for module 'nl_langinfo'.
17412         * modules/nl_langinfo-tests: New file.
17413         * tests/test-nl_langinfo.sh: New file.
17414         * tests/test-nl_langinfo.c: New file.
17415
17416         New module 'nl_langinfo'.
17417         * lib/nl_langinfo.c: New file.
17418         * m4/nl_langinfo.m4: New file.
17419         * modules/nl_langinfo: New file.
17420         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
17421
17422 2009-12-11  Bruno Haible  <bruno@clisp.org>
17423
17424         Tests for module 'langinfo'.
17425         * modules/langinfo-tests: New file.
17426         * tests/test-langinfo.c: New file.
17427
17428         New module 'langinfo'.
17429         * lib/langinfo.in.h: New file.
17430         * m4/langinfo_h.m4: New file.
17431         * modules/langinfo: New file.
17432         * doc/posix-headers/langinfo.texi: Mention the new module.
17433
17434 2009-12-11  Bruno Haible  <bruno@clisp.org>
17435
17436         * lib/config.charset: Untabify.
17437
17438 2009-12-11  Bruno Haible  <bruno@clisp.org>
17439
17440         * modules/unistd-safer (configure.ac): Drop indicator macro.
17441
17442 2009-12-11  Bruno Haible  <bruno@clisp.org>
17443
17444         Move pipe2-safer code to its own file.
17445         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
17446         * lib/pipe-safer.c (pipe2_safer): Remove function.
17447         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
17448         (Makefile.am): Add it to lib_SOURCES.
17449
17450 2009-12-10  Bruno Haible  <bruno@clisp.org>
17451
17452         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
17453
17454 2009-12-10  Bruno Haible  <bruno@clisp.org>
17455
17456         Declare which arguments expect non-NULL values, for GCC and clang.
17457         * build-aux/arg-nonnull.h: New file.
17458         * modules/arg-nonnull: New file.
17459         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
17460         (inet_ntop, inet_pton): Use it.
17461         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
17462         (closedir, dirfd, opendir, scandir, alphasort): Use it.
17463         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
17464         (open, openat): Use it.
17465         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
17466         (fnmatch): Use it.
17467         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
17468         (getopt, getopt_long, getopt_long_only): Use it.
17469         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
17470         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
17471         Use it.
17472         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
17473         (iconv_open): Use it.
17474         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
17475         (strtoimax, strtoumax): Use it.
17476         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
17477         (duplocale): Use it.
17478         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
17479         (frexp, frexpl): Use it.
17480         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
17481         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
17482         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
17483         (tsearch, tfind, tdelete, twalk): Use it.
17484         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
17485         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17486         sigpending): Use it.
17487         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
17488         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17489         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17490         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17491         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17492         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17493         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17494         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17495         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17496         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17497         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17498         Use it.
17499         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
17500         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
17501         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
17502         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
17503         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
17504         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
17505         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
17506         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
17507         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
17508         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
17509         strtoull, unsetenv): Use it.
17510         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
17511         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17512         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17513         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17514         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17515         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
17516         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
17517         (strcasecmp, strncasecmp): Use it.
17518         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
17519         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
17520         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
17521         rpl_setsockopt): Use it.
17522         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
17523         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
17524         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
17525         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
17526         (gettimeofday): Use it.
17527         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
17528         (times): Use it.
17529         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
17530         (uname): Use it.
17531         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
17532         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
17533         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
17534         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
17535         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
17536         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
17537         unlinkat, write): Use it.
17538         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
17539         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
17540         * lib/argv-iter.h: Include arg-nonnull.h.
17541         (_ATTRIBUTE_NONNULL_): Remove macro.
17542         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
17543         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
17544         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
17545         optimization.
17546         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
17547         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
17548         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
17549         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
17550         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
17551         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
17552         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
17553         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
17554         * modules/arpa_inet (Depends-on): Add arg-nonnull.
17555         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
17556         * modules/dirent (Depends-on): Add arg-nonnull.
17557         (Makefile.am): Insert arg-nonnull.h into dirent.h.
17558         * modules/fcntl-h (Depends-on): Add arg-nonnull.
17559         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
17560         * modules/fnmatch (Depends-on): Add arg-nonnull.
17561         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
17562         * modules/getopt-posix (Depends-on): Add arg-nonnull.
17563         (Makefile.am): Insert arg-nonnull.h into getopt.h.
17564         * modules/glob (Depends-on): Add arg-nonnull.
17565         (Makefile.am): Insert arg-nonnull.h into glob.h.
17566         * modules/iconv_open (Depends-on): Add arg-nonnull.
17567         (Makefile.am): Insert arg-nonnull.h into iconv.h.
17568         * modules/inttypes (Depends-on): Add arg-nonnull.
17569         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
17570         * modules/locale (Depends-on): Add arg-nonnull.
17571         (Makefile.am): Insert arg-nonnull.h into locale.h.
17572         * modules/math (Depends-on): Add arg-nonnull.
17573         (Makefile.am): Insert arg-nonnull.h into math.h.
17574         * modules/netdb (Depends-on): Add arg-nonnull.
17575         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17576         * modules/search (Depends-on): Add arg-nonnull.
17577         (Makefile.am): Insert arg-nonnull.h into search.h.
17578         * modules/signal (Depends-on): Add arg-nonnull.
17579         (Makefile.am): Insert arg-nonnull.h into signal.h.
17580         * modules/spawn (Depends-on): Add arg-nonnull.
17581         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17582         * modules/stdio (Depends-on): Add arg-nonnull.
17583         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17584         * modules/stdlib (Depends-on): Add arg-nonnull.
17585         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17586         * modules/string (Depends-on): Add arg-nonnull.
17587         (Makefile.am): Insert arg-nonnull.h into string.h.
17588         * modules/strings (Depends-on): Add arg-nonnull.
17589         (Makefile.am): Insert arg-nonnull.h into strings.h.
17590         * modules/sys_socket (Depends-on): Add arg-nonnull.
17591         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17592         * modules/sys_stat (Depends-on): Add arg-nonnull.
17593         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17594         * modules/sys_time (Depends-on): Add arg-nonnull.
17595         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17596         * modules/sys_times (Depends-on): Add arg-nonnull.
17597         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17598         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17599         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17600         * modules/time (Depends-on): Add arg-nonnull.
17601         (Makefile.am): Insert arg-nonnull.h into time.h.
17602         * modules/unistd (Depends-on): Add arg-nonnull.
17603         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17604         * modules/wchar (Depends-on): Add arg-nonnull.
17605         (Makefile.am): Insert arg-nonnull.h into wchar.h.
17606         * modules/argv-iter (Depends-on): Add arg-nonnull.
17607         * tests/test-canonicalize.c (null_ptr): New function.
17608         (main): Use it.
17609         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
17610         (main): Use it.
17611         * tests/test-memmem.c (null_ptr): New function.
17612         (main): Use it.
17613         Reported by Jim Meyering.
17614
17615 2009-12-10  Bruno Haible  <bruno@clisp.org>
17616
17617         Use spaces for indentation, not tabs.
17618         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17619         * m4/*.m4: Untabify.
17620         * build-aux/*.h: Untabify.
17621         * tests/**/*.[hc]: Untabify.
17622         * README: New section "Indent with spaces, not TABs", based on
17623         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
17624         * NEWS: Mention the change.
17625
17626 2009-12-10  Bruno Haible  <bruno@clisp.org>
17627
17628         pty test: Fix link error.
17629         * modules/pty-tests (Makefile.am): Add the default LDADD value to
17630         test_pty_LDADD.
17631
17632 2009-12-07  Simon Josefsson  <simon@josefsson.org>
17633
17634         * modules/pty: New file.
17635         * modules/pty-tests: New file.
17636         * m4/pty.m4: New file.
17637         * tests/test-pty.c: New file.
17638         * doc/glibc-headers/pty.texi: Modified.
17639         * doc/glibc-functions/forkpty.texi: Modified.
17640         * doc/glibc-functions/openpty.texi: Modified.
17641
17642 2009-12-10  Bruno Haible  <bruno@clisp.org>
17643
17644         Avoid syntax error in C++ mode.
17645         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
17646
17647 2009-12-10  Bruno Haible  <bruno@clisp.org>
17648
17649         Use sed with option -e.
17650         * gnulib-tool (func_version, func_emit_copyright_notice,
17651         func_emit_initmacro_end, func_import, func_create_testdir): Pass
17652         option -e to sed.
17653         * modules/link-warning (Makefile.am): Likewise.
17654
17655 2009-12-10  Jim Meyering  <meyering@redhat.com>
17656
17657         mgetgroups: do not write bytes beyond end of malloc'd buffer
17658         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
17659         username, we call getgroups with a one-element-shorter buffer,
17660         but still told it the length was original, max_n_groups.
17661
17662 2009-12-09  Eric Blake  <ebb9@byu.net>
17663
17664         cloexec: relax license
17665         * modules/cloexec (Maintainer): Add myself.
17666         (License): Use LGPL, not GPL.
17667
17668         link-warning: optimize generation
17669         * modules/link-warning (Makefile.am): Reduce process usage.
17670
17671 2009-12-09  Bruno Haible  <bruno@clisp.org>
17672
17673         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
17674         workaround was added on 2009-11-17.
17675
17676 2009-12-09  Jim Meyering  <meyering@redhat.com>
17677             Bruno Haible  <bruno@clisp.org>
17678
17679         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
17680         * modules/link-warning (Makefile.am): Make the comment-removing sed
17681         command more robust in the face of bootstrap-prepended comment lines.
17682
17683 2009-12-09  Bruno Haible  <bruno@clisp.org>
17684
17685         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
17686         most one group.
17687
17688 2009-12-09  Simon Josefsson <simon@josefsson.org>
17689             Bruno Haible  <bruno@clisp.org>
17690
17691         * build-aux/link-warning.h: Add copyright notice.
17692         * modules/link-warning (Makefile.am): Generate link-warning.h from
17693         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
17694         * NEWS: Mention change in link-warning module.
17695         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
17696         * modules/dirent (Makefile.am): Add dependency to dirent.h.
17697         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
17698         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
17699         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
17700         * modules/math (Makefile.am): Add dependency to math.h.
17701         * modules/search (Makefile.am): Add dependency to search.h.
17702         * modules/signal (Makefile.am): Add dependency to signal.h.
17703         * modules/spawn (Makefile.am): Add dependency to spawn.h.
17704         * modules/stdio (Makefile.am): Add dependency to stdio.h.
17705         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
17706         * modules/string (Makefile.am): Add dependency to string.h.
17707         * modules/strings (Makefile.am): Add dependency to strings.h.
17708         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
17709         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
17710         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
17711         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
17712         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
17713         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
17714         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
17715         * modules/unistd (Makefile.am): Add dependency to unistd.h.
17716         * modules/wchar (Makefile.am): Add dependency to wchar.h.
17717
17718 2009-12-09  Bruno Haible  <bruno@clisp.org>
17719
17720         fchdir: Optimize away rpl_fstat when possible.
17721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
17722         REPLACE_OPEN_DIRECTORY.
17723         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
17724
17725 2009-12-09  Bruno Haible  <bruno@clisp.org>
17726
17727         * lib/fchdir.c: Update comment.
17728
17729 2009-12-09  Bruno Haible  <bruno@clisp.org>
17730
17731         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17732
17733 2009-12-08  Eric Blake  <ebb9@byu.net>
17734
17735         fchdir: avoid memory leak on re-registration.
17736         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17737
17738 2009-12-08  Jim Meyering  <meyering@redhat.com>
17739
17740         init.sh: avoid Solaris 10 /bin/sh portability problem
17741         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17742         sourced script:
17743           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17744           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17745           bar
17746         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17747         and two tests used that idiom.
17748         * tests/init.sh: Update suggested usage comments.
17749         (path_prepend_): New function, to be used in place
17750         of the --src-path=DIR option.
17751         (setup_): Move PATH-prepending code into path_prepend_.
17752         * tests/test-pread.sh: Adapt to new usage.
17753         * tests/test-xalloc-die.sh: Likewise.
17754
17755 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17756
17757         * doc/gnulib.texi (Glibc pty.h): Add.
17758         * doc/glibc-functions/forkpty.texi: Add.
17759         * doc/glibc-functions/openpty.texi: Add.
17760         Suggested by Bruno Haible.
17761
17762 2009-12-08  Eric Blake  <ebb9@byu.net>
17763
17764         fchdir: fix logic bugs
17765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17766         * tests/test-fchdir.c (main): Enhance test.
17767         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17768         is in use.
17769
17770         dup2: fix logic bugs
17771         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17772         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17773         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17774         exists.
17775         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17776
17777 2009-12-07  Eric Blake  <ebb9@byu.net>
17778
17779         unlink: fix m4 detection
17780         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17781
17782         unistd-safer: add unit test
17783         * modules/unistd-safer-tests: New file.
17784         * tests/test-dup-safer.c: Likewise.
17785         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17786         * tests/test-dup2.c (setmode): Likewise.
17787         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17788
17789         cloexec: preserve text vs. binary across dup_cloexec
17790         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17791         mode.
17792         * modules/dup2-tests (Depends-on): Add binary-io.
17793         * modules/cloexec-tests (Depends-on): Likewise.
17794         * tests/test-dup2.c (setmode, is_mode): New helpers.
17795         (main): Add tests that translation mode is preserved.
17796         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17797         Reported by Bruno Haible.
17798
17799         mgetgroups: reduce duplicate listings
17800         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17801         resulting array.
17802         * tests/test-chown.h (test_chown): Simplify client.
17803         * tests/test-lchown.h (test_lchown): Likewise.
17804
17805 2009-12-06  Bruno Haible  <bruno@clisp.org>
17806
17807         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17808         value.
17809
17810 2009-12-06  Bruno Haible  <bruno@clisp.org>
17811
17812         * lib/progname.c: Include stdio.h, stdlib.h.
17813         (set_program_name): Reject a NULL argument.
17814
17815 2009-12-05  Eric Blake  <ebb9@byu.net>
17816
17817         pipe2-safer: new module
17818         * modules/pipe2-safer: New file.
17819         * lib/unistd-safer.h (pipe2_safer): New prototype.
17820         * lib/unistd--.h (pipe2): New wrapper.
17821         * lib/pipe-safer.c (pipe2_safer): New function.
17822         * modules/pipe (Depends-on): Add pipe2-safer.
17823         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17824
17825         stdlib-safer: preserve cloexec flag for mkostemp[s]
17826         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17827         fd_safer_flag.
17828
17829         unistd-safer: allow preservation of cloexec status via flag
17830         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17831         prototypes.
17832         * lib/dup-safer.c (dup_safer_flag): New function.
17833         * lib/fd-safer.c (fd_safer_flag): Likewise.
17834         * modules/cloexec (configure.ac): Set witness.
17835
17836         test-dup2: enhance test
17837         * modules/dup2-tests (Depends-on): Add cloexec.
17838         * tests/test-dup2.c (main): Enhance test.
17839
17840         cloexec: add dup_cloexec
17841         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17842         header and comments.
17843         * lib/cloexec.c (set_cloexec_flag): Add comments.
17844         (dup_cloexec): New function, with mingw implementation borrowed
17845         from...
17846         * lib/w32spawn.h (dup_noinherit): ...here.
17847         * modules/execute (Depends-on): Add cloexec.
17848         * modules/pipe (Depends-on): Likewise.
17849         * modules/cloexec (Depends-on): Add dup2.
17850         * modules/cloexec-tests (Files): New file.
17851         * tests/test-cloexec.c: Likewise.
17852
17853         test-xalloc-die: fix test for mingw
17854         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17855         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17856         directory and .exe suffix off argv[0] output.
17857
17858         test-fseeko: fix test for mingw
17859         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17860         than undefining fseek, so test will pass on mingw.
17861
17862 2009-12-05  Bruno Haible  <bruno@clisp.org>
17863
17864         * lib/progname.h (set_program_name): Clarify specification.
17865         * lib/progname.c (set_program_name): Likewise.
17866         Reported by Jim Meyering.
17867
17868 2009-12-05  Jim Meyering  <meyering@redhat.com>
17869
17870         maint.mk: backslash-escape parens in default regexp
17871         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17872         backslash-escape the literal parentheses.
17873
17874         maint.mk: news-date-check: use grep -E
17875         * top/maint.mk (today): Define a Make variable, not a...
17876         (news-date-check): ...shell variable.
17877         (news-date-regexp): Use the Make variable.
17878         Use grep's -E option.  Change the failing diagnostic to mention
17879         the variable, $(news-date-regexp).
17880
17881 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17882
17883         maintainer-makefile: allow customization of NEWS entry format
17884         * top/maint.mk (news-date-regexp): New overridable variable.
17885         (news-date-check): Use it.
17886
17887 2009-12-04  Eric Blake  <ebb9@byu.net>
17888
17889         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17890         * lib/mgetgroups.h (xgetgroups): New prototype.
17891         * lib/mgetgroups.c (xgetgroups): New wrapper.
17892         (mgetgroups): Handle ENOSYS.
17893         * modules/mgetgroups (Depends-on): Add realloc.
17894         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17895
17896         mgetgroups: avoid argument promotion issues with -1
17897         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17898         for invalid gid_t.
17899         * tests/test-chown.h (getegid, test_chown): Likewise.
17900         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17901
17902 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17903
17904         exclude: Fix header file problems.
17905         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17906
17907 2009-12-01  Jim Meyering  <meyering@redhat.com>
17908
17909         fts: fts_open: do not let an empty string cause immediate failure
17910         This is required in support of GNU rm, for which the command
17911         "rm A '' B" must process and remove both A and B, in spite of
17912         the empty string argument.
17913         * lib/fts.c (fts_open): Do not let the presence of an empty string
17914         cause fts_open to fail immediately.  Most fts-using tools must be
17915         able to process all arguments, in order, and can be expected to
17916         diagnose such arguments themselves.
17917
17918 2009-11-30  Eric Blake  <ebb9@byu.net>
17919
17920         utimens: fix compilation error
17921         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17922         Declare variable at right scope.
17923
17924 2009-11-29  Jim Meyering  <meyering@redhat.com>
17925
17926         bootstrap: handle perl-5.11's changed --version output
17927         * build-aux/bootstrap (get_version): Handle perl separately,
17928         since perl-5.11's --version output is different.
17929
17930 2009-11-28  Jim Meyering  <meyering@redhat.com>
17931
17932         userspec: depend on the inttostr module, too
17933         * modules/userspec (Depends-on): Add inttostr.
17934
17935         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17936         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17937         number of MAXUID when it evaluates to (uid_t) -1.
17938         Likewise for group ID.  Reported by Matt McCutchen in
17939         <http://savannah.gnu.org/bugs/?28113>
17940
17941         userspec: reformat to use spaces, not TABs
17942         * lib/userspec.c: Expand TABs to spaces.
17943         Add Emacs' "indent-tabs-mode: nil" hint.
17944
17945 2009-11-27  Eric Blake  <ebb9@byu.net>
17946
17947         getopt-gnu: flush out another BSD bug
17948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17949         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17950         flush out BSD bug.
17951         * tests/test-getopt.h (test_getopt): End lists with NULL.
17952         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17953         (test_getopt_long_posix): Enhance test.
17954         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17955         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17956         getopt-gnu.
17957         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17958         Likewise.
17959
17960 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17961
17962         * modules/idpriv-droptemp-tests (Notice): Fix text.
17963
17964 2009-11-27  Jim Meyering  <meyering@redhat.com>
17965
17966         test-xalloc-die: avoid spurious failure due to libtool argv difference
17967         In a libtool-enabled project, this test would fail due to a difference
17968         in the emitted program name, e.g.,
17969         -test-xalloc-die: memory exhausted
17970         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17971         Use program to avoid that.
17972         * modules/xalloc-die-tests (Depends-on): Add progname.
17973         * tests/test-xalloc-die.c: Include progname.h".
17974         (program_name): Remove decl.
17975         (main): Call set_program_name.
17976         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17977
17978 2009-11-26  Richard Jones  <rjones@redhat.com>
17979
17980         w32sock: leave win32 error in place.
17981         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17982
17983 2009-11-26  Eric Blake  <ebb9@byu.net>
17984
17985         init.sh: suggest to use skip_ and fail_ functions in comments
17986         * tests/init.sh: Add a sentence.
17987
17988 2009-11-25  Bruno Haible  <bruno@clisp.org>
17989
17990         init.sh: add documentation in comments
17991         * tests/init.sh: Add some developer and user documentation.
17992
17993 2009-11-26  Jim Meyering  <meyering@redhat.com>
17994
17995         init.sh: accommodate even those who specify bogus srcdir manually
17996         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17997         configure-time tests to be sanitized, so that there is no need to
17998         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17999         (with no double quotes) suffices.  However, since tests may be
18000         invoked manually, and since you may explicitly set srcdir to the
18001         name of a directory containing spaces, do quote its uses here.
18002         * tests/test-pread.sh: Likewise.
18003         Suggested by Bruno Haible.
18004
18005         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
18006         * tests/test-pread.sh: Write no data into the pipe, because
18007         test-pread actually reads none.  This avoids a diagnostic,
18008         "bash: echo: write error: Broken pipe", that arises in the unusual
18009         event something is ignoring SIGPIPE, and might be interpreted
18010         as some sort of failure.  Reported by Bruno Haible.
18011
18012 2009-11-25  Jim Meyering  <meyering@redhat.com>
18013
18014         test-pread: cover failure with ESPIPE and EINVAL
18015         * tests/test-pread.c (main): Test for failure, too.
18016         * tests/test-pread.sh: Invoke with stdin on a pipe.
18017         Suggested by Eric Blake.
18018
18019         pread: improvement and fix
18020         * modules/pread (Depends-on): Depend on lseek, for portability to
18021         e.g., mingw.  Suggested by Eric Blake.
18022         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
18023
18024         unistd.in.h: correct declaration of pread
18025         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
18026         Reported by Richard W.M. Jones.
18027
18028         test-pread.sh: distribute the test script
18029         * modules/pread-tests (Files): Include test-pread.sh.
18030
18031         test-pread.sh: clean up
18032         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
18033         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
18034         That is unnecessary, since it's always ".".
18035         Suggestion from Eric Blake.
18036
18037         test-pread.sh: make executable
18038         * tests/test-pread.sh: Set executable bit.
18039         Reported by Eric Blake.
18040
18041         correct typo in test-pread.sh
18042         * tests/test-pread.sh: Add #! line.
18043
18044         test pread
18045         * tests/test-pread.c: New file.
18046         * tests/test-pread.sh: Likewise.
18047         * modules/pread-tests: Likewise.
18048
18049         pread: new module
18050         * modules/pread: New file.
18051         * lib/unistd.in.h (pread): Define/declare.
18052         * lib/pread.c (pread): New file.
18053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
18054         * modules/unistd (Makefile.am): Substitute witnesses.
18055         * doc/posix-functions/pread.texi (pread): Update.
18056         * MODULES.html.sh: Add pread.
18057
18058 2009-11-25  Jim Meyering  <meyering@redhat.com>
18059
18060         tests/init.sh: new file to be used via most *.sh tests
18061         * tests/init.sh: New file.
18062
18063 2009-11-25  Eric Blake  <ebb9@byu.net>
18064
18065         utimens: work around older Linux failure with symlinks
18066         * lib/utimens.c (lutimensat_works_really): New variable.
18067         (fdutimens, lutimens): Use it to manage kernels that support
18068         nanosecond times on files, but not on symlinks.
18069         Reported by OndÅ™ej Vašík.
18070
18071         utimes: fix configure grammar
18072         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
18073
18074 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
18075
18076         regex: Fix fastmap for multibyte character ranges.
18077         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
18078         characters when a multibyte character range is included.
18079
18080 2009-11-22  Andy Wingo  <wingo@pobox.com>
18081
18082         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
18083         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
18084
18085 2009-11-24  Bruno Haible  <bruno@clisp.org>
18086
18087         doc: Most *_l functions exist in MacOS X 10.5.
18088         * doc/posix-functions/duplocale.texi: Update platforms list.
18089         * doc/posix-functions/freelocale.texi: Likewise.
18090         * doc/posix-functions/newlocale.texi: Likewise.
18091         * doc/posix-functions/uselocale.texi: Likewise.
18092         * doc/posix-functions/isalnum_l.texi: Likewise.
18093         * doc/posix-functions/isalpha_l.texi: Likewise.
18094         * doc/posix-functions/isblank_l.texi: Likewise.
18095         * doc/posix-functions/iscntrl_l.texi: Likewise.
18096         * doc/posix-functions/isdigit_l.texi: Likewise.
18097         * doc/posix-functions/isgraph_l.texi: Likewise.
18098         * doc/posix-functions/islower_l.texi: Likewise.
18099         * doc/posix-functions/isprint_l.texi: Likewise.
18100         * doc/posix-functions/ispunct_l.texi: Likewise.
18101         * doc/posix-functions/isspace_l.texi: Likewise.
18102         * doc/posix-functions/isupper_l.texi: Likewise.
18103         * doc/posix-functions/iswalnum_l.texi: Likewise.
18104         * doc/posix-functions/iswalpha_l.texi: Likewise.
18105         * doc/posix-functions/iswblank_l.texi: Likewise.
18106         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18107         * doc/posix-functions/iswctype_l.texi: Likewise.
18108         * doc/posix-functions/iswdigit_l.texi: Likewise.
18109         * doc/posix-functions/iswgraph_l.texi: Likewise.
18110         * doc/posix-functions/iswlower_l.texi: Likewise.
18111         * doc/posix-functions/iswprint_l.texi: Likewise.
18112         * doc/posix-functions/iswpunct_l.texi: Likewise.
18113         * doc/posix-functions/iswspace_l.texi: Likewise.
18114         * doc/posix-functions/iswupper_l.texi: Likewise.
18115         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18116         * doc/posix-functions/isxdigit_l.texi: Likewise.
18117         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
18118         * doc/posix-functions/strcasecmp_l.texi: Likewise.
18119         * doc/posix-functions/strcoll_l.texi: Likewise.
18120         * doc/posix-functions/strfmon_l.texi: Likewise.
18121         * doc/posix-functions/strftime_l.texi: Likewise.
18122         * doc/posix-functions/strncasecmp_l.texi: Likewise.
18123         * doc/posix-functions/strxfrm_l.texi: Likewise.
18124         * doc/posix-functions/tolower_l.texi: Likewise.
18125         * doc/posix-functions/toupper_l.texi: Likewise.
18126         * doc/posix-functions/towctrans_l.texi: Likewise.
18127         * doc/posix-functions/towlower_l.texi: Likewise.
18128         * doc/posix-functions/towupper_l.texi: Likewise.
18129         * doc/posix-functions/wcscoll_l.texi: Likewise.
18130         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18131         * doc/posix-functions/wctrans_l.texi: Likewise.
18132         * doc/posix-functions/wctype_l.texi: Likewise.
18133         * doc/glibc-functions/strptime_l.texi: Likewise.
18134         * doc/glibc-functions/strtod_l.texi: Likewise.
18135         * doc/glibc-functions/strtof_l.texi: Likewise.
18136         * doc/glibc-functions/strtol_l.texi: Likewise.
18137         * doc/glibc-functions/strtold_l.texi: Likewise.
18138         * doc/glibc-functions/strtoll_l.texi: Likewise.
18139         * doc/glibc-functions/strtoul_l.texi: Likewise.
18140         * doc/glibc-functions/strtoull_l.texi: Likewise.
18141         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18142         * doc/glibc-functions/wcstod_l.texi: Likewise.
18143         * doc/glibc-functions/wcstof_l.texi: Likewise.
18144         * doc/glibc-functions/wcstol_l.texi: Likewise.
18145         * doc/glibc-functions/wcstold_l.texi: Likewise.
18146         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18147         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18148         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18149
18150 2009-11-24  Bruno Haible  <bruno@clisp.org>
18151
18152         duplocale: Fix logic bug.
18153         * lib/duplocale.c: Don't include <langinfo.h>.
18154         (_NL_LOCALE_NAME): Remove macro.
18155         (rpl_duplocale): Use setlocale instead of nl_langinfo.
18156         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
18157
18158 2009-11-23  Jim Meyering  <meyering@redhat.com>
18159
18160         test-update-copyright: don't hard-code /usr/bin/perl
18161         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
18162         perl to print the current year.  Gilles Espinasse reported that
18163         the replaced use of perl was hard-coded as /usr/bin/perl.
18164
18165 2009-11-23  Bruno Haible  <bruno@clisp.org>
18166
18167         duplocale: Add support for glibc 2.3.x.
18168         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
18169
18170 2009-11-22  Bruno Haible  <bruno@clisp.org>
18171
18172         vasnprintf: Tiny optimization.
18173         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
18174         MacOS X.
18175
18176 2009-11-22  Bruno Haible  <bruno@clisp.org>
18177
18178         Tests for module 'duplocale'.
18179         * modules/duplocale-tests: New file.
18180         * tests/test-duplocale.c: New file.
18181
18182         New module 'duplocale'.
18183         * m4/duplocale.m4: New file.
18184         * lib/locale.in.h (duplocale): New declaration.
18185         * lib/duplocale.c: New file.
18186         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
18187         gl_LOCALE_H_DEFAULTS): New macros.
18188         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
18189         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
18190         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
18191         REPLACE_DUPLOCALE.
18192         * modules/duplocale: New file.
18193         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
18194
18195 2009-11-22  Bruno Haible  <bruno@clisp.org>
18196
18197         * modules/locale-tests (configure.ac): Test for newlocale function.
18198         * tests/test-locale.c: When the system has extended locale functions,
18199         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
18200
18201         locale: Make locale_t available when possible.
18202         * lib/locale.in.h: Include <xlocale.h> when it exists.
18203         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
18204         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
18205         * modules/locale (Depends-on): Add extensions.
18206         (Makefile.am): Also substitute HAVE_XLOCALE_H.
18207         * doc/posix-headers/locale.texi: Document the problem with locale_t.
18208
18209 2009-11-22  Bruno Haible  <bruno@clisp.org>
18210
18211         Add comments.
18212         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
18213         invocation.
18214         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18215         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18216         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18217
18218 2009-11-22  Bruno Haible  <bruno@clisp.org>
18219
18220         error: account for the possibility of freopen (stdout).
18221         * lib/error.c: Include <unistd.h>.
18222         (flush_stdout): New function, extracted from error and error_at_line.
18223         Determine stdout's fd dynamically.
18224         (error, error_at_line): Invoke flush_stdout.
18225         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
18226         * modules/error (Depends-on): Add unistd.
18227
18228 2009-11-22  Bruno Haible  <bruno@clisp.org>
18229
18230         diffseq: Add comment.
18231         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
18232
18233 2009-11-22  Jim Meyering  <meyering@redhat.com>
18234
18235         c-stack: avoid defining an unused static function
18236         * lib/c-stack.c (find_stack_direction): Do not define this function
18237         when it will not be used.
18238
18239         diffseq: avoid spurious gcc warnings
18240         * lib/diffseq.h (IF_LINT2): Define.
18241         (compareseq): Use it to initialize two members of "part".
18242         This avoids two used-uninitialized warnings.
18243
18244 2009-11-21  Jim Meyering  <meyering@redhat.com>
18245
18246         c-stack: avoid "ignoring return value of `write'" warning
18247         * lib/c-stack.c: Include "ignore-value.h".
18248         (die): Explicitly ignore each write return value.
18249         * modules/c-stack (Depends-on): Add ignore-value.
18250
18251 2009-11-21  Bruno Haible  <bruno@clisp.org>
18252
18253         diffseq: reduce scope of variable 'best'.
18254         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
18255         variable, earlier used for two different purposes.
18256
18257 2009-11-21  Jim Meyering  <meyering@redhat.com>
18258
18259         diffseq: remove useless assignment to "best"
18260         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
18261         assignment.  At that point "best" is already guaranteed to be zero.
18262
18263 2009-11-20  Eric Blake  <ebb9@byu.net>
18264
18265         build: mention ftp redirector in release announcements
18266         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
18267         values that used to come from cfg.mk; mention FTP redirect URL.
18268         * build-aux/announce-gen: Mention the mirror list.
18269         Suggested by Karl Berry.
18270
18271         nanosleep: improve port to mingw
18272         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
18273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
18274         LIB_NANOSLEEP, but only when needed.
18275         * modules/select (Link): Document LIBSOCKET.
18276         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
18277         enough.
18278
18279         nanosleep: work around cygwin bug
18280         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
18281         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
18282         bug.
18283         (getnow): Delete, not needed.
18284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
18285         LIB_CLOCK_GETTIME.
18286         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
18287         clock-time, gettime.
18288         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
18289         bug.
18290         * modules/nanosleep-tests: New test.
18291         * tests/test-nanosleep.c: New file.
18292
18293         sleep: work around cygwin bug
18294         * lib/sleep.c (rpl_sleep): Work around the bug.
18295         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
18296         (gl_PREREQ_SLEEP): Delete unused macro.
18297         * modules/sleep (Depends-on): Add verify.
18298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18299         * modules/unistd (Makefile.am): Substitute witness.
18300         * lib/unistd.in.h (sleep): Update prototype.
18301         * doc/posix-functions/sleep.texi (sleep): Document the bug.
18302         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
18303         * modules/sleep-tests (Depends-on): Check for alarm.
18304
18305 2009-11-20  Jim Meyering  <meyering@redhat.com>
18306
18307         maint.mk: improve sc_prohibit_magic_number_exit
18308         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
18309         so it does not match uses like System.exit(1).
18310         Add comments showing how to correct all offenders.
18311
18312 2009-11-19  Eric Blake  <ebb9@byu.net>
18313
18314         xalloc-die-tests: add missing library
18315         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
18316
18317         test-xvasprintf: silence compiler warnings
18318         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
18319         empty string from gcc.
18320
18321 2009-11-19  Jim Meyering  <meyering@redhat.com>
18322
18323         xfreopen: new module, from coreutils
18324         * modules/xfreopen: New module.
18325         * lib/xfreopen.c: New file.
18326         * lib/xfreopen.h: New file.
18327         * MODULES.html.sh (File stream based Input/Output"): Add it.
18328
18329 2009-11-19  Eric Blake  <ebb9@byu.net>
18330
18331         manywarnings: depend on warnings
18332         * modules/manywarnings (Depends-on): Add warnings.
18333
18334         build: avoid compiler warnings
18335         * lib/select.c (rpl_select): Delete unused variable.
18336         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
18337
18338 2009-11-18  Eric Blake  <ebb9@byu.net>
18339
18340         tests: avoid false negative with --with-packager
18341         * tests/test-version-etc.sh: Discard packager information.
18342         * tests/test-argp-version-etc-1.sh: Likewise.
18343         Reported by Mike Frysinger.
18344
18345         utimens: fix regression on Solaris
18346         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
18347         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
18348         can only change fd timestamps via futimesat.  Instead, use an
18349         additional witness macro to avoid BSD bug.
18350         Reported by Jim Meyering.
18351
18352 2009-11-17  Eric Blake  <ebb9@byu.net>
18353
18354         usleep: use it to simplify tests
18355         * modules/stat-time-tests (Depends-on): Add usleep.
18356         (configure.ac): Drop usleep check.
18357         * modules/chown-tests (Depends-on, configure.ac): Likewise.
18358         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
18359         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
18360         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
18361         * modules/openat-tests (Depends-on, configure.ac): Likewise.
18362         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
18363         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
18364         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
18365         Likewise.
18366         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
18367         * tests/test-lchown.h (nap): Likewise.
18368         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
18369         * tests/test-stat-time.c (nap): Likewise.
18370         * tests/test-utimens-common.h (nap): Update comments.
18371
18372         usleep: new module
18373         * modules/usleep: New file.
18374         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18375         * lib/usleep.c (usleep): Likewise.
18376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18377         * modules/unistd (Makefile.am): Substitute witnesses.
18378         * lib/unistd.in.h (usleep): Add declaration.
18379         * doc/pastposix-functions/usleep.texi (usleep): Document this.
18380         * MODULES.html.sh (Date and time): Likewise.
18381         * modules/usleep-tests (Depends-on): New test.
18382         * tests/test-usleep.c: New file.
18383
18384         chown: work around OpenBSD bug
18385         * lib/chown.c (rpl_chown): Work around the bug.
18386         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
18387         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
18388         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
18389         * modules/chown (Depends-on): Add stdbool.
18390         * modules/lchown (Depends-on): Likewise.
18391         * doc/posix-functions/chown.texi (chown): Document the bug.
18392         * doc/posix-functions/lchown.texi (lchown): Likewise.
18393         * tests/test-lchown.h (test_chown): Relax test.
18394
18395         mkstemp: avoid conflict with C++ keyword template
18396         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
18397         * lib/mkostemp.c (mkostemp): Likewise.
18398         * lib/mkostemps.c (mkostemps): Likewise.
18399         * lib/mkstemp.c (mkstemp): Likewise.
18400         * lib/mkstemps.c (mkstemps): Likewise.
18401
18402         xalloc-die-tests: optimize
18403         * tests/test-xalloc-die.sh: Reduce number of processes.
18404
18405 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18406
18407         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
18408         patch from ludo@gnu.org (Ludovic Courtès).
18409
18410 2009-11-17  Jim Meyering  <meyering@redhat.com>
18411
18412         version-etc: use proper license string
18413         * modules/version-etc (License): Use LGPL, not LGPLv3+.
18414         * modules/version-etc-fsf: Likewise.
18415
18416 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18417
18418         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
18419         printed to stdout.  Deal with EOL differences.
18420
18421 2009-11-17  Eric Blake  <ebb9@byu.net>
18422
18423         unsetenv: work around Solaris bug
18424         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
18425         * lib/unsetenv.c (rpl_unsetenv): Work around it.
18426         Reported by Jim Meyering.
18427
18428         vasnprintf: avoid compiler warnings
18429         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
18430         variables.
18431         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
18432
18433 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18434
18435         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
18436         settings since xalloc-die is no longer the self test,
18437         xalloc-die.sh is.
18438
18439 2009-11-17  Jim Meyering  <meyering@redhat.com>
18440
18441         test-xalloc-die.sh: make the code agree with the commit log
18442         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
18443         at the end, just in case you happen to have a test-xalloc-die
18444         program in some other PATH directory.
18445
18446         test-xalloc-die.sh: fix a portability bug
18447         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
18448         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
18449         Otherwise, argv[0] (as often seen in diagnostics) would be too
18450         system-dependent, sometimes with, and sometimes without the leading "./".
18451
18452         version-etc-fsf: relax license to LGPLv3+
18453         * modules/version-etc-fsf (License): Relax license.
18454
18455 2009-11-16  Eric Blake  <ebb9@byu.net>
18456
18457         xalloc-die-tests: avoid printing null pointer
18458         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
18459         shell script.
18460         * tests/test-xalloc-die.c (program_name): Declare.
18461         * tests/test-xalloc-die.sh (tmpfiles): New file.
18462
18463         setenv, unsetenv: work around various bugs
18464         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
18465         (setenv) [HAVE_SETENV]: Work around bugs.
18466         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
18467         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
18468         for bugs.
18469         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
18470         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
18471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
18472         * modules/stdlib (Makefile.am): Update substitutions.
18473         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
18474         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
18475         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18476         * modules/setenv-tests: New test.
18477         * modules/unsetenv-tests: Likewise.
18478         * tests/test-setenv.c: New file.
18479         * tests/test-unsetenv.c: Likewise.
18480
18481 2009-11-16  Jim Meyering  <meyering@redhat.com>
18482
18483         version-etc: relax license to LGPLv3+
18484         * modules/version-etc (License): Relax license.
18485
18486         better AC_REQUIRE expanded-before-required-warning avoidance
18487         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
18488         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
18489         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
18490         which is no longer needed.
18491
18492 2009-11-16  Eric Blake  <ebb9@byu.net>
18493
18494         test-freading: clean up temporary file
18495         * tests/test-freading.c (main): Remove file on success, and use
18496         ASSERT more liberally.
18497         Reported by Jim Meyering.
18498
18499 2009-11-16  Jim Meyering  <meyering@redhat.com>
18500
18501         avoid new AC_REQUIRE expanded-before-required warnings
18502         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
18503         merely using it.
18504         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
18505         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
18506
18507 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18508
18509         * tests/test-xalloc-die.c: New file.
18510         * modules/xalloc-die-tests: New file.
18511         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
18512         XFAIL_TESTS so it can be appended by modules.
18513
18514 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18515
18516         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
18517         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
18518
18519 2009-11-14  Eric Blake  <ebb9@byu.net>
18520
18521         fnmatch: avoid compiler warning
18522         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
18523         to silence compiler warning about mismatch signedness in ?:.
18524         Reported by Robert Millan.
18525
18526         intprops: add double-inclusion guard
18527         * lib/intprops.h: Allow idempotent includes.
18528         Suggested by Bruce Korb.
18529
18530         openat: detect Solaris fchownat bug
18531         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
18532         penalizing glibc chownat when only lchownat is broken.
18533         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
18534         trailing slash bugs.
18535         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
18536         * modules/openat-tests (Files): Include more files.
18537         (Depends-on): Add mgetgroups, sleep, stat-time.
18538         (configure.ac): Add additional checks.
18539         (Makefile.am): Build new test.
18540         * tests/test-fchownat.c: New file.
18541
18542         lchown: detect Solaris and FreeBSD bug
18543         * lib/lchown.c (rpl_lchown): Work around bug.
18544         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
18545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18546         * modules/unistd (Makefile.am): Populate it.
18547         * lib/unistd.in.h (lchown): Update declaration.
18548         * doc/posix-functions/lchown.texi (lchown): Document the bug.
18549         * modules/lchown-tests: New file.
18550         * tests/test-lchown.h (test_lchown): Likewise.
18551         * tests/test-lchown.c (main): Likewise.
18552
18553         chown: detect Solaris and FreeBSD bug
18554         * lib/chown.c (rpl_chown): Work around bug.
18555         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
18556         (gl_PREREQ_CHOWN): Delete.
18557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18558         * modules/unistd (Makefile.am): Populate it.
18559         * lib/unistd.in.h (chown): Update declaration.
18560         * lib/lchown.c (chown): Update client.
18561         * modules/lchown (Depends-on): Add lstat.
18562         * doc/posix-functions/chown.texi (chown): Document the bug.
18563         * doc/posix-functions/getgroups.texi (getgroups): Document
18564         getgroups pitfall.
18565         * modules/chown-tests: New file.
18566         * tests/test-chown.h (test_chown): Likewise.
18567         * tests/test-chown.c (main): Likewise.
18568
18569 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
18570
18571         gnulib-tool: correctly detect absence of m4 directories
18572         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18573
18574 2009-11-14  Jim Meyering  <meyering@redhat.com>
18575
18576         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18577         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18578
18579 2009-11-14  John W. Eaton  <jwe@gnu.org>
18580
18581         strftime.h: wrap funtion declaration in extern "C" block
18582         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18583
18584 2009-11-13  Eric Blake  <ebb9@byu.net>
18585
18586         getgroups: avoid compiler warning
18587         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18588
18589         getgroups: work around FreeBSD bug
18590         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18591         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18592         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18593         * tests/test-getgroups.c (main): Fix buffer overrun.
18594
18595         getgroups: avoid compilation failure
18596         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18597         * modules/getgroups (Depends-on): Add stdint.
18598
18599 2009-11-13  Jim Meyering  <meyering@redhat.com>
18600
18601         test-getgroups: avoid compilation failure
18602         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18603
18604 2009-11-13  Eric Blake  <ebb9@byu.net>
18605
18606         mgetgroups: new module, taken from coreutils
18607         * modules/mgetgroups: New file.
18608         * lib/mgetgroups.h: Likewise.
18609         * lib/mgetgroups.c (mgetgroups): Likewise.
18610         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
18611         * MODULES.html.sh (Users and groups): Mention it.
18612
18613         getgroups: don't expose GETGROUPS_T to user
18614         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
18615         an element at a time if GETGROUPS_T is wrong size.
18616         * lib/getugroups.h (getugroups): Change signature.
18617         * lib/unistd.in.h (getgroups): Likewise.
18618         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
18619         signature needs fixing.
18620         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
18621         AC_TYPE_GETGROUPS.
18622         * modules/group-member (Depends-on): Add getgroups.
18623         * lib/group-member.c (group_info, get_group_info): Use gid_t.
18624         (group_member): Rely on getgroups replacement.
18625         * lib/getugroups.c (getugroups): Use gid_t.
18626         * tests/test-getgroups.c (main): Likewise.
18627         * NEWS: Mention the signature change.
18628         * doc/posix-functions/getgroups.texi (getgroups): Mention the
18629         problem with signature.
18630         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
18631         GETGROUPS_T is still useful for setgroups.
18632
18633         getgroups, getugroups: provide stubs for mingw
18634         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
18635         * lib/getugroups.c (getugroups): Likewise.
18636         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
18637         function.  Modernize replacement scheme.
18638         (gl_PREREQ_GETGROUPS): Delete.
18639         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
18640         * modules/getgroups (configure.ac): Declare witness.
18641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18642         * modules/unistd (Depends-on): Substitute witness.
18643         * lib/unistd.in.h (getgroups): Declare replacement.
18644
18645         getgroups: avoid calling exit
18646         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
18647         drop xalloc.
18648         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
18649         dependencies.
18650         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
18651         exiting, in the rare case of malloc failure.
18652
18653         getgroups: fix logic error
18654         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
18655         has more than 20 groups.
18656         * modules/getgroups-tests: New test.
18657         * tests/test-getgroups.c: New file.
18658
18659 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18660
18661         * tests/test-base64.c: Improve.
18662
18663 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18664
18665         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
18666         Blake <ebb9@byu.net>.
18667
18668 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18669
18670         * tests/test-xvasprintf.c: Add %s%s related checks.
18671
18672 2009-11-12  Eric Blake  <ebb9@byu.net>
18673
18674         version-etc: match standards.texi style
18675         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
18676         and use <> only for URLs.
18677
18678 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
18679
18680         fts: do not fail on a submount during traversal
18681         * lib/fts.c (fts_build): Read the stat info again after opening
18682         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
18683         Original report at http://bugzilla.redhat.com/501848.
18684
18685 2009-11-12  Jim Meyering  <meyering@redhat.com>
18686
18687         bootstrap: sync from coreutils
18688         * build-aux/bootstrap (bootstrap_epilogue): New function.
18689         Use git_modules_config in one more place.  This make bootstrap's
18690         --gnulib-srcdir option more useful for testing.
18691
18692         bootstrap: generalize autoheader check
18693         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
18694         AC_CONFIG_HEADERS.
18695
18696 2009-11-11  Eric Blake  <ebb9@byu.net>
18697
18698         mkfifoat: use new modules for Solaris and BSD bugs
18699         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
18700         * lib/mkfifoat.c (mknodat): Split...
18701         * lib/mknodat.c (mknodat): ...into new file.
18702         * modules/mkfifoat (Files): Ship new file.
18703         (Depends-on): Add mkfifo, mknod.
18704         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
18705         (Depends-on): Add symlink.
18706         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
18707         redundant with test_mkfifo.h.
18708         (do_mkfifoat, do_mknodat): New helpers.
18709
18710         mknod: new module
18711         * modules/mknod: New file.
18712         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18713         * lib/mknod.c (mknod): Likewise.
18714         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18715         defaults.
18716         * modules/sys_stat (Makefile.am): Substitute them.
18717         * lib/sys_stat.in.h (mknod): Declare replacement.
18718         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18719         Document it.
18720         * doc/posix-functions/mknod.texi (mknod): Likewise.
18721         * modules/mknod-tests: New test.
18722         * tests/test-mknod.c: Likewise.
18723
18724         mkfifo: new module
18725         * modules/mkfifo: New file.
18726         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18727         * lib/mkfifo.c (mkfifo): Likewise.
18728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18729         defaults.
18730         * modules/sys_stat (Makefile.am): Substitute them.
18731         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18732         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18733         Document it.
18734         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18735         * modules/mkfifo-tests: New test.
18736         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18737         from test-mkfifoat.c.
18738         * tests/test-mkfifo.c: New file.
18739
18740         readlink: detect FreeBSD bug
18741         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18742         slash on symlink.
18743         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18744         * tests/test-readlink.h (test_readlink): Enhance test.
18745
18746         symlink: detect FreeBSD bug
18747         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18748         slash on symlink.
18749         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18750         * tests/test-symlink.h (test_symlink): Enhance test.
18751
18752 2009-11-10  Eric Blake  <ebb9@byu.net>
18753
18754         link: detect FreeBSD bug
18755         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18756         symlink.
18757         * doc/posix-functions/link.texi (link): Document the bug.
18758         * tests/test-link.h (test_link): Enhance test.
18759         * tests/test-linkat.c (main): Update caller.
18760
18761         unlink, remove: detect FreeBSD bug
18762         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18763         slash on symlink.
18764         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18765         * doc/posix-functions/remove.texi (remove): Likewise.
18766         * tests/test-unlink.h (test_unlink): Enhance test.
18767         * tests/test-remove.c (main): Likewise.
18768
18769 2009-11-09  Eric Blake  <ebb9@byu.net>
18770
18771         rename: detect FreeBSD bug
18772         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18773         slash on symlink.
18774         * modules/renameat-tests (Depends-on): Add filenamecat.
18775         * tests/test-rename.h (test_rename): Allow one more errno.
18776         * tests/test-renameat.c (main): Likewise.
18777         * doc/posix-functions/rename.texi (rename): Document the bug.
18778
18779         open: detect FreeBSD bug
18780         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18781         symlink.
18782         * doc/posix-functions/open.texi (open): Document the bug.
18783         * doc/posix-functions/utimes.texi (utimes): Likewise.
18784         * tests/test-open.h (test_open): Add parameters, and test symlink
18785         handling.
18786         * tests/test-open.c (main): Adjust caller.
18787         * tests/test-fcntl-safer.c (main): Likewise.
18788         * modules/open-tests (Depends-on): Add stdbool, symlink.
18789         * modules/fcntl-safer-tests (Depends-on): Likewise.
18790         * tests/test-openat.c (main): Add test-open tests.
18791
18792         stat: detect FreeBSD bug
18793         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18794         symlink.
18795         * doc/posix-functions/stat.texi (stat): Document the bug.
18796         * tests/test-stat.h (test_stat_func): Add argument.
18797         * tests/test-stat.c (main): Adjust caller.
18798         * tests/test-fstatat.c (main): Likewise.
18799         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18800         Reported by Jim Meyering.
18801
18802 2009-11-09  James Youngman  <jay@gnu.org>
18803
18804         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18805         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18806
18807 2009-11-08  Jim Meyering  <meyering@redhat.com>
18808
18809         utimens: remove invalid futimesat call
18810         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18811         It used the file descriptor of the target file as the DIR_FD
18812         parameter and NULL as the file name.  That caused failure with
18813         errno == EFAULT on FreeBSD-8.0-rc2
18814
18815 2009-11-07  Eric Blake  <ebb9@byu.net>
18816
18817         fflush, freadseek: use fseeko, not fseek
18818         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18819         (clear_ungetc_buffer): Avoid potential problems on large files.
18820         * lib/freadseek.c (freadseek): Likewise.
18821         * modules/freadseek (Depends-on): Add fseeko.
18822         * modules/fseek (configure.ac): Set a witness.
18823         * tests/test-fflush.c (main): Use fseeko.
18824         * tests/test-fpurge.c (fseek): Disable link warning.
18825         * tests/test-freadable.c (fseek): Likewise.
18826         * tests/test-freading.c (fseek): Likewise.
18827         * tests/test-fseeko.c (fseek): Likewise.
18828         * tests/test-ftell.c (fseek): Likewise.
18829         * tests/test-ftello.c (fseek): Likewise.
18830         * tests/test-fwritable.c (fseek): Likewise.
18831         * tests/test-fwriting.c (fseek): Likewise.
18832
18833 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18834
18835         * modules/memchr (Depends-on): Drop getpagesize dependency.
18836
18837 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18838
18839         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18840         Reported by Ludovic Courtès.
18841         * build-aux/pmccabe2html: Improve example usage.
18842         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18843
18844 2009-11-06  Jim Meyering  <meyering@redhat.com>
18845
18846         do-release-commit-and-tag: New module.
18847         Automate the release-commit and tag process.
18848         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18849         * modules/do-release-commit-and-tag: New file.
18850         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18851
18852 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18853
18854         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18855         because test-select.c uses inet_pton.
18856
18857 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18858
18859         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18860         GETADDRINFO_LIB.  Bump serial number.
18861         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18862         Suggested by Eric Blake <ebb9@byu.net>.
18863
18864 2009-11-05  Eric Blake  <ebb9@byu.net>
18865
18866         strtod: detect darwin bug
18867         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18868         Reported by Leo Davis.
18869
18870         freopen-safer: new module
18871         * modules/freopen-safer: New module.
18872         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18873         * lib/freopen-safer.c (freopen_safer): New file.
18874         * lib/stdio-safer.h (freopen_safer): New declaration.
18875         * lib/stdio--.h (freopen): New override.
18876         * MODULES.html.sh (File stream based Input/Output): Mention it.
18877         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18878         freopen-safer module.
18879         * doc/posix-functions/stderr.texi (stderr): Likewise.
18880         * doc/posix-functions/stdin.texi (stdin): Likewise.
18881         * doc/posix-functions/stdout.texi (stdout): Likewise.
18882         * modules/freopen-safer-tests: New test.
18883         * tests/test-reopen-safer.c: New file.
18884
18885 2009-11-05  Jim Meyering  <meyering@redhat.com>
18886
18887         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18888         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18889
18890 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18891
18892         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18893
18894 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18895
18896         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18897
18898 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18899
18900         Fix link error.
18901         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18902         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18903
18904 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18905
18906         * tests/test-func.c: Also test value of __func__.
18907
18908 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18909
18910         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18911         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18912
18913 2009-11-05  Bruno Haible  <bruno@clisp.org>
18914
18915         Fix link error.
18916         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18917         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18918         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18919
18920 2009-11-05  Bruno Haible  <bruno@clisp.org>
18921
18922         Tests for module 'inet_pton'.
18923         * modules/inet_pton-tests: New file.
18924         * tests/test-inet_pton.c: New file.
18925
18926 2009-11-05  Bruno Haible  <bruno@clisp.org>
18927
18928         Tests for module 'inet_ntop'.
18929         * modules/inet_ntop-tests: New file.
18930         * tests/test-inet_ntop.c: New file.
18931
18932 2009-11-04  Eric Blake  <ebb9@byu.net>
18933
18934         stdlib-safer: wrap all mkstemp variants
18935         * modules/mkostemp (configure.ac): Set witness.
18936         * modules/mkostemps (configure.ac): Likewise.
18937         * modules/mkstemps (configure.ac): Likewise.
18938         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18939         (mkstemps_safer): Wrap more functions.
18940         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18941         wrapping.
18942         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18943         (mkstemps_safer): Implement the wrappers.
18944
18945         mkstemps, mkostemps: new modules
18946         * modules/mkostemps: New module.
18947         * modules/mkstemps: Likewise.
18948         * lib/mkostemps.c (mkostemps): New file.
18949         * lib/mkstemps.c (mkstemps): Likewise.
18950         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18951         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18953         * modules/stdlib (Makefile.am): Substitute them.
18954         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18955         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18956         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18957         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18958         * MODULES.html.sh (File system functions): Mention them.
18959
18960         tempname: resync from glibc
18961         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18962         same values for __GT_FILE as glibc.  Abort even when assertions
18963         are disabled.
18964         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18965         match its value otherwise.  Allow idempotent inclusion.
18966         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18967         * lib/mkostemp.c (mkostemp): Likewise.
18968         * lib/mkstemp.c (mkstemp): Likewise.
18969         * lib/tmpfile.c (tmpfile): Likewise.
18970         * NEWS: Document this.
18971
18972         utimens: fix use of futimens on older Linux
18973         * lib/utimens.c (fdutimens): Use updated, rather than original,
18974         timespec to avoid bug in older Linux kernel.
18975         Reported by Simon Josefsson.
18976
18977 2009-11-04  Bruno Haible  <bruno@clisp.org>
18978
18979         Make num_processors more flexible and consistent.
18980         * lib/nproc.h (enum nproc_query): New type.
18981         (num_processors): Add a 'query' argument.
18982         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18983         (num_processors): Add a 'query' argument. Test the value of the
18984         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18985         mingw, count the number of CPUs available for the current process.
18986         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18987         Check for sched_getaffinity and sched_getaffinity_np.
18988         * modules/nproc (Depends-on): Add c-ctype, extensions.
18989         * NEWS: Mention the change.
18990
18991 2009-11-03  Bruno Haible  <bruno@clisp.org>
18992
18993         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18994
18995 2009-11-03  Jim Meyering  <meyering@redhat.com>
18996
18997         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18998         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18999         if it is defined.
19000
19001 2009-11-02  Eric Blake  <ebb9@byu.net>
19002
19003         mktime, timegm: share common declaration
19004         * lib/mktime-internal.h: New file.
19005         * lib/mktime.c: Use it rather than open-coding a declaration.
19006         * lib/timegm.c: Likewise.
19007         * modules/mktime (Files): Ship it.
19008         * modules/timegm (Files): Likewise.
19009         Suggested by Bruno Haible.
19010
19011         test-update-copyright: update test to match script changes
19012         * tests/test-update-copyright.sh: Avoid hard-coding perl
19013         location.  Don't update *.bak created by earlier runs.
19014
19015 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19016             Simon Josefsson  <simon@josefsson.org>
19017             Bruno Haible  <bruno@clisp.org>
19018
19019         Fix link error on Solaris 8.
19020         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
19021         also in libnsl. Define also INET_PTON_LIB.
19022         * modules/inet_pton (Link): New section.
19023
19024 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19025             Bruno Haible  <bruno@clisp.org>
19026
19027         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
19028         * modules/inet_ntop (Link): New section.
19029         Reported by Boyan Kasarov <bkasarov@gmail.com>.
19030
19031 2009-11-02  Eric Blake  <ebb9@byu.net>
19032
19033         maint: avoid compiler warnings in m4 macros
19034         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
19035         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
19036
19037 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19038
19039         * m4/pmccabe2html.m4: Remove file.
19040         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
19041         function.  Change maintainer.
19042         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
19043         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
19044         Courtès).
19045
19046 2009-10-31  Eric Blake  <ebb9@byu.net>
19047
19048         fseeko: fix m4 regression
19049         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
19050         regression from 2009-10-27.
19051         Reported by Ralf Wildenhues.
19052
19053 2009-10-31  Jim Meyering  <meyering@redhat.com>
19054
19055         inttostr: aesthetics and improved (compile-time) safety
19056         Define inttype_is_signed rather than inttype_is_unsigned,
19057         since the sole use is via "#if inttype_is_signed".
19058         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
19059         inttype_is_unsigned.
19060         * lib/offtostr.c (inttype_is_signed): Likewise.
19061         * lib/uinttostr.c (inttype_is_signed): Likewise.
19062         * lib/umaxtostr.c (inttype_is_signed): Likewise.
19063         * lib/inttostr.c (inttostr): Use verify to cross-check the
19064         inttype_is_signed value and the signedness of the actual type.
19065         * modules/inttostr (Depends-on): Add verify.
19066
19067 2009-10-30  Eric Blake  <ebb9@byu.net>
19068
19069         build: avoid compiler warnings
19070         * lib/fchmodat.c (lchmod): Mark unused variables.
19071         * lib/getopt.c (_getopt_initialize): Likewise.
19072         * lib/mktime.c (__mktime_internal): Provide prototype.
19073         * lib/inttostr.c (inttostr): Avoid compiler warning even with
19074         older gcc that do not understand #pragma GCC diagnostic.
19075         * lib/uinttostr.c (inttype_is_unsigned): Define.
19076         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
19077
19078 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19079
19080         stat: fix compilation on AIX
19081         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
19082         only see struct stat64.
19083
19084 2009-10-30  Eric Blake  <ebb9@byu.net>
19085
19086         exclude: make more robust
19087         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
19088         rather than masking a coding bug.
19089         Suggested by Bruno Haible.
19090
19091 2009-10-30  Jim Meyering  <meyering@redhat.com>
19092
19093         perl scripts: remove #!/usr/bin/perl in favor of more portable...
19094         Rather than putting #!/usr/bin/perl on the first line,
19095         start with a variant of what's recommended by "man perlrun" that
19096         invokes the first "perl" program from your shell's search path.
19097         * build-aux/gitlog-to-changelog: Replace #!... as above.
19098         Add a "Local Variables" perl mode setting.
19099         Prompted by a patch from Ludovic Courtès.
19100         Improved by Eric Blake.
19101         * build-aux/useless-if-before-free: Likewise.
19102         * build-aux/announce-gen: Likewise.
19103         * build-aux/update-copyright: Likewise.
19104
19105 2009-10-29  Eric Blake  <ebb9@byu.net>
19106
19107         filenamecat-lgpl: adjust clients
19108         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
19109         filenamecat.
19110         * modules/renameat (Depends-on): Likewise.
19111
19112         filenamecat: split into filenamecat-lgpl
19113         * modules/filenamecat-lgpl: New module.
19114         * modules/filenamecat (Files): Move library-safe files into
19115         filenamecat-lgpl.
19116         (Depends-on): Add filenamecat-lgpl.
19117         (configure.ac): Declare witness.
19118         * lib/filenamecat.h (file_name_concat): Only declare when using
19119         GPL module.
19120         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
19121         Move...
19122         * lib/filenamecat-lgpl.c: ...into new file.
19123         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
19124         (gl_FILE_NAME_CONCAT): Use it.
19125         * MODULES.html.sh (File system functions): Mention new module.
19126
19127         argp: avoid memory leak
19128         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
19129         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
19130         base_name, since the latter malloc()s and can call exit().
19131         Leak introduced 2006-07-03.
19132
19133         dirname-lgpl: adjust clients that don't need full dirname
19134         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
19135         * modules/filenamecat (Depends-on): Likewise.
19136         * modules/linkat (Depends-on): Likewise.
19137         * modules/mkancesdirs (Depends-on): Likewise.
19138         * modules/mkdir (Depends-on): Likewise.
19139         * modules/openat (Depends-on): Likewise.
19140         * modules/savewd (Depends-on): Likewise.
19141         * modules/rename (Depends-on): Likewise.
19142         (License): Relax license.
19143         * modules/mkdir-tests (Depends-on): Drop progname.
19144         (Makefile.am): Delete unneeded LDADD.
19145         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
19146
19147         dirname: split into dirname-lgpl
19148         * modules/dirname-lgpl: New module.
19149         * modules/dirname (Files): Move library-safe files into
19150         dirname-lgpl.
19151         (Depends-on): Add dirname-lgpl.
19152         (configure.ac): Declare witness.
19153         * modules/double-slash-root (License): Relax license.
19154         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
19155         module.
19156         * lib/dirname.c (dir_len, mdir_name): Move...
19157         * lib/dirname-lgpl.c: ...into new file.
19158         * lib/basename.c (last_component, base_len): Move...
19159         * lib/basename-lgpl.c: ...into new file.
19160         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
19161         (gl_DIRNAME): Use it.
19162         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
19163         Mention new module.
19164         * modules/dirname-tests (Depends-on): Add progname.
19165         * tests/test-dirname.c (program_name): Delete.
19166
19167         mkdir: make safe for libraries
19168         * modules/mkdir (Depends-on): Drop xalloc.
19169         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
19170         exit.
19171
19172         tests: avoid some compiler warnings
19173         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
19174         literals.
19175         * tests/test-memchr.c (main): Avoid type mismatch.
19176         * tests/test-arpa_inet.c (main): Avoid unused parameters.
19177         * tests/test-base64.c (main): Likewise.
19178         * tests/test-getdelim.c (main): Likewise.
19179         * tests/test-gethostname.c (main): Likewise.
19180         * tests/test-getline.c (main): Likewise.
19181         * tests/test-netinet_in.c (main): Likewise.
19182         * tests/test-select.c (open_server_socket, main): Likewise.
19183         * tests/test-select-stdin.c (main): Likewise.
19184         * tests/test-sockets.c (main): Likewise.
19185         * tests/test-strsignal.c (main): Likewise.
19186         * tests/test-sys_select.c (main): Likewise.
19187         * tests/test-sys_socket.c (main): Likewise.
19188         * tests/test-u64.c (main): Likewise.
19189         * tests/test-xfprintf-posix.c (main): Likewise.
19190         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
19191
19192         sockets: avoid compiler warning
19193         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
19194
19195         maint: detect usage(1) and other suspicious exits
19196         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
19197
19198 2009-10-29  Jim Meyering  <meyering@redhat.com>
19199
19200         timespec: long-to-int truncation could make timespec_cmp malfunction
19201         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
19202         a multiple of 2^32 nanoseconds as no difference.
19203
19204 2009-10-28  Jim Meyering  <meyering@redhat.com>
19205
19206         fprintftime: wrap macro code argument in "do {...} while(0)"
19207         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
19208         cpy macro must be a statement that can be followed by a semicolon.
19209         Now that the else clause contains a comment and is hence longer
19210         than one line, I require curly braces.  That in turn requires
19211         that we wrap this code block in the standard do...while(0).
19212
19213         fprintftime: remove stray semicolon from previous change
19214         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
19215
19216         fprintftime: avoid a warning about ignored fwrite return value
19217         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
19218         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
19219         that is unsafe.
19220         * modules/fprintftime (Depends-on): Add ignore-value.
19221
19222         exclude: avoid an unwarranted warning
19223         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
19224
19225 2009-10-27  Eric Blake  <ebb9@byu.net>
19226
19227         fseek: avoid compilation failure when fflush is replaced
19228         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19229         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
19230         module is in use.
19231         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
19232         module is not in use; since REPLACE_FSEEK worked otherwise.
19233         (GNULIB_FTELLO): Likewise for ftell.
19234         Reported by Ian Beckwith and others.
19235
19236 2009-10-27  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
19239         Reported by Jim Meyering.
19240
19241 2009-10-27  Jim Meyering  <jim@meyering.net>
19242             Bruno Haible  <bruno@clisp.org>
19243
19244         Avoid warning despite dropping the return value of fwrite.
19245         * lib/unicodeio.c: Include ignore-value.h.
19246         (fwrite_success_callback): Explicitly ignore fwrite's return value.
19247         * modules/unicodeio (Depends-on): Add ignore-value.
19248
19249 2009-10-26  Eric Blake  <ebb9@byu.net>
19250
19251         areadlinkat: fix fallback path
19252         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
19253         pointer and zero.
19254
19255 2009-10-22  Pádraig Brady  <P@draigBrady.com>
19256
19257         Use a better IO block size for modern systems
19258         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
19259         * lib/md2.c: Likewise.
19260         * lib/md4.c: Likewise.
19261         * lib/md5.c: Likewise.
19262         * lib/sha1.c: Likewise.
19263         * lib/sha256.c: Likewise.
19264         * lib/sha512.c: Likewise.
19265
19266 2009-10-22  Eric Blake  <ebb9@byu.net>
19267
19268         tests: avoid several compiler warnings
19269         * tests/test-getcwd.c (main): Avoid buffer underflow.
19270         * tests/test-getdate.c (main): String literals are not safe with
19271         putenv, so use setenv.  Declare unused argument.
19272         * modules/getdate-tests (Depends-on): Add setenv.
19273         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
19274         problems with string literals in char *.
19275         * tests/test-hash.c (main): Avoid shadowing declaration.
19276         (insert_new): Treat string literals as char const *.
19277         * tests/test-getopt.h (test_getopt): Likewise.
19278         (getopt_loop): Alter types to minimize casting elsewhere.
19279         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
19280         (test_getopt_long_posix): Likewise.
19281         (do_getopt_long): Add wrapper to minimize casting.
19282         * tests/test-atexit.c (clear_temp_file): Use void.
19283         * tests/test-areadlink-with-size.c (main): Declare unused
19284         arguments.
19285         * tests/test-areadlink.c (main): Likewise.
19286         * tests/test-areadlinkat-with-size.c (main): Likewise.
19287         * tests/test-areadlinkat.c (main): Likewise.
19288         * tests/test-canonicalize-lgpl.c (main): Likewise.
19289         * tests/test-canonicalize.c (main): Likewise.
19290         * tests/test-dirent-safer.c (main): Likewise.
19291         * tests/test-dirname.c (main): Likewise.
19292         * tests/test-dup2.c (main): Likewise.
19293         * tests/test-fchdir.c (main): Likewise.
19294         * tests/test-fcntl-h.c (main): Likewise.
19295         * tests/test-fcntl-safer.c (main): Likewise.
19296         * tests/test-fdopendir.c (main): Likewise.
19297         * tests/test-fdutimensat.c (main): Likewise.
19298         * tests/test-fflush.c (main): Likewise.
19299         * tests/test-filenamecat.c (main): Likewise.
19300         * tests/test-filevercmp.c (main): Likewise.
19301         * tests/test-fopen-safer.c (main): Likewise.
19302         * tests/test-fopen.c (main): Likewise.
19303         * tests/test-fpending.c (main): Likewise.
19304         * tests/test-fpurge.c (main): Likewise.
19305         * tests/test-freading.c (main): Likewise.
19306         * tests/test-fstatat.c (main): Likewise.
19307         * tests/test-fsync.c (main): Likewise.
19308         * tests/test-futimens.c (main): Likewise.
19309         * tests/test-getndelim2.c (main): Likewise.
19310         * tests/test-gettimeofday.c (main): Likewise.
19311         * tests/test-getopt.c (main): Likewise.
19312         * tests/test-i-ring.c (main): Likewise.
19313         * tests/test-inttypes.c (main): Likewise.
19314         * tests/test-link.c (main): Likewise.
19315         * tests/test-lstat.c (main): Likewise.
19316         * tests/test-math.c (main): Likewise.
19317         * tests/test-md5.c (main): Likewise.
19318         * tests/test-memchr2.c (main): Likewise.
19319         * tests/test-memrchr.c (main): Likewise.
19320         * tests/test-mkdir.c (main): Likewise.
19321         * tests/test-mkdirat.c (main): Likewise.
19322         * tests/test-mkfifoat.c (main): Likewise.
19323         * tests/test-open.c (main): Likewise.
19324         * tests/test-openat-safer.c (main): Likewise.
19325         * tests/test-openat.c (main): Likewise.
19326         * tests/test-quotearg.c (main): Likewise.
19327         * tests/test-rawmemchr.c (main): Likewise.
19328         * tests/test-readlink.c (main): Likewise.
19329         * tests/test-remove.c (main): Likewise.
19330         * tests/test-rename.c (main): Likewise.
19331         * tests/test-renameat.c (main): Likewise.
19332         * tests/test-rmdir.c (main): Likewise.
19333         * tests/test-sha1.c (main): Likewise.
19334         * tests/test-signal.c (main): Likewise.
19335         * tests/test-sigaction.c (main): Likewise.
19336         * tests/test-stat.c (main): Likewise.
19337         * tests/test-stat-time.c (main): Likewise.
19338         * tests/test-stddef.c (main): Likewise.
19339         * tests/test-stdint.c (main): Likewise.
19340         * tests/test-stdio.c (main): Likewise.
19341         * tests/test-stdlib.c (main): Likewise.
19342         * tests/test-strchrnul.c (main): Likewise.
19343         * tests/test-strerror.c (main): Likewise.
19344         * tests/test-string.c (main): Likewise.
19345         * tests/test-strtod.c (main): Likewise.
19346         * tests/test-strverscmp.c (main): Likewise.
19347         * tests/test-symlink.c (main): Likewise.
19348         * tests/test-symlinkat.c (main): Likewise.
19349         * tests/test-sys_stat.c (main): Likewise.
19350         * tests/test-sys_time.c (main): Likewise.
19351         * tests/test-time.c (main): Likewise.
19352         * tests/test-unistd.c (main): Likewise.
19353         * tests/test-unlink.c (main): Likewise.
19354         * tests/test-unlinkat.c (main): Likewise.
19355         * tests/test-utimens.c (main): Likewise.
19356         * tests/test-utimensat.c (main): Likewise.
19357         * tests/test-version-etc.c (main): Likewise.
19358         * tests/test-wchar.c (main): Likewise.
19359         * tests/test-wctype.c (main): Likewise.
19360         * tests/test-xprintf-posix.c (main): Likewise.
19361         * tests/test-posixtm.c (main): Likewise.
19362         (STREQ): Delete unused macro.
19363         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
19364         shadowed variables.
19365         * tests/test-memchr.c (main): Likewise.
19366
19367 2009-10-21  Eric Blake  <ebb9@byu.net>
19368
19369         areadlinkat: avoid failure on older glibc
19370         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
19371         rather than mis-comparing 0 against FUNC_RESULT of char*.
19372
19373 2009-10-21  Bruno Haible  <bruno@clisp.org>
19374
19375         * modules/stpncpy (License): Relicense under LGPLv2+.
19376         Reported by David Lutterkort <lutter@redhat.com>.
19377
19378 2009-10-20  Eric Blake  <ebb9@byu.net>
19379
19380         utimensat: work around Solaris 9 bug
19381         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
19382         has trailing slash bugs.
19383         * tests/test-lutimens.h (test_lutimens): Enhance test.
19384         * tests/test-utimens.h (test_utimens): Likewise.
19385         * doc/posix-functions/utime.texi (utime): Enhance documentation.
19386         * doc/posix-functions/utimes.texi (utimes): Likewise.
19387         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19388         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
19389         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
19390         * doc/posix-functions/futimens.texi (futimens): Likewise.
19391
19392         fdutimensat: new module
19393         * modules/fdutimensat: New file.
19394         * lib/fdutimensat.c (fdutimensat): Likewise.
19395         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
19396         * MODULES.html.sh (File system functions): Mention module.
19397         * modules/fdutimensat-tests: New test.
19398         * tests/test-fdutimensat.c: Likewise.
19399
19400         doc: regenerate INSTALL
19401         * doc/INSTALL: Reflect recent autoconf update.
19402         * doc/INSTALL.ISO: Likewise.
19403         * doc/INSTALL.UTF-8: Likewise.
19404
19405 2009-10-20  Pádraig Brady  <P@draigBrady.com>
19406
19407         acl: warn if ACL support is not detected
19408         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
19409
19410 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
19411
19412         * lib/nproc.h: Add extern "C" block for C++.
19413
19414 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
19415             Bruno Haible  <bruno@clisp.org>
19416
19417         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
19418         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
19419         * doc/posix-functions/isalpha.texi: Likewise.
19420         * doc/posix-functions/isblank.texi: Likewise.
19421         * doc/posix-functions/iscntrl.texi: Likewise.
19422         * doc/posix-functions/isdigit.texi: Likewise.
19423         * doc/posix-functions/isgraph.texi: Likewise.
19424         * doc/posix-functions/islower.texi: Likewise.
19425         * doc/posix-functions/isprint.texi: Likewise.
19426         * doc/posix-functions/ispunct.texi: Likewise.
19427         * doc/posix-functions/isspace.texi: Likewise.
19428         * doc/posix-functions/isupper.texi: Likewise.
19429         * doc/posix-functions/isxdigit.texi: Likewise.
19430
19431 2009-10-18  Bruno Haible  <bruno@clisp.org>
19432
19433         Tests for module 'isblank'.
19434         * modules/isblank-tests: New file.
19435         * tests/test-isblank.c: New file.
19436
19437         New module 'isblank'.
19438         * lib/isblank.c: New file.
19439         * m4/isblank.m4: New file.
19440         * modules/isblank: New file.
19441         * doc/posix-functions/isblank.texi: Mention the new module.
19442
19443 2009-10-18  Bruno Haible  <bruno@clisp.org>
19444
19445         New module 'ctype'.
19446         * lib/ctype.in.h: New file.
19447         * m4/ctype.m4: New file.
19448         * modules/ctype: New file.
19449         * doc/posix-headers/ctype.texi: Mention the new module.
19450
19451 2009-10-18  Jim Meyering  <meyering@redhat.com>
19452
19453         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
19454         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
19455         right after its initialization, rather than farther down.
19456         Keeping these in close proximity makes it easier to ensure
19457         that each such variable is initialized.  E.g.,
19458
19459             LIB_CLOCK_GETTIME=
19460             AC_SUBST([LIB_CLOCK_GETTIME])
19461
19462         This change also increments these serial numbers.
19463         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
19464         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19466
19467 2009-10-18  Bruno Haible  <bruno@clisp.org>
19468
19469         Don't let environment variables perturb build.
19470         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
19471         (gl_PREREQ_GETHRXTIME): ... not here.
19472
19473 2009-10-18  Bruno Haible  <bruno@clisp.org>
19474
19475         Avoid symlink attack in localcharset module.
19476         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
19477         (O_NOFOLLOW): Define fallback.
19478         (get_charset_aliases): Don't open the file if it is a symbolic link.
19479         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
19480         gl_FCNTL_H.
19481         (gl_FCNTL_H): Require it.
19482         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
19483         * modules/localcharset (Files): Add m4/fcntl_h.m4.
19484         Reported by Fergal Glynn <fglynn@veracode.com>.
19485
19486 2009-10-18  Bruno Haible  <bruno@clisp.org>
19487
19488         Implement nproc for mingw.
19489         * lib/nproc.c: Include <windows.h>
19490         (num_processors): On native Windows platforms, try GetSystemInfo.
19491
19492 2009-10-18  Bruno Haible  <bruno@clisp.org>
19493
19494         Implement nproc for IRIX.
19495         * lib/nproc.c: Include <sys/sysmp.h>.
19496         (num_processors): On IRIX systems, try sysmp.
19497         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
19498
19499 2009-10-18  Bruno Haible  <bruno@clisp.org>
19500
19501         Implement nproc for HP-UX.
19502         * lib/nproc.c: Include <sys/pstat.h>
19503         (num_processors): On HP-UX systems, try pstat_getdynamic.
19504         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
19505         pstat_getdynamic.
19506
19507 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
19508             Bruno Haible  <bruno@clisp.org>
19509
19510         Implement nproc for NetBSD, OpenBSD.
19511         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
19512         (ARRAY_SIZE): New macro.
19513         (num_processors): On BSD systems, try sysctl of HW_NCPU.
19514         * m4/nproc.m4: New file.
19515         * modules/nproc (Files): Add m4/nproc.m4.
19516         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
19517         (Makefile.am): Instead, augment lib_SOURCES.
19518
19519 2009-10-18  Bruno Haible  <bruno@clisp.org>
19520
19521         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
19522         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
19523         sys/param.h.
19524
19525 2009-10-16  Eric Blake  <ebb9@byu.net>
19526
19527         utimensat: new module
19528         * modules/utimensat: New file.
19529         * lib/utimensat.c (utimensat): Likewise.
19530         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19531         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
19532         so we can work around Linux bugs.
19533         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19534         * modules/sys_stat (Makefile.am): Substitute them.
19535         * lib/sys_stat.in.h (utimensat): Declare it.
19536         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19537         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19538         * modules/utimensat-tests: New test.
19539         * tests/test-utimensat.c: Likewise.
19540
19541         utimens: let lutimens work on non-symlinks
19542         * lib/utimens.c (lutimens): Fall back to utimens rather than
19543         failing with ENOSYS, when file is not a symlink.
19544         (utimens): Reduce redirection.
19545         * tests/test-lutimens.h (test_lutimens): Update test to cover
19546         non-symlinks.
19547         * tests/test-utimens.h (test_utimens): Update test to cover
19548         symlinks.
19549         * tests/test-utimens.c (main): Update caller.
19550
19551         utimens: cache whether utimensat syscall works
19552         * lib/utimens.c (utimensat_works_really): New cache variable.
19553         (fdutimens, lutimens): Use it to avoid failing syscall.
19554
19555         test-stat-time, test-utimens: improve portability
19556         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
19557         ext4 on alpha, and for cygwin.
19558         * tests/test-utimens-common.h: New file.
19559         (nap): Factor delays into single function.
19560         * tests/test-lutimens.h (test_lutimens): Use new header.
19561         * tests/test-futimens.h (test_futimens): Likewise.
19562         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
19563         timestamps to occur from same machine, as was done previously for
19564         test_utimens.
19565         * modules/utimens-tests (Files): Ship new file.
19566         * modules/futimens-tests (Files): Likewise.
19567         Reported in part by Jim Meyering.
19568
19569         sys_stat: sort replacement declarations
19570         * lib/sys_stat.in.h: Sort declarations.
19571         * lib/futimens.c (futimens): Fix typo.
19572
19573 2009-10-15  Jim Meyering  <meyering@redhat.com>
19574
19575         don't let environment settings perturb build
19576         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19577         could cause a configure-time and/or build-time malfunction.
19578         Typically, a configure-time function-in-library test is performed
19579         via code like this:
19580
19581           LIB_VAR=
19582           AC_SUBST([LIB_VAR])
19583           prefix_saved_LIBS=$LIBS
19584             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19585                        [test "$ac_cv_search_FUNC" = "none required" ||
19586                         LIB_VAR=$ac_cv_search_FUNC])
19587           LIBS=$prefix_saved_LIBS
19588
19589         However, in each of the files affected by this change, the LIB_VAR=
19590         initialization was omitted.  Thus, when set in the environment, its
19591         value would propagate into generated Makefiles when FUNC is not found
19592         in LIB_NAME.
19593         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19594         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19596
19597 2009-10-14  Eric Blake  <ebb9@byu.net>
19598
19599         fchdir: avoid infinite recursion in mingw
19600         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19601         recursing.
19602
19603         test-stat-time: port to mingw
19604         * tests/test-stat-time.c (force_unlink): Return a value.
19605         (test_ctime) [W32]: Fix compilation error.
19606         (nap): Don't call usleep with too large an argument.  Use
19607         force_unlink.
19608         * doc/pastposix-functions/usleep.texi (usleep): Document the
19609         portability issue.
19610
19611 2009-10-13  Jim Meyering  <meyering@redhat.com>
19612
19613         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
19614         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19615         * modules/pipe-filter-ii: Likewise.
19616         * modules/sys_socket-tests: Likewise.
19617         * modules/tsearch-tests: Likewise.
19618         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
19619         (check): Depend on it.
19620
19621 2009-10-12  Eric Blake  <ebb9@byu.net>
19622
19623         utimens-tests: port to NFS file systems
19624         * tests/test-utimens.h (test_utimens): Refactor utimecmp
19625         comparisons to avoid spurious failures from timestamp drift
19626         between NFS machines.
19627
19628 2009-10-12  Eric Blake  <ebb9@byu.net>
19629
19630         stat-time-tests: minor cleanups
19631         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
19632         * tests/test-stat-time.c (nap): Separate assignment from call.
19633         Suggested by Paolo Bonzini and Bruno Haible.
19634
19635         sys_stat: guarantee struct timespec
19636         * lib/sys_stat.in.h (includes): Always include <time.h>
19637         * modules/sys_stat (Depends-on): Add time.
19638         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
19639         mode_t permission values.
19640         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
19641         get at subsecond timestamps.
19642
19643 2009-10-10  Eric Blake  <ebb9@byu.net>
19644
19645         futimens: new module
19646         * modules/futimens: New file.
19647         * lib/futimens.c (futimens): Likewise.
19648         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
19649         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
19650         we can work around Linux bugs.
19651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19652         * modules/sys_stat (Makefile.am): Substitute them.
19653         * lib/sys_stat.in.h (futimens): Declare it.
19654         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19655         * doc/posix-functions/futimens.texi (futimens): Likewise.
19656         * modules/futimens-tests: New test.
19657         * tests/test-futimens.c: Likewise.
19658
19659         utimens: introduce fdutimens
19660         * lib/utimens.h (fdutimens): New prototype.
19661         * lib/utimens.c (gl_futimens): Move guts...
19662         (fdutimens): ...to new interface.
19663         * tests/test-utimens.c (do_fdutimens): Use it.
19664
19665         utimens: add UTIME_NOW and UTIME_OMIT support
19666         * lib/utimens.c (validate_timespec, update_timespec): New helper
19667         functions.
19668         (gl_futimens, lutimens): Use them.
19669         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
19670         stdbool, sys_stat.
19671         (Link): Mention resulting library dependency.
19672         * modules/utimecmp (Link): Likewise.
19673         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
19674         (Makefile.am): Pick up library dependency.
19675         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
19676         definition.
19677         * tests/test-sys_stat.c: Test the definitions.
19678         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
19679         * NEWS: Document library dependency.
19680
19681         utimecmp: support symlink timestamps
19682         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
19683         hashing when possible.  Use pathconf when available.
19684         (SYSCALL_RESOLUTION): Recognize tighter resolution.
19685         * modules/utimecmp (Depends-on): Add lstat.
19686
19687         utimens: add lutimens interface
19688         * lib/utimens.c (lutimens): New function.
19689         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
19690         * lib/utimens.h (lutimens): Declare new interface.
19691         * tests/test-utimens.c (main): Enhance test.
19692         * tests/test-lutimens.h (test_lutimens): New file.
19693         * modules/utimens-tests (Files): Distribute it.
19694         (Depends-on): Add symlink.
19695         (configure.ac): Check for usleep.
19696
19697         utimens: validate futimens usage
19698         * lib/utimens.c (gl_futimens): Require valid fd up front, using
19699         fewer syscalls on failure later on.  Avoid compiler warning on
19700         mingw.
19701         * modules/utimens (Depends-on): Add dup2.
19702
19703         utimens: add test
19704         * modules/utimens-tests: New test.
19705         * tests/test-utimens.h: New file.
19706         * tests/test-futimens.h: Likewise.
19707         * tests/test-utimens.c: Likewise.
19708
19709         doc: mention timestamp portability issues
19710         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
19711         instead.
19712         * doc/posix-functions/utime.texi (utime): Likewise.
19713         * doc/posix-functions/utimes.texi (utimes): Likewise.
19714         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
19715         instead.
19716         * doc/posix-functions/futimens.texi (futimens): Mention utimens
19717         module.
19718         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19719         Mention weakness with symlink timestamps.
19720         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
19721         to utimensat/futimens instead.
19722         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
19723
19724         test-dup2: enhance test
19725         * tests/test-dup2.c (main): Also check AT_FDCWD.
19726
19727         test-stat-time: avoid more spurious failures
19728         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
19729         xfs; and avoid race if the two timestamps cross quantization edge.
19730
19731         relocatable: prefer 'file system' over 'filesystem'
19732         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19733         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19734         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19735         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19736         * lib/relocatable.c (compute_curr_prefix): Likewise.
19737
19738 2009-10-10  Jim Meyering  <meyering@redhat.com>
19739
19740         stat-time-tests: check for the usleep function
19741         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19742
19743 2009-10-10  Bruno Haible  <bruno@clisp.org>
19744
19745         * modules/xnanosleep: Put the Link section after the Include section.
19746
19747 2009-10-09  Eric Blake  <ebb9@byu.net>
19748
19749         dup2: work around FreeBSD 6.1 bug
19750         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19751         * doc/posix-functions/dup2.texi (dup2): Document it.
19752         Reported by Nelson H. F. Beebe and Jim Meyering.
19753
19754         test-stat-time: port to buggy NFS clients
19755         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19756         (test_ctime): Also skip test if mtime and ctime are skewed.
19757
19758         maint: prefer 'file system' over 'filesystem'
19759         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19760         * doc/posix-functions/lstat.texi (lstat): Likewise.
19761         * lib/file-has-acl.c (file_has_acl): Likewise.
19762         * lib/fwriteerror.c [TEST]: Likewise.
19763         * tests/test-areadlink.h (test_areadlink): Likewise.
19764         * tests/test-areadlinkat-with-size.c (main): Likewise.
19765         * tests/test-areadlinkat.c (main): Likewise.
19766         * tests/test-canonicalize-lgpl.c (main): Likewise.
19767         * tests/test-canonicalize.c (main): Likewise.
19768         * tests/test-fstatat.c (main): Likewise.
19769         * tests/test-linkat.c (main): Likewise.
19770         * tests/test-lstat.h (test_lstat_func): Likewise.
19771         * tests/test-mkdir.h (test_mkdir): Likewise.
19772         * tests/test-readlink.h (test_readlink): Likewise.
19773         * tests/test-remove.c (main): Likewise.
19774         * tests/test-rename.h (test_rename): Likewise.
19775         * tests/test-renameat.c (main): Likewise.
19776         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19777         * tests/test-symlink.h (test_symlink): Likewise.
19778         * tests/test-symlinkat.c (main): Likewise.
19779         * tests/test-unlink.h (test_unlink_func): Likewise.
19780         * tests/test-unlinkat.c (main): Likewise.
19781
19782         maint: make realtime library usage explicit
19783         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19784         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19785         * modules/settime (Link): Likewise.
19786         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19787
19788         test-stat-time: speed up execution
19789         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19790         warning on mingw.
19791         (nap): New helper function.
19792         (prepare_test): Use it to reduce sleep time.
19793         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19794         execution.
19795         * modules/stat-time-tests (configure.ac): Check for usleep.
19796
19797 2009-10-09  Jim Meyering  <meyering@redhat.com>
19798
19799         selinux-h: always use getfilecon wrappers
19800         * lib/getfilecon.c: New file.
19801         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19802         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19803         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19804         (fgetfilecon): Provide a stub.
19805         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19806         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19807         file unconditionally.
19808         When <selinux/selinux.h> is found, arrange to use wrappers.
19809         * modules/selinux-h (Files): Add getfilecon.c.
19810         (Makefile.am): Substitute include-next-related bits
19811         into the now-always-generated selinux/selinux.h file.
19812         * doc/glibc-functions/lgetfilecon.texi: New file.
19813         * doc/glibc-functions/fgetfilecon.texi: New file.
19814         * doc/glibc-functions/getfilecon.texi: New file.
19815         * doc/glibc-functions/getfilecon-desc.texi: New file.
19816         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19817         which to pull in the new files.
19818         * MODULES.html.sh (Misc): Add selinux-h.
19819
19820 2009-10-08  Jim Meyering  <meyering@redhat.com>
19821
19822         unistd: fix comment typo
19823         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19824
19825 2009-10-08  Eric Blake  <ebb9@byu.net>
19826
19827         areadlink: use SIZE_MAX consistently
19828         * modules/areadlink (Depends-on): Add stdint.
19829         * modules/areadlink-with-size (Depends-on): Likewise.
19830         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19831         gives NULL; drop sys/types, since unistd gives size_t; and add
19832         stdint for SIZE_MAX.
19833         (SIZE_MAX): Rely on headers.
19834         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19835         and add stdint.
19836         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19837         (SIZE_MAX): Likewise.
19838         (INITIAL_BUF_SIZE): Turn into enum.
19839         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19840
19841 2009-10-08  Jim Meyering  <meyering@redhat.com>
19842
19843         areadlinkat: avoid compilation failure
19844         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19845         Fix typo in comment.
19846
19847 2009-10-07  Eric Blake  <ebb9@byu.net>
19848
19849         areadlinkat-with-size: new module
19850         * modules/areadlinkat-with-size: New module.
19851         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19852         * lib/areadlink.h (areadlinkat): Declare it.
19853         * MODULES.html.sh (File system functions): Mention it.
19854         * modules/areadlinkat-with-size-tests: New test.
19855         * tests/test-areadlinkat-with-size.c: New file.
19856
19857         xreadlinkat: new module
19858         * modules/xreadlinkat: New module.
19859         * lib/xreadlinkat.c (xreadlinkat): New file.
19860         * lib/xreadlink.h (xreadlinkat): Declare it.
19861         * MODULES.html.sh (File system functions): Mention it.
19862
19863         areadlinkat: new module
19864         * lib/at-func.c (FUNC_FAIL): New define.
19865         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19866         * modules/areadlinkat: New module.
19867         * lib/linkat.c (areadlinkat): Move...
19868         * lib/areadlinkat.c (areadlinkat): ...to new file.
19869         * lib/areadlink.h (areadlinkat): Declare it.
19870         * modules/linkat (Depends-on): Add areadlinkat.
19871         * MODULES.html.sh (File system functions): Mention it.
19872         * modules/areadlinkat-tests: New test.
19873         * tests/test-areadlinkat.c: New file.
19874
19875         areadlink, areadlink-with-size: add tests
19876         * modules/areadlink-tests: New test.
19877         * modules/areadlink-with-size-tests: Likewise.
19878         * tests/test-areadlink.h: New file.
19879         * tests/test-areadlink.c: Likewise.
19880         * tests/test-areadlink-with-size.c: Likewise.
19881
19882         maint: minor cleanups
19883         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19884         _UNUSED_PARAMETER_ instead.
19885         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19886         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19887         * modules/linkat-tests (Files): Distribute test-link.h.
19888
19889         openat, utimens: whitespace cleanup
19890         * lib/openat.c: Prefer space throughout, rather than mix of 8
19891         spaces vs. tabs.
19892         * lib/at-func.c: Likewise.
19893         * lib/utimens.c: Likewise.
19894
19895         openat: avoid using wrong fd
19896         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19897         working directory chooses same fd.
19898         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19899
19900         mkdir, mkdirat: fix cygwin 1.5.x bug
19901         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19902         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19903         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19904         bug.
19905         (gl_PREREQ_MKDIR): Delete unused macro.
19906         * modules/mkdir (Files): Track file rename.
19907         (configure.ac): Update macro name.
19908         * modules/openat (Depends-on): Add mkdir.
19909         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19910
19911         mkdir, mkdirat: add tests
19912         * modules/mkdir-tests: New test.
19913         * tests/test-mkdir.h: New file.
19914         * tests/test-mkdir.c: Likewise.
19915         * tests/test-mkdirat.c: Likewise.
19916         * modules/openat-tests (Files): Add new files.
19917         (Makefile.am): Run new test.
19918
19919 2009-10-06  Eric Blake  <ebb9@byu.net>
19920
19921         doc: tweak *at function documentation
19922         * doc/posix-functions/faccessat.texi (faccessat): Mention
19923         known issue with replacement.
19924         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19925         * doc/posix-functions/linkat.texi (linkat): Likewise.
19926         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19927         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19928         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19929         * doc/posix-functions/renameat.texi (renameat): Likewise.
19930         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19931
19932         openat: fix GNU/Hurd bug in unlinkat
19933         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19934         broken.
19935         * doc/posix-functions/unlink.texi (unlink): Document this.
19936         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19937
19938         fdopendir: fix GNU/Hurd bug
19939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19940         allowing non-directory fds.
19941         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19942         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19943         * modules/dirent (Makefile.am): Substitute it.
19944         * lib/dirent.in.h (fdopendir): Declare replacement.
19945         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19946         * tests/test-fdopendir.c (main): Test something other than
19947         /dev/null, since on Hurd that behaves like a directory.
19948
19949         test-symlink: port to GNU/Hurd
19950         * tests/test-symlink.h (test_symlink): Relax expected errno.
19951
19952         doc: tweak more cygwin information
19953         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19954         now compatible with glibc.
19955         * doc/posix-functions/getopt.texi (getopt): Likewise.
19956
19957         getopt-gnu: add another test
19958         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19959         guarantee behavior relied on by m4.
19960         * tests/test-getopt.c (main): Use it.
19961         * modules/getopt-posix-tests (Depends-on): Add setenv.
19962         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19963
19964         getopt: fix compilation on darwin
19965         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19966         include.
19967         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19968         Reported by Ludovic Courtès.
19969
19970 2009-10-06  Bruno Haible  <bruno@clisp.org>
19971
19972         * modules/size_max (Description): Discourage its use.
19973         Reported by Simon Josefsson.
19974
19975 2009-10-06  Jim Meyering  <meyering@redhat.com>
19976
19977         linkat: avoid compilation failure
19978         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19979
19980 2009-10-05  Eric Blake  <ebb9@byu.net>
19981
19982         linkat: support Linux 2.6.17
19983         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19984         linkat on Linux, but allow cache variable override.
19985         * lib/linkat.c (rpl_linkat): Define override.
19986         * modules/linkat (Depends-on): Add symlinkat.
19987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19988         * modules/unistd (Makefile.am): Substitute it.
19989         * lib/unistd.in.h (linkat): Declare replacement.
19990         Reported by Pádraig Brady.
19991
19992         quotearg: port test to systems with C.UTF-8 locale
19993         * tests/test-quotearg.c (struct result_strings): Add another
19994         member, differentiating between C.ASCII and C.UTF-8 handling.
19995         (compare_strings): Add parameter.
19996         (main): Adjust all callers.
19997
19998         getopt: avoid clash with FreeBSD _getopt_internal
19999         * lib/getopt.in.h (_getopt_internal): Override the name.
20000         * lib/getopt_int.h (includes): Pick up any overrides.
20001         Reported by Reuben Thomas.
20002
20003         hash: allow C89 compilation
20004         * lib/hash.c (check_tuning): Move declaration before statement.
20005         Reported by Reuben Thomas.
20006
20007 2009-10-05  Karl Berry  <karl@gnu.org>
20008
20009         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
20010
20011 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
20012             Bruno Haible  <bruno@clisp.org>
20013
20014         * lib/uname.c (uname): Use a table-driven algorithm to compute
20015         Windows NT versions.
20016
20017 2009-10-04  Bruno Haible  <bruno@clisp.org>
20018
20019         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
20020         program_invocation_short_name.
20021         * modules/progname (configure.ac): Test for presence of
20022         program_invocation_short_name.
20023         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20024
20025 2009-10-04  Bruno Haible  <bruno@clisp.org>
20026
20027         * lib/progname.c (set_program_name): Fix comment.
20028         Reported by Jim Meyering.
20029
20030 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20031             Bruno Haible  <bruno@clisp.org>
20032
20033         * lib/uname.c: Include <string.h>.
20034         (uname): Do only one call to GetVersionEx in the common case.
20035
20036 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20037             Bruno Haible  <bruno@clisp.org>
20038
20039         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
20040         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
20041         (uname): Add support for Windows CE and various non-x86 CPU types.
20042
20043 2009-10-03  Bruno Haible  <bruno@clisp.org>
20044
20045         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
20046         invocation to tests/configure.ac.
20047         Reported by Ian Beckwith <ianb@erislabs.net>.
20048
20049 2009-10-02  Eric Blake  <ebb9@byu.net>
20050
20051         fchdir: avoid compiler warning
20052         * lib/fchdir.c (canonicalize_file_name)
20053         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
20054
20055         test-open: support mingw errno values
20056         * tests/test-open.h (test_open): Relax test.
20057         * tests/test-fopen.h (test_fopen): Likewise.
20058         * tests/test-openat-safer.c (main): Likewise.
20059
20060         open: fix opening directory on mingw
20061         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
20062
20063         test-open: on GNU/Hurd, /dev/null is a directory
20064         * tests/test-fopen.h (main): Rename...
20065         (test_fopen): ...to this.  Use a guaranteed non-directory when
20066         confirming open behavior on trailing slash.
20067         * tests/test-openat-safer.c (main): Likewise.
20068         * tests/test-open.h (main): Likewise....
20069         (test_open): ...to this.
20070         * tests/test-fopen.c (main): Adjust caller.
20071         * tests/test-fopen-safer.c (main): Likewise.
20072         * tests/test-open.c (main): Likewise.
20073         * tests/test-fcntl-safer.c (main): Likewise.
20074         Reported by Samuel Thibault.
20075
20076         rename, fchdir: don't ignore chdir failure
20077         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
20078         * lib/rename.c (rpl_rename) [W32]: Likewise.
20079         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
20080         an empty destination directory if source cannot be renamed,
20081         although there is still possibility for failure.
20082         * doc/posix-functions/rename.texi (rename): Document the race.
20083         Reported by Jim Meyering.
20084
20085         maint: cleanup whitespace in recent commits
20086         * lib/rename.c (rpl_rename): Remove tabs.
20087         * tests/test-link.h (test_link): Likewise.
20088         * lib/fchdir.c (get_name): Likewise.
20089         Reported by Jim Meyering.
20090
20091 2009-10-02  Ben Pfaff  <blp@gnu.org>
20092
20093         relocatable-prog-wrapper: Add missing dependency on
20094         double-slash-root.
20095         * modules/relocatable-prog-wrapper: Add dependency.
20096         Reported by Ian Beckwith <ianb@erislabs.net>.
20097
20098 2009-10-02  Eric Blake  <ebb9@byu.net>
20099
20100         renameat: fix Solaris bugs
20101         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
20102         needed fixing.
20103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
20104         * modules/stdio (Makefile.am): Substitute it.
20105         * lib/stdio.in.h (renameat): Declare replacement.
20106         * lib/renameat.c (rpl_renameat): Implement fix.
20107
20108         renameat: new module
20109         * modules/renameat: New file.
20110         * lib/renameat.c (renameat): Likewise.
20111         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
20112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20113         * modules/stdio (Makefile.am): Substitute them.
20114         * lib/stdio.in.h (renameat): Declare it.
20115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20116         * doc/posix-functions/renameat.texi (renameat): Likewise.
20117         * modules/renameat-tests: New test.
20118         * tests/test-renameat.c: Likewise.
20119
20120         rename: fix mingw bugs
20121         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
20122         directory overwrite bugs.
20123
20124         rename: fix another cygwin 1.5 bug
20125         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
20126         checks.
20127         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
20128         unnecessary cygwin workarounds.  Also work around bug with moving
20129         full directory onto an empty one.
20130         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
20131
20132         rename-dest-slash: merge into rename module
20133         * modules/rename-dest-slash (Status): Mark obsolete.
20134         (Depends-on): Add rename.
20135         (Files): Let rename do it all.
20136         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
20137         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
20138         * m4/rename-dest-slash.m4: ...so this file can be deleted.
20139         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
20140         * lib/rename.c (rpl_rename): Update comments.
20141
20142         rename: fix cygwin 1.5.x bugs
20143         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
20144         * lib/rename.c (rpl_rename): Work around them.
20145         * modules/rename (Depends-on): Add same-inode.
20146
20147         rename: fix Solaris 10 bug
20148         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20149         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
20150         was the only bug.
20151
20152         rename: fix Solaris 9 bug
20153         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
20154         on non-directory.  Avoid calling exit.
20155         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
20156         strdup.
20157         * modules/rename-tests (Depends-on): Drop lstat.
20158         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20159         (gl_PREREQ_RENAME): Delete unused macro.
20160
20161         rename-dest-slash: fix NetBSD bug
20162         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
20163         links.
20164         * modules/rename-dest-slash (Depends-on): Add same-inode.
20165
20166         rename-tests: new test, exposes several platform bugs
20167         * modules/rename-tests: New file.
20168         * tests/test-rename.h: Likewise.
20169         * tests/test-rename.c: Likewise.
20170         * doc/posix-functions/rename.texi (rename): Improve documentation,
20171         including bugs that will eventually be fixed in gnulib.
20172
20173 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
20174
20175         * lib/uname.c: Include <stdlib.h>
20176         (uname): Assume version info is available.
20177
20178 2009-10-02  Jim Meyering  <meyering@redhat.com>
20179
20180         gnu-web-doc-update: correct --help output
20181         * build-aux/gnu-web-doc-update: Make --help output relevant.
20182
20183         gnu-web-doc-update: add standard options
20184         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
20185
20186         gnu-web-doc-update: New module.
20187         Use this script to automatically update the on-line web documentation
20188         for your GNU project at http://www.gnu.org/software/$pkg/manual/
20189         * modules/gnu-web-doc-update: New file, from coreutils.
20190         * build-aux/gnu-web-doc-update: New script.
20191
20192 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
20193
20194         link: LoadLibrary is not needed.
20195         * lib/link.c: Use GetModuleHandle.
20196
20197 2009-10-01  Eric Blake  <ebb9@byu.net>
20198
20199         getopt: bump serial number
20200         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
20201         change.
20202
20203         tests: tighten link, rmdir, and remove tests
20204         * tests/test-link.h (includes): No need to use <config.h> here.
20205         Clean up if directory hard link was created, otherwise test for
20206         trailing '.'.
20207         * tests/test-linkat.c (main): Simplify.
20208         * tests/test-remove.c (main): Enhance test for trailing '.'.
20209         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20210
20211 2009-10-01  Jim Meyering  <meyering@redhat.com>
20212
20213         maint.mk: requiring "make major" was annoying, for a "minor" release.
20214         What is intended is "stable", to contrast with alpha and beta,
20215         so require "make stable", not "make major".
20216         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
20217         (get_tool_versions): Likewise.
20218         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
20219
20220 2009-09-30  Ben Pfaff  <blp@gnu.org>
20221
20222         Fix broken build of replacement for Windows tmpfile().
20223         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
20224         flags argument added along with the 'mkostemp' module.
20225
20226 2009-09-28  Bruno Haible  <bruno@clisp.org>
20227
20228         Avoid identifier clash with POSIX function 'remove' defined as a macro.
20229         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
20230         to 'remove_elt'.
20231         (gl_list_remove): Update.
20232         * lib/gl_list.c (gl_list_remove): Update.
20233         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
20234         to 'remove_elt'.
20235         (gl_oset_remove): Update.
20236         * lib/gl_list.c (gl_oset_remove): Update.
20237         Reported by Eric Blake.
20238
20239 2009-09-28  Eric Blake  <ebb9@byu.net>
20240
20241         doc: mention yet more cygwin 1.7 status
20242         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
20243         cygwin.
20244         * doc/glibc-functions/execvpe.texi (execvpe): New file.
20245         * doc/gnulib.texi (Glibc unistd.h): Mention it.
20246
20247         argp: fix test failure
20248         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
20249         that are not upper-case.  Pass correct range to tolower.
20250
20251 2009-09-27  Jim Meyering  <meyering@redhat.com>
20252
20253         test-yesno: work around sparc-dash here-document infelicity
20254         Without this change, the literal \177 byte in a here document
20255         would make dash 0.5.5.1-3 access uninitialized memory.
20256         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
20257         Instead, use a marker, "@", and filter through tr to create the desired
20258         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
20259
20260 2009-09-27  Bruno Haible  <bruno@clisp.org>
20261
20262         Disable untested support for new flavours of ACLs on AIX.
20263         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
20264         progress.
20265         * lib/set-mode-acl.c (qset_acl): Likewise.
20266
20267 2008-12-07  Bruno Haible  <bruno@clisp.org>
20268
20269         Add support for new flavours of ACLs on AIX. (Untested.)
20270         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
20271         (file_has_acl): Add support for newer AIX.
20272         * lib/set-mode-acl.c (qset_acl): Likewise.
20273         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
20274         Rainer Tammer <tammer@tammer.net>.
20275
20276 2009-09-26  Eric Blake  <ebb9@byu.net>
20277
20278         argp: fix compilation of getopt
20279         * lib/getopt.in.h (includes): Use different guard than glibc.
20280         Reported by Sergey Poznyakoff.
20281
20282         doc: mention more cygwin 1.7 status
20283         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
20284         bug.
20285         * doc/posix-functions/execl.texi (execl): Likewise.
20286         * doc/posix-functions/execle.texi (execle): Likewise.
20287         * doc/posix-functions/execlp.texi (execlp): Likewise.
20288         * doc/posix-functions/execv.texi (execv): Likewise.
20289         * doc/posix-functions/execve.texi (execve): Likewise.
20290         * doc/posix-functions/execvp.texi (execvp): Likewise.
20291         * doc/glibc-functions/canonicalize_file_name.texi
20292         (canonicalize_file_name): Cygwin 1.7 now provides this.
20293         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
20294         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
20295         on AT_SYMLINK_NOFOLLOW.
20296
20297 2009-09-24  Eric Blake  <ebb9@byu.net>
20298
20299         test-linkat: make test more robust
20300         * tests/test-linkat.c (main): Avoid collision with EEXIST.
20301
20302         getopt: fix inclusion guards for cygwin
20303         * modules/getopt-posix (Depends-on): Add include-next.
20304         (Makefile.am): Substitute more items in replacement header.
20305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
20306         <getopt.h>.
20307         * lib/getopt.in.h (includes): Use split inclusion guard, and
20308         prefer <getopt.h> over include <unistd.h> when one is present.
20309         (option): Also override name of 'struct option'.
20310
20311         same-inode: revert prior change; it is not yet ready
20312         * NEWS: Undo mention of this change.
20313         * lib/same-inode.h (same-inode.h): Undo tri-state change.
20314         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20315         * lib/cycle-check.c (cycle_check): Likewise.
20316         * lib/same.c (same_name): Likewise.
20317         * lib/at-func2.c (at_func2): Likewise.
20318
20319 2009-09-23  Eric Blake  <ebb9@byu.net>
20320
20321         linkat: new module
20322         * modules/linkat: New file.
20323         * lib/at-func2.c (at_func2): Likewise.
20324         * lib/linkat.c (linkat): Likewise.
20325         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20326         * lib/openat-priv.h (at_func2): Add declaration.
20327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20328         * modules/unistd (Makefile.am): Substitute them.
20329         * lib/unistd.in.h (linkat): Declare it.
20330         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20331         * doc/posix-functions/linkat.texi (linkat): Likewise.
20332         * doc/posix-functions/link.texi (link): Tweak wording.
20333         * tests/test-link.c (main): Move guts...
20334         * tests/test-link.h (test_link): ...into new file.
20335         * modules/linkat-tests: New test.
20336         * tests/test-linkat.c: Likewise.
20337         * modules/link-tests (Files): Ship new file.
20338         (Depends-on): Add stdbool.
20339
20340         dirname: add library-safe mdir_name
20341         * lib/dirname.h (mdir_name): New prototype.
20342         * lib/dirname.c (dir_name): Move guts...
20343         (mdir_name): ...to new function that avoids xalloc_die.
20344
20345         fchdir: another mingw fix
20346         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
20347         * lib/fchdir.c (get_name): New helper method; skips canonicalize
20348         on mingw (where it has not yet been ported), and make it optional
20349         elsewhere.
20350         (_gl_register_fd): Use it.
20351
20352         same-inode: make SAME_INODE tri-state, to port to mingw
20353         * NEWS: Mention this change.
20354         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
20355         st_ino always being 0.
20356         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20357         * lib/cycle-check.c (cycle_check): Likewise.
20358         * lib/same.c (same_name): Likewise.
20359
20360         lstat: avoid mingw compilation error
20361         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
20362         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
20363         lstat ourselves.
20364         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
20365         was adequate.
20366         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
20367         the checks for lstat.
20368         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
20369
20370         link: fix test failure on Solaris 9
20371         * lib/link.c (rpl_link): Don't assume link will catch bogus
20372         trailing slash on source.
20373
20374         test-symlinkat: enhance test
20375         * tests/test-readlink.c (main): Move guts...
20376         * tests/test-readlink.h (test_readlink): ...into new file.
20377         * tests/test-symlink.c (main): Move guts...
20378         * tests/test-symlink.h (test_symlink): ...into new file.
20379         * tests/test-symlinkat.c (main): Use new files for further
20380         coverage.
20381         (do_symlink, do_readlink): New helper functions.
20382         * modules/symlink-tests (Files): Ship new file.
20383         (Depends-on): Add stdbool.
20384         * modules/readlink-tests (Files): Ship new file.
20385         (Depends-on): Add stdbool.
20386         * modules/symlinkat-tests (Files): Use new files.
20387
20388 2009-09-23  Eric Blake  <ebb9@byu.net>
20389
20390         readlink: document portability issue with symlink length
20391         * doc/posix-functions/lstat.texi (lstat): Mention that some file
20392         systems have bogus st_size on symlinks, and mention the
20393         areadlink-with-size module.
20394         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20395         * doc/posix-functions/readlink.texi (readlink): Mention the
20396         areadlink module, and ERANGE failure.
20397         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20398         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
20399
20400         readlink: fix Solaris 9 bug with trailing slash
20401         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
20402         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
20403         * doc/posix-functions/readlink.texi (readlink): Document this.
20404         * modules/readlink-tests: New test.
20405         * tests/test-readlink.c: Likewise.
20406
20407         readlink: fix cygwin 1.5.x bug with return type
20408         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
20409         * lib/unistd.in.h (readlink): Use ssize_t.
20410         * lib/readlink.c (readlink): Likewise.
20411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20412         * modules/unistd (Makefile.am): Substitute it.
20413         * lib/unistd.in.h (readlink): Declare replacement.
20414         * doc/posix-functions/readlink.texi (readlink): Document this.
20415
20416         symlink: use throughout gnulib
20417         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
20418         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
20419         symlink is not used.
20420         * modules/symlinkat (Depends-on): Add symlink.
20421         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20422         * modules/canonicalize-tests (Depends-on): Likewise.
20423         * modules/lstat-tests (Depends-on): Likewise.
20424         * modules/openat-tests (Depends-on): Likewise.
20425         * modules/remove-tests (Depends-on): Likewise.
20426         * modules/rmdir-tests (Depends-on): Likewise.
20427         * modules/unlink-tests (Depends-on): Likewise.
20428         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
20429         * tests/test-canonicalize.c (symlink): Likewise.
20430         * tests/test-fstatat.c (symlink): Likewise.
20431         * tests/test-lstat.c (symlink): Likewise.
20432         * tests/test-remove.c (symlink): Likewise.
20433         * tests/test-rmdir.c (symlink): Likewise.
20434         * tests/test-unlink.c (symlink): Likewise.
20435         * tests/test-unlinkat.c (symlink): Likewise.
20436
20437         symlink: new module, for Solaris 9 bug
20438         * modules/symlink: New file.
20439         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20440         * lib/symlink.c: Likewise.
20441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20442         * modules/unistd (Makefile.am): Substitute them.
20443         * lib/unistd.in.h (symlink): Declare replacement.
20444         * MODULES.html.sh (File system functions): Mention it.
20445         * doc/posix-functions/symlink.texi (symlink): Likewise.
20446         * modules/symlink-tests: New test.
20447         * tests/test-symlink.c: Likewise.
20448
20449 2009-09-23  Bruno Haible  <bruno@clisp.org>
20450
20451         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
20452         when needed.
20453         Test case: gnulib-tool --import --with-tests atexit inttypes.
20454         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
20455
20456 2009-09-23  Bruno Haible  <bruno@clisp.org>
20457
20458         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
20459         subcommand, not in a subshell.
20460
20461 2009-09-22  Eric Blake  <ebb9@byu.net>
20462
20463         unistd: sort replacement declarations
20464         * lib/unistd.in.h: Sort declarations.
20465
20466         open, openat: minor optimization
20467         * lib/open.c (open): If open succeeded, len is non-zero.
20468         * lib/openat.c (rpl_openat): Likewise.
20469
20470         link-follow: ensure correct result
20471         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
20472         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
20473         distinguish between possible failures.
20474
20475 2009-09-21  Eric Blake  <ebb9@byu.net>
20476
20477         fts: avoid compiler warning
20478         * lib/fts.c (dirent_inode_sort_may_be_useful)
20479         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
20480
20481 2009-09-19  Bruno Haible  <bruno@clisp.org>
20482
20483         * lib/progreloc.c (canonicalize_file_name): New declaration.
20484
20485 2009-09-19  Eric Blake  <ebb9@byu.net>
20486
20487         link: fix quoting
20488         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
20489
20490         openat: fix openat bugs on Solaris 9
20491         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
20492         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
20493         * modules/openat (Depends-on): Add open.
20494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
20495         * modules/fcntl-h (Makefile.am): Substitute it.
20496         * lib/fcntl.in.h (openat): Declare replacement.
20497         * doc/posix-functions/openat.texi (openat): Document this.
20498
20499         openat: move fstatat and unlinkat into correct files
20500         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
20501         compiled.
20502         * lib/openat.c (fstatat, unlinkat): Move...
20503         * lib/fstatat.c (fstatat): ...into correct files.
20504         * lib/unlinkat.c (unlinkat): Likewise.
20505
20506         openat: fix unlinkat bugs on Solaris 9
20507         * lib/unlinkat.c (unlinkat): New file.
20508         * modules/openat (Depends-on): Add unlink.
20509         (Files): Distribute it.
20510         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
20511         trailing slash behavior is broken.
20512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20513         * modules/unistd (Makefile.am): Substitute it.
20514         * lib/unistd.in.h (unlinkat): Declare replacement.
20515         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
20516
20517         openat: fix fstatat bugs on Solaris 9
20518         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
20519         stat.
20520         * doc/posix-functions/fstatat.texi (fstatat): Document this.
20521
20522         test-unlinkat: enhance test, to expose Solaris 9 bug
20523         * tests/test-unlink.c (main): Factor guts...
20524         * tests/test-unlink.h (test_rmdir_func): ...into new file.
20525         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
20526         * tests/test-rmdir.c (main): Adjust caller.
20527         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
20528         (unlinker): New helper function.
20529         (rmdirat): Enhance check.
20530         * modules/rmdir-tests (Depends-on): Add stdbool.
20531         * modules/unlink-tests (Depends-on): Likewise.
20532         (Files): Add test-unlink.h.
20533         * modules/openat-tests (Files): Likewise.
20534         (Depends-on): Add unlinkdir.
20535
20536         test-fstatat: new test, to expose Solaris 9 bugs
20537         * tests/test-stat.c (main): Factor guts...
20538         * tests/test-stat.h (test_stat_func): ...into new file.
20539         * tests/test-lstat.c (main): Factor guts...
20540         * tests/test-lstat.h (test_lstat_func): ...into new file.
20541         * tests/test-fstatat.c: New file.
20542         * modules/stat-tests (Files): Add test-stat.h.
20543         * modules/lstat-tests (Files): Add test-lstat.h.
20544         (Depends-on): Add stdbool.
20545         * modules/openat-tests (Depends-on): Add pathmax.
20546         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
20547         (Makefile.am): Run new test.
20548
20549         remove: new module, for mingw and Solaris 9 bugs
20550         * modules/remove: New file.
20551         * lib/remove.c: Likewise.
20552         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
20553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20554         * modules/stdio (Makefile.am): Use them.
20555         * lib/stdio.in.h (remove): Declare replacement.
20556         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20557         * doc/posix-functions/remove.texi (remove): Likewise.
20558         * modules/remove-tests: New test.
20559         * tests/test-remove.c: Likewise.
20560
20561         unlink: new module, for Solaris 9 bug
20562         * modules/unlink: New file.
20563         * lib/unlink.c: Likewise.
20564         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20566         * modules/unistd (Makefile.am): Use them.
20567         * lib/unistd.in.h (stat): Declare replacement.
20568         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20569         * doc/posix-functions/unlink.texi (unlink): Likewise.
20570         * modules/unlink-tests: New test.
20571         * tests/test-unlink.c: Likewise.
20572
20573         lstat: fix Solaris 9 bug
20574         * lib/lstat.c (lstat): Also check for trailing slash on
20575         non-symlink, non-directories.  Use stat module to simplify logic.
20576         * doc/posix-functions/lstat.texi (lstat): Document it.
20577         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20578         (configure.ac): Check for symlink.
20579         * tests/test-lstat.c (main): Add more tests.
20580
20581         stat: add as dependency to other modules
20582         * modules/chown (Depends-on): Add stat.
20583         * modules/euidaccess (Depends-on): Likewise.
20584         * modules/fchdir (Depends-on): Likewise.
20585         * modules/isdir (Depends-on): Likewise.
20586         * modules/link (Depends-on): Likewise.
20587         * modules/lstat (Depends-on): Likewise.
20588         * modules/mkdir-p (Depends-on): Likewise.
20589         * modules/modechange (Depends-on): Likewise.
20590         * modules/open (Depends-on): Likewise.
20591         * modules/readlink (Depends-on): Likewise.
20592         * modules/same (Depends-on): Likewise.
20593
20594         stat: fix Solaris 9 bug
20595         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20596         slash.
20597         * lib/stat.c (rpl_stat): Work around it.
20598         * doc/posix-functions/stat.texi (stat): Update documentation.
20599
20600         stat: new module, for mingw bug
20601         * modules/stat: New file.
20602         * lib/stat.c: Likewise.
20603         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20604         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20605         * modules/sys_stat (Makefile.am): Use them.
20606         * lib/sys_stat.in.h (stat): Declare replacement.
20607         * lib/openat.c (fstatat): Deal with lstat and stat being function
20608         macros.
20609         * modules/openat (Depends-on): Add inline.
20610         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20611         * doc/posix-functions/stat.texi (stat): Likewise.
20612         * modules/stat-tests: New test.
20613         * tests/test-stat.c: Likewise.
20614
20615 2009-09-19  Jim Meyering  <meyering@redhat.com>
20616
20617         syntax-check: detect unnecessary inclusion of canonicalize.h
20618         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
20619
20620 2009-09-19  Eric Blake  <ebb9@byu.net>
20621
20622         canonicalize-lgpl: adjust clients to use correct header
20623         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20624         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
20625         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
20626         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
20627         * lib/progreloc.c (includes): Likewise.
20628
20629 2009-09-19  Jim Meyering  <meyering@redhat.com>
20630
20631         test-posixtm.c: correct a comment
20632         * tests/test-posixtm.c: Correct first-line comment.
20633         Spotted by Eric Blake.
20634
20635 2009-09-16  Jim Meyering  <meyering@redhat.com>
20636
20637         posixtm-tests: make T const-correct; add a test case
20638         * tests/test-posixtm.c (T): Declare const.
20639         Add a test for -(2^31+1).
20640         Remove useless can-succeed-only-in-2002 test.
20641
20642         posixtm-tests: adjust the sole failing test
20643         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
20644         expected output matches what mktime now produces.  Cross-checked via
20645         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
20646
20647         posixtm: move #ifdef'd tests into a new module
20648         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
20649         * tests/test-posixtm.c: ... this new file.
20650         * modules/posixtm-tests: New module.
20651
20652 2009-09-19  Eric Blake  <ebb9@byu.net>
20653
20654         openat: simplify use of at-func.c
20655         * lib/at-func.c (includes): Include prerequisites here, to
20656         simplify requirements on client files.
20657         * lib/openat-priv.h: Add double-inclusion guard.
20658         * lib/faccessat.c (includes): Simplify.
20659         * lib/fchmodat.c (includes): Likewise.
20660         * lib/fchownat.c (includes): Likewise.
20661         * lib/mkdirat.c (includes): Likewise.
20662         * lib/mkfifoat.c (includes): Likewise.
20663         * lib/symlinkat.c (includes): Likewise.
20664
20665         openat: allow return of fd 0
20666         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
20667         * modules/save-cwd (Depends-on): Replace fcntl-safer with
20668         unistd-safer.
20669         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
20670         <fcntl.h>; this module does not leak fds.
20671         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
20672         must be allowed to return 0, leaving openat_safer to add the
20673         safety.
20674         (openat_permissive): Avoid writing to just-opened fd 2 if
20675         restoring the current directory fails.
20676         * lib/openat-die.c (openat_restore_fail): Add comment.
20677         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
20678         (save_cwd): Guarantee safe fd, but without use of open_safer.
20679         * tests/test-openat.c: New test.
20680         * modules/openat-tests (Files, Makefile.am): Distribute and build
20681         new file.
20682
20683         relocatable-prog-wrapper: fix build
20684         * modules/relocatable-prog-wrapper (Files): Update name of
20685         canonicalize m4 file, broken on 2009-09-17.
20686         Reported by emad hajjar <aleppos@hotmail.com>.
20687
20688 2009-09-19  Bruno Haible  <bruno@clisp.org>
20689
20690         * lib/safe-alloc.h: Use the standard header with GPL copyright.
20691         * lib/safe-alloc.c: Likewise.
20692         Reported by Ian Beckwith <ianb@erislabs.net>.
20693
20694 2009-09-18  Bruno Haible  <bruno@clisp.org>
20695
20696         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
20697         Reported by <erobles@sensacd.com.mx>.
20698
20699 2009-09-17  Eric Blake  <ebb9@byu.net>
20700
20701         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
20702         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
20703         slashes when checking if last component is missing.
20704         * tests/test-canonicalize.c (main): Test this.
20705
20706         canonicalize, canonicalize-lgpl: honor // if distinct from /
20707         * modules/canonicalize (Files): Add double-slash-root.m4.
20708         * modules/canonicalize-lgpl (Files): Likewise.
20709         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20710         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
20711         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
20712         fallback definition.
20713         (canonicalize_filename_mode): Use it to protect //.
20714         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
20715         (__realpath): Likewise.
20716         * tests/test-canonicalize.c (main): Test this.
20717         * tests/test-canonicalize-lgpl.c (main): Likewise.
20718         * modules/canonicalize-tests (Depends-on): Add same-inode.
20719         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20720
20721         canonicalize-lgpl: fix glibc bug with trailing slash
20722         * m4/canonicalize-lgpl.m4: Move contents...
20723         * m4/canonicalize.m4: ...here.
20724         (gl_CANONICALIZE_LGPL): Factor realpath check...
20725         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
20726         glibc 2.3.5 bug, fixed 2005-04-27.
20727         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
20728         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
20729         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20730         * modules/canonicalize-lgpl (Files): Manage file rename.
20731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20732         * modules/stdlib (Makefile.am): Substitute witness.
20733         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20734         is needed.
20735         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20736         replacement is required.
20737         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20738         * doc/glibc-functions/canonicalize_file_name.texi
20739         (canonicalize_file_name): Document this.
20740         * doc/posix-functions/realpath.texi (realpath): Likewise.
20741
20742         canonicalize-lgpl: reject non-directory with trailing slash
20743         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20744         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20745         catches failures in glibc 2.3.5.
20746         * tests/test-canonicalize.c (main): Likewise.
20747
20748         canonicalize-lgpl: use native realpath if it works
20749         * lib/canonicalize-lgpl.c (realpath): Guard with
20750         FUNC_REALPATH_WORKS.
20751         * lib/stdlib.in.h (realpath): Make declaration optional based on
20752         HAVE_REALPATH.
20753         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20754         native realpath works.
20755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20756         * modules/stdlib (Makefile.am): Substitute witness.
20757
20758         canonicalize, canonicalize-lgpl: use <stdlib.h>
20759         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20760         (Include): Mention <stdlib.h>.
20761         (configure.ac): Mention functions we provide.
20762         * modules/canonicalize (configure.ac): Likewise.
20763         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20764         realpath if canonicalize_file_name is missing.
20765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20766         * modules/stdlib (Makefile.am): Substitute witnesses.
20767         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20768         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20769         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20770         * NEWS: Document this.
20771         * doc/glibc-functions/canonicalize_file_name.texi
20772         (canonicalize_file_name): Likewise.
20773         * doc/posix-functions/realpath.texi (realpath): Likewise.
20774         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20775
20776         test-canonicalize: consolidate into single C program
20777         * tests/test-canonicalize.sh: Delete; move setup into...
20778         * tests/test-canonicalize.c (main): ...the program, making it
20779         easier to run in debugger.  Add some tests.
20780         * modules/canonicalize-tests (Files): Remove unused file.
20781         (Depends-on): Add progname.
20782         (configure.ac, Makefile.am): Simplify.
20783
20784         test-canonicalize-lgpl: consolidate into single C program
20785         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20786         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20787         easier to run in debugger.  Add some tests.
20788         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20789         (configure.ac, Makefile.am): Simplify.
20790
20791         canonicalize: avoid resolvepath
20792         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20793         unnecessary checks.
20794         * lib/canonicalize.c (includes): Simplify.
20795         (canonicalize_file_name): Drop resolvepath implementation.
20796         * modules/canonicalize (Depends-on): Drop filenamecat.
20797
20798         canonicalize: don't lose errno
20799         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20800         over calls to free.
20801
20802         canonicalize: simplify errno handling
20803         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20804         assignment.
20805
20806         canonicalize, canonicalize-lgpl: update module dependencies
20807         * modules/canonicalize (Depends-on): Add extensions, lstat,
20808         pathmax, stdlib.
20809         (Files): Drop pathmax.h.
20810         (configure.ac): Adjust macro name.
20811         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20812         lstat, stdlib, sys_stat.
20813         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20814         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20815         extensions.
20816         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20817         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20818         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20819         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20820         declaration, if available.
20821         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20822         we can rely on the readlink module.
20823         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20824         (includes): Use <unistd.h> unconditionally.
20825
20826 2009-09-17  Eric Blake  <ebb9@byu.net>
20827
20828         maint: make Include sections of modules consistent
20829         * modules/alloca: Use only header name; no need to list #include.
20830         * modules/alloca-opt: Likewise.
20831         * modules/arpa_inet: Likewise.
20832         * modules/canon-host: Likewise.
20833         * modules/configmake: Likewise.
20834         * modules/dirent: Likewise.
20835         * modules/eealloc: Likewise.
20836         * modules/environ: Likewise.
20837         * modules/fchdir: Likewise.
20838         * modules/fcntl: Likewise.
20839         * modules/fcntl-h: Likewise.
20840         * modules/gethrxtime: Likewise.
20841         * modules/gettime: Likewise.
20842         * modules/ignore-value: Likewise.
20843         * modules/inet_ntop: Likewise.
20844         * modules/inet_pton: Likewise.
20845         * modules/inttypes: Likewise.
20846         * modules/isnand-nolibm: Likewise.
20847         * modules/isnanf-nolibm: Likewise.
20848         * modules/mbchar: Likewise.
20849         * modules/mbfile: Likewise.
20850         * modules/mbiter: Likewise.
20851         * modules/mbuiter: Likewise.
20852         * modules/netdb: Likewise.
20853         * modules/netinet_in: Likewise.
20854         * modules/nproc: Likewise.
20855         * modules/pagealign_alloc: Likewise.
20856         * modules/poll: Likewise.
20857         * modules/printf-frexp: Likewise.
20858         * modules/pthread: Likewise.
20859         * modules/putenv: Likewise.
20860         * modules/random_r: Likewise.
20861         * modules/relocatable-prog: Likewise.
20862         * modules/search: Likewise.
20863         * modules/select: Likewise.
20864         * modules/selinux-h: Likewise.
20865         * modules/settime: Likewise.
20866         * modules/signal: Likewise.
20867         * modules/size_max: Likewise.
20868         * modules/socklen: Likewise.
20869         * modules/ssize_t: Likewise.
20870         * modules/stdarg: Likewise.
20871         * modules/stdbool: Likewise.
20872         * modules/stddef: Likewise.
20873         * modules/stdint: Likewise.
20874         * modules/stdio: Likewise.
20875         * modules/stdlib: Likewise.
20876         * modules/string: Likewise.
20877         * modules/strings: Likewise.
20878         * modules/sys_file: Likewise.
20879         * modules/sys_ioctl: Likewise.
20880         * modules/sys_select: Likewise.
20881         * modules/sys_socket: Likewise.
20882         * modules/sys_stat: Likewise.
20883         * modules/sys_time: Likewise.
20884         * modules/sys_times: Likewise.
20885         * modules/sys_utsname: Likewise.
20886         * modules/sys_wait: Likewise.
20887         * modules/sysexits: Likewise.
20888         * modules/time: Likewise.
20889         * modules/times: Likewise.
20890         * modules/tmpfile: Likewise.
20891         * modules/trim: Likewise.
20892         * modules/unistd: Likewise.
20893         * modules/wchar: Likewise.
20894         * modules/wctype: Likewise.
20895
20896 2009-09-17  Bruno Haible  <bruno@clisp.org>
20897
20898         Make getdate.y compile on QNX and NetBSD 5 / i386.
20899         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20900         TIME_T_FITS_IN_LONG_INT.
20901         * lib/getdate.y (long_time_t): New type.
20902         (relative_time): Change type of 'seconds' field to long_time_t.
20903         (get_date): Update types of local variables. Check against overflow
20904         during conversion from long_time_t to time_t.
20905         Reported by Matt Kraai <kraai@ftbfs.org>
20906         and Hasso Tepper <hasso@netbsd.org>.
20907
20908 2009-09-17  Bruno Haible  <bruno@clisp.org>
20909
20910         * modules/COPYING: Update copyright years.
20911         * modules/README: Likeiwse.
20912         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20913         Reported by Ian Beckwith <ianb@erislabs.net>.
20914
20915 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20916
20917         * users.txt: Update references for gnuit package.
20918
20919 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20920
20921         * m4/getdelim.m4: Fix typo in copyright line.
20922
20923 2009-09-17  Bruno Haible  <bruno@clisp.org>
20924
20925         * lib/atoll.c: Use the standard header with GPL copyright.
20926         * lib/argz.in.h: Likewise.
20927         * lib/glob.c: Likewise.
20928         * lib/glob-libc.h: Likewise.
20929         * lib/random_r.c: Likewise.
20930         * lib/siglist.h: Likewise.
20931         * lib/strsignal.c: Likewise.
20932         Reported by Ian Beckwith <ianb@erislabs.net>.
20933
20934 2009-09-17  Eric Blake  <ebb9@byu.net>
20935
20936         rmdir: ensure correct dependency order
20937         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20938
20939 2009-09-17  Bruno Haible  <bruno@clisp.org>
20940
20941         Disable assertion that fails on NetBSD 5 / i386.
20942         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20943         Reported by Sam Steingold <sds@gnu.org>
20944         and Hasso Tepper <hasso@netbsd.org>.
20945
20946 2009-09-16  Eric Blake  <ebb9@byu.net>
20947
20948         unlinkdir: port to mingw
20949         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20950         on which no one can unlink a directory.
20951
20952         stdlib: sort witness names
20953         * modules/stdlib (Makefile.am): Sort replacements.
20954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20955         * lib/stdlib.in.h: Likewise.
20956
20957         parse-duration-tests: avoid link failure
20958         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20959         LIBINTL.
20960         Reported by Tom G. Christensen.
20961
20962         openat-tests: ensure unlinkat behaves like rmdir
20963         * tests/test-rmdir.c (main): Factor guts...
20964         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20965         * modules/rmdir-tests (Files): Ship new file.
20966         * modules/openat-tests: New test.
20967         * tests/test-unlinkat.c: Likewise.
20968
20969         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20970         * modules/rmdir-errno (Status, Notice): Now obsolete.
20971
20972         rmdir: work around cygwin 1.5.x and mingw bugs
20973         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20974         * lib/rmdir.c (rmdir): Work around it.
20975         * modules/rmdir (Status, Notice): No longer obsolete.
20976         (Files): Add dos.m4.
20977         (Depends-on): Add unistd.
20978         (configure.ac): Set witnesses.
20979         (License): Relax to LGPLv2+.
20980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20981         * modules/unistd (Makefile.am): Substitute witnesses.
20982         * lib/unistd.in.h (rmdir): Declare replacement.
20983         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20984         * modules/rmdir-tests: New tests.
20985         * tests/test-rmdir.c: Likewise.
20986
20987 2009-09-15  Eric Blake  <ebb9@byu.net>
20988
20989         fchdir: improve use of replacement functions
20990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20991         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20992         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20993         REPLACE_CLOSEDIR.
20994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20995         * modules/sys_stat (Makefile.am): Substitute correct witness.
20996         * modules/dirent (Makefile.am): Likewise.
20997         * modules/unistd (Makefile.am): Likewise.
20998         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20999         * lib/unistd.in.h (dup): Likewise.
21000         * lib/sys_stat.in.h (fstat): Likewise.
21001
21002         maint: ignore gnulib-tool temp files
21003         * .gitignore: Ignore files created during gnulib-tool --test.
21004
21005 2009-09-13  Jim Meyering  <meyering@redhat.com>
21006
21007         posixtm: don't reject a time that specify "60" as the number of seconds
21008         * lib/posixtm.c (posixtime): The code to reject invalid dates
21009         would also reject a time specified with the .60 suffix.
21010         But POSIX allows that, in order to accommodate leap seconds.
21011         So don't reject it.
21012         (main): Adjust tests accordingly.
21013         * modules/posixtm (Depends-on): Add stpcpy.
21014
21015 2009-09-11  Jim Meyering  <meyering@redhat.com>
21016
21017         announce-gen: include [$release_type] in emitted Subject:
21018         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
21019         e.g., [stable] in the emitted Subject: line.
21020
21021 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21022
21023         Remove obsolete macros from several modules.
21024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
21025         obsolete Autoconf macros with their modern counterparts.
21026         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
21027         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
21028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21029         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21030         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
21031         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21033         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21034         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21035         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
21036         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21038         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
21039         * m4/sockets.m4 (gl_SOCKETS): Likewise.
21040         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
21041         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
21042         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21043         * m4/time_r.m4 (gl_TIME_R): Likewise.
21044         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21045         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
21046         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21047
21048         Fix copyright header in build-aux scripts.
21049         * build-aux/git-version-gen: Fix copyright header to match GPLv3
21050         recommendation.
21051         * build-aux/ncftpput-ftp: Likewise.
21052         * build-aux/update-copyright: Likewise.
21053
21054 2009-09-09  Eric Blake  <ebb9@byu.net>
21055
21056         test-link: allow Linux choice of errno
21057         * tests/test-link.c (main): Relax test for alternate error.
21058
21059         strndup: fix improper m4 caching
21060         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
21061         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
21062         (gl_PREREQ_STRNDUP): Delete.
21063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
21064         * modules/string (Makefile.am): Substitute it.
21065         * lib/string.in.h (strndup): Modernize prototype.
21066
21067         getcwd: port to mingw
21068         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
21069         different from the POSIX assumptions made throughout the getcwd
21070         module; fortunately, the mingw getcwd does not need replacement.
21071         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
21072         * modules/getcwd-tests: New test.
21073         * tests/test-getcwd.c: Likewise.
21074
21075         link: fix platform bugs
21076         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
21077         * lib/link.c (link): Work around them.  Fix related mingw bug.
21078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
21079         * modules/unistd (Makefile.am): Substitute it.
21080         * lib/unistd.in.h (link): Declare replacement.
21081         * doc/posix-functions/link.texi (link): Document this.
21082         * modules/link (Depends-on): Add strdup-posix, sys_stat.
21083
21084         test-link: consolidate into single C program, test more cases
21085         * tests/test-link.sh: Delete.
21086         * tests/test-link.c: Test more error conditions.  Exposes bugs on
21087         at least Cygwin and Solaris.
21088         * modules/link-tests (Files): Remove unused file.
21089         (Depends-on): Add errno, sys_stat.
21090         (Makefile.am): Simplify.
21091
21092 2009-09-08  Bruno Haible  <bruno@clisp.org>
21093
21094         Work around towlower, towupper bug on mingw.
21095         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
21096         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
21097         * doc/posix-functions/towlower.texi: Mention the mingw bug.
21098         * doc/posix-functions/towupper.texi: Likewise.
21099         Reported by Eric Blake.
21100
21101 2009-09-08  Jim Meyering  <meyering@redhat.com>
21102
21103         build: don't try to run autoheader if we don't use it
21104         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
21105         is not used in configure.ac.
21106
21107 2009-09-08  Eric Blake  <ebb9@byu.net>
21108
21109         euidaccess: fix compilation error
21110         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
21111
21112         rawmemchr: relax license
21113         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
21114         okay.
21115         Reported by Jim Meyering.
21116
21117         mkfifoat: new module
21118         * modules/mkfifoat: New file.
21119         * lib/mkfifoat.c: Likewise.
21120         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
21121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21122         * modules/sys_stat (Makefile.am): Use them.
21123         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
21124         * MODULES.html.sh (File system functions): Mention module.
21125         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21126         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21127         * modules/mkfifoat-tests: New test.
21128         * tests/test-mkfifoat.c: Likewise.
21129
21130         strchrnul: relax license
21131         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
21132         okay.
21133         Reported by Jim Meyering.
21134
21135 2009-09-08  Eric Blake  <ebb9@byu.net>
21136
21137         fstatat: fix compilation on Solaris
21138         * lib/fstatat.c (includes): Add fcntl.h.
21139         Reported by Pádraig Brady.
21140
21141 2009-09-07  Eric Blake  <ebb9@byu.net>
21142
21143         rename: modernize replacement
21144         * modules/rename (Depends-on): Add stdio.
21145         (configure.ac): Declare witness.
21146         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
21147         stdio take care of replacement.
21148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21149         * modules/stdio (Makefile.am): Substitute them.
21150         * lib/stdio.in.h (rename): Declare replacement.
21151         * lib/rename.c (includes): Allow cross-compilation to non-windows
21152         machines.
21153         * doc/posix-functions/rename.texi (rename): Improve
21154         documentation.
21155
21156         stdio: sort witness names
21157         * modules/stdio (Makefile.am): Sort replacements.
21158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21159         * lib/stdio.in.h: Likewise.
21160
21161         getcwd: minor cleanups
21162         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
21163         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
21164
21165         openat: provide more convenience names
21166         * modules/faccessat (configure.ac): Add C witness.
21167         * lib/unistd.in.h (readlinkat): Fix typo.
21168         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
21169         convenience wrappers.
21170         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
21171         wrappers in syntax checks.
21172
21173 2009-09-06  Eric Blake  <ebb9@byu.net>
21174
21175         doc: fix comments in recent patches
21176         * lib/faccessat.c: Mention correct function.
21177         * lib/fchmodat.c: Likewise.
21178         * lib/fchownat.c: Likewise.
21179         * lib/symlinkat.c: Likewise.
21180         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
21181         constants.
21182
21183         faccessat, symlinkat: continue cleanup of previous patch
21184         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
21185         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21186         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
21187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
21188         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
21189         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
21190         set.
21191
21192 2009-09-06  Bruno Haible  <bruno@clisp.org>
21193
21194         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
21195         (fstatat): Declare if GNULIB_FSTATAT is set.
21196         (mkdirat): Declare if GNULIB_MKDIRAT is set.
21197         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
21198         (unlinkat): Declare if GNULIB_UNLINKAT is set.
21199         * modules/fcntl-h (Files): Remove m4/openat.m4.
21200         * modules/sys_stat (Files): Remove m4/openat.m4.
21201         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
21202         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
21203         * modules/unistd (Files): Remove m4/openat.m4.
21204         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
21205         GNULIB_OPENAT.
21206         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
21207         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
21208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21209         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
21210         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
21211         gl_OPENAT_DEFAULTS.
21212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
21213         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
21214         Don't require gl_OPENAT_DEFAULTS.
21215         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
21216         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
21217         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
21218         (gl_OPENAT_DEFAULTS): Remove macro.
21219
21220 2009-09-06  Bruno Haible  <bruno@clisp.org>
21221
21222         * modules/openat (configure.ac): Remove unneeded witness.
21223
21224 2009-09-06  Bruno Haible  <bruno@clisp.org>
21225
21226         Set errno to ENOSYS when a function is entirely unsupported.
21227         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
21228         EOPNOTSUPP.
21229         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21230         * modules/chown (Depends-on): Remove errno.
21231
21232 2009-09-06  Bruno Haible  <bruno@clisp.org>
21233
21234         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
21235
21236 2009-09-06  Bruno Haible  <bruno@clisp.org>
21237
21238         * lib/sys_stat.in.h: Fix preprocessor command indentation.
21239
21240 2009-09-06  Ben Pfaff  <blp@gnu.org>
21241             Bruno Haible  <bruno@clisp.org>
21242
21243         Work around a glibc bug in strtok_r.
21244         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
21245         Undefine if UNDEFINE_STRTOK_R is set.
21246         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
21247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21248         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
21249         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
21250         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
21251         UNDEFINE_STRTOK_R.
21252         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
21253
21254 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21255
21256         exclude: minor fix
21257         * lib/exclude.c: Include wctype.h
21258
21259 2009-09-06  Akim Demaille  <demaille@gostai.com>
21260
21261         bootstrap: improve error message
21262         * build-aux/bootstrap (find_tool): Upon failure, report the list
21263         of candidates.
21264         Honor the initial value of the envvar.
21265
21266 2009-09-05  Eric Blake  <ebb9@byu.net>
21267
21268         symlinkat: new module
21269         * modules/symlinkat: New file.
21270         * lib/symlinkat.c: Likewise.
21271         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21273         * modules/unistd (Makefile.am): Use them.
21274         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
21275         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
21276         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
21277         * MODULES.html.sh (File system functions): Mention module.
21278         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21279         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21280         * modules/symlinkat-tests: New test.
21281         * tests/test-symlinkat.c: Likewise.
21282
21283         test-openat-safer: add more checks
21284         * tests/test-openat-safer.c (main): Check more code paths.
21285
21286 2009-09-05  Jim Meyering  <meyering@redhat.com>
21287
21288         syntax-check: detect unnecessary inclusion of openat.h
21289         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
21290
21291 2009-09-05  Bruno Haible  <bruno@clisp.org>
21292
21293         Support towlower, towupper.
21294         * doc/posix-functions/towlower.texi: Mention module wctype.
21295         * doc/posix-functions/towupper.texi: Likewise.
21296         * lib/wctype.in.h (towlower, towupper): New functions.
21297         * tests/test-wctype.c: Include stdio.h, stdlib.h.
21298         (ASSERT): New macro.
21299         (e): New variable.
21300         (main): Test also towlower, towupper. Test WEOF argument.
21301         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21302
21303 2009-09-05  Bruno Haible  <bruno@clisp.org>
21304
21305         Fix conversion behaviour when the input is invalid.
21306         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
21307         mark occurring in first pass of indirect conversion.
21308         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
21309         input.
21310         Found by clang's static analyzer.
21311
21312 2009-09-05  Bruno Haible  <bruno@clisp.org>
21313
21314         * tests/test-striconveh.c (main): Test indirect conversion on platforms
21315         where direct conversion is possible.
21316
21317 2009-09-04  Eric Blake  <ebb9@byu.net>
21318
21319         openat: fail with ENOENT on empty name
21320         * lib/openat-proc.c (openat_proc_name): Special-case the empty
21321         buffer.
21322
21323         link-follow: fix logic bug in prior patch
21324         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
21325         reversed sense of yes and no in prior patch.  Avoid confusing
21326         compilation failure with desired semantics.
21327
21328         link-follow: accomodate mingw and cross-compilation
21329         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
21330         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
21331         cross-compilation results to -1, to make linkat easier to
21332         implement when cross-compiling.  Trivially support mingw.
21333         * modules/link-follow (configure.ac): Call new name.
21334         * NEWS: Mention this.
21335
21336 2009-09-03  Eric Blake  <ebb9@byu.net>
21337
21338         faccessat: compile replacement
21339         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
21340         needed.
21341
21342         fts: fix compilation error
21343         * lib/fts.c (includes): Re-add "openat.h", for
21344         openat_needs_fchdir.
21345
21346         faccessat: new module
21347         * modules/faccessat: New file.
21348         * lib/faccessat.c: Likewise.
21349         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21351         * modules/unistd (Makefile.am): Use it.
21352         * lib/unistd.in.h (faccessat): Declare it.
21353         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
21354         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
21355         * MODULES.html.sh (File system functions): Mention it.
21356         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
21357         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21358
21359         euidaccess: prefer POSIX over non-standard implementation
21360         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
21361         * lib/euidaccess.c (euidaccess): Use it if available.
21362
21363         openat: make template easier to use
21364         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
21365         AT_FUNC_F2 to be undefined.
21366         (VALIDATE_FLAG): New macro; use it to reject bad flags.
21367         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
21368         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
21369         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
21370         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
21371         Likewise.
21372         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
21373         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
21374         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
21375         Likewise.
21376
21377         openat: declare in POSIX headers
21378         * NEWS: Mention this.
21379         * modules/openat (configure.ac): Declare witnesses.
21380         (Depends-on): Add fcntl-h, sys_stat, unistd.
21381         (Include): Mention correct headers.
21382         * modules/fcntl-h (Depends-on): Add link-warning.
21383         (Files): Add openat.m4.
21384         (Makefile.am): Substitute witnesses.
21385         * modules/sys_stat (Files, Makefile.am): Likewise.
21386         * modules/unistd (Files, Makefile.am): Likewise.
21387         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
21388         (gl_OPENAT_DEFAULTS): New macro.
21389         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
21390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
21391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
21392         (SYS_STAT_H): Remove unused variable.
21393         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
21394         * lib/fcntl--.h (includes): Remove unneeded header.
21395         * lib/openat-safer.c (includes): Likewise.
21396         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
21397         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
21398         appropriate headers.
21399         (__OPENAT_PREFIX): Delete.
21400         * lib/fcntl.in.h (openat): Provide declaration.
21401         (AT_FDCWD): Fix Solaris bug.
21402         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
21403         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
21404         * lib/fchmodat.c (includes):  Adjust to find declaration.
21405         * lib/fchownat.c (includes): Likewise.
21406         * lib/mkdirat.c (includes): Likewise.
21407         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
21408         still visible.
21409
21410 2009-09-02  Eric Blake  <ebb9@byu.net>
21411
21412         errno: use consistently
21413         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
21414         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
21415         * lib/canonicalize.c (ELOOP): Likewise.
21416         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
21417         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
21418         * lib/lchown.c (EOPNOTSUPP): Likewise.
21419         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
21420         * lib/savewd.c (ESTALE): Likewise.
21421         * lib/settime.c (ENOSYS): Likewise.
21422         * lib/utimens.c (ENOSYS): Likewise.
21423         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
21424         * lib/chdir-safer.c (ELOOP): Likewise.
21425         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
21426         * modules/c-stack (Depends-on): Add errno.
21427         * modules/canonicalize (Depends-on): Likewise.
21428         * modules/chdir-safer (Depends-on): Likewise.
21429         * modules/fdopendir (Depends-on): Likewise.
21430         * modules/inet_ntop (Depends-on): Likewise.
21431         * modules/inet_pton (Depends-on): Likewise.
21432         * modules/lchown (Depends-on): Likewise.
21433         * modules/openat (Depends-on): Likewise.
21434         * modules/savewd (Depends-on): Likewise.
21435         * modules/settime (Depends-on): Likewise.
21436         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
21437
21438         fts: avoid leaking fds
21439         * modules/fts (Depends-on): Add cloexec.
21440         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
21441         flag.
21442
21443         fts: make directory fds more robust
21444         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
21445         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
21446
21447         backupfile, chdir-long, fts, savedir: make safer
21448         * lib/backupfile.c (includes): Use "dirent--.h", since
21449         numbered_backup can write to stderr during readdir.
21450         * lib/savedir.c (includes): Likewise.
21451         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
21452         emulation can write to stderr on failure.
21453         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
21454         * lib/getcwd.c: Document why opendir_safer is unused.
21455         * lib/glob.c: Likewise.
21456         * lib/scandir.c: Likewise.
21457         * lib/openat-proc.c: Likewise, for open_safer.
21458         * modules/backupfile (Depends-on): Add dirent-safer.
21459         * modules/savedir (Depends-on): Likewise.
21460         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
21461         * modules/chdir-long (Depends-on): Add openat-safer.
21462
21463         openat-safer: new module
21464         * modules/openat-safer: New file.
21465         * lib/openat-safer.c: Likewise.
21466         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
21467         * lib/fcntl-safer.h (openat_safer): Declare.
21468         * lib/fcntl--.h (openat): Override.
21469         * MODULES.html.sh (File descriptor based I/O): Mention it.
21470         * lib/openat.h: Add double-inclusion guards.
21471         * lib/openat.c (includes): Only include "fcntl-safer.h", not
21472         "fcntl--.h", so we can implement openat.
21473         * modules/openat-safer-tests: New test.
21474         * tests/test-openat-safer.c: New file.
21475
21476         dirent-safer: new module
21477         * modules/dirent-safer: New file.
21478         * lib/dirent--.h: Likewise.
21479         * lib/dirent-safer.h: Likewise.
21480         * lib/opendir-safer.c: Likewise.
21481         * m4/dirent-safer.m4: Likewise.
21482         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
21483         * modules/dirent-safer-tests: New test.
21484         * tests/test-dirent-safer.c: New file.
21485         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
21486
21487         fdopendir: optimize on mingw
21488         * lib/unistd.in.h (_gl_directory_name): New prototype.
21489         * lib/fchdir.c (_gl_directory_name): Implement it.
21490         (fchdir): Use it to simplify implementation.
21491         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
21492         fchdir, when available, to avoid calling [f]chdir().
21493
21494         fdopendir: split into its own module
21495         * lib/openat.c (fdopendir): Move...
21496         * lib/fdopendir.c: ...into new file.
21497         * modules/fdopendir: New module.
21498         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
21499         * modules/openat (Depends-on): Add fdopendir.
21500         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
21501         fdopendir here.
21502         * modules/savedir (Depends-on): Only need fdopendir, not full
21503         openat.
21504         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
21505         * lib/openat.h (fdopendir): Drop prototype.
21506         * lib/dirent.in.h (fdopendir): Provide prototype.
21507         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
21508         * modules/dirent (Makefile.am): Substitute them.
21509         * MODULES.html.sh (File system functions): Mention it.
21510         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
21511         * modules/fdopendir-tests: New file.
21512         * tests/test-fdopendir.c: Likewise.
21513
21514         fchdir: use more consistent macro convention
21515         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
21516         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
21517         REPLACE_FCHDIR, rather than relying on config.h macros.
21518         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
21519         inside a single make-time REPLACE_FCHDIR block, rather than using
21520         the config.h FCHDIR_REPLACEMENT.
21521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
21522         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
21523         Manage fstat replacement.
21524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
21525         REPLACE_FCHDIR.
21526         * modules/sys_stat (Files): Add m4/unistd_h.m4.
21527         (Makefile.am): Substitute REPLACE_FCHDIR.
21528         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
21529         FCHDIR_REPLACEMENT.
21530         * lib/dup-safer.c (dup_safer): Likewise.
21531         * lib/dup2.c (rpl_dup2): Likewise.
21532         * lib/dup3.c (rpl_dup3): Likewise.
21533         * lib/open.c (rpl_open): Likewise.
21534
21535         fchdir: simplify error handling, and support dup3
21536         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
21537         stdbool, malloc-posix, realloc-posix.
21538         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
21539         (ensure_dirs_slot): Return false on allocation failure.
21540         (rpl_dup2): Delete.
21541         (_gl_register_dup): New function.
21542         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
21543         (_gl_register_fd): Close fd on allocation failure.
21544         * lib/fcntl.in.h (_gl_register_fd): Update signature.
21545         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
21546         prototype.
21547         (rpl_dup2_fchdir): Delete prototype.
21548         * lib/open.c (open): Update caller.
21549         * lib/dup2.c (dup2): Track fchdir metadata.
21550         * lib/dup3.c (dup3): Likewise.
21551         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
21552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
21553
21554 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21555
21556         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
21557         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
21558         don't pass arguments to AC_OUTPUT.
21559
21560 2009-09-02  Bruno Haible  <bruno@clisp.org>
21561
21562         * modules/mkdtemp (License): Relicense under LGPLv2+.
21563         Reported by Paolo Bonzini.
21564
21565 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21566
21567         Replace uses of obsolete autoconf macros in Jim's modules.
21568         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
21569         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
21570         can evoke a warning from autoconf when run with -Wobsolete
21571         enabled.  They were declared obsolete for good reasons (see
21572         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21573         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21574         should not continue using the deprecated macros.
21575         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21576         obsolete Autoconf macros with modern counterparts.
21577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21578         * m4/dos.m4 (gl_AC_DOS): Likewise.
21579         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21580         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21581         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21582         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21583         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21584         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21585         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21586         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21587         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21588         Likewise.
21589         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21590         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21591         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21592         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21593         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21594         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21595
21596 2009-09-01  Eric Blake  <ebb9@byu.net>
21597
21598         fchdir: fix off-by-one bug in previous patch
21599         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21600         (_gl_unregister_fd): Delete useless if.
21601
21602 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21603
21604         maint.mk: sort the list of syntax-check rules
21605         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
21606         easier to get a sense of progress when the rules are run sequentially
21607         and take a long time.
21608
21609 2009-09-01  Simon Josefsson  <simon@josefsson.org>
21610
21611         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
21612         * modules/netinet_in: Likewise.
21613         * modules/sys_file: Likewise.
21614         * modules/sys_ioctl: Likewise.
21615         * modules/sys_select: Likewise.
21616         * modules/sys_socket: Likewise.
21617         * modules/sys_stat: Likewise.
21618         * modules/sys_time: Likewise.
21619         * modules/sys_times: Likewise.
21620         * modules/sys_utsname: Likewise.
21621         * modules/sys_wait: Likewise.
21622
21623 2009-09-01  Jim Meyering  <meyering@redhat.com>
21624
21625         fts: help ensure that return values are not ignored
21626         * lib/fts_.h (__GNUC_PREREQ): Define.
21627         (__attribute_warn_unused_result__): Define.
21628         (fts_children, fts_close, fts_open, fts_read): Declare with
21629         __attribute_warn_unused_result__.
21630
21631         fts: fts_close now fails also when closing a dir file descriptor fails
21632         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
21633         and propagate to caller, along with errno.
21634
21635         announce-gen: correct formatting in --help output
21636         * build-aux/announce-gen (usage): Move the one-line description in
21637         --help output "up", to where it belongs, just after Usage:.
21638
21639 2009-08-31  Eric Blake  <ebb9@byu.net>
21640
21641         fchdir: port to mingw
21642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
21643         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
21644         opened, then use a substitute.
21645         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
21646         replacement.
21647         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
21648         (_gl_register_fd): No need to check stat if open already filters
21649         all directories.
21650         (fchdir): Fix error condition to match POSIX.
21651         * modules/fchdir (Depends-on): Add sys_stat.
21652         * doc/posix-functions/open.texi (open): Document the limitation.
21653         * modules/fchdir-tests: New file.
21654         * tests/test-fchdir.c: Likewise.
21655
21656         canonicalize: allow cross-testing from cygwin to mingw
21657         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
21658         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
21659         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
21660         Likewise.
21661         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
21662         target does not support symlinks.
21663         * tests/test-canonicalize-lgpl.sh: Likewise.
21664
21665         chown: avoid compilation warning on mingw
21666         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
21667         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
21668         mingw.
21669         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21670         * modules/chown (Depends-on): Add errno.
21671
21672 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21673
21674         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
21675         command.
21676
21677 2009-08-31  Jim Meyering  <meyering@redhat.com>
21678
21679         canonicalize: remove useless initialization
21680         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
21681         initialization of local, "end".
21682
21683 2009-08-30  Bruno Haible  <bruno@clisp.org>
21684
21685         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
21686         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
21687         ENOSYS.
21688
21689 2009-08-30  Bruno Haible  <bruno@clisp.org>
21690
21691         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
21692         /usr/xpg4/bin/tr when it exists.
21693         * tests/test-pipe-filter-gi1.sh: Likewise.
21694
21695 2009-08-30  Bruno Haible  <bruno@clisp.org>
21696
21697         Work around deficient /usr/bin/id program on Solaris.
21698         * tests/test-file-has-acl.sh (ID): New variable.
21699         * tests/test-set-mode-acl.sh (ID): Likewise.
21700         * tests/test-copy-acl.sh (ID): Likewise.
21701         * tests/test-copy-file.sh (ID): Likewise.
21702
21703 2009-08-30  Bruno Haible  <bruno@clisp.org>
21704
21705         New module 'xstriconveh'.
21706         * lib/xstriconveh.h: New file.
21707         * lib/xstriconveh.c: New file.
21708         * modules/xstriconveh: New file.
21709
21710 2009-08-30  Bruno Haible  <bruno@clisp.org>
21711
21712         Make it easier to use mem_cd_iconveh.
21713         * lib/striconveh.h (iconveh_t): New type.
21714         (iconveh_open, iconveh_close): New declarations.
21715         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21716         with a single 'const iconveh_t *' argument.
21717         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
21718         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21719         with a single 'const iconveh_t *' argument.
21720         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
21721         * tests/test-striconveh.c (main): Update.
21722         * NEWS: Mention the change.
21723
21724 2009-08-30  Bruno Haible  <bruno@clisp.org>
21725
21726         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
21727         problem.
21728
21729 2009-08-30  Bruno Haible  <bruno@clisp.org>
21730
21731         Work around iconv_open problem on Solaris.
21732         * lib/iconv_open-solaris.gperf: New file.
21733         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21734         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21735         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21736         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21737         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21738         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21739
21740 2009-08-29  Jim Meyering  <meyering@redhat.com>
21741
21742         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21743         * top/maint.mk (cvs-check): Remove target; it was just an alias
21744         to the better-named vc-diff-check.
21745         (maintainer-distcheck): Remove rule.  It was used only from
21746         the (alpha/beta/major) target, and all of its commands but one
21747         were coreutils-specific.
21748         (vc-dist): Remove rule.
21749         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21750         Run vc-diff-check, not vc-dist.
21751         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21752
21753 2009-08-27  Bruno Haible  <bruno@clisp.org>
21754
21755         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21756         of 0.
21757
21758 2009-08-27  Bruno Haible  <bruno@clisp.org>
21759
21760         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21761         compilers.
21762         * doc/func.texi: Document the SunPRO C bug.
21763
21764 2009-08-27  Bruno Haible  <bruno@clisp.org>
21765
21766         Fix link error on Solaris.
21767         * tests/test-parse-duration.c (xstrdup): Remove function.
21768
21769 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21770
21771         ignore-value: handle pointer types, too
21772         * lib/ignore-value.h (__attribute__): Remove definition.
21773         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21774         of a more concise and more-often effective "(void) i" statement.
21775         (ignore_ptr): New function to suppress warnings from functions that
21776         return pointers, and to make it explicit that one function doesn't
21777         handle all cases.
21778
21779 2009-08-25  Bruno Haible  <bruno@clisp.org>
21780
21781         dup2: work around a Linux bug.
21782         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21783         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21784         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21785         Reported by Simon Josefsson.
21786
21787 2009-08-25  Jim Meyering  <meyering@redhat.com>
21788
21789         libguestfs uses gnulib
21790         * users.txt: Add libguestfs.
21791
21792 2009-08-24  Eric Blake  <ebb9@byu.net>
21793
21794         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21795         * lib/pipe2.c (includes): Add binary-io.h.
21796         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21797
21798 2009-08-24  Bruno Haible  <bruno@clisp.org>
21799
21800         Tolerate declared but missing accept4 syscall.
21801         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21802         available.
21803         * lib/sys_socket.in.h (accept4): If the function is already present,
21804         override it.
21805         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21806         * modules/accept4 (Makefile.am): Compile accept4.c always.
21807         Reported by Paolo Bonzini and Eric Blake.
21808
21809 2009-08-23  Bruno Haible  <bruno@clisp.org>
21810
21811         New module 'accept4'.
21812         * lib/sys_socket.in.h (accept4): New declaration.
21813         * lib/accept4.c: New file.
21814         * m4/accept4.m4: New file.
21815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21816         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21817         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21818         HAVE_ACCEPT4.
21819         * modules/accept4: New file.
21820         * doc/glibc-functions/accept4.texi: Mention the new module.
21821
21822 2009-08-24  Jim Meyering  <meyering@redhat.com>
21823
21824         progname: also set global program_invocation_name, when possible
21825         Before this change, a libtool-enabled program that calls glibc's
21826         error function would report the program name as
21827         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21828         * modules/progname (configure.ac): Check for a declaration of
21829         program_invocation_name.
21830         * lib/progname.c:  Include <errno.h>.
21831         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21832         Set program_invocation_name.
21833
21834 2009-08-23  Bruno Haible  <bruno@clisp.org>
21835
21836         * lib/dup3.c: Include <string.h>.
21837
21838 2009-08-23  Bruno Haible  <bruno@clisp.org>
21839
21840         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21841         * lib/pipe2.c (pipe2): Likewise.
21842         Suggested by Eric Blake.
21843
21844 2009-08-23  Bruno Haible  <bruno@clisp.org>
21845
21846         Tolerate declared but missing dup3 syscall.
21847         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21848         * lib/unistd.in.h (dup3): If the function is already present,
21849         override it.
21850         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21851         * modules/dup3 (Makefile.am): Compile dup3.c always.
21852         Reported by Paolo Bonzini.
21853
21854 2009-08-23  Bruno Haible  <bruno@clisp.org>
21855
21856         Tolerate declared but missing pipe2 syscall.
21857         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21858         available.
21859         * lib/unistd.in.h (pipe2): If the function is already present,
21860         override it.
21861         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21862         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21863         Reported by Paolo Bonzini.
21864
21865 2009-08-23  Bruno Haible  <bruno@clisp.org>
21866
21867         * lib/pipe2.c (pipe2): Move #ifs inside function.
21868
21869 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21870
21871         quotearg: document limitations of quote_these_too
21872         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21873         those limitations are created.
21874         * lib/quotearg.h (set_char_quoting): Document that digits and
21875         letters that are special after backslash are not permitted.
21876         (quotearg_char): Cross-reference set_char_quoting documentation.
21877
21878 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21879
21880         quotearg: implement custom_quoting_style
21881         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21882         right_quote fields.
21883         (set_custom_quoting): New public function.
21884         (quotearg_buffer_restyled): Add left_quote and right_quote
21885         arguments, handle them very much like locale quoting, and update
21886         all uses.
21887         (quotearg_n_custom): New public function.
21888         (quotearg_n_custom_mem): New public function.
21889         (quotearg_custom): New public function.
21890         (quotearg_custom_mem): New public function.
21891         * lib/quotearg.h: Prototype and document new public functions.
21892         (enum quoting_style): For escape_quoting_style and
21893         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21894         ignored even though they're otherwise like c_quoting_style.
21895         Add custom_quoting_style member and document with comparison to
21896         clocale_quoting_style.
21897         * tests/test-quotearg.c (custom_quotes): New array.
21898         (custom_results): New array.
21899         (main): Extend to test custom quoting.
21900
21901 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21902
21903         quotearg: fix right quote escaping when it's in quote_these_too
21904         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21905         quote, be sure to prepend only one backslash.
21906         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21907         (main): Test it.
21908
21909 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21910
21911         quotearg-tests: test escaping of embedded locale quotes
21912         * tests/test-quotearg.c (struct result_strings): Add member for
21913         new input.
21914         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21915         (inputs): Add new input.
21916         (results_g): Add expected results.
21917         (flag_results): Likewise.
21918         (locale_results): Likewise.
21919         (compare_strings): Check those.
21920
21921 2009-08-23  Bruno Haible  <bruno@clisp.org>
21922
21923         Tests for module 'dup3'.
21924         * modules/dup3-tests: New file.
21925         * tests/test-dup3.c: New file.
21926
21927         New module 'dup3'.
21928         * lib/unistd.in.h (dup3): New declaration.
21929         * lib/dup3.c: New file.
21930         * m4/dup3.m4: New file.
21931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21932         HAVE_DUP3.
21933         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21934         * modules/dup3: New file.
21935         * doc/glibc-functions/dup3.texi: Mention the new module.
21936
21937 2009-08-23  Bruno Haible  <bruno@clisp.org>
21938
21939         Tweak the dup2 test.
21940         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21941         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21942         the test file is still empty. Fix argument order of lseek.
21943
21944 2009-08-23  Bruno Haible  <bruno@clisp.org>
21945
21946         Avoid test link errors when the modules getopt-gnu, gettext are used.
21947         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21949
21950 2009-08-23  Bruno Haible  <bruno@clisp.org>
21951
21952         Fix getdtablesize() on mingw.
21953         * lib/getdtablesize.c (getdtablesize): Implement differently.
21954         * lib/unistd.in.h (getdtablesize): Improve comment.
21955
21956 2009-08-23  Bruno Haible  <bruno@clisp.org>
21957
21958         New module 'mkostemp'.
21959         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21960         * lib/stdlib.in.h (mksotemp): New declaration.
21961         * lib/mkostemp.c: New file, from glibc with modifications.
21962         * lib/tempname.h (GT_FILE): Remove outdated comment.
21963         (gen_tempname): Add flags argument.
21964         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21965         (__GT_FILE): Map to 1.
21966         (small_open, large_open): Remove macros.
21967         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21968         * lib/mkstemp.c (mkstemp): Update.
21969         * lib/mkdtemp.c (mkdtemp): Likewise.
21970         * m4/mkostemp.m4: New file.
21971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21972         HAVE_MKOSTEMP.
21973         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21974         HAVE_MKOSTEMP.
21975         * modules/mkostemp: New file, based on modules/mkstemp.
21976         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21977         * NEWS: Mention the change.
21978
21979 2009-08-23  Bruno Haible  <bruno@clisp.org>
21980
21981         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21982         Reported by Eric Blake.
21983
21984 2009-08-23  Bruno Haible  <bruno@clisp.org>
21985
21986         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21987         Reported by Eric Blake.
21988
21989 2009-08-23  Bruno Haible  <bruno@clisp.org>
21990
21991         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21992         * modules/pipe2 (Depends-on): Likewise.
21993
21994 2009-08-23  Eric Blake  <ebb9@byu.net>
21995
21996         fcntl-h: add O_TTY_INIT support
21997         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21998         * tests/test-fcntl-h.c (o): Test it.
21999         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22000
22001         fcntl-h: rename from fcntl, in preparation for fcntl(2)
22002         * modules/fcntl: Move <fcntl.h> header replacement...
22003         * modules/fcntl-h: ...to new name, so as not to collide with
22004         like-named function.
22005         * tests/test-fcntl.c: Rename...
22006         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
22007         * modules/fcntl-tests: Rename...
22008         * modules/fcntl-h-tests: ...to this.  Update test file name.
22009         * modules/chdir-long (Depends-on): Update clients.
22010         * modules/chdir-safer (Depends-on): Likewise.
22011         * modules/fcntl-safer (Depends-on): Likewise.
22012         * modules/fts (Depends-on): Likewise.
22013         * modules/mkancesdirs (Depends-on): Likewise.
22014         * modules/mkdir-p (Depends-on): Likewise.
22015         * modules/open (Depends-on): Likewise.
22016         * modules/savewd (Depends-on): Likewise.
22017         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
22018         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22019
22020 2009-08-22  Bruno Haible  <bruno@clisp.org>
22021
22022         * modules/binary-io (License): Relicense under LGPL.
22023         * modules/pipe2 (License): Likewise.
22024
22025 2009-08-22  Bruno Haible  <bruno@clisp.org>
22026
22027         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
22028         return value.
22029         * lib/pipe-filter-gi.c (filter_init): Likewise.
22030         Reported by Eric Blake.
22031
22032 2009-08-22  Bruno Haible  <bruno@clisp.org>
22033
22034         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
22035         * modules/pipe (Depends-on): Add pipe2.
22036
22037 2009-08-22  Bruno Haible  <bruno@clisp.org>
22038
22039         Tests for module 'pipe2'.
22040         * modules/pipe2-tests: New file.
22041         * tests/test-pipe2.c: New file.
22042
22043         New module 'pipe2'.
22044         * lib/unistd.in.h (pipe2): New declaration.
22045         * lib/pipe2.c: New file.
22046         * m4/pipe2.m4: New file.
22047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
22048         HAVE_PIPE2.
22049         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
22050         * modules/pipe2: New file.
22051         * doc/glibc-functions/pipe2.texi: Mention the new module.
22052
22053 2009-08-22  Bruno Haible  <bruno@clisp.org>
22054
22055         Reference some new glibc functions.
22056         * doc/glibc-functions/accept4.texi: New file.
22057         * doc/glibc-functions/dup3.texi: New file.
22058         * doc/glibc-functions/mkostemp.texi: New file.
22059         * doc/glibc-functions/pipe2.texi: New file.
22060         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
22061         (Glibc sys/socket.h): Refer to accept4.
22062         (Glibc unistd.h): Refer to dup3, pipe2.
22063         Reported by Eric Blake.
22064
22065 2009-08-22  Jim Meyering  <meyering@redhat.com>
22066             Bruno Haible  <bruno@clisp.org>
22067
22068         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
22069         This makes it so packages using automake-1.11's silent-rules option
22070         can print e.g., a single "GEN    configmake.h" line, rather than
22071         the 30+ statements that perform the job.  If you want to see the
22072         actual commands, you can still run "make V=1".
22073         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
22074         so that make output is abbreviated when those variables are defined
22075         appropriately.
22076         * modules/argz: Likewise.
22077         * modules/arpa_inet: Likewise.
22078         * modules/byteswap: Likewise.
22079         * modules/configmake: Likewise.
22080         * modules/dirent: Likewise.
22081         * modules/errno: Likewise.
22082         * modules/fcntl: Likewise.
22083         * modules/float: Likewise.
22084         * modules/fnmatch: Likewise.
22085         * modules/getopt-posix: Likewise.
22086         * modules/glob: Likewise.
22087         * modules/iconv_open: Likewise.
22088         * modules/inttypes: Likewise.
22089         * modules/localcharset: Likewise.
22090         * modules/locale: Likewise.
22091         * modules/math: Likewise.
22092         * modules/netdb: Likewise.
22093         * modules/netinet_in: Likewise.
22094         * modules/poll: Likewise.
22095         * modules/posix_spawnp-tests: Likewise.
22096         * modules/sched: Likewise.
22097         * modules/search: Likewise.
22098         * modules/selinux-h: Likewise.
22099         * modules/signal: Likewise.
22100         * modules/spawn: Likewise.
22101         * modules/stdarg: Likewise.
22102         * modules/stdbool: Likewise.
22103         * modules/stddef: Likewise.
22104         * modules/stdint: Likewise.
22105         * modules/stdio: Likewise.
22106         * modules/stdlib: Likewise.
22107         * modules/string: Likewise.
22108         * modules/strings: Likewise.
22109         * modules/sys_file: Likewise.
22110         * modules/sys_ioctl: Likewise.
22111         * modules/sys_select: Likewise.
22112         * modules/sys_socket: Likewise.
22113         * modules/sys_stat: Likewise.
22114         * modules/sys_time: Likewise.
22115         * modules/sys_times: Likewise.
22116         * modules/sys_utsname: Likewise.
22117         * modules/sys_wait: Likewise.
22118         * modules/sysexits: Likewise.
22119         * modules/time: Likewise.
22120         * modules/unistd: Likewise.
22121         * modules/wchar: Likewise.
22122         * modules/wctype: Likewise.
22123
22124 2009-08-22  Jim Meyering  <meyering@redhat.com>
22125
22126         announce-gen: detect write failure
22127         * build-aux/announce-gen: Add Coda at end.
22128         Remove equivalent-but-more-verbose block at top.
22129
22130 2009-08-19  Akim Demaille  <demaille@gostai.com>
22131
22132         bootstrap: --help to stdout.
22133         * bootstrap (usage): Don't send --help to stderr.
22134         Use a here doc instead of a long string.
22135
22136 2009-08-21  Eric Blake  <ebb9@byu.net>
22137
22138         test-popen-safer: split from test-popen
22139         * tests/test-popen.c (main): Move...
22140         * tests/test-popen.h: ...into new file.
22141         * tests/test-popen-safer2.c: New file.
22142         * modules/popen-tests (Files): Add test-popen.h.
22143         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
22144         Suggested by Bruno Haible.
22145
22146         test-fcntl-safer: split from test-open
22147         * tests/test-open.c (main): Move...
22148         * tests/test-open.h: ...into new file.
22149         * tests/test-fcntl-safer.c: New file.
22150         * modules/open-tests (Files): Add test-open.h.
22151         * modules/fcntl-safer-tests: New file.
22152         Suggested by Bruno Haible.
22153
22154         test-fopen-safer: split from test-fopen
22155         * tests/test-fopen.c (main): Move...
22156         * tests/test-fopen.h: ...into new file.
22157         * tests/test-fopen-safer.c: New file.
22158         * modules/fopen-tests (Files): Add test-fopen.h.
22159         * modules/fopen-safer-tests: New file.
22160         Suggested by Bruno Haible.
22161
22162 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22163
22164         popen-safer: test O_CLOEXEC at run-time.
22165         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
22166
22167 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22168
22169         fcntl: move more flags to the header
22170         * lib/cloexec.c: Do not define FD_CLOEXEC here.
22171         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
22172         * lib/fcntl.in.h: Do both things here.
22173
22174 2009-08-21  Jim Meyering  <meyering@redhat.com>
22175
22176         consistently remove $@-t before redirecting to it
22177         * modules/argz: Remove $@-t and $@ before redirecting to the former.
22178         * modules/alloca-opt: Likewise.
22179         * modules/byteswap: Likewise.
22180         * modules/fnmatch: Likewise.
22181         * modules/getopt-posix: Likewise.
22182         * modules/glob: Likewise.
22183         * modules/poll: Likewise.
22184         * modules/posix_spawnp-tests: Likewise.
22185         * modules/sys_socket: Likewise.
22186         * modules/sysexits: Likewise.
22187
22188 2009-08-21  Eric Blake  <ebb9@byu.net>
22189
22190         popen: simplify access to original popen
22191         * lib/popen.c (rpl_popen): No need to worry about popen being a
22192         macro.
22193         Reported by Bruno Haible.
22194
22195 2009-08-20  Eric Blake  <ebb9@byu.net>
22196
22197         build: avoid some compiler warnings
22198         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
22199         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
22200         type.
22201         (new_exclude_segment, excluded_file_pattern_p)
22202         (excluded_file_name_p): Reduce scope.
22203         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
22204         old-style declaration.
22205
22206 2009-08-20  Simon Josefsson  <simon@josefsson.org>
22207
22208         * tests/test-exclude1.sh: Handle Windows EOL.
22209         * tests/test-exclude2.sh: Likewise.
22210         * tests/test-exclude3.sh: Likewise.
22211         * tests/test-exclude4.sh: Likewise.
22212         * tests/test-exclude5.sh: Likewise.
22213         * tests/test-exclude6.sh: Likewise.
22214         * tests/test-exclude7.sh: Likewise.
22215
22216 2009-08-19  Akim Demaille  <demaille@gostai.com>
22217
22218         bootstrap: find sha1sum when named gsha1sum.
22219         * bootstrap (find_tool): New.
22220         ($SHA1SUM): New.
22221         Use it.
22222
22223 2009-08-20  Jim Meyering  <meyering@redhat.com>
22224
22225         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
22226         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
22227         expression that converts "." in a file name to "\." in the resulting
22228         regexp.  Start with a dummy statement, so that prior shell variable
22229         definitions are expanded portably.  Reported by Simon Josefsson.
22230
22231 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
22232
22233         Fix polling for writeability of a screen buffer.
22234         * lib/poll.c: Distinguish input and screen buffers for the
22235         Win32 implementation.
22236         * lib/select.c: Likewise.
22237
22238 2009-08-19  Eric Blake  <ebb9@byu.net>
22239
22240         popen-safer: prevent popen from clobbering std descriptors
22241         * modules/popen-safer: New file.
22242         * lib/popen-safer.c: Likewise.
22243         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
22244         * lib/stdio--.h (popen): Provide override.
22245         * lib/stdio-safer.h (popen_safer): Provide declaration.
22246         * tests/test-popen.c (includes): Partially test this.
22247         * modules/popen-safer-tests: New file, for more tests.
22248         * tests/test-popen-safer.c: Likewise.
22249         * MODULES.html.sh (file stream based Input/Output): Mention it.
22250
22251         tests: test some of the *-safer modules
22252         * modules/fopen-safer (Depends-on): Add fopen.
22253         * modules/fcntl-safer (Depends-on): Add fcntl.
22254         * modules/stdlib-safer (Depends-on): Add stdlib.
22255         (configure.ac): Set indicator.
22256         * modules/unistd-safer (configure.ac): Likewise.
22257         * modules/tmpfile-safer (configure.ac): Likewise.
22258         (Depends-on): Add tmpfile.
22259         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
22260         active.
22261         * tests/test-fopen.c (includes): Test safer versions when they are
22262         in use.
22263         * tests/test-open.c (includes): Likewise.
22264
22265         popen: fix cygwin 1.5 bug when stdin closed
22266         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
22267         * modules/popen: New file.
22268         * modules/popen-tests: Likewise.
22269         * tests/test-popen.c: Likewise.
22270         * m4/popen.m4: Likewise.
22271         * lib/popen.c: Likewise.
22272         * lib/stdio.in.h (popen): New declaration.
22273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
22274         * modules/stdio (Makefile.am): Likewise.
22275         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
22276
22277 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
22278
22279         maint.mk: give full control over update-copyright exclusions
22280         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
22281         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
22282         (update-copyright): Don't force inclusion of top-level
22283         ChangeLog.  Don't force exclusion of all COPYING files, but make
22284         them the default exclusion instead.
22285
22286 2009-08-16  Bruno Haible  <bruno@clisp.org>
22287
22288         Fix test failures on Solaris 10.
22289         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
22290         tests when Solaris iconv() is used.
22291         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22292         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22293         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22294         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22295         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22296
22297 2009-08-16  Bruno Haible  <bruno@clisp.org>
22298
22299         Fix test failures on Solaris 10.
22300         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
22301         'tr' program and pass it as first argument.
22302         * tests/test-pipe-filter-gi1.sh: Likewise.
22303         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
22304         program as first argument.
22305         * tests/test-pipe-filter-gi1.c (main): Likewise.
22306
22307 2009-08-16  Eric Blake  <ebb9@byu.net>
22308
22309         fpurge: fix previous commits
22310         * modules/fpurge (Makefile.am): Make replacement conditional,
22311         partially reverting 2007-04-29 change; missed in previous
22312         attempt.
22313         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
22314         is missing.
22315
22316 2009-08-16  Bruno Haible  <bruno@clisp.org>
22317
22318         Clarify fpurge's effect on the file position.
22319         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
22320         * tests/test-fpurge.c (main): Make a second pass for checking the file
22321         position.
22322
22323 2009-08-16  Bruno Haible  <bruno@clisp.org>
22324
22325         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
22326         declaration of fpurge is missing.
22327         * tests/test-fpurge.c (main): Check that the file has not more contents
22328         than expected. Close the file before removing it.
22329
22330 2009-08-15  Eric Blake  <ebb9@byu.net>
22331
22332         fpurge: don't wrap working cygwin implementation
22333         * lib/fpurge.c (fpurge): Fix comment typo.
22334         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
22335         1.7 to avoid replacement.
22336         * tests/test-fpurge.c (main): Enhance test.
22337
22338 2009-08-15  Eric Blake  <ebb9@byu.net>
22339         and Jim Meyering  <meyering@redhat.com>
22340
22341         test-update-copyright: skip if perl is insufficient
22342         * tests/test-update-copyright.sh: Failure to run maintainer tool
22343         should not cause testsuite failure on cygwin 1.5.
22344
22345 2009-08-14  Eric Blake  <ebb9@byu.net>
22346
22347         doc: mention more functions added in cygwin 1.7.0
22348         * doc/posix-headers/limits.texi (limits.h): Update for recent
22349         cygwin additions.
22350         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
22351         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
22352         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
22353         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
22354         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
22355
22356 2009-08-14  Eric Blake  <ebb9@byu.net>
22357
22358         maint.mk: simplify update-copyright rule
22359         * top/maint.mk (update-copyright-local): Delete, and document how
22360         to do it in cfg.mk instead.
22361         (update-copyright-exclude-regexp): Delete, and document how to do
22362         it in .x-update-copyright instead.
22363         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
22364         exclude ChangeLog.
22365
22366 2009-08-14  Bruno Haible  <bruno@clisp.org>
22367
22368         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
22369
22370 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22371
22372         maint.mk: support update-copyright-env
22373         * top/maint.mk (update-copyright-env): Define place-holder.
22374         (update-copyright): Expand $(update-copyright-env) before
22375         invoking update-copyright.
22376
22377 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22378
22379         update-copyright: implement forced reformatting
22380         * build-aux/update-copyright: Implement and document
22381         UPDATE_COPYRIGHT_FORCE.
22382         * tests/test-update-copyright.sh: Test it.
22383
22384 2009-08-14  Eric Blake  <ebb9@byu.net>
22385         and Bruno Haible  <bruno@clisp.org>
22386
22387         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
22388         * tests/test-locale.c: Revert previous patch related to NULL.
22389         * tests/test-stdio.c: Likewise.
22390         * tests/test-stdlib.c: Likewise.
22391         * tests/test-string.c: Likewise.
22392         * tests/test-unistd.c: Likewise.
22393         * modules/time-tests (Depends-on): Add verify.
22394         * modules/wchar-tests (Depends-on): Likewise.
22395         * tests/test-time.c: Test for NULL compliance.
22396         * tests/test-wchar.c: Likewise.
22397         * modules/locale (Depends-on): Add stddef.
22398         * modules/stdio (Depends-on): Likewise.
22399         * modules/stdlib (Depends-on): Likewise.
22400         * modules/string (Depends-on): Likewise.
22401         * modules/time (Depends-on): Likewise.
22402         * modules/unistd (Depends-on): Likewise.
22403         * modules/wchar (Depends-on): Likewise.
22404         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
22405         * lib/stdlib.in.h (includes): Likewise.
22406         * lib/string.in.h (includes): Likewise.
22407         * lib/time.in.h (includes): Likewise.
22408         * lib/unistd.in.h (includes): Likewise.
22409         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
22410         replaced.
22411         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22412         * m4/stddef_h.m4: New file.
22413         * modules/stddef: Likewise.
22414         * lib/stddef.in.h: Likewise.
22415         * modules/stddef-tests: Likewise.
22416         * tests/test-stddef.c: Likewise.
22417         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
22418         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
22419         * doc/posix-headers/locale.texi (locale.h): Likewise.
22420         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
22421         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22422         * doc/posix-headers/string.texi (string.h): Likewise.
22423         * doc/posix-headers/time.texi (time.h): Likewise.
22424         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
22425         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
22426
22427 2009-08-14  Eric Blake  <ebb9@byu.net>
22428
22429         doc: improve git diff of texinfo files
22430         * .gitattributes: Add rule for *.texi files, with hint on how to
22431         use it.
22432         Copied from m4, and based on a report by Bruno Haible.
22433
22434 2009-08-14  Bruno Haible  <bruno@clisp.org>
22435
22436         Disable multithread support by default on Cygwin 1.5.x for real.
22437         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
22438
22439 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22440
22441         update-copyright: much ado about intervals
22442         * build-aux/update-copyright: Implement and document
22443         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
22444         of copyright year intervals.
22445         Also, document UPDATE_COPYRIGHT_YEAR.
22446         * tests/test-update-copyright.sh: Test it.
22447
22448         update-copyright: convert 2-digit to 4-digit years
22449         * build-aux/update-copyright: Implement and document.
22450         * tests/test-update-copyright.sh: Update.
22451
22452 2009-08-14  Jim Meyering  <meyering@redhat.com>
22453
22454         test-exclude: avoid coreutils "make check" failure
22455         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
22456         just as in test-argmatch.c.
22457
22458 2009-08-13  Eric Blake  <ebb9@byu.net>
22459
22460         test-dup2: fix bad assumption
22461         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
22462         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
22463
22464         test-version-etc: fix CRLF portability issue
22465         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
22466         recognize \r.
22467         * tests/test-argp-version-etc-1.sh: Likewise.
22468
22469         getopt: update client modules
22470         * modules/argp (Depends-on): Use getopt-gnu.
22471         * modules/git-merge-changelog (Depends-on): Likewise.
22472         * modules/long-options (Depends-on): Likewise.
22473         * modules/xstrtol (Depends-on): Likewise.
22474
22475 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22476
22477         * tests/test-version-etc.sh: Don't fail on different
22478         project/version.  Don't fail on CRLF differences.  Rewrite to use
22479         multiple -e instead of multiple sed forks, suggested by Eric Blake
22480         <ebb9@byu.net>.
22481         * tests/test-argp-version-etc-1.sh: Likewise.
22482
22483 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22484
22485         * tests/test-version-etc.sh: Don't fail on different
22486         project/version.
22487
22488 2009-08-12  Bruno Haible  <bruno@clisp.org>
22489
22490         Tests for modules 'getopt-posix', 'getopt-gnu'.
22491         * modules/getopt-posix-tests: New file.
22492         * tests/test-getopt.c: New file.
22493         * tests/test-getopt.h: New file.
22494         * tests/test-getopt_long.h: New file.
22495
22496         New modules 'getopt-posix', 'getopt-gnu'.
22497         * modules/getopt-gnu: New file, renamed from modules/getopt.
22498         * modules/getopt-posix: New file.
22499         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
22500         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
22501         (gl_GETOPT): Remove macro.
22502         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
22503         Disable the test against BSD systems that declare optreset. Test
22504         against mingw bug. Test against lack of support of optional arguments
22505         on many platforms.
22506         * doc/glibc-headers/getopt.texi: Update module name and list of
22507         relevant platforms.
22508         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
22509         'getopt-gnu' and more portability problems.
22510         * NEWS: Mention the changes.
22511
22512 2009-08-12  Bruno Haible  <bruno@clisp.org>
22513
22514         Ensure that optarg etc. get declared by <unistd.h>.
22515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
22516         AC_USE_SYSTEM_EXTENSIONS.
22517         * modules/getopt (Depends-on): Add 'extensions'.
22518
22519 2009-08-12  Bruno Haible  <bruno@clisp.org>
22520
22521         Avoid test link errors.
22522         * modules/pipe-filter-ii-tests (Makefile.am): Define
22523         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
22524         * modules/pipe-filter-gi-tests (Makefile.am): Define
22525         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
22526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22527
22528 2009-08-12  Bruno Haible  <bruno@clisp.org>
22529
22530         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
22531         gl_GETOPT_SUBSTITUTE before.
22532         (gl_GETOPT): Use it.
22533         * m4/argp.m4 (gl_ARGP): Update.
22534         Reported by Sergey Poznyakoff.
22535
22536         * m4/getopt.m4: Reorder macros.
22537         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
22538         (gl_GETOPT_SUBSTITUTE): Remove macro.
22539
22540 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22541
22542         Minor improvement in gitlog-to-changelog
22543
22544         * build-aux/gitlog-to-changelog: New option `--format' makes
22545         output format string configurable.
22546
22547 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22548
22549         Optimize exclude: use hash tables for non-wildcard patterns.
22550
22551         * lib/exclude.c: Include hash.h and mbuiter.h
22552         (struct exclude_pattern, exclude_segment): New data types.
22553         (struct exclude): Rewrite.
22554         (fnmatch_pattern_has_wildcards): New function.
22555         (new_exclude_segment, free_exclude_segment): New functions.
22556         (excluded_file_pattern_p, excluded_file_name_p): New functions.
22557         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
22558         * lib/exclude.h (is_fnmatch_pattern): New prototype.
22559         * modules/exclude: Depend on hash and mbuiter.
22560
22561         * modules/exclude-tests: New file.
22562         * tests/test-exclude.c: New file.
22563         * tests/test-exclude1.sh: New file.
22564         * tests/test-exclude2.sh: New file.
22565         * tests/test-exclude3.sh: New file.
22566         * tests/test-exclude4.sh: New file.
22567         * tests/test-exclude5.sh: New file.
22568         * tests/test-exclude6.sh: New file.
22569         * tests/test-exclude7.sh: New file.
22570
22571 2009-08-12  Bruno Haible  <bruno@clisp.org>
22572
22573         Ensure that getopt() gets declared by <unistd.h>.
22574         * lib/unistd.in.h: Conditionally include getopt.h.
22575         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22576         Set GNULIB_UNISTD_H_GETOPT.
22577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22578         GNULIB_UNISTD_H_GETOPT.
22579         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22580
22581 2009-08-12  Bruno Haible  <bruno@clisp.org>
22582
22583         Clarify logic.
22584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22585         gl_replace_getopt instead of GETOPT_H.
22586
22587 2009-08-12  Bruno Haible  <bruno@clisp.org>
22588
22589         * m4/getopt.m4: Add comments.
22590
22591 2009-08-12  Bruno Haible  <bruno@clisp.org>
22592
22593         Disable multithread support by default on Cygwin 1.5.x.
22594         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22595         set gl_use_threads=no if not specified otherwise.
22596
22597 2009-08-11  Bruno Haible  <bruno@clisp.org>
22598
22599         Avoid compilation error on NetBSD 5.0.
22600         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22601         * tests/test-stdio.c: Likewise.
22602         * tests/test-stdlib.c: Likewise.
22603         * tests/test-string.c: Likewise.
22604         * tests/test-unistd.c: Likewise.
22605         Reported by Greg Troxel <gdt@ir.bbn.com>
22606         at <https://savannah.gnu.org/support/?106973>.
22607
22608 2009-08-11  Bruno Haible  <bruno@clisp.org>
22609
22610         * modules/dup2-tests (Depends-on): Remove close.
22611
22612         Undo 2009-07-19 commit.
22613         * modules/acl-tests (Depends-on): Remove close.
22614         * modules/binary-io-tests (Depends-on): Likewise.
22615         * modules/closein-tests (Depends-on): Likewise.
22616         * modules/flock-tests (Depends-on): Likewise.
22617         * modules/fsync-tests (Depends-on): Likewise.
22618         * modules/lseek-tests (Depends-on): Likewise.
22619         * modules/pipe-tests (Depends-on): Likewise.
22620         * modules/posix_spawn-tests (Depends-on): Likewise.
22621         * modules/posix_spawnp-tests (Depends-on): Likewise.
22622         * modules/stat-time-tests (Depends-on): Likewise.
22623         * modules/yesno-tests (Depends-on): Likewise.
22624
22625 2009-08-10  Bruno Haible  <bruno@clisp.org>
22626
22627         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
22628
22629 2009-08-10  Bruno Haible  <bruno@clisp.org>
22630
22631         Fix a gcc warning.
22632         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
22633
22634 2009-08-10  Bruno Haible  <bruno@clisp.org>
22635
22636         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
22637         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
22638         not only the first time.
22639         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
22640         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
22641         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
22642         is 1, not only the the first time.
22643
22644 2009-08-10  Bruno Haible  <bruno@clisp.org>
22645
22646         Make it possible to use module 'gethostname' without module 'close'.
22647         * lib/unistd.in.h (close): Evoke a link error only if
22648         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22650         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22651         * modules/unistd (Makefile.am): Substitute
22652         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22653         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
22654         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22655         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22656         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22657         * modules/sys_ioctl (Makefile.am): Substitute
22658         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22659         * modules/socket (configure.ac): On native Windows, set
22660         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
22661         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22662         Reported by Sam Steingold <sds@gnu.org>.
22663
22664 2009-08-10  Bruno Haible  <bruno@clisp.org>
22665
22666         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
22667         * modules/ioctl (configure.ac): Likewise.
22668
22669 2009-08-10  Bruno Haible  <bruno@clisp.org>
22670
22671         Avoid collision between gnulib wrapper and libintl wrapper.
22672         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
22673         already defined in intl/printf.c.
22674         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
22675         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
22676
22677 2009-08-09  Bruno Haible  <bruno@clisp.org>
22678
22679         Make <sys/select.h> really self-contained, also on Solaris 10.
22680         * lib/sys_select.in.h: Include <string.h>.
22681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
22682         Solaris 10 problem.
22683         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
22684         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
22685         Reported by Jim Meyering.
22686
22687 2009-08-09  Bruno Haible  <bruno@clisp.org>
22688
22689         Avoid warnings from 'aclocal' that are due to a use of macro name
22690         AM_XGETTEXT_OPTION that is not defined in automake.
22691         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
22692         automake.
22693         * modules/error (configure.ac): Likewise.
22694         * modules/propername (configure.ac): Likewise.
22695         * modules/vasprintf (configure.ac): Likewise.
22696         * modules/verror (configure.ac): Likewise.
22697         * modules/xprintf (configure.ac): Likewise.
22698         * modules/xvasprintf (configure.ac): Likewise.
22699
22700 2009-08-08  Bruno Haible  <bruno@clisp.org>
22701
22702         Avoid compilation error in C++ mode.
22703         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
22704         Reported by Sam Steingold <sds@gnu.org>.
22705
22706 2009-08-08  Bruno Haible  <bruno@clisp.org>
22707
22708         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
22709         for the various Unix platforms.
22710         * doc/posix-headers/limits.texi: Update platforms list regarding
22711         HOST_NAME_MAX.
22712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22713
22714 2009-08-07  Jim Meyering  <meyering@redhat.com>
22715
22716         selinux-at: fix typo in a comment
22717         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
22718         Spotted by Paolo Bonzini.
22719
22720         selinux-at: remove redundant m4 code, add documentation
22721         * modules/selinux-at (configure.ac): Remove redundant code.
22722         LIB_SELINUX is already set via the dependent module, selinux-h.
22723         (Include): Add quotes around selinux-at.h.
22724         * lib/selinux-at.h: Add documentation.
22725         Reported by Bruno Haible in
22726         http://marc.info/?l=gnulib-bug&m=124958988300749
22727
22728 2009-08-07  Bruno Haible  <bruno@clisp.org>
22729
22730         Avoid link error on MacOS X 10.3 and 10.4.
22731         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22732         on non-ELF systems.
22733         * lib/argp-pv.c (argp_program_version): Likewise.
22734         Reported by Simon Josefsson.
22735
22736 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22737
22738         * tests/test-version-etc.sh: Use $EXEEXT.
22739
22740 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22741
22742         update-copyright: update documentation to point to maint.mk
22743         * build-aux/update-copyright: Here.
22744
22745 2009-08-06  Jim Meyering  <meyering@redhat.com>
22746
22747         maint.mk: support update-copyright-local
22748         * top/maint.mk (update-copyright-local): Define place-holder.
22749         (update-copyright): Depend on $(update-copyright-local).
22750
22751 2009-08-06  Jim Meyering  <meyering@redhat.com>
22752
22753         selinux-at: new module
22754         Initially written for coreutils, this module will soon be
22755         used by findutils, too.
22756         * MODULES.html.sh [Misc]: Add selinux-at.
22757         * lib/selinux-at.h: New file, from coreutils.
22758         * lib/selinux-at.c: Likewise.
22759         * modules/selinux-at: Likewise.
22760         (License): Change from LGPL to GPL, since it depends
22761         on the GPL'd openat module.
22762
22763         doc: update README
22764         * README: Remove references to cogito.
22765         Remove cvs-repo-updating instructions from 2007.
22766         Don't imply that CVS is better if you have limited disk space.
22767
22768 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22769
22770         update-copyright: support C-style comments
22771         * build-aux/update-copyright: Implement and document.
22772         * tests/test-update-copyright.sh: Test.
22773
22774 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22775
22776         update-copyright: support omitted "(C)"
22777         * build-aux/update-copyright: Implement and document.  Also,
22778         allow variable whitespace before "(C)".
22779         * tests/test-update-copyright.sh: Test.
22780
22781 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22782
22783         update-copyright: don't trip on non-FSF copyright statements
22784         * build-aux/update-copyright: Fix so that the first correctly
22785         formatted FSF copyright statement is recognized no matter what
22786         appears before it.  Update documentation.
22787         * tests/test-update-copyright.sh: Test that.
22788
22789 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22790
22791         update-copyright: clean up code a little
22792         * build-aux/update-copyright: Append "_re" to the name of any
22793         variable holding a regular expression.
22794         Replace "old" and "new" with "stmt" in variable names.
22795         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22796         handled correctly.
22797         Format code more consistently.
22798
22799 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22800
22801         update-copyright-tests: improve portability
22802         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22803         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22804
22805 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22806
22807         update-copyright: support @copyright{} and &copy;
22808         * build-aux/update-copyright: Implement and document.
22809         * tests/test-update-copyright.sh: Test.
22810
22811 2009-08-04  Jim Meyering  <meyering@redhat.com>
22812
22813         update-copyright-tests: correctly test EOL=\r\n handling
22814         * tests/test-update-copyright.sh: Put \r at the end of some lines
22815         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22816
22817         maint.mk: make update-copyright exclusion list more configurable
22818         * top/maint.mk (update-copyright): Default to excluding COPYING,
22819         but allow an override, in case someone does want to update that file.
22820
22821         maint.mk: don't update copyright date in COPYING
22822         * top/maint.mk (update-copyright): Exclude COPYING.
22823
22824         maint.mk: add a copyright-updating rule
22825         * top/maint.mk (update-copyright): New rule.
22826         Derived from coreutils/Makefile.am.
22827
22828         update-copyright: rename some variables
22829         * build-aux/update-copyright: Rename a few variables for clarity.
22830         Tweak syntax.  List Joel E. Denny as coauthor.
22831
22832 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22833
22834         update-copyright: fix bug for 2-digit last year and add tests
22835         * build-aux/update-copyright: Fix bug.
22836         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22837         specified.
22838         * modules/update-copyright-tests: New
22839         * tests/test-update-copyright.sh: New.
22840
22841 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22842
22843         update-copyright: handle leading tabs in line prefix
22844         * build-aux/update-copyright: Count leading tabs as 8 spaces
22845         when computing margin.  This helps with the formatting of
22846         ChangeLogs, for example.
22847         Fix documentation a little.
22848
22849 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22850
22851         update-copyright: support EOL=\r\n
22852         * build-aux/update-copyright: Implement that.
22853
22854 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22855
22856         update-copyright: automatically format copyright statements
22857         * build-aux/update-copyright: Implement that.
22858         Also, be a little more predictable and safer by always failing
22859         when the full copyright format is not perfectly recognized as an
22860         unbroken whole.  Discussed at
22861         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22862         Rewrite documentation.
22863
22864 2009-08-03  Bruno Haible  <bruno@clisp.org>
22865
22866         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22867
22868 2009-08-02  Bruno Haible  <bruno@clisp.org>
22869
22870         Tests for module 'uname'.
22871         * modules/uname-tests: New file.
22872         * tests/test-uname.c: New file.
22873
22874         New module 'uname'.
22875         * lib/uname.c: New file.
22876         * m4/uname.m4: New file.
22877         * modules/uname: New file.
22878         * doc/posix-functions/uname.texi: Mention the new module.
22879
22880 2009-08-02  Bruno Haible  <bruno@clisp.org>
22881
22882         Tests for module 'sys_utsname'.
22883         * modules/sys_utsname-tests: New file.
22884         * tests/test-sys_utsname.c: New file.
22885
22886         New module 'sys_utsname'.
22887         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22888         * m4/sys_utsname_h.m4: New file.
22889         * modules/sys_utsname: New file.
22890         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22891
22892 2009-08-02  Bruno Haible  <bruno@clisp.org>
22893
22894         Implicitly initialize the sockets library.
22895         * lib/gethostname.c: Include sockets.h.
22896         (rpl_gethostname): Invoke gl_sockets_startup.
22897         * lib/socket.c: Include sockets.h.
22898         (rpl_socket): Invoke gl_sockets_startup.
22899         * modules/gethostname (Depends-on): Add sockets.
22900         * modules/socket (Depends-on): Likewise.
22901         * tests/test-poll.c: Don't include sockets.h.
22902         (main): Don't invoke gl_sockets_startup.
22903         * tests/test-select.c: Don't include sockets.h.
22904         (main): Don't invoke gl_sockets_startup.
22905
22906 2009-08-02  Bruno Haible  <bruno@clisp.org>
22907
22908         Allow multiple calls to gl_sockets_startup.
22909         * lib/sockets.c (initialized_sockets_version): New variable.
22910         (gl_sockets_startup): Do nothing if already called for this or a higher
22911         version.
22912         (gl_sockets_cleanup): Reset initialized_sockets_version.
22913
22914 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22915
22916         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22917         different project/version.
22918
22919 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22920             Bruno Haible  <bruno@clisp.org>
22921
22922         Tests for module 'pipe-filter-gi'.
22923         * modules/pipe-filter-gi-tests: New file.
22924         * tests/test-pipe-filter-gi1.sh: New file.
22925         * tests/test-pipe-filter-gi1.c: New file.
22926         * tests/test-pipe-filter-gi2.sh: New file.
22927         * tests/test-pipe-filter-gi2-main.c: New file.
22928         * tests/test-pipe-filter-gi2-child.c: New file.
22929
22930         New module 'pipe-filter-gi'.
22931         * lib/pipe-filter-gi.c: New file.
22932         * modules/pipe-filter-gi: New file.
22933
22934 2009-08-02  Bruno Haible  <bruno@clisp.org>
22935             Paolo Bonzini  <bonzini@gnu.org>
22936
22937         Tests for module 'pipe-filter-ii'.
22938         * modules/pipe-filter-ii-tests: New file.
22939         * tests/test-pipe-filter-ii1.sh: New file.
22940         * tests/test-pipe-filter-ii1.c: New file.
22941         * tests/test-pipe-filter-ii2.sh: New file.
22942         * tests/test-pipe-filter-ii2-main.c: New file.
22943         * tests/test-pipe-filter-ii2-child.c: New file.
22944
22945         New module 'pipe-filter-ii'.
22946         * lib/pipe-filter.h: New file.
22947         * lib/pipe-filter-ii.c: New file.
22948         * lib/pipe-filter-aux.h: New file.
22949         * modules/pipe-filter-ii: New file.
22950
22951 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22952
22953         * lib/gc-libgcrypt.c: Change copyright to FSF.
22954         * lib/gc-gnulib.c: Likewise.
22955
22956 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22957
22958         * lib/gethostname.c: Include limits.h.
22959
22960 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22961             Bruno Haible  <bruno@clisp.org>
22962
22963         Ensure HOST_NAME_MAX as part of the gethostname module.
22964         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22965         define also HOST_NAME_MAX.
22966         * tests/test-gethostname.c: Include <limits.h>.
22967         (main): Check also HOST_NAME_MAX.
22968         * doc/posix-headers/limits.texi: Document the mingw problem.
22969
22970 2009-08-02  Bruno Haible  <bruno@clisp.org>
22971
22972         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22973         Add comments.
22974
22975 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22976
22977         * lib/gethostname.c: Add Windows wrapper.
22978         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22979         * modules/gethostname: Depend on sys_socket & errno, for also
22980         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22981         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22982
22983 2009-07-31  Jim Meyering  <meyering@redhat.com>
22984
22985         getloadavg: fix symbol name in comment
22986         * lib/getloadavg.c: Correct a typo I introduced when adding
22987         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22988         Matt Kraai spotted the problem.
22989
22990 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22991
22992         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22993         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22994         code also if ! defined N_NAME_POINTER.
22995         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22996         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22997         but the n_name member is a 12-byte array.
22998
22999 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
23000
23001         update-copyright: generalize comment handling
23002         * build-aux/update-copyright: Handle copyright statements
23003         within more comment styles.
23004         Document usage.
23005         Report any file with an external copyright holder or parse failure.
23006
23007 2009-07-29  Jim Meyering  <meyering@redhat.com>
23008
23009         mktime: correct setting of REPLACE_MKTIME
23010         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
23011
23012         update-copyright: new module
23013         * modules/update-copyright: New file.
23014         * build-aux/update-copyright: New file.
23015         * MODULES.html.sh (maint+release support): Add update-copyright.
23016
23017 2009-07-27  Bruno Haible  <bruno@clisp.org>
23018
23019         Fix compilation error when <ctime> is used and mktime is replaced.
23020         * lib/time.in.h (mktime): New declaration.
23021         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
23022         REPLACE_MKTIME instead of defining mktime in config.h.
23023         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
23024         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
23025         Reported by Ross McFarland <rwmcfa1@neces.com>.
23026
23027 2009-07-27  Bruno Haible  <bruno@clisp.org>
23028
23029         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
23030         Reported by Matt Kraai <mkraai@beckman.com>.
23031
23032 2009-07-25  Jim Meyering  <meyering@redhat.com>
23033
23034         maint.mk: avoid warnings about missing files
23035         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
23036         diagnostic when .prev-version does not exist.
23037         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
23038         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
23039         nonexistent cfg.mk.
23040         Suggestions from Simon Josefsson.
23041
23042 2009-07-25  Bruno Haible  <bruno@clisp.org>
23043
23044         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
23045         defined as macros. Needed on QNX 6.4.1.
23046         Reported by Matt Kraai <mkraai@beckman.com>.
23047
23048 2009-07-23  Jim Meyering  <meyering@redhat.com>
23049
23050         maint.mk: invoke "make dist" with a working value of XZ_OPT
23051         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
23052
23053 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
23054
23055         Make fseeko.c compile on QNX.
23056         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
23057
23058 2009-07-22  Peter Simons  <simons@cryp.to>
23059
23060         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
23061         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
23062         * lib/md4.h: Likewise.
23063         * lib/md5.h: Likewise.
23064         * lib/sha1.h: Likewise.
23065         * lib/sha256.h: Likewise.
23066         * lib/sha512.h: Likewise.
23067
23068         tests-sha1: don't assign literal string to 'char *' variable
23069         * tests/test-sha1.c (main): Declare locals with "const" to match
23070         attributes of the right hand side.
23071
23072 2009-07-21  Eric Blake  <ebb9@byu.net>
23073
23074         dup2: fix more mingw problems
23075         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
23076         fd to itself.
23077         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23078         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
23079         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
23080         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
23081         care of mingw bugs.
23082
23083 2009-07-21  Jim Meyering  <meyering@redhat.com>
23084
23085         vc-list-files: avoid failure when /bin/sh is dash
23086         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
23087         On some Debian based systems, /bin/sh is a symlink to dash, and running
23088         this command would omit the "/" following each 'tests' prefix:
23089           dash -x build-aux/vc-list-files -C . tests
23090         That is because bash and dash work differently:
23091           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
23092           bash ok
23093           dash odd
23094
23095 2009-07-21  Eric Blake  <ebb9@byu.net>
23096
23097         dup2-tests: test previous patch
23098         * modules/dup2-tests: New file.
23099         * tests/test-dup2.c: Likewise.
23100         * tests/test-open.c (main): Avoid unspecified behavior.
23101         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
23102         test.
23103
23104         dup2: work around mingw and cygwin 1.5 bug
23105         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
23106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23107         * modules/unistd (Makefile.am): Substitute it.
23108         * lib/unistd.in.h (dup2): Declare the replacement.
23109         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
23110         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
23111         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
23112         * modules/execute (Depends-on): Add dup2.
23113         * modules/fseterr (Depends-on): Likewise.
23114         * modules/pipe (Depends-on): Likewise.
23115         * modules/posix_spawn-internal (Depends-on): Likewise.
23116
23117 2009-07-21  Bruno Haible  <bruno@clisp.org>
23118
23119         * modules/.gitattributes: New file.
23120
23121 2009-07-20  Bruno Haible  <bruno@clisp.org>
23122
23123         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
23124         (main): Use it.
23125
23126 2009-07-20  Eric Blake  <ebb9@byu.net>
23127
23128         test-pipe: make a bit more robust.
23129         * tests/test-pipe.c (myerr): Allow error messages regardless of
23130         what we do to stderr.
23131         (test_pipe): Rearrange to avoid deadlock.
23132         (child_main): Try a larger read, to ensure we avoided deadlock.
23133         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
23134         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
23135         if misused.
23136
23137 2009-07-19  Jim Meyering  <meyering@redhat.com>
23138
23139         fts: avoid false-positive cycle-detection
23140         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
23141         for each new command line argument.
23142
23143 2009-07-19  Bruno Haible  <bruno@clisp.org>
23144
23145         Fix build error on mingw with the modules sys_select and unistd.
23146         * modules/acl-tests (Depends-on): Add close.
23147         * modules/binary-io-tests (Depends-on): Likewise.
23148         * modules/closein-tests (Depends-on): Likewise.
23149         * modules/flock-tests (Depends-on): Likewise.
23150         * modules/fsync-tests (Depends-on): Likewise.
23151         * modules/lseek-tests (Depends-on): Likewise.
23152         * modules/pipe-tests (Depends-on): Likewise.
23153         * modules/posix_spawn-tests (Depends-on): Likewise.
23154         * modules/posix_spawnp-tests (Depends-on): Likewise.
23155         * modules/stat-time-tests (Depends-on): Likewise.
23156         * modules/yesno-tests (Depends-on): Likewise.
23157
23158 2009-07-19  Bruno Haible  <bruno@clisp.org>
23159
23160         Unify conditionals.
23161         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
23162         macros, not at the compiler macros.
23163         * lib/pipe.c: Likewise.
23164         * lib/execute.c: Likewise.
23165         * lib/spawni.c: Likewise.
23166
23167 2009-07-19  Bruno Haible  <bruno@clisp.org>
23168
23169         Fix handling of closed stdin/stdout/stderr on mingw.
23170         * lib/w32spawn.h: Include unistd.h.
23171         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
23172         file descriptor with O_NOINHERIT flag.
23173         (fd_safer_noinherit): New function, based on fd-safer.c.
23174         (dup_safer_noinherit): New function, based on dup-safer.c.
23175         (undup_safer_noinherit): New function.
23176         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
23177         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
23178         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
23179         instead of fd_safer.
23180         * tests/test-pipe.c: Include <windows.h>.
23181         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
23182
23183         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
23184         from main.
23185         (test_pipe): Pass an extra argument for disambiguation.
23186         (main): Invoke parent_main or child_main.
23187
23188         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
23189         consistently.
23190
23191 2009-07-18  Eric Blake  <ebb9@byu.net>
23192
23193         test-pipe: fix mingw build
23194         * tests/test-pipe.c (main): Avoid fcntl on mingw.
23195
23196 2009-07-18  Bruno Haible  <bruno@clisp.org>
23197
23198         * modules/pipe-tests (Makefile.am): Fix typo.
23199
23200 2009-07-18  Eric Blake  <ebb9@byu.net>
23201
23202         error: fix mingw build
23203         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
23204         Reported by Bruno Haible.
23205
23206         error: avoid undefined use of stdout
23207         * lib/error.c (error, error_at_line): Check that fd 1 is open
23208         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
23209         is handling faults and the close_stdout module wants to report the
23210         detection of closed stdout as an error.
23211
23212 2009-07-17  Eric Blake  <ebb9@byu.net>
23213
23214         pipe: be robust in face of closed fds
23215         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
23216         should cause child to misbehave.
23217         * modules/pipe-tests: New module.
23218         * tests/test-pipe.c: New file.
23219         * tests/test-pipe.sh: New file.
23220         Reported by Akim Demaille.
23221
23222 2009-07-14  Bruno Haible  <bruno@clisp.org>
23223
23224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
23225         Reported by anonymous kc.
23226
23227 2009-07-07  Jim Meyering  <meyering@redhat.com>
23228
23229         maint.mk: don't look for translatable strings in *.m4 or *.mk
23230         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
23231         when searching for translatable strings.
23232
23233 2009-07-05  Jim Meyering  <meyering@redhat.com>
23234
23235         remove superfluous parentheses in STREQ definition
23236         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
23237         * lib/getugroups.c (STREQ): Likewise.
23238         * lib/fnmatch.c (STREQ): Likewise.
23239         Spotted by Bruno Haible.
23240
23241 2009-07-04  Jim Meyering  <meyering@redhat.com>
23242
23243         argv-iter: new module
23244         * MODULES.html.sh: Add argv-iter.
23245         * lib/argv-iter.c, lib/argv-iter.h: New files.
23246         * modules/argv-iter: New file.
23247         * modules/argv-iter-tests: New file.
23248         * tests/test-argv-iter.c: Test it.
23249
23250 2009-07-04  Bruno Haible  <bruno@clisp.org>
23251
23252         Fix assertion.
23253         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
23254         contains more exact copies of a given entry than file2, leave the extra
23255         copies unpaired rather than aborting.
23256         Reported by Eric Blake.
23257
23258 2009-07-02  Bruno Haible  <bruno@clisp.org>
23259
23260         Speedup git-merge-changelog for git cherry-pick.
23261         * lib/git-merge-changelog.c (struct entries_mapping): New type.
23262         (entries_mapping_get): New function, extracted from compute_mapping.
23263         (entries_mapping_reverse_get): New function.
23264         (compute_mapping): Add a 'full' argument. Return the result in a
23265         'struct entries_mapping'.
23266         (main): Update. Access the mappings through entries_mapping_get.
23267         Reported by Eric Blake.
23268
23269 2009-07-02  Bruno Haible  <bruno@clisp.org>
23270
23271         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
23272         best_i.
23273
23274 2009-07-02  Bruno Haible  <bruno@clisp.org>
23275
23276         Speed up approximate search for matching ChangeLog entries.
23277         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
23278         argument. Call fstrcmp_bounded instead of fstrcmp.
23279         (compute_mapping, try_split_merged_entry, main): Update callers.
23280
23281 2009-07-02  Bruno Haible  <bruno@clisp.org>
23282
23283         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
23284
23285 2009-06-30  Bruno Haible  <bruno@clisp.org>
23286
23287         Reduce the number of uc_is_cased calls.
23288         * lib/unicase.h (casing_suffix_context_t): Add
23289         'first_char_except_ignorable' field.
23290         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
23291         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
23292         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
23293         Update initializer.
23294         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
23295         case-ignorable characters.
23296         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
23297         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
23298         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
23299         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
23300         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
23301
23302 2009-06-30  Bruno Haible  <bruno@clisp.org>
23303
23304         Tests for module 'unicase/ignorable'.
23305         * modules/unicase/ignorable-tests: New file.
23306         * tests/unicase/test-ignorable.c: New file, generated by
23307         gen-uni-tables.
23308
23309         Tests for module 'unicase/cased'.
23310         * modules/unicase/cased-tests: New file.
23311         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
23312         * tests/unicase/test-predicate-part1.h: New file, derived from
23313         tests/unictype/test-predicate-part1.h.
23314         * tests/unicase/test-predicate-part2.h: New file, same as
23315         tests/unictype/test-predicate-part2.h.
23316
23317         Fix evaluation of "Before C" condition of FINAL_SIGMA.
23318         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
23319         (output_casing_properties): New function.
23320         (main): Call it.
23321         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
23322         * lib/unicase/cased.c: Include unictype/bitmap.h.
23323         (uc_is_cased): Define through a bitmap lookup.
23324         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
23325         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
23326         (uc_is_case_ignorable): Define through a bitmap lookup.
23327         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
23328         lib/unictype/bitmap.h.
23329         (Depends-on): Add inline. Clean up.
23330         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
23331         lib/unictype/bitmap.h.
23332         (Depends-on): Add inline. Clean up.
23333         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
23334         recognition.
23335         * tests/unicase/test-u16-tolower.c (main): Likewise.
23336         * tests/unicase/test-u32-tolower.c (main): Likewise.
23337
23338 2009-06-30  Bruno Haible  <bruno@clisp.org>
23339
23340         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
23341         * lib/unicase/u16-casemap.c: Likewise.
23342         * lib/unicase/u32-casemap.c: Likewise.
23343
23344 2009-06-29  Bruno Haible  <bruno@clisp.org>
23345
23346         Define u32_casefold as a wrapper around u32_ct_casefold.
23347         * lib/unicase/u32-casefold.c: Update.
23348         * modules/unicase/u32-casefold (Depends-on): Add
23349         unicase/u32-ct-casefold, unicase/empty-prefix-context,
23350         unicase/empty-suffix-context. Clean up.
23351
23352         Define u16_casefold as a wrapper around u16_ct_casefold.
23353         * lib/unicase/u16-casefold.c: Update.
23354         * modules/unicase/u16-casefold (Depends-on): Add
23355         unicase/u16-ct-casefold, unicase/empty-prefix-context,
23356         unicase/empty-suffix-context. Clean up.
23357
23358         Define u8_casefold as a wrapper around u8_ct_casefold.
23359         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
23360         * lib/unicase/u8-casefold.c: Update.
23361         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
23362         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23363
23364         Define u32_totitle as a wrapper around u32_ct_totitle.
23365         * lib/unicase/u32-totitle.c: Update.
23366         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
23367         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23368
23369         Define u16_totitle as a wrapper around u16_ct_totitle.
23370         * lib/unicase/u16-totitle.c: Update.
23371         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
23372         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23373
23374         Define u8_totitle as a wrapper around u8_ct_totitle.
23375         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
23376         functions.
23377         (FUNC): Delegate to U_CT_TOTITLE.
23378         * lib/unicase/u8-totitle.c: Update.
23379         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
23380         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23381
23382         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
23383         invocation.
23384         * modules/unicase/u32-tolower (Depends-on): Add
23385         unicase/empty-prefix-context, unicase/empty-suffix-context.
23386
23387         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
23388         invocation.
23389         * modules/unicase/u16-tolower (Depends-on): Add
23390         unicase/empty-prefix-context, unicase/empty-suffix-context.
23391
23392         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
23393         * modules/unicase/u8-tolower (Depends-on): Add
23394         unicase/empty-prefix-context, unicase/empty-suffix-context.
23395
23396         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
23397         invocation.
23398         * modules/unicase/u32-toupper (Depends-on): Add
23399         unicase/empty-prefix-context, unicase/empty-suffix-context.
23400
23401         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
23402         invocation.
23403         * modules/unicase/u16-toupper (Depends-on): Add
23404         unicase/empty-prefix-context, unicase/empty-suffix-context.
23405
23406         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
23407         * modules/unicase/u8-toupper (Depends-on): Add
23408         unicase/empty-prefix-context, unicase/empty-suffix-context.
23409
23410         New module 'unicase/u32-ct-casefold'.
23411         * lib/unicase/u32-ct-casefold.c: New file.
23412         * modules/unicase/u32-ct-casefold: New file.
23413
23414         New module 'unicase/u16-ct-casefold'.
23415         * lib/unicase/u16-ct-casefold.c: New file.
23416         * modules/unicase/u16-ct-casefold: New file.
23417
23418         New module 'unicase/u8-ct-casefold'.
23419         * lib/unicase/u8-ct-casefold.c: New file.
23420         * lib/unicase/u-ct-casefold.h: New file, derived from
23421         lib/unicase/u-casefold.h.
23422         * modules/unicase/u8-ct-casefold: New file.
23423
23424         New module 'unicase/u32-ct-totitle'.
23425         * lib/unicase/u32-ct-totitle.c: New file.
23426         * modules/unicase/u32-ct-totitle: New file.
23427
23428         New module 'unicase/u16-ct-totitle'.
23429         * lib/unicase/u16-ct-totitle.c: New file.
23430         * modules/unicase/u16-ct-totitle: New file.
23431
23432         New module 'unicase/u8-ct-totitle'.
23433         * lib/unicase/u8-ct-totitle.c: New file.
23434         * lib/unicase/u-ct-totitle.h: New file, derived from
23435         lib/unicase/u-totitle.h.
23436         * modules/unicase/u8-ct-totitle: New file.
23437
23438         New module 'unicase/u32-ct-tolower'.
23439         * lib/unicase/u32-ct-tolower.c: New file.
23440         * modules/unicase/u32-ct-tolower: New file.
23441
23442         New module 'unicase/u16-ct-tolower'.
23443         * lib/unicase/u16-ct-tolower.c: New file.
23444         * modules/unicase/u16-ct-tolower: New file.
23445
23446         New module 'unicase/u8-ct-tolower'.
23447         * lib/unicase/u8-ct-tolower.c: New file.
23448         * modules/unicase/u8-ct-tolower: New file.
23449
23450         New module 'unicase/u32-ct-toupper'.
23451         * lib/unicase/u32-ct-toupper.c: New file.
23452         * modules/unicase/u32-ct-toupper: New file.
23453
23454         New module 'unicase/u16-ct-toupper'.
23455         * lib/unicase/u16-ct-toupper.c: New file.
23456         * modules/unicase/u16-ct-toupper: New file.
23457
23458         New module 'unicase/u8-ct-toupper'.
23459         * lib/unicase/u8-ct-toupper.c: New file.
23460         * modules/unicase/u8-ct-toupper: New file.
23461
23462         Add context arguments to u*_casemap functions.
23463         * lib/unicase/unicasemap.h: Include unicase.h.
23464         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
23465         suffix_context arguments.
23466         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
23467         functions.
23468         (FUNC): Add prefix_context and suffix_context arguments. Use
23469         uc_is_cased and uc_is_case_ignorable.
23470         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
23471         * lib/unicase/u16-casemap.c: Likewise.
23472         * lib/unicase/u32-casemap.c: Likewise.
23473         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
23474         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23475         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
23476         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23477         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
23478         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23479
23480         New module 'unicase/u32-suffix-context'.
23481         * lib/unicase/u32-suffix-context.c: New file.
23482         * modules/unicase/u32-suffix-context: New file.
23483
23484         New module 'unicase/u16-suffix-context'.
23485         * lib/unicase/u16-suffix-context.c: New file.
23486         * modules/unicase/u16-suffix-context: New file.
23487
23488         New module 'unicase/u8-suffix-context'.
23489         * lib/unicase/u8-suffix-context.c: New file.
23490         * lib/unicase/u-suffix-context.h: New file.
23491         * modules/unicase/u8-suffix-context: New file.
23492
23493         New module 'unicase/empty-suffix-context'.
23494         * lib/unicase/empty-suffix-context.c: New file.
23495         * modules/unicase/empty-suffix-context: New file.
23496
23497         New module 'unicase/u32-prefix-context'.
23498         * lib/unicase/u32-prefix-context.c: New file.
23499         * modules/unicase/u32-prefix-context: New file.
23500
23501         New module 'unicase/u16-prefix-context'.
23502         * lib/unicase/u16-prefix-context.c: New file.
23503         * modules/unicase/u16-prefix-context: New file.
23504
23505         New module 'unicase/u8-prefix-context'.
23506         * lib/unicase/u8-prefix-context.c: New file.
23507         * lib/unicase/u-prefix-context.h: New file.
23508         * lib/unicase/context.h: New file.
23509         * modules/unicase/u8-prefix-context: New file.
23510
23511         New module 'unicase/empty-prefix-context'.
23512         * lib/unicase/empty-prefix-context.c: New file.
23513         * modules/unicase/empty-prefix-context: New file.
23514
23515         New module 'unicase/ignorable'.
23516         * lib/unicase/ignorable.c: New file.
23517         * modules/unicase/ignorable: New file.
23518
23519         New module 'unicase/cased'.
23520         * lib/unicase/caseprop.h: New file.
23521         * lib/unicase/cased.c: New file.
23522         * modules/unicase/cased: New file.
23523
23524         New functions for case mapping of substrings.
23525         * lib/unicase.h (casing_prefix_context_t): New type.
23526         (unicase_empty_prefix_context): New variable.
23527         (u8_casing_prefix_context, u16_casing_prefix_context,
23528         u32_casing_prefix_context, u8_casing_prefixes_context,
23529         u16_casing_prefixes_context, u32_casing_prefixes_context): New
23530         declarations.
23531         (casing_suffix_context_t): New type.
23532         (unicase_empty_suffix_context): New variable.
23533         (u8_casing_suffix_context, u16_casing_suffix_context,
23534         u32_casing_suffix_context, u8_casing_suffixes_context,
23535         u16_casing_suffixes_context, u32_casing_suffixes_context,
23536         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
23537         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
23538         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
23539         declarations.
23540
23541 2009-06-28  Jim Meyering  <meyering@redhat.com>
23542
23543         boostrap: indent only with spaces
23544         * build-aux/bootstrap: Indent only with spaces, never TABs.
23545
23546         bootstrap: split long lines
23547         * build-aux/bootstrap: Keep line length < 80.
23548
23549         bootstrap: sync from coreutils
23550         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
23551         just as autoreconf does.  Verify a list of prerequisite
23552         package-name,version-number pairs if defined in bootstrap.conf.
23553         Refer to README-prereq, if prerequisites are not satisfied.
23554
23555 2009-06-27  Eric Blake  <ebb9@byu.net>
23556
23557         tests: add test for bogus NULL definition
23558         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
23559         * tests/test-stdlib.c: Likewise.
23560         * tests/test-string.c: Likewise.
23561         * tests/test-locale.c: Likewise.
23562         * tests/test-unistd.c: Likewise.
23563         * modules/stdio-tests (Depends-on): Add verify.
23564         * modules/stdlib-tests (Depends-on): Likewise.
23565         * modules/string-tests (Depends-on): Likewise.
23566         * modules/locale-tests (Depends-on): Likewise.
23567         * modules/unistd-tests (Depends-on): Likewise.
23568
23569 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
23570
23571         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23572         self-explaining comment.
23573         * m4/selinux-selinux-h: Update serial.
23574         (gl_LIBSELINUX): New macro, adding a warning for missing development
23575         packages to code extracted from...
23576         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23577         Add warning for missing development packages here, too.
23578
23579 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23580
23581         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23582
23583 2009-06-25  Eric Blake  <ebb9@byu.net>
23584
23585         version-etc: fix regression
23586         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23587         gcc.
23588         (version_etc): Use it, to catch bugs with trailing NULL.
23589         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23590         (version_etc_va): Fix logic bug.
23591         * modules/version-etc-tests: Add test.
23592         * tests/test-version-etc.c: New file.
23593         * tests/test-version-etc.sh: Likewise.
23594
23595 2009-06-25  Sam Steingold  <sds@gnu.org>
23596
23597         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23598         mbtowc declaration.
23599
23600 2009-06-25  Eric Blake  <ebb9@byu.net>
23601
23602         fpurge: migrate into <stdio.h>
23603         * lib/fpurge.h: Delete...
23604         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23605         * lib/fpurge.c (fpurge): Change declaring header.
23606         * modules/fpurge (Files): Drop deleted file.
23607         (Depends-on): Add stdio.
23608         (configure.ac): Set witness.
23609         * modules/stdio (Makefile.am): Support fpurge macros.
23610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23611         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
23612         * lib/fflush.c: Update client.
23613         * tests/test-fpurge.c: Likewise.
23614         * NEWS: Mention the change.
23615
23616 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23617
23618         * lib/argp-version-etc.c (program_authors): Add const
23619         qualifier.
23620         * lib/version-etc.c: Fix typos in the comments.
23621         * modules/argp-version-etc: Depends on version-etc.
23622
23623 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23624
23625         argp-version-etc: new module.
23626
23627         * lib/argp-version-etc.c: New file.
23628         * lib/argp-version-etc.h: New file.
23629         * modules/argp-version-etc: New file.
23630         * modules/argp-version-etc-tests: New file.
23631         * tests/test-argp-version-etc.c: New test.
23632         * tests/test-argp-version-etc-1.sh: New test.
23633
23634 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23635
23636         Provide additional interfaces and documentation for version-etc
23637         module.
23638
23639         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
23640         interfaces.
23641         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
23642         prototypes.
23643
23644 2009-06-24  Bruno Haible  <bruno@clisp.org>
23645
23646         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
23647         HAVE_LIB${NAME} macro.
23648         Reported by Sam Steingold <sds@gnu.org>.
23649
23650 2009-06-23  Simon Josefsson  <simon@josefsson.org>
23651
23652         * modules/hash-tests (test_hash_LDADD): Link to libintl when
23653         needed.
23654
23655 2009-06-21  Bruno Haible  <bruno@clisp.org>
23656
23657         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
23658         work.
23659         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
23660         together with LIB${NAME}, LTLIB${NAME}.
23661         Reported by Sam Steingold <sds@gnu.org>.
23662
23663 2009-06-20  Jim Meyering  <meyering@redhat.com>
23664
23665         tests: make sc_require_test_exit_idiom more generic
23666         * top/maint.mk (Exit_witness_file): New overridable variable.
23667         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
23668         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
23669
23670 2009-06-19  Jim Meyering  <meyering@redhat.com>
23671
23672         hash: reverse order of src/dst parameters in an internal interface
23673         * lib/hash.c (transfer_entries): Reverse order of parameters to
23674         put DST before SRC.  Adjust callers.
23675
23676         tests: test-hash: avoid wholesale duplication
23677         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
23678         Instead, use a loop and add a single conditional.
23679
23680         tests: test-hash: allow seed selection via a command line argument
23681         * tests/test-hash.c (get_seed): New function.
23682         (main): Use it.
23683
23684 2009-06-19  Eric Blake  <ebb9@byu.net>
23685
23686         hash: avoid memory leak on allocation failure
23687         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
23688         failure.  Factor repeated algorithm...
23689         (transfer_entries): ...into new helper routine.
23690         (hash_delete): React to hash_rehash return value.
23691
23692         hash: reduce memory pressure in hash_rehash no-op case
23693         * lib/hash.c (next_prime): Avoid overflow.
23694         (hash_initialize): Factor bucket size computation...
23695         (compute_bucket_size): ...into new helper function.
23696         (hash_rehash): Use new function and open coding to reduce memory
23697         pressure, and avoid a memory leak in USE_OBSTACK code.
23698         Reported by Jim Meyering.
23699
23700 2009-06-18  Eric Blake  <ebb9@byu.net>
23701
23702         hash: make rotation more obvious
23703         * modules/hash (Depends-on): Add bitrotate and stdint.
23704         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
23705         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
23706         (SIZE_MAX): Rely on headers for definition.
23707         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
23708         (raw_hasher): Use rotr_sz.
23709         Suggested by Jim Meyering.
23710
23711         hash: fix memory leak in last patch
23712         * lib/hash.c (hash_rehash): Avoid memory leak.
23713
23714         hash: avoid no-op rehashing
23715         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
23716
23717         hash: provide default callback functions
23718         * lib/hash.c (raw_hasher, raw_comparator): New functions.
23719         (hash_initialize): Use them as defaults.
23720         * tests/test-hash.c (main): Test this.
23721
23722         hash: minor optimization
23723         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
23724         when possible.
23725         (hash_initialize): Document this promise.
23726         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
23727         * tests/test-hash.c (hash_compare_strings): Test this.
23728
23729 2009-06-18  Bruno Haible  <bruno@clisp.org>
23730
23731         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23732         going to be replaced anyway.
23733
23734 2009-06-18  Bruno Haible  <bruno@clisp.org>
23735
23736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23737         in one place.
23738         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23739         be replaced anyway.
23740
23741 2009-06-18  Eric Blake  <ebb9@byu.net>
23742
23743         hash: check for resize before insertion
23744         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23745         threshold before insertion, so that a pathological hash_rehash
23746         that fills every bucket can still trigger another rehash.
23747
23748 2009-06-18  Jim Meyering  <meyering@redhat.com>
23749
23750         hash-tests: add a loop around the small tests
23751         * tests/test-hash.c (main): Repeat small tests with selected
23752         small initial table sizes.
23753
23754 2009-06-17  Eric Blake  <ebb9@byu.net>
23755
23756         hash: minor cleanups
23757         * lib/hash.h (hash_entry): Make opaque, by moving...
23758         * lib/hash.c (hash_entry): ...here.
23759         (hash_insert): Clarify restrictions on what can be inserted.
23760         (hash_get_next): Clarify when it is safe to remove an element
23761         during traversal.
23762         (check_tuning): Skip verification when tuning is known safe.
23763         (hash_initialize): Clarify restrictions on tuning.
23764
23765 2009-06-17  Jim Meyering  <jim@meyering.net>
23766         and Eric Blake  <ebb9@byu.net>
23767
23768         hash-tests: new module
23769         * modules/hash-tests: New file.
23770         * tests/test-hash.c: New file.
23771
23772 2009-06-17  Eric Blake  <ebb9@byu.net>
23773
23774         strstr-simple: document new module
23775         * MODULES.html.sh: Document new module.
23776
23777         strstr, strcasestr: replace on platforms with broken memchr
23778         * modules/strstr: Split into...
23779         * modules/strstr-simple: ...new module that does not care about
23780         performance, but does care about glibc bug.
23781         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23782         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23783         if platform memchr is broken, per Debian bug 521737.
23784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23785         memchr.
23786         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23787         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23788         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23789         * modules/mountlist (Depends-on): Add strstr-simple.
23790         * modules/gen-uni-tables (Depends-on): Likewise.
23791         * modules/argz (Depends-on): Add strstr.
23792
23793 2009-06-17  Bruno Haible  <bruno@clisp.org>
23794
23795         * modules/posix_spawn-internal (Depends-on): Add errno.
23796
23797 2009-06-17  Bruno Haible  <bruno@clisp.org>
23798
23799         Define missing ESTALE on Interix 3.5.
23800         * lib/errno.in.h (ESTALE): Assign a value if missing.
23801         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23802         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23803         missing.
23804         * doc/posix-headers/errno.texi: Mention the Interix bug.
23805         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23806
23807 2009-06-15  Eric Blake  <ebb9@byu.net>
23808
23809         memchr, memchr2: add valgrind exception
23810         * lib/memchr.valgrind: New file.
23811         * lib/memchr2.valgrind: New file.
23812         * modules/memchr (Files): Distribute valgrind file.
23813         * modules/memchr2 (Files): Likewise.
23814
23815         docs: memchr is no longer obsolete
23816         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23817         * lib/string.in.h (memchr): Simplify logic.
23818
23819 2009-06-14  Jim Meyering  <meyering@redhat.com>
23820
23821         link-follow: fix the "checking..." message to not mention trailing slash
23822         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23823         never considered trailing slashes.
23824
23825 2009-06-14  Bruno Haible  <bruno@clisp.org>
23826
23827         * m4/memchr.m4: Mention also the bug on IA-64.
23828         * doc/posix-functions/memchr.texi: Likewise.
23829
23830 2009-06-12  Eric Blake  <ebb9@byu.net>
23831
23832         memchr: detect broken x86_64 and alpha implementations
23833         * modules/memchr-tests (Depends-on): Move mmap detection...
23834         * modules/memchr (Depends-on): ...here.
23835         (configure.ac): Set indicator.
23836         * lib/string.in.h (memchr): Declare replacement.
23837         * modules/string (Makefile.am): Trigger replacement.
23838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23839         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23840         bugs.
23841         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23842         * modules/getpagesize (License): Relax license.
23843
23844 2009-06-11  Bruno Haible  <bruno@clisp.org>
23845
23846         * lib/idpriv.h: Add more references.
23847
23848 2009-06-08  Bruno Haible  <bruno@clisp.org>
23849
23850         Tests for module 'idpriv-droptemp'.
23851         * modules/idpriv-droptemp-tests: New file.
23852         * tests/test-idpriv-droptemp.sh: New file.
23853         * tests/test-idpriv-droptemp.su.sh: New file.
23854         * tests/test-idpriv-droptemp.c: New file.
23855
23856         New module 'idpriv-droptemp'.
23857         * lib/idpriv-droptemp.c: New file.
23858         * modules/idpriv-droptemp: New file.
23859
23860 2009-06-08  Bruno Haible  <bruno@clisp.org>
23861
23862         Tests for module 'idpriv-drop'.
23863         * modules/idpriv-drop-tests: New file.
23864         * tests/test-idpriv-drop.sh: New file.
23865         * tests/test-idpriv-drop.su.sh: New file.
23866         * tests/test-idpriv-drop.c: New file.
23867
23868         New module 'idpriv-drop'.
23869         * lib/idpriv.h: New file.
23870         * lib-idpriv-drop.c: New file.
23871         * m4/idpriv.m4: New file.
23872         * modules/idpriv-drop: New file.
23873
23874 2009-06-08  Bruno Haible  <bruno@clisp.org>
23875
23876         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23877         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23878         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23879         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23880         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23881         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23882         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23883
23884 2009-06-08  Eric Blake  <ebb9@byu.net>
23885
23886         test-strstr: use memory fence, when possible
23887         * tests/test-strstr.c (main): Use memory fence, in order to be
23888         more likely to trigger Debian bug 521737.
23889         * modules/strstr-tests (Files): Pull in additional files.
23890
23891         memchr: no longer obsolete, for wider field testing
23892         * modules/memchr (Status, Notice): Delete, this module is no
23893         longer obsolete.
23894         * modules/vasnprintf (Depends-on): Add memchr.
23895
23896 2009-06-07  Jim Meyering  <meyering@redhat.com>
23897
23898         hash: declare some functions with the warn_unused_result attribute
23899         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23900
23901 2009-06-07  Bruno Haible  <bruno@clisp.org>
23902
23903         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23904         Reported by Eric Blake.
23905
23906 2009-06-06  Eric Blake  <ebb9@byu.net>
23907
23908         test-alignof: fix typo with long double
23909         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23910         compiler error.
23911
23912 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23913
23914         Escape non-texinfo { and }s.
23915         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23916         markup error.
23917
23918 2009-06-04  Jim Meyering  <meyering@redhat.com>
23919
23920         gitlog-to-changelog: don't infloop on an empty commit log
23921         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23922         Reported by Boris Petersen <transacid@centerim.org>.
23923
23924 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23925
23926         version-etc: extend for packagers
23927         Add three new configure options, intended for packagers:
23928           --with-packager="packager name"
23929           --with-packager-version="packager-specific version"
23930           --with-packager-bug-reports="packager bug reporting"
23931         An example with coreutils:
23932           $ ./configure \
23933             --with-packager=Gentoo \
23934             --with-packager-bug-report=http://bugs.gentoo.org/ \
23935             --with-packager-version="patchset 1.6"
23936           $ ./src/ls --version | head -n2
23937           ls (GNU coreutils) 7.1-dirty
23938           Packaged by Gentoo (patchset 1.6)
23939         Note that the bug reporting info via --help doesn't show up because
23940         coreutils uses its own custom emit_bug_reporting_address() implementation
23941         in src/system.h.  If it didn't, it'd look like:
23942           $ ./src/ls --help | tail -n4
23943           Report bugs to <bug-coreutils@gnu.org>.
23944           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23945           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23946           General help using GNU software: <http://www.gnu.org/gethelp/>.
23947         * lib/version-etc.c: Print new information, if provided.
23948         * m4/version-etc.m4: New file.
23949         * modules/version-etc (Files): Add m4/version-etc.m4.
23950         (configure.ac): Add gl_VERSION_ETC.
23951
23952 2009-05-31  Bruno Haible  <bruno@clisp.org>
23953
23954         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23955         and 'int64_t'.
23956         * modules/alignof-tests (Dependencies): Add stdint.
23957         Reported by Eric Blake.
23958
23959 2009-05-31  Bruno Haible  <bruno@clisp.org>
23960
23961         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23962         restriction due to compiler bugs.
23963         Reported by Eric Blake.
23964
23965 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23966             Bruno Haible  <bruno@clisp.org>
23967
23968         Fix test-alignof failure.
23969         * lib/alignof.h (alignof_slot): New macro.
23970         (alignof_type): New macro, with the same semantics as the previous
23971         'alignof'.
23972         (alignof): Alias to alignof_slot.
23973         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23974         check that the results are usable as constant expressions.
23975
23976 2009-05-31  Bruno Haible  <bruno@clisp.org>
23977
23978         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23979         * tests/test-memchr.c (main): Check that memchr does not read past the
23980         first occurrence of the byte.
23981         * tests/test-strstr.c (main): Update comment.
23982         Suggested by Eric Blake.
23983
23984 2009-05-30  Bruno Haible  <bruno@clisp.org>
23985
23986         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23987         detail how to use dumpbin.
23988         Reported by David Byron <dbyron@dbyron.com>.
23989
23990 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23991
23992         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23993
23994 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23995
23996         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23997
23998 2009-05-28  Bruno Haible  <bruno@clisp.org>
23999
24000         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
24001         build-aux/ files.
24002
24003 2009-05-28  Simon Josefsson  <simon@josefsson.org>
24004
24005         * gnulib-tool (func_import): Transform license on build-aux/ files too.
24006
24007 2009-05-27  Simon Josefsson  <simon@josefsson.org>
24008
24009         * gnulib-tool (sed_transform_main_lib_file)
24010         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
24011         regexps.
24012
24013 2009-05-26  Simon Josefsson  <simon@josefsson.org>
24014
24015         * tests/test-strstr.c: Add another self-test.
24016         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
24017         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
24018
24019 2009-05-23  Bruno Haible  <bruno@clisp.org>
24020
24021         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
24022         change.
24023
24024 2009-05-21  Bruno Haible  <bruno@clisp.org>
24025
24026         Simplify use of mode_t varargs.
24027         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
24028         uses 'mode_t' or 'int'.
24029         * lib/openat.c (openat): Likewise.
24030         * lib/open-safer.c (open_safer): Likewise.
24031         * m4/mode_t.m4: New file.
24032         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
24033         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
24034         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
24035         * modules/open (Files): Add m4/mode_t.m4.
24036         * modules/openat (Files): Likewise.
24037         * modules/fcntl-safer (Files): Likewise.
24038         Suggested by Eric Blake.
24039
24040 2009-05-21  Pádraig Brady  <P@draigbrady.com>
24041
24042         * doc/glibc-functions/fallocate.texi: New file.
24043         * doc/gnulib.texi: Include it.
24044
24045 2009-05-21  Eric Blake  <ebb9@byu.net>
24046             Bruno Haible  <bruno@clisp.org>
24047
24048         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
24049         invocations.
24050         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24051
24052 2009-05-21  Eric Blake  <ebb9@byu.net>
24053             Bruno Haible  <bruno@clisp.org>
24054
24055         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
24056         include_next. Fix of 2008-11-20 commit.
24057         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
24058         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
24059         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
24060         NEXT_MATH_H.
24061         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
24062         instead of NEXT_MATH_H.
24063
24064 2009-05-21  Bruno Haible  <bruno@clisp.org>
24065
24066         Avoid redefinition warnings for SIZE_MAX.
24067         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
24068         Reported by Simon Josefsson.
24069
24070 2009-05-21  Bruno Haible  <bruno@clisp.org>
24071
24072         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
24073         AC_CACHE_VAL.
24074
24075 2009-05-20  Bruno Haible  <bruno@clisp.org>
24076
24077         Make zeroptr.h work on mingw.
24078         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
24079         mprotect.
24080         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
24081         * modules/memchr2-tests (configure.ac): Likewise.
24082         * modules/memcmp-tests (configure.ac): Likewise.
24083         * modules/memmem-tests (configure.ac): Likewise.
24084         * modules/memrchr-tests (configure.ac): Likewise.
24085         Reported by Simon Josefsson.
24086
24087 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24088
24089         * tests/test-glob.c: Include string.h for strcmp prototype.
24090
24091 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24092
24093         * modules/getdelim (Depends-on): Add explicit stdint, although it
24094         was implicitly already pulled in via realloc-posix.
24095         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
24096
24097 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24098
24099         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
24100         G. Christensen" <tgc@jupiterrise.com>.
24101         * m4/sys_socket_h.m4: Check for sa_family_t.
24102         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
24103         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
24104         * tests/test-sys_socket.c: Check that sa_family_t works.
24105
24106 2009-05-18  Eric Blake  <ebb9@byu.net>
24107
24108         maint.mk: allow gnulib_dir in VPATH build
24109         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
24110
24111 2009-05-15  Jim Meyering  <meyering@redhat.com>
24112
24113         maint.mk: Give gnulib_dir a default definition.
24114         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
24115         Thus, most packages no longer need to specify this variable in cfg.mk
24116
24117 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
24118
24119         rename.m4: fix typos that would make non-mingw cross-configure fail
24120         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
24121
24122 2009-05-13  Eric Blake  <ebb9@byu.net>
24123
24124         mmap-anon: avoid out-of-order autoconf expansion
24125         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
24126         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
24127         * modules/memchr-tests (Depends-on): Add extensions.
24128         * modules/memchr2-tests (Depends-on): Add extensions.
24129         * modules/memcmp-tests (Depends-on): Add extensions.
24130         * modules/memmem-tests (Depends-on): Add extensions.
24131         * modules/memrchr-tests (Depends-on): Add extensions.
24132
24133 2009-05-13  Bruno Haible  <bruno@clisp.org>
24134
24135         Make some tests ISO C 99 compliant.
24136         * tests/zerosize-ptr.h: New file.
24137         * tests/test-memchr.c: Include zerosize-ptr.h.
24138         (main): Use a zero-size object pointer instead of NULL.
24139         * tests/test-memchr2.c: Include zerosize-ptr.h.
24140         (main): Use a zero-size object pointer instead of NULL.
24141         * tests/test-memcmp.c: Include zerosize-ptr.h.
24142         (main): Use a zero-size object pointer instead of NULL.
24143         * tests/test-memmem.c: Include zerosize-ptr.h.
24144         (main): Use a zero-size object pointer instead of NULL.
24145         * tests/test-memrchr.c: Include zerosize-ptr.h.
24146         (main): Use a zero-size object pointer instead of NULL.
24147         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
24148         m4/mmap-anon.m4.
24149         (Depends-on): Add getpagesize.
24150         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24151         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
24152         m4/mmap-anon.m4.
24153         (Depends-on): Add getpagesize.
24154         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24155         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
24156         m4/mmap-anon.m4.
24157         (Depends-on): Add getpagesize.
24158         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24159         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
24160         m4/mmap-anon.m4.
24161         (Depends-on): Add getpagesize.
24162         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24163         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
24164         m4/mmap-anon.m4.
24165         (Depends-on): Add getpagesize.
24166         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24167
24168 2009-05-12  Bruno Haible  <bruno@clisp.org>
24169
24170         Tests for module 'alignof'.
24171         * modules/alignof-tests: New file.
24172         * tests/test-alignof.c: New file.
24173
24174 2009-05-12  Bruno Haible  <bruno@clisp.org>
24175
24176         Fix alignof macro.
24177         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
24178         vendor compilers that are always correct.
24179
24180 2009-05-12  Bruno Haible  <bruno@clisp.org>
24181
24182         Make the MAP_ANONYMOUS detection work on HP-UX 11.
24183         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
24184         not whether its fully works.
24185
24186 2009-05-12  Bruno Haible  <bruno@clisp.org>
24187
24188         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
24189
24190 2009-05-12  Jim Meyering  <meyering@redhat.com>
24191
24192         * top/maint.mk: Adjust backslash alignment.
24193
24194 2009-05-11  Simon Josefsson  <simon@josefsson.org>
24195
24196         * top/maint.mk: Make $(srcdir)/build-aux configurable.
24197
24198 2009-05-11  Eric Blake  <ebb9@byu.net>
24199
24200         argp: avoid undefined behavior
24201         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
24202         macros.
24203
24204 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24205
24206         * tests/test-vc-list-files-git.sh: Do git config of user.email and
24207         user.name to prevent git commit from complaining.
24208
24209 2009-05-10  Bruno Haible  <bruno@clisp.org>
24210
24211         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
24212         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
24213         it rewrites every file name only once.
24214         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
24215
24216 2009-05-08  Bruno Haible  <bruno@clisp.org>
24217
24218         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
24219         instead of 'max'.
24220
24221 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24222
24223         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
24224         sockaddr_storage test.
24225
24226 2009-05-07  Simon Josefsson  <simon@josefsson.org>
24227
24228         * modules/sys_socket (Makefile.am): Substitute
24229         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
24230         * m4/sys_socket_h.m4: Check for sockaddr_storage.
24231         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
24232         * tests/test-sys_socket.c: Check sockaddr_storage.
24233
24234 2009-05-08  Bruno Haible  <bruno@clisp.org>
24235
24236         New module 'alignof'.
24237         * lib/alignof.h: New file.
24238         * modules/alignof: New file.
24239
24240 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24241             Bruno Haible  <bruno@clisp.org>
24242
24243         Fix test-file-has-acl on FreeBSD.
24244         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
24245         mask is implicitly added.
24246         * tests/test-file-has-acl.c: Include <signal.h>.
24247         (main): Terminate the test after 5 seconds.
24248         * modules/acl-tests (configure.ac): Check for alarm function.
24249
24250 2009-05-04  Bruno Haible  <bruno@clisp.org>
24251
24252         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
24253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
24254         * modules/errno (configure.ac): Drop AC_REQUIRE.
24255         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
24256         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
24257
24258 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24259
24260         * modules/glob-tests: New module.
24261         * tests/test-glob.c: Add.
24262
24263 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24264
24265         * modules/fnmatch-tests: New module.
24266         * tests/test-fnmatch.c: Add.
24267
24268 2009-05-04  Eric Blake  <ebb9@byu.net>
24269
24270         maint: make the new no-submodule-changes rule VPATH-safe
24271         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
24272
24273 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24274             Bruno Haible  <bruno@clisp.org>
24275
24276         acl: Fix infinite loop on FreeBSD.
24277         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
24278         of return value from acl_get_entry.
24279         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
24280         Likewise.
24281
24282 2009-05-03  Bruno Haible  <bruno@clisp.org>
24283
24284         * lib/acl-internal.h (acl_entries): Clarify return value.
24285         * lib/acl_entries.c (acl_entries): Likewise.
24286
24287 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24288
24289         Bug fix in acl module.
24290         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
24291
24292 2009-05-03  Bruno Haible  <bruno@clisp.org>
24293
24294         Create gperf-generated file in the source dir, not in the build dir.
24295         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
24296         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
24297         * modules/unicase/locale-language (unicase/locale-languages.h):
24298         Likewise.
24299         * modules/unicase/special-casing (unicase/special-casing-table.h):
24300         Likewise.
24301         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
24302         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
24303         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
24304         Reported by Ralf Wildenhues.
24305
24306 2009-05-03  Bruno Haible  <bruno@clisp.org>
24307
24308         * modules/fnmatch (Description, configure.ac): Taken from
24309         fnmatch-posix.
24310         * modules/fnmatch-posix: Turn into a symbolic reference to the
24311         'fnmatch' module, and deprecate.
24312         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
24313
24314 2009-05-03  Bruno Haible  <bruno@clisp.org>
24315
24316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
24317         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
24318         Reported by Ralf Wildenhues.
24319
24320 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24321
24322         * m4/fnmatch.m4: Fix fnmatch re-define.
24323
24324 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24325
24326         priv-set: new module and tests; adapt write-any-file
24327         * lib/priv-set.c: New file.
24328         * lib/priv-set.h: New file.
24329         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
24330         * lib/write-any-file.c: Simplify by using priv-set module.
24331         * m4/priv-set.m4: New file.
24332         * modules/priv-set: New file.
24333         * modules/unlinkdir: Add dependency on priv-set module.
24334         * modules/write-any-file: Likewise.
24335
24336         Tests for module 'priv-set'.
24337         * modules/priv-set-tests: New file.
24338         * tests/test-priv-set.c: New file.
24339
24340 2009-05-03  Jim Meyering  <meyering@redhat.com>
24341             Bruno Haible  <bruno@clisp.org>
24342
24343         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
24344         use the converted UTF-8 variant of the name instead.
24345
24346 2009-05-03  Jim Meyering  <meyering@redhat.com>
24347
24348         tests: tighten some getdate tests
24349         * tests/test-getdate.c (main): Tighten tests: require equality,
24350         not just greater than.  Set TZ envvar to UTC0.
24351
24352 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24353
24354         getdate: correctly interpret "next monday" when run on a Monday
24355         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
24356         that e.g., "next tues" (when run on a tuesday) results in a date
24357         that is one week in the future, and not today's date.
24358         I.e., add a week when the wday is the same as the current one.
24359         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
24360         and earlier by Martin Bernreuther and Jan Minář.
24361         * tests/test-getdate.c (main): Check that "next DAY" is always in
24362         the future and that "last DAY" is always in the past.
24363
24364 2009-05-02  Jim Meyering  <meyering@redhat.com>
24365
24366         build: ensure that a release build fails when a submodule is unclean
24367         * top/maint.mk (no-submodule-changes): New rule.
24368         (alpha beta major): Depend on it.
24369
24370 2009-05-02  Bruno Haible  <bruno@clisp.org>
24371
24372         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
24373         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
24374         shell variable gl_fnmatch_required to detect which variant is
24375         requested.
24376         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
24377         gl_FUNC_FNMATCH_POSIX.
24378         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
24379         exclude fnmatch-posix.
24380
24381 2009-05-02  Bruno Haible  <bruno@clisp.org>
24382
24383         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
24384         * modules/mbsrtowcs (License): Change to LGPLv2+.
24385         * modules/strnlen1 (License): Likewise.
24386         Reported by Simon Josefsson.
24387
24388 2009-05-02  Bruno Haible  <bruno@clisp.org>
24389
24390         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
24391         "cross".
24392         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
24393         gnulib-tool was called with option --source-base=lib.
24394
24395 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24396
24397         Use automake *-local hooks without commands, for extensibility.
24398         * modules/localcharset (Makefile.am): Rename install-exec-local
24399         rule to install-exec-localcharset, and make it a prerequisite of
24400         install-exec-local.  Likewise, rename the uninstall-local rule to
24401         uninstall-localcharset, and make it a prerequisite of the former.
24402
24403 2009-05-01  Bruno Haible  <bruno@clisp.org>
24404
24405         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
24406         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24407         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
24408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
24409         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
24410         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24411         m4/locale-zh.m4, m4/codeset.m4.
24412
24413         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24414         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
24415         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24416         m4/locale-zh.m4.
24417
24418         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
24419         REPLACE_WCRTOMB if mbstate_t must be replaced.
24420         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
24421         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
24422
24423 2009-05-01  Bruno Haible  <bruno@clisp.org>
24424
24425         Avoid compiler warnings when redefining macros defined by <libintl.h>.
24426         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
24427         dngettext, dcngettext, textdomain, bindtextdomain,
24428         bind_textdomain_codeset): Undefine before redefining.
24429
24430 2009-04-30  Bruno Haible  <bruno@clisp.org>
24431
24432         Fix bug introduced on 2009-04-25.
24433         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
24434         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
24435         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
24436         is defined.
24437         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
24438         is defined.
24439         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
24440         is defined.
24441         Reported by Elbert_Pol <elbert.pol@gmail.com>.
24442
24443 2009-04-28  Bruno Haible  <bruno@clisp.org>
24444
24445         Comment tweaks.
24446         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
24447         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
24448         * lib/unicase.h (u*_casexfrm): Likewise.
24449         Reported by Paolo Bonzini.
24450
24451 2009-04-28  Bruno Haible  <bruno@clisp.org>
24452
24453         Fix a compilation error.
24454         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
24455         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24456         Reported by Jim Meyering.
24457
24458 2009-04-27  Bruno Haible  <bruno@clisp.org>
24459
24460         New module 'libunistring'.
24461         * modules/libunistring: New file.
24462         * m4/libunistring.m4: New file.
24463         * MODULES.html.sh (Unicode string functions): Add it.
24464
24465 2009-04-27  Eric Blake  <ebb9@byu.net>
24466
24467         maint.mk: allow package-specific header to provide <config.h>
24468         * top/maint.mk (sc_require_config_h): New variable.
24469         (sc_require_config_h, sc_require_config_h_first): Use it.
24470
24471 2009-04-27  Simon Josefsson  <simon@josefsson.org>
24472
24473         * top/maint.mk (sc_avoid_if_before_free): Except
24474         useless-if-before-free script.
24475
24476 2009-04-27  Eric Blake  <ebb9@byu.net>
24477
24478         maintainer-makefile: depend on all required helper scripts
24479         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
24480         useless-if-before-free.
24481         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
24482         version, rather than assuming gnulib checkout is available.
24483         Reported by Simen Josefsson.
24484
24485 2009-04-26  Bruno Haible  <bruno@clisp.org>
24486
24487         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
24488         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
24489         "../" or "..".
24490
24491 2009-04-26  Bruno Haible  <bruno@clisp.org>
24492
24493         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
24494         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
24495         AC_LIB_HAVE_LINKFLAGS.
24496
24497 2009-04-26  Bruno Haible  <bruno@clisp.org>
24498
24499         Simplify calling convention of u*_conv_from_encoding.
24500         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
24501         u32_conv_from_encoding): Expect a resultbuf argument and return the
24502         result directly as a pointer.
24503         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
24504         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
24505         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
24506         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
24507         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
24508         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24509         Update.
24510         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
24511         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
24512         * lib/vasnprintf.c (VASNPRINTF): Update.
24513         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
24514         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
24515         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
24516         * NEWS: Mention the change.
24517
24518 2009-04-26  Bruno Haible  <bruno@clisp.org>
24519
24520         Simplify calling convention of u*_conv_to_encoding.
24521         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24522         u32_conv_to_encoding): Expect a resultbuf argument and return the
24523         result directly as a pointer.
24524         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24525         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
24526         freeing scaled_offsets if mem_iconveha failed.
24527         * lib/unicase/u-casexfrm.h (FUNC): Update.
24528         * lib/uninorm/u-normxfrm.h (FUNC): Update.
24529         * lib/vasnprintf.c (VASNPRINTF): Update.
24530         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
24531         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
24532         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
24533         * NEWS: Mention the change.
24534
24535 2009-04-26  Bruno Haible  <bruno@clisp.org>
24536
24537         Avoid test failures on AIX and OSF/1.
24538         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
24539         malloc(0).
24540         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24541         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24542         Likewise.
24543         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
24544         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
24545         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
24546         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
24547         * doc/posix-functions/malloc.texi: Document the portability problem
24548         related to malloc(0).
24549
24550 2009-04-26  Bruno Haible  <bruno@clisp.org>
24551
24552         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
24553         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
24554         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
24555
24556 2009-04-25  Bruno Haible  <bruno@clisp.org>
24557
24558         Avoid link error when creating a namespace clean library.
24559         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
24560         as macro with arguments if already defined as an alias.
24561         * lib/signbitf.c (gl_signbitf): Don't undefine.
24562         * lib/signbitd.c (gl_signbitd): Don't undefine.
24563         * lib/signbitl.c (gl_signbitl): Don't undefine.
24564
24565 2009-04-25  Jim Meyering  <meyering@redhat.com>
24566
24567         vc-list-files: fix another quoting bug
24568         * build-aux/vc-list-files: Avoid sed backslash expansion
24569         of pathological directory names.
24570
24571 2009-04-25  Eric Blake  <ebb9@byu.net>
24572
24573         vc-list-files: fix shell quoting error
24574         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24575         timestamp.
24576
24577 2009-04-25  Jim Meyering  <meyering@redhat.com>
24578
24579         vc-list-files: restore lost functionality with subdir argument
24580         * build-aux/vc-list-files: When given a non-"." sub-directory
24581         argument, substitute the $dir/ prefix back onto each resulting name.
24582         Otherwise, coreutils' root_tests check would fail.
24583
24584 2009-04-24  Eric Blake  <ebb9@byu.net>
24585
24586         vc-list-files: ignore git symlinks
24587         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24588         than ls-files, to ignore git symlinks.
24589
24590         maint.mk: import improvements from m4
24591         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24592         (move_if_change): Delete unused macro.
24593         (news-date-check, vc-diff-check): Support VPATH builds.
24594         (announcement): Likewise.  Split --bootstrap-tools list...
24595         (boostrap-tools): ...into separate list, which can be overridden
24596         in cfg.mk.
24597         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24598         requiring dependency on useless-if-before-free module.
24599         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24600         Support VPATH builds.
24601
24602 2009-04-24  Jim Meyering  <meyering@redhat.com>
24603
24604         maint.mk: remove coreutils-specific rules and variables
24605         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
24606         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
24607         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
24608
24609         maint.mk: remove obsolete rule
24610         * top/maint.mk (rel-check): Remove rule.
24611         (WGET, WGETFLAGS): Remove now-unused variables.
24612
24613 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24614
24615         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
24616         consistency.
24617
24618         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
24619         '$(PATH_SEPARATOR)' instead of ':'.
24620
24621 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24622
24623         * lib/getopt1.c (main): Use 'const' for static array.
24624
24625 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24626
24627         * top/maint.mk: Sync with coreutils.
24628         * NEWS: Explain incompatibilities.
24629
24630 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24631             Bruno Haible  <bruno@clisp.org>
24632
24633         Fix cross-compilation results.
24634         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
24635         statement, as third argument of AC_TRY_RUN.
24636         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24637         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24638         Likewise.
24639         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24640         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24641         Likewise.
24642         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
24644         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
24645
24646 2009-04-20  Bruno Haible  <bruno@clisp.org>
24647
24648         Avoid test failure on mingw.
24649         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
24650
24651 2009-04-20  Bruno Haible  <bruno@clisp.org>
24652
24653         Avoid compilation error on mingw.
24654         * modules/localename-tests (Depends-on): Add locale.
24655
24656 2009-04-19  Bruno Haible  <bruno@clisp.org>
24657
24658         Support for building a shared library on Windows platforms.
24659         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
24660         (main): Test the presence of UNINORM_NFC here.
24661         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
24662         (main): Test the presence of UNINORM_NFD here.
24663         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
24664         (main): Test the presence of UNINORM_NFKC here.
24665         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
24666         (main): Test the presence of UNINORM_NFKD here.
24667
24668 2009-04-19  Bruno Haible  <bruno@clisp.org>
24669
24670         Avoid a compiler warning.
24671         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
24672         Change type of variable 'sequence'.
24673
24674 2009-04-19  Bruno Haible  <bruno@clisp.org>
24675
24676         * modules/configmake (Makefile.am): When the contents of configmake.h
24677         does not change, arrange to preserve its modification time.
24678
24679 2009-04-17  Simon Josefsson  <simon@josefsson.org>
24680
24681         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
24682         gettext domain.
24683
24684 2009-04-16  Jim Meyering  <meyering@redhat.com>
24685
24686         useless-if-before-free: improve conversion code
24687         * build-aux/useless-if-before-free: Adjust code-in-comment to match
24688         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
24689
24690 2009-04-14  Bruno Haible  <bruno@clisp.org>
24691
24692         * modules/fcntl (Depends-on): Add extensions.
24693         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
24694
24695 2009-04-12  Ben Pfaff  <blp@gnu.org>
24696
24697         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
24698         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
24699
24700 2009-03-20  Ben Pfaff  <blp@gnu.org>
24701
24702         Make rename replace existing destinations on Windows.
24703         * m4/rename.m4: Add test for Mingw.
24704         * lib/rename.c: Add rename replacement that uses MoveFileEx with
24705         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
24706         * doc/posix-functions/rename.texi: Document.
24707
24708 2009-04-10  Bruno Haible  <bruno@clisp.org>
24709
24710         New include file "iconveh.h".
24711         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
24712         * lib/striconveh.h: Include it.
24713         (enum iconv_ilseq_handler): Remove definition.
24714         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
24715         striconveh.h.
24716         * lib/striconveha.c: Include striconveh.h.
24717         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
24718         * modules/striconveh (Files): Add lib/iconveh.h.
24719         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
24720         lib/striconveh.h.
24721
24722 2009-04-10  Bruno Haible  <bruno@clisp.org>
24723
24724         * lib/uniconv.h: Update comment.
24725
24726 2009-04-10  Bruno Haible  <bruno@clisp.org>
24727
24728         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
24729         always.
24730         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24731         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24732         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24733         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24734         "unistring-notinline.h", so that the function gets defined always.
24735         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24736         * lib/unistr/u8-uctomb.c: Likewise.
24737         * lib/unistr/u16-mbtouc.c: Likewise.
24738         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24739         * lib/unistr/u16-uctomb.c: Likewise.
24740         * lib/unistr/u32-mbtouc.c: Likewise.
24741         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24742         * lib/unistr/u32-uctomb.c: Likewise.
24743
24744 2009-04-10  Bruno Haible  <bruno@clisp.org>
24745
24746         Mark 'utime' obsolete.
24747         * modules/utime (Status, Notice): New sections.
24748         Suggested by Jim Meyering.
24749
24750         Fix cross-compile guess for utime test.
24751         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24752         autoconf.
24753         * doc/posix-functions/utime.texi: Give more precisions.
24754         Reported by Jan <ipif@ymail.com>.
24755
24756 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24757
24758         filevercmp: correct today's change
24759         * lib/filevercmp.c: Also handle coreutils' test inputs.
24760         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24761
24762         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24763         for reporting it.
24764         * lib/filevercmp.c: Special handle for "", "." and "..".
24765         * tests/test-filevercmp.c: Enlarge the set suite.
24766
24767 2009-04-07  Jim Meyering  <meyering@redhat.com>
24768
24769         useless-if-before-free: show how to remove braced useless free, too
24770         * build-aux/useless-if-before-free: still only in a comment, though.
24771
24772 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24773
24774         maint.mk: import changes to syntax-check macros from coreutils
24775         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24776         Use them in the relevant macros.
24777
24778 2009-04-06  Bruno Haible  <bruno@clisp.org>
24779
24780         Fix unportable use of bit-fields.
24781         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24782         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24783         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24784
24785 2009-04-06  Bruno Haible  <bruno@clisp.org>
24786
24787         Avoid test failures on AIX and OSF/1.
24788         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24789         that malloc(0) = NULL.
24790         * tests/unicase/test-u8-tolower.c (check): Likewise.
24791         * tests/unicase/test-u8-totitle.c (check): Likewise.
24792         * tests/unicase/test-u8-toupper.c (check): Likewise.
24793         * tests/unicase/test-u16-casefold.c (check): Likewise.
24794         * tests/unicase/test-u16-tolower.c (check): Likewise.
24795         * tests/unicase/test-u16-totitle.c (check): Likewise.
24796         * tests/unicase/test-u16-toupper.c (check): Likewise.
24797         * tests/unicase/test-u32-casefold.c (check): Likewise.
24798         * tests/unicase/test-u32-tolower.c (check): Likewise.
24799         * tests/unicase/test-u32-totitle.c (check): Likewise.
24800         * tests/unicase/test-u32-toupper.c (check): Likewise.
24801         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24802         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24803         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24804         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24805         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24806         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24807         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24808         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24809         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24810         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24811         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24812         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24813
24814 2009-04-05  Bruno Haible  <bruno@clisp.org>
24815
24816         Work around an autoconf limitation.
24817         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24818         comment line if it would be longer than 3 KB.
24819
24820 2009-04-05  Bruno Haible  <bruno@clisp.org>
24821
24822         Avoid test failure with libiconv-1.13.
24823         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24824         of the expected test results.
24825
24826 2009-04-05  Bruno Haible  <bruno@clisp.org>
24827
24828         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24829         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24830         that it should be installed.
24831
24832 2009-04-05  Bruno Haible  <bruno@clisp.org>
24833
24834         * gnulib-tool: New option --copy-file.
24835         (func_usage): Document it.
24836         (func_dest_tmpfilename): Moved out of func_import.
24837         (func_add_file, func_update_file): New functions, extracted from
24838         func_import.
24839         (func_import): Update.
24840
24841 2009-04-05  Karl Berry  <karl@gnu.org>
24842
24843         * README: prominently mention gnulib-tool.
24844         Rearrange sections so getting the code is near the top.
24845
24846 2009-04-05  Bruno Haible  <bruno@clisp.org>
24847
24848         * lib/unicase.h: Mention u*_cmp2.
24849         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24850         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24851         * lib/unicase/ulc-casecmp.c: Likewise.
24852         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24853         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24854         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24855         unistr/u8-cmp.
24856         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24857         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24858         unistr/u16-cmp.
24859         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24860         unistr/u32-cmp.
24861
24862         * lib/uninorm.h: Mention u*_cmp2.
24863         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24864         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24865         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24866         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24867         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24868         unistr/u8-cmp.
24869         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24870         unistr/u16-cmp.
24871         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24872         unistr/u32-cmp.
24873
24874         New module 'unistr/u32-cmp2'.
24875         * lib/unistr/u32-cmp2.c: New file.
24876         * modules/unistr/u32-cmp2: New file.
24877
24878         New module 'unistr/u16-cmp2'.
24879         * lib/unistr/u16-cmp2.c: New file.
24880         * modules/unistr/u16-cmp2: New file.
24881
24882         New module 'unistr/u8-cmp2'.
24883         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24884         * lib/unistr/u8-cmp2.c: New file.
24885         * lib/unistr/u-cmp2.h: New file.
24886         * modules/unistr/u8-cmp2: New file.
24887
24888 2009-04-05  Bruno Haible  <bruno@clisp.org>
24889
24890         * lib/unictype.h (uc_property_is_valid): New macro.
24891         * tests/unictype/test-pr_byname.c (main): Use it.
24892
24893         * lib/unistr.h: Doc fixes.
24894         * lib/uniconv.h: Doc fixes.
24895         * lib/unictype.h: Doc fixes.
24896
24897 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24898
24899         Port coreutils 7.2 to Solaris 8.
24900
24901         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24902         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24903         for Solaris 8.  This is a bit of a hack, as it means it's the
24904         caller's responsibility to add -lnsl if needed, but most likely it
24905         won't be needed since only getaddrinfo uses this and getaddrinfo
24906         isn't needed on Solaris 8.
24907
24908         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24909         problem to Solaris 8 encountered with coreutils 7.2, which
24910         resulted in a message "fnmatch.c:292: warning: passing argument 4
24911         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24912         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24913
24914 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24915
24916         * m4/ld-version-script.m4: Add FIXME comment.
24917
24918 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24919
24920         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24921         SOVERSION variable.
24922
24923 2009-04-02  Bruno Haible  <bruno@clisp.org>
24924
24925         * Makefile (info, html, dvi, pdf): Combine the rules.
24926         Suggested by Jim Meyering.
24927
24928 2009-04-01  Bruno Haible  <bruno@clisp.org>
24929
24930         * Makefile (info, html, dvi, pdf): New targets.
24931         Reported by Reuben Thomas <rrt@sc3d.org>.
24932
24933 2009-04-01  Bruno Haible  <bruno@clisp.org>
24934
24935         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24936         can be put into PATH.
24937         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24938
24939 2009-04-01  Bruno Haible  <bruno@clisp.org>
24940
24941         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24942
24943 2009-04-01  Bruno Haible  <bruno@clisp.org>
24944
24945         Rename module 'visibility'.
24946         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24947         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24948         * doc/gnulib.texi: Update.
24949         * MODULES.html.sh (Misc): Update.
24950         * NEWS: Mention the change.
24951
24952 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24953
24954         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24955         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24956         Eric Blake <ebb9@byu.net> for review.
24957         * MODULES.html.sh: Add lib-msvc-compat.
24958         * doc/gnulib.texi: Link to new section.
24959         * m4/ld-output-def.m4: New file.
24960         * doc/ld-output-def.texi: New file.
24961
24962 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24963
24964         Rename ld-version-script to lib-symbol-versions.  Suggested by
24965         Bruno Haible <bruno@clisp.org>.
24966         * modules/ld-version-script: Renamed to lib-symbol-versions.
24967         * doc/ld-version-script.texi: Fix module name.
24968         * MODULES.html.sh: Add lib-symbol-versions.
24969
24970 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24971
24972         * modules/u64-tests: New file.
24973         * tests/test-u64.c: New file.
24974
24975 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24976
24977         * MODULES.html.sh: Mention u64.
24978         * modules/u64: New module.
24979         * modules/crypto/sha512: Depend on u64 module instead of providing
24980         u64.h.
24981
24982 2009-03-27  Eric Blake  <ebb9@byu.net>
24983
24984         test-strerror: make debugging EAI_SYSTEM easier
24985         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24986         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24987         failure was EAI_SYSTEM.
24988
24989 2009-03-25  Bruno Haible  <bruno@clisp.org>
24990
24991         Fix a problem with --enable-relocatable on Solaris 7.
24992         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24993         since 2008-02-24.
24994
24995 2009-03-25  Eric Blake  <ebb9@byu.net>
24996
24997         test-sockets: avoid gcc warning
24998         * tests/test-sockets.c (main): Silence compiler warning.
24999
25000 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25001
25002         New modules nproc, pthread, contributed by Glen Lenker.
25003
25004         * MODULES.html.sh: Add pthread, nproc.
25005         * lib/nproc.c: New file.
25006         * lib/nproc.h: New file.
25007         * lib/pthread.in.h: New file.
25008         * m4/pthread.m4: New file.
25009         * modules/nproc: New file.
25010         * modules/pthread: New file.
25011
25012 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25013
25014         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
25015         New variable.
25016
25017 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
25018
25019         filevercmp: handle simple~ and numbered.~3~ backup suffixes
25020         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
25021         * tests/test-filevercmp.c: Add tests for backup suffixes.
25022
25023 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25024
25025         * modules/stdlib (Depends-on): Add stdint, needed when defining
25026         struct random_data on, for example, HP-UX 10.20.  Reported by
25027         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25028
25029 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25030
25031         * lib/readline.c (readline): Call fflush on stdout after printing
25032         prompt.
25033
25034 2009-03-20  Bruno Haible  <bruno@clisp.org>
25035
25036         Remove dependency from 'close' module to -lws2_32 on native Windows.
25037         * lib/close-hook.h: New file.
25038         * lib/close-hook.c: New file.
25039         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
25040         w32sock.h.
25041         (_gl_close_fd_maybe_socket): Remove function.
25042         (rpl_close): Invoke execute_all_close_hooks instead of
25043         _gl_close_fd_maybe_socket.
25044         * lib/sockets.c: Include close-hook.h, w32sock.h.
25045         (close_fd_maybe_socket): New function, essentially from lib/close.c.
25046         (close_sockets_hook): New variable.
25047         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
25048         (gl_sockets_cleanup): Unregister it.
25049         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
25050         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
25051         * modules/close-hook: New file.
25052         * modules/close (Files): Remove lib/w32sock.h.
25053         (Depends-on): Add close-hook.
25054         (Link): Remove section.
25055         * modules/sockets (Files): Add lib/w32sock.h.
25056         (Depends-on): Add close-hook.
25057         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
25058         invocation.
25059         * NEWS: Mention that LIB_CLOSE is gone.
25060
25061 2009-03-23  Eric Blake  <ebb9@byu.net>
25062
25063         signal-tests: test previous patch
25064         * tests/test-signal.c: New file.
25065         * modules/signal-tests: Likewise.
25066
25067         signal.h: always support 'volatile sig_atomic_t'
25068         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
25069         (gl_SIGNAL_H_DEFAULTS): Add a default.
25070         * modules/signal (Makefile.am): Substitute if needed.
25071         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
25072         users can blindly add volatile.
25073         * doc/posix-headers/signal.texi (signal.h): Document it.
25074         Reported by Matthew Woehlke.
25075
25076 2009-03-23  Jim Meyering  <meyering@redhat.com>
25077
25078         pathmax: PATH_MAX: use pathconf only when available
25079         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
25080         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
25081         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
25082         This avoids a link failure in a PSP cross-compilation environment
25083         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
25084
25085         * lib/vasnprintf.c (divide): Fix typo in comment.
25086
25087 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25088
25089         * gnulib-tool (func_filter_filelist): Fix comment.
25090
25091 2009-03-20  Bruno Haible  <bruno@clisp.org>
25092
25093         Make sockets.h self-contained.
25094         * lib/sockets.c: Include sockets.h first.
25095         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
25096
25097 2009-03-19  Eric Blake  <ebb9@byu.net>
25098
25099         doc: mention more functions added in cygwin 1.7.0
25100         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
25101         addition.
25102         * doc/posix-functions/log2f.texi: Likewise.
25103
25104 2009-03-19  Jim Meyering  <meyering@redhat.com>
25105
25106         fsusage: avoid syntax error due to statement-before-declaration
25107         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
25108         after all declarations.  Reported by Matthew Woehlke in
25109         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
25110
25111 2009-03-18  Eric Blake  <ebb9@byu.net>
25112
25113         build-aux/compile: sync from automake
25114         * build-aux/compile: New file, from automake.
25115         * config/srclist.txt: Mention build-aux/compile.
25116
25117 2009-03-17  Bruno Haible  <bruno@clisp.org>
25118
25119         * lib/git-merge-changelog.c: Fix typo in comment.
25120         Reported by Reuben Thomas <rrt@sc3d.org>.
25121
25122 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
25123
25124         * m4/regex.m4: update and improve help for
25125         --without-included-regex.
25126
25127 2009-03-17  Simon Josefsson  <simon@josefsson.org>
25128
25129         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
25130         failure on missing include files.
25131
25132 2009-03-17  Eric Blake  <ebb9@byu.net>
25133
25134         doc: mention more functions added in cygwin 1.7.0
25135         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
25136         addition.
25137         * doc/posix-functions/fwscanf.texi: Likewise.
25138         * doc/posix-functions/swprintf.texi: Likewise.
25139         * doc/posix-functions/swscanf.texi: Likewise.
25140         * doc/posix-functions/vfwprintf.texi: Likewise.
25141         * doc/posix-functions/vfwscanf.texi: Likewise.
25142         * doc/posix-functions/vswprintf.texi: Likewise.
25143         * doc/posix-functions/vswscanf.texi: Likewise.
25144         * doc/posix-functions/vwprintf.texi: Likewise.
25145         * doc/posix-functions/vwscanf.texi: Likewise.
25146         * doc/posix-functions/wcscasecmp.texi: Likewise.
25147         * doc/posix-functions/wcsdup.texi: Likewise.
25148         * doc/posix-functions/wcsftime.texi: Likewise.
25149         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25150         * doc/posix-functions/wprintf.texi: Likewise.
25151         * doc/posix-functions/wscanf.texi: Likewise.
25152         * doc/glibc-functions/gethostbyname2.texi: Likewise.
25153
25154 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25155
25156         maint.mk: really add $(AM_MAKEFLAGS)
25157         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
25158         was inadvertently omitted in the last commit.
25159         Spotted by Bruno Haible.
25160
25161         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
25162         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
25163         $(AM_MAKEFLAGS)' rather than plain `make'.
25164
25165         gnulib-tool: execute $MAKE not make
25166         * gnulib-tool: Default $MAKE to 'make'.
25167         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
25168         than make.  Initialize $MAKE in the do-autobuild script.
25169
25170         gnulib-tool: use $MAKE not make in generated files
25171         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
25172         make, in generated files.  Initialize $MAKE in the do-autobuild
25173         script.
25174
25175         * top/GNUmakefile (_have-git-version-gen): Fix typo.
25176
25177         GNUmakefile: disable parallelism only for multiple, recursive targets
25178         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
25179         additions in the Makefile.
25180         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
25181         by Automake.
25182         (.NOTPARALLEL): Only disable parallel builds if multiple targets
25183         are listed on the command line and at least one of them is
25184         listed in $(ALL_RECURSIVE_TARGETS).
25185
25186 2009-03-14  Bruno Haible  <bruno@clisp.org>
25187
25188         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
25189         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
25190         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
25191         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
25192         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
25193         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
25194         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
25195         unistr/u8-uctomb.
25196         * modules/unistr/u8-strchr (Depends-on): Likewise.
25197         * modules/unistr/u8-strrchr (Depends-on): Likewise.
25198         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
25199         unistr/u16-uctomb.
25200         * modules/unistr/u16-strchr (Depends-on): Likewise.
25201         * modules/unistr/u16-strrchr (Depends-on): Likewise.
25202
25203 2009-03-12  Bruno Haible  <bruno@clisp.org>
25204
25205         Work around select() bug on Interix 3.5.
25206         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
25207         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
25208         * m4/select.m4: New file.
25209         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
25210         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
25211         * modules/select (Files): Add m4/select.m4.
25212         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
25213         * modules/nanosleep (Depends-on): Add select.
25214         * modules/poll (Depends-on): Likewise.
25215         * doc/posix-functions/select.texi: Mention the Interix bug.
25216         Reported by Markus Duft <mduft@gentoo.org>.
25217
25218         * lib/select.c: Renamed from lib/winsock-select.c.
25219         * modules/select (Files): Add lib/select.c, remove
25220         lib/winsock-select.c.
25221         (configure.ac): Update.
25222
25223 2009-03-12  Jim Meyering  <meyering@redhat.com>
25224
25225         avoid gcc warnings about unused macro definitions
25226         * lib/readtokens.c (STREQ): Remove unused definition.
25227         * lib/xmalloc.c (SIZE_MAX): Likewise.
25228         * lib/openat-die.c (N_): Likewise.
25229         * lib/mountlist.c (SIZE_MAX): Remove definition.
25230         Instead, include <stdint.h>.
25231         * lib/readutmp.c: Likewise.
25232         * modules/readutmp (Depends-on): Add stdint.
25233         * modules/mountlist (Depends-on): Add stdint.
25234         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
25235
25236 2009-03-10  Bruno Haible  <bruno@clisp.org>
25237
25238         Tests for module 'mbmemcasecoll'.
25239         * modules/mbmemcasecoll-tests: New file.
25240         * tests/test-mbmemcasecoll1.sh: New file.
25241         * tests/test-mbmemcasecoll2.sh: New file.
25242         * tests/test-mbmemcasecoll3.sh: New file.
25243         * tests/test-mbmemcasecoll.c: New file.
25244
25245         New module 'mbmemcasecoll'.
25246         * lib/mbmemcasecoll.h: New file.
25247         * lib/mbmemcasecoll.c: New file.
25248         * modules/mbmemcasecoll: New file.
25249
25250         * tests/test-mbmemcasecmp.h: New file, extracted from
25251         tests/test-mbmemcasecmp.c.
25252         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
25253         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
25254         (main): Update.
25255         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
25256
25257 2009-03-09  Bruno Haible  <bruno@clisp.org>
25258
25259         Tests for module 'mbmemcasecmp'.
25260         * modules/mbmemcasecmp-tests: New file.
25261         * tests/test-mbmemcasecmp1.sh: New file.
25262         * tests/test-mbmemcasecmp2.sh: New file.
25263         * tests/test-mbmemcasecmp3.sh: New file.
25264         * tests/test-mbmemcasecmp.c: New file.
25265
25266         New module 'mbmemcasecmp'.
25267         * lib/mbmemcasecmp.h: New file.
25268         * lib/mbmemcasecmp.c: New file.
25269         * modules/mbmemcasecmp: New file.
25270
25271 2009-03-09  Bruno Haible  <bruno@clisp.org>
25272
25273         Tests for module 'unicase/ulc-casecoll'.
25274         * modules/unicase/ulc-casecoll-tests: New file.
25275         * tests/unicase/test-ulc-casecoll1.sh: New file.
25276         * tests/unicase/test-ulc-casecoll2.sh: New file.
25277         * tests/unicase/test-ulc-casecoll.c: New file.
25278
25279         New module 'unicase/ulc-casecoll'.
25280         * lib/unicase.h (ulc_casecoll): New declaration.
25281         * lib/unicase/ulc-casecoll.c: New file.
25282         * modules/unicase/ulc-casecoll: New file.
25283
25284         New module 'unicase/ulc-casexfrm'.
25285         * lib/unicase.h (ulc_casexfrm): New declaration.
25286         * lib/unicase/ulc-casexfrm.c: New file.
25287         * modules/unicase/ulc-casexfrm: New file.
25288
25289 2009-03-09  Bruno Haible  <bruno@clisp.org>
25290
25291         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
25292         invocations.
25293
25294         * m4/mbscasecmp.m4: Remove file.
25295         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
25296         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
25297
25298         * m4/mbscasestr.m4: Remove file.
25299         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
25300         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
25301
25302         * m4/mbschr.m4: Remove file.
25303         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
25304         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
25305
25306         * m4/mbscspn.m4: Remove file.
25307         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
25308         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
25309
25310         * m4/mbslen.m4: Remove file.
25311         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
25312         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
25313
25314         * m4/mbsncasecmp.m4: Remove file.
25315         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
25316         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
25317
25318         * m4/mbsnlen.m4: Remove file.
25319         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
25320         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
25321
25322         * m4/mbspbrk.m4: Remove file.
25323         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
25324         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
25325
25326         * m4/mbspcasecmp.m4: Remove file.
25327         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
25328         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
25329
25330         * m4/mbsrchr.m4: Remove file.
25331         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
25332         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
25333
25334         * m4/mbssep.m4: Remove file.
25335         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
25336         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
25337
25338         * m4/mbsspn.m4: Remove file.
25339         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
25340         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
25341
25342         * m4/mbsstr.m4: Remove file.
25343         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
25344         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
25345
25346         * m4/mbstok_r.m4: Remove file.
25347         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
25348         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
25349
25350         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
25351
25352         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
25353         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
25354
25355         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
25356
25357 2009-03-08  Bruno Haible  <bruno@clisp.org>
25358
25359         Tests for module 'unicase/ulc-casecmp'.
25360         * modules/unicase/ulc-casecmp-tests: New file.
25361         * tests/unicase/test-ulc-casecmp1.sh: New file.
25362         * tests/unicase/test-ulc-casecmp2.sh: New file.
25363         * tests/unicase/test-ulc-casecmp.c: New file.
25364
25365         New module 'unicase/ulc-casecmp'.
25366         * lib/unicase.h (ulc_casecmp): New declaration.
25367         * lib/unicase/ulc-casecmp.c: New file.
25368         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
25369         'const SRC_UNIT *'.
25370         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
25371         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
25372         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
25373         * modules/unicase/ulc-casecmp: New file.
25374
25375         Tests for module 'unicase/u32-is-cased'.
25376         * modules/unicase/u32-is-cased-tests: New file.
25377         * tests/unicase/test-u32-is-cased.c: New file.
25378
25379         Tests for module 'unicase/u16-is-cased'.
25380         * modules/unicase/u16-is-cased-tests: New file.
25381         * tests/unicase/test-u16-is-cased.c: New file.
25382
25383         Tests for module 'unicase/u8-is-cased'.
25384         * modules/unicase/u8-is-cased-tests: New file.
25385         * tests/unicase/test-u8-is-cased.c: New file.
25386         * tests/unicase/test-is-cased.h: New file.
25387
25388         New module 'unicase/u32-is-cased'.
25389         * lib/unicase/u32-is-cased.c: New file.
25390         * modules/unicase/u32-is-cased: New file.
25391
25392         New module 'unicase/u16-is-cased'.
25393         * lib/unicase/u16-is-cased.c: New file.
25394         * modules/unicase/u16-is-cased: New file.
25395
25396         New module 'unicase/u8-is-cased'.
25397         * lib/unicase/u8-is-cased.c: New file.
25398         * lib/unicase/u-is-cased.h: New file.
25399         * modules/unicase/u8-is-cased: New file.
25400
25401         Tests for module 'unicase/u32-is-casefolded'.
25402         * modules/unicase/u32-is-casefolded-tests: New file.
25403         * tests/unicase/test-u32-is-casefolded.c: New file.
25404
25405         Tests for module 'unicase/u16-is-casefolded'.
25406         * modules/unicase/u16-is-casefolded-tests: New file.
25407         * tests/unicase/test-u16-is-casefolded.c: New file.
25408
25409         Tests for module 'unicase/u8-is-casefolded'.
25410         * modules/unicase/u8-is-casefolded-tests: New file.
25411         * tests/unicase/test-u8-is-casefolded.c: New file.
25412         * tests/unicase/test-is-casefolded.h: New file.
25413
25414         New module 'unicase/u32-is-casefolded'.
25415         * lib/unicase/u32-is-casefolded.c: New file.
25416         * modules/unicase/u32-is-casefolded: New file.
25417
25418         New module 'unicase/u16-is-casefolded'.
25419         * lib/unicase/u16-is-casefolded.c: New file.
25420         * modules/unicase/u16-is-casefolded: New file.
25421
25422         New module 'unicase/u8-is-casefolded'.
25423         * lib/unicase/u8-is-casefolded.c: New file.
25424         * modules/unicase/u8-is-casefolded: New file.
25425
25426         Tests for module 'unicase/u32-is-titlecase'.
25427         * modules/unicase/u32-is-titlecase-tests: New file.
25428         * tests/unicase/test-u32-is-titlecase.c: New file.
25429
25430         Tests for module 'unicase/u16-is-titlecase'.
25431         * modules/unicase/u16-is-titlecase-tests: New file.
25432         * tests/unicase/test-u16-is-titlecase.c: New file.
25433
25434         Tests for module 'unicase/u8-is-titlecase'.
25435         * modules/unicase/u8-is-titlecase-tests: New file.
25436         * tests/unicase/test-u8-is-titlecase.c: New file.
25437         * tests/unicase/test-is-titlecase.h: New file.
25438
25439         New module 'unicase/u32-is-titlecase'.
25440         * lib/unicase/u32-is-titlecase.c: New file.
25441         * modules/unicase/u32-is-titlecase: New file.
25442
25443         New module 'unicase/u16-is-titlecase'.
25444         * lib/unicase/u16-is-titlecase.c: New file.
25445         * modules/unicase/u16-is-titlecase: New file.
25446
25447         New module 'unicase/u8-is-titlecase'.
25448         * lib/unicase/u8-is-titlecase.c: New file.
25449         * modules/unicase/u8-is-titlecase: New file.
25450
25451         Tests for module 'unicase/u32-is-lowercase'.
25452         * modules/unicase/u32-is-lowercase-tests: New file.
25453         * tests/unicase/test-u32-is-lowercase.c: New file.
25454
25455         Tests for module 'unicase/u16-is-lowercase'.
25456         * modules/unicase/u16-is-lowercase-tests: New file.
25457         * tests/unicase/test-u16-is-lowercase.c: New file.
25458
25459         Tests for module 'unicase/u8-is-lowercase'.
25460         * modules/unicase/u8-is-lowercase-tests: New file.
25461         * tests/unicase/test-u8-is-lowercase.c: New file.
25462         * tests/unicase/test-is-lowercase.h: New file.
25463
25464         New module 'unicase/u32-is-lowercase'.
25465         * lib/unicase/u32-is-lowercase.c: New file.
25466         * modules/unicase/u32-is-lowercase: New file.
25467
25468         New module 'unicase/u16-is-lowercase'.
25469         * lib/unicase/u16-is-lowercase.c: New file.
25470         * modules/unicase/u16-is-lowercase: New file.
25471
25472         New module 'unicase/u8-is-lowercase'.
25473         * lib/unicase/u8-is-lowercase.c: New file.
25474         * modules/unicase/u8-is-lowercase: New file.
25475
25476         Tests for module 'unicase/u32-is-uppercase'.
25477         * modules/unicase/u32-is-uppercase-tests: New file.
25478         * tests/unicase/test-u32-is-uppercase.c: New file.
25479
25480         Tests for module 'unicase/u16-is-uppercase'.
25481         * modules/unicase/u16-is-uppercase-tests: New file.
25482         * tests/unicase/test-u16-is-uppercase.c: New file.
25483
25484         Tests for module 'unicase/u8-is-uppercase'.
25485         * modules/unicase/u8-is-uppercase-tests: New file.
25486         * tests/unicase/test-u8-is-uppercase.c: New file.
25487         * tests/unicase/test-is-uppercase.h: New file.
25488
25489         New module 'unicase/u32-is-uppercase'.
25490         * lib/unicase/u32-is-uppercase.c: New file.
25491         * modules/unicase/u32-is-uppercase: New file.
25492
25493         New module 'unicase/u16-is-uppercase'.
25494         * lib/unicase/u16-is-uppercase.c: New file.
25495         * modules/unicase/u16-is-uppercase: New file.
25496
25497         New module 'unicase/u8-is-uppercase'.
25498         * lib/unicase/u8-is-uppercase.c: New file.
25499         * modules/unicase/u8-is-uppercase: New file.
25500
25501         New module 'unicase/u32-is-invariant'.
25502         * lib/unicase/u32-is-invariant.c: New file.
25503         * modules/unicase/u32-is-invariant: New file.
25504
25505         New module 'unicase/u16-is-invariant'.
25506         * lib/unicase/u16-is-invariant.c: New file.
25507         * modules/unicase/u16-is-invariant: New file.
25508
25509         New module 'unicase/u8-is-invariant'.
25510         * lib/unicase/u8-is-invariant.c: New file.
25511         * lib/unicase/invariant.h: New file.
25512         * lib/unicase/u-is-invariant.h: New file.
25513         * modules/unicase/u8-is-invariant: New file.
25514
25515         Tests for module 'unicase/u32-casecoll'.
25516         * modules/unicase/u32-casecoll-tests: New file.
25517         * tests/unicase/test-u32-casecoll.c: New file.
25518
25519         Tests for module 'unicase/u16-casecoll'.
25520         * modules/unicase/u16-casecoll-tests: New file.
25521         * tests/unicase/test-u16-casecoll.c: New file.
25522
25523         Tests for module 'unicase/u8-casecoll'.
25524         * modules/unicase/u8-casecoll-tests: New file.
25525         * tests/unicase/test-u8-casecoll.c: New file.
25526
25527         New module 'unicase/u32-casecoll'.
25528         * lib/unicase/u32-casecoll.c: New file.
25529         * modules/unicase/u32-casecoll: New file.
25530
25531         New module 'unicase/u16-casecoll'.
25532         * lib/unicase/u16-casecoll.c: New file.
25533         * modules/unicase/u16-casecoll: New file.
25534
25535         New module 'unicase/u8-casecoll'.
25536         * lib/unicase/u8-casecoll.c: New file.
25537         * lib/unicase/u-casecoll.h: New file.
25538         * modules/unicase/u8-casecoll: New file.
25539
25540         New module 'unicase/u32-casexfrm'.
25541         * lib/unicase/u32-casexfrm.c: New file.
25542         * modules/unicase/u32-casexfrm: New file.
25543
25544         New module 'unicase/u16-casexfrm'.
25545         * lib/unicase/u16-casexfrm.c: New file.
25546         * modules/unicase/u16-casexfrm: New file.
25547
25548         New module 'unicase/u8-casexfrm'.
25549         * lib/unicase/u8-casexfrm.c: New file.
25550         * lib/unicase/u-casexfrm.h: New file.
25551         * modules/unicase/u8-casexfrm: New file.
25552
25553         Tests for module 'unicase/u32-casecmp'.
25554         * modules/unicase/u32-casecmp-tests: New file.
25555         * tests/unicase/test-u32-casecmp.c: New file.
25556
25557         Tests for module 'unicase/u16-casecmp'.
25558         * modules/unicase/u16-casecmp-tests: New file.
25559         * tests/unicase/test-u16-casecmp.c: New file.
25560
25561         Tests for module 'unicase/u8-casecmp'.
25562         * modules/unicase/u8-casecmp-tests: New file.
25563         * tests/unicase/test-u8-casecmp.c: New file.
25564         * tests/unicase/test-casecmp.h: New file.
25565
25566         New module 'unicase/u32-casecmp'.
25567         * lib/unicase/u32-casecmp.c: New file.
25568         * modules/unicase/u32-casecmp: New file.
25569
25570         New module 'unicase/u16-casecmp'.
25571         * lib/unicase/u16-casecmp.c: New file.
25572         * modules/unicase/u16-casecmp: New file.
25573
25574         New module 'unicase/u8-casecmp'.
25575         * lib/unicase/u8-casecmp.c: New file.
25576         * lib/unicase/u-casecmp.h: New file.
25577         * modules/unicase/u8-casecmp: New file.
25578
25579         Tests for module 'unicase/u32-casefold'.
25580         * modules/unicase/u32-casefold-tests: New file.
25581         * tests/unicase/test-u32-casefold.c: New file.
25582
25583         Tests for module 'unicase/u16-casefold'.
25584         * modules/unicase/u16-casefold-tests: New file.
25585         * tests/unicase/test-u16-casefold.c: New file.
25586
25587         Tests for module 'unicase/u8-casefold'.
25588         * modules/unicase/u8-casefold-tests: New file.
25589         * tests/unicase/test-u8-casefold.c: New file.
25590
25591         New module 'unicase/u32-casefold'.
25592         * lib/unicase/u32-casefold.c: New file.
25593         * modules/unicase/u32-casefold: New file.
25594
25595         New module 'unicase/u16-casefold'.
25596         * lib/unicase/u16-casefold.c: New file.
25597         * modules/unicase/u16-casefold: New file.
25598
25599         New module 'unicase/u8-casefold'.
25600         * lib/unicase/u8-casefold.c: New file.
25601         * lib/unicase/u-casefold.h: New file.
25602         * modules/unicase/u8-casefold: New file.
25603
25604         New module 'unicase/tocasefold'.
25605         * lib/unicase/casefold.h: New file.
25606         * lib/unicase/tocasefold.c: New file.
25607         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
25608         * modules/unicase/tocasefold: New file.
25609
25610         Tests for module 'unicase/u32-totitle'.
25611         * modules/unicase/u32-totitle-tests: New file.
25612         * tests/unicase/test-u32-totitle.c: New file.
25613
25614         Tests for module 'unicase/u16-totitle'.
25615         * modules/unicase/u16-totitle-tests: New file.
25616         * tests/unicase/test-u16-totitle.c: New file.
25617
25618         Tests for module 'unicase/u8-totitle'.
25619         * modules/unicase/u8-totitle-tests: New file.
25620         * tests/unicase/test-u8-totitle.c: New file.
25621
25622         New module 'unicase/u32-totitle'.
25623         * lib/unicase/u32-totitle.c: New file.
25624         * modules/unicase/u32-totitle: New file.
25625
25626         New module 'unicase/u16-totitle'.
25627         * lib/unicase/u16-totitle.c: New file.
25628         * modules/unicase/u16-totitle: New file.
25629
25630         New module 'unicase/u8-totitle'.
25631         * lib/unicase/u8-totitle.c: New file.
25632         * lib/unicase/u-totitle.h: New file.
25633         * modules/unicase/u8-totitle: New file.
25634
25635         Tests for module 'unicase/u32-tolower'.
25636         * modules/unicase/u32-tolower-tests: New file.
25637         * tests/unicase/test-u32-tolower.c: New file.
25638
25639         Tests for module 'unicase/u16-tolower'.
25640         * modules/unicase/u16-tolower-tests: New file.
25641         * tests/unicase/test-u16-tolower.c: New file.
25642
25643         Tests for module 'unicase/u8-tolower'.
25644         * modules/unicase/u8-tolower-tests: New file.
25645         * tests/unicase/test-u8-tolower.c: New file.
25646
25647         New module 'unicase/u32-tolower'.
25648         * lib/unicase/u32-tolower.c: New file.
25649         * modules/unicase/u32-tolower: New file.
25650
25651         New module 'unicase/u16-tolower'.
25652         * lib/unicase/u16-tolower.c: New file.
25653         * modules/unicase/u16-tolower: New file.
25654
25655         New module 'unicase/u8-tolower'.
25656         * lib/unicase/u8-tolower.c: New file.
25657         * modules/unicase/u8-tolower: New file.
25658
25659         Tests for module 'unicase/u32-toupper'.
25660         * modules/unicase/u32-toupper-tests: New file.
25661         * tests/unicase/test-u32-toupper.c: New file.
25662
25663         Tests for module 'unicase/u16-toupper'.
25664         * modules/unicase/u16-toupper-tests: New file.
25665         * tests/unicase/test-u16-toupper.c: New file.
25666
25667         Tests for module 'unicase/u8-toupper'.
25668         * modules/unicase/u8-toupper-tests: New file.
25669         * tests/unicase/test-u8-toupper.c: New file.
25670
25671         New module 'unicase/u32-toupper'.
25672         * lib/unicase/u32-toupper.c: New file.
25673         * modules/unicase/u32-toupper: New file.
25674
25675         New module 'unicase/u16-toupper'.
25676         * lib/unicase/u16-toupper.c: New file.
25677         * modules/unicase/u16-toupper: New file.
25678
25679         New module 'unicase/u8-toupper'.
25680         * lib/unicase/u8-toupper.c: New file.
25681         * modules/unicase/u8-toupper: New file.
25682
25683         New module 'unicase/u32-casemap'.
25684         * lib/unicase/u32-casemap.c: New file.
25685         * modules/unicase/u32-casemap: New file.
25686
25687         New module 'unicase/u16-casemap'.
25688         * lib/unicase/u16-casemap.c: New file.
25689         * modules/unicase/u16-casemap: New file.
25690
25691         New module 'unicase/u8-casemap'.
25692         * lib/unicase/unicasemap.h: New file.
25693         * lib/unicase/u8-casemap.c: New file.
25694         * lib/unicase/u-casemap.h: New file.
25695         * modules/unicase/u8-casemap: New file.
25696
25697         New module 'unicase/special-casing'.
25698         * lib/unicase/special-casing.h: New file.
25699         * lib/unicase/special-casing.c: New file.
25700         * lib/unicase/special-casing-table.gperf: New file, generated by
25701         gen-uni-tables.c.
25702         * modules/unicase/special-casing: New file.
25703
25704         Tests for module 'unicase/locale-language'.
25705         * modules/unicase/locale-language-tests: New file.
25706         * tests/unicase/test-locale-language.sh: New file.
25707         * tests/unicase/test-locale-language.c: New file.
25708
25709         New module 'unicase/locale-language'.
25710         * lib/unicase/locale-language.c: New file.
25711         * lib/unicase/locale-languages.gperf: New file.
25712         * modules/unicase/locale-language: New file.
25713
25714         Generate more tables for case conversion and case folding.
25715         * lib/gen-uni-tables.c (SCC_*): New enum items.
25716         (struct special_casing_rule): New type.
25717         (casing_rules, num_casing_rules, allocated_casing_rules): New
25718         variables.
25719         (add_casing_rule, fill_casing_rules): New functions.
25720         (struct casefold_rule): New type.
25721         (casefolding_rules, num_casefolding_rules,
25722         allocated_casefolding_rules): New variables.
25723         (fill_casefolding_rules): New function.
25724         (unicode_casefold): New variable.
25725         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
25726         sort_casing_rules, output_casing_rules): New functions.
25727         (main): Accept to more arguments: SpecialCasing.txt and
25728         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
25729         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25730         Output mapping for casefolding.
25731
25732         * lib/unicase.h: Include stdbool.h, uninorm.h.
25733         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25734         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25735         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25736         arguments.
25737         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25738         resultp arguments.
25739         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25740         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25741         resultp arguments.
25742         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25743         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25744         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25745         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25746         declarations.
25747         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25748
25749 2009-03-08  Bruno Haible  <bruno@clisp.org>
25750
25751         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25752         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25753         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25754         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25755
25756 2009-03-07  Bruno Haible  <bruno@clisp.org>
25757
25758         Adjust u*_normcmp, u*_normcoll API.
25759         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25760         u16_normcoll, u32_normcoll): Change failure conventions.
25761         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25762         errno and return -1.
25763         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25764
25765 2009-03-07  Bruno Haible  <bruno@clisp.org>
25766
25767         Tests for module 'uninorm/u32-normcoll'.
25768         * modules/uninorm/u32-normcoll-tests: New file.
25769         * tests/uninorm/test-u32-normcoll.c: New file.
25770
25771         Tests for module 'uninorm/u16-normcoll'.
25772         * modules/uninorm/u16-normcoll-tests: New file.
25773         * tests/uninorm/test-u16-normcoll.c: New file.
25774
25775         Tests for module 'uninorm/u8-normcoll'.
25776         * modules/uninorm/u8-normcoll-tests: New file.
25777         * tests/uninorm/test-u8-normcoll.c: New file.
25778
25779 2009-03-07  Bruno Haible  <bruno@clisp.org>
25780
25781         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25782         tests/uninorm/test-u32-normcmp.c.
25783         * tests/uninorm/test-u32-normcmp.c: Include it.
25784         (test_nonascii): New function, extracted from main. Add some more
25785         tests.
25786         (main): Invoke test_ascii and test_nonascii.
25787         * modules/uninorm/u32-normcmp-tests (Files): Add
25788         tests/uninorm/test-u32-normcmp.h.
25789         (Depends-on): Remove uninorm/u32-normcmp.
25790
25791         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25792         tests/uninorm/test-u16-normcmp.c.
25793         * tests/uninorm/test-u16-normcmp.c: Include it.
25794         (test_nonascii): New function, extracted from main. Add some more
25795         tests.
25796         (main): Invoke test_ascii and test_nonascii.
25797         * modules/uninorm/u16-normcmp-tests (Files): Add
25798         tests/uninorm/test-u16-normcmp.h.
25799         (Depends-on): Remove uninorm/u16-normcmp.
25800
25801         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25802         tests/uninorm/test-u8-normcmp.c.
25803         * tests/uninorm/test-u8-normcmp.c: Include it.
25804         (test_nonascii): New function, extracted from main. Add some more
25805         tests.
25806         (main): Invoke test_ascii and test_nonascii.
25807         * modules/uninorm/u8-normcmp-tests (Files): Add
25808         tests/uninorm/test-u8-normcmp.h.
25809         (Depends-on): Remove uninorm/u8-normcmp.
25810
25811 2009-03-07  Bruno Haible  <bruno@clisp.org>
25812
25813         New module 'uninorm/u32-normcoll'.
25814         * lib/uninorm/u32-normcoll.c: New file.
25815         * modules/uninorm/u32-normcoll: New file.
25816
25817         New module 'uninorm/u16-normcoll'.
25818         * lib/uninorm/u16-normcoll.c: New file.
25819         * modules/uninorm/u16-normcoll: New file.
25820
25821         New module 'uninorm/u8-normcoll'.
25822         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25823         declarations.
25824         * lib/uninorm/u8-normcoll.c: New file.
25825         * lib/uninorm/u-normcoll.h: New file.
25826         * modules/uninorm/u8-normcoll: New file.
25827
25828         New module 'uninorm/u32-normxfrm'.
25829         * lib/uninorm/u32-normxfrm.c: New file.
25830         * modules/uninorm/u32-normxfrm: New file.
25831
25832         New module 'uninorm/u16-normxfrm'.
25833         * lib/uninorm/u16-normxfrm.c: New file.
25834         * modules/uninorm/u16-normxfrm: New file.
25835
25836         New module 'uninorm/u8-normxfrm'.
25837         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25838         declarations.
25839         * lib/uninorm/u8-normxfrm.c: New file.
25840         * lib/uninorm/u-normxfrm.h: New file.
25841         * modules/uninorm/u8-normxfrm: New file.
25842
25843 2009-03-07  Bruno Haible  <bruno@clisp.org>
25844
25845         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25846         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25847         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25848
25849 2009-03-07  Bruno Haible  <bruno@clisp.org>
25850
25851         New module 'memxfrm'.
25852         * lib/memxfrm.h: New file.
25853         * lib/memxfrm.c: New file.
25854         * modules/memxfrm: New file.
25855
25856 2009-03-07  Bruno Haible  <bruno@clisp.org>
25857
25858         New module 'memcmp2'.
25859         * lib/memcmp2.h: New file.
25860         * lib/memcmp2.c: New file.
25861         * modules/memcmp2: New file.
25862
25863 2009-03-07  Bruno Haible  <bruno@clisp.org>
25864
25865         Tests for module 'uninorm/decomposing-form'.
25866         * modules/uninorm/decomposing-form-tests: New file.
25867         * tests/uninorm/test-decomposing-form.c: New file.
25868
25869         New module 'uninorm/decomposing-form'.
25870         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25871         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25872         Add 'decomposing_variant' field.
25873         * lib/uninorm/decomposing-form.c: New file.
25874         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25875         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25876         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25877         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25878         * modules/uninorm/decomposing-form: New file.
25879         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25880         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25881
25882 2009-03-07  Bruno Haible  <bruno@clisp.org>
25883
25884         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25885         strings.
25886
25887 2009-03-06  Bruno Haible  <bruno@clisp.org>
25888
25889         Tests for module 'uninorm/u32-normcmp'.
25890         * tests/uninorm/test-u32-normcmp.c: New file.
25891         * modules/uninorm/u32-normcmp-tests: New file.
25892
25893         Tests for module 'uninorm/u16-normcmp'.
25894         * tests/uninorm/test-u16-normcmp.c: New file.
25895         * modules/uninorm/u16-normcmp-tests: New file.
25896
25897         Tests for module 'uninorm/u8-normcmp'.
25898         * tests/uninorm/test-u8-normcmp.c: New file.
25899         * modules/uninorm/u8-normcmp-tests: New file.
25900
25901         New module 'uninorm/u32-normcmp'.
25902         * lib/uninorm/u32-normcmp.c: New file.
25903         * modules/uninorm/u32-normcmp: New file.
25904
25905         New module 'uninorm/u16-normcmp'.
25906         * lib/uninorm/u16-normcmp.c: New file.
25907         * modules/uninorm/u16-normcmp: New file.
25908
25909         New module 'uninorm/u8-normcmp'.
25910         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25911         declarations.
25912         * lib/uninorm/u8-normcmp.c: New file.
25913         * lib/uninorm/u-normcmp.h: New file.
25914         * modules/uninorm/u8-normcmp: New file.
25915
25916 2009-03-06  Bruno Haible  <bruno@clisp.org>
25917
25918         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25919         Reported by Eric Blake.
25920
25921 2009-03-06  Eric Blake  <ebb9@byu.net>
25922             Bruno Haible  <bruno@clisp.org>
25923
25924         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25925         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25926         condition.
25927         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25928         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25929         condition.
25930         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25931
25932 2009-03-06  Eric Blake  <ebb9@byu.net>
25933
25934         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25935         to avoid compiler warnings.
25936         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25937
25938 2009-03-05  Bruno Haible  <bruno@clisp.org>
25939
25940         * tests/test-ftell.c (main): Disable test beyond end of file on
25941         FreeMiNT.
25942         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25943
25944 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25945
25946         * lib/filevercmp.c: Move hidden files up in ordering.
25947         * tests/test-filevercmp.c: Add tests for hidden files.
25948
25949 2009-03-04  Bruno Haible  <bruno@clisp.org>
25950
25951         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25952         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25953         AM_CFLAGS.
25954         Reported by Simon Josefsson.
25955
25956 2009-03-03  Bruno Haible  <bruno@clisp.org>
25957
25958         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25959         Reported by Simon Josefsson.
25960
25961         * doc/ld-version-script.texi: Update node reference.
25962
25963 2009-03-03  Bruno Haible  <bruno@clisp.org>
25964
25965         * modules/visibility (License): Change to 'unlimited'.
25966         Suggested by Simon Josefsson.
25967
25968 2009-03-03  Jim Meyering  <meyering@redhat.com>
25969
25970         unlinkdir: cannot_unlink_dir may modify process state
25971         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25972         it's neither thread-safe nor appropriate for use in a library.
25973
25974 2009-03-03  Eric Blake  <ebb9@byu.net>
25975
25976         test-closein: silence test under Darwin
25977         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25978         care if it dies from EPIPE or EBADF.
25979
25980 2009-03-03  Bruno Haible  <bruno@clisp.org>
25981
25982         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25983         earlier.
25984         * doc/visibility.texi: Fix @node and @section.
25985
25986 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25987
25988         * doc/gnulib.texi: Link to sections for ld version script and
25989         visibility.
25990         * doc/visibility.texi: Add @node and @section.
25991         * modules/ld-version-script: New module.
25992         * m4/ld-version-script.m4: New file.
25993         * doc/ld-version-script.texi: New file.
25994
25995 2009-03-02  David Lutterkort  <lutter@redhat.com>
25996
25997         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25999
26000 2009-03-02  Bruno Haible  <bruno@clisp.org>
26001
26002         * doc/visibility.texi: Mention libtool's -export-symbols option.
26003
26004 2009-03-02  Jim Meyering  <meyering@redhat.com>
26005
26006         announce-gen: new option: --no-print-checksums
26007         * build-aux/announce-gen (usage): Describe it.
26008         (print_checksums): Print a newline here, not in the [*] footnote.
26009         (main): Honor it.
26010
26011 2009-03-01  Bruno Haible  <bruno@clisp.org>
26012
26013         Use socklen_t in the native Windows replacements prototypes.
26014         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
26015         instead of 'int'.
26016         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26017         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26018         * modules/getsockopt (Depends-on): Add socklen.
26019         * modules/setsockopt (Depends-on): Add socklen.
26020
26021 2009-03-01  Bruno Haible  <bruno@clisp.org>
26022
26023         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
26024         least 4.2.
26025
26026 2009-03-01  Eric Blake  <ebb9@byu.net>
26027             Bruno Haible  <bruno@clisp.org>
26028
26029         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
26030         error messages.
26031         * lib/wait-process.c (wait_subprocess): Omit error message about
26032         deadly signal sent to the child of termsigp != NULL.
26033
26034 2009-03-01  Eric Blake  <ebb9@byu.net>
26035
26036         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
26037
26038 2009-03-01  Bruno Haible  <bruno@clisp.org>
26039
26040         Avoid a gcc warning.
26041         * tests/test-sched.c (b): Make global.
26042         Reported by Eric Blake.
26043
26044 2009-01-19  Martin Lambers  <marlam@marlam.de>
26045
26046         Provide POSIX semantics for socket timeout options on W32.
26047         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
26048         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
26049         * modules/setsockopt: Depend on sys_time module for struct timeval.
26050         * modules/getsockopt: Depend on sys_time module for struct timeval.
26051
26052 2009-03-01  Simon Josefsson  <simon@josefsson.org>
26053
26054         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
26055         __USE_GNU, for consistency with netdb.in.h.
26056         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26057
26058 2009-03-01  Bruno Haible  <bruno@clisp.org>
26059
26060         More support for FreeMiNT.
26061         * lib/fseeko.c (rpl_fseeko): Complete last commit.
26062         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26063
26064 2009-03-01  Bruno Haible  <bruno@clisp.org>
26065
26066         More support for FreeMiNT.
26067         * lib/fpurge.c (fpurge): Correct last commit.
26068         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26069
26070 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26071
26072         Fix unportable awk script in vc-list-files.
26073         * build-aux/vc-list-files: In the replacement awk script, use
26074         substr with a second argument of 1, not zero.
26075         Report by Simon Josefsson.
26076
26077 2009-02-28  Bruno Haible  <bruno@clisp.org>
26078
26079         More support for FreeMiNT.
26080         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
26081         to FreeMiNT today.
26082         * lib/fwriting.c (fwriting): Likewise.
26083         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
26084
26085 2009-02-28  Bruno Haible  <bruno@clisp.org>
26086
26087         * tests/test-freadseek.c (main): Disable test beyond end of file on
26088         FreeMiNT.
26089         * tests/test-ftello.c (main): Likewise.
26090         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26091
26092 2009-02-28  Bruno Haible  <bruno@clisp.org>
26093
26094         Add tentative support for FreeMiNT.
26095         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
26096         * lib/fpurge.c (fpurge): Likewise.
26097         * lib/freadable.c (freadable): Likewise.
26098         * lib/freading.c (freading): Likewise.
26099         * lib/freadptr.c (freadptr): Likewise.
26100         * lib/freadseek.c (freadptrinc): Likewise.
26101         * lib/fseeko.c (rpl_fseeko): Likewise.
26102         * lib/fseterr.c (fseterr): Likewise.
26103         * lib/fwritable.c (fwritable): Likewise.
26104         * lib/fwriting.c (fwriting): Likewise.
26105         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
26106         Hourihane.
26107         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26108
26109 2009-02-28  Bruno Haible  <bruno@clisp.org>
26110
26111         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
26112         SIGCHLD.
26113         Reported by Jim Meyering.
26114
26115 2009-02-28  Bruno Haible  <bruno@clisp.org>
26116
26117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
26118         Mention the results of these tests on various platforms.
26119         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
26120         order.
26121         * doc/posix-functions/printf.texi: Likewise.
26122         * doc/posix-functions/snprintf.texi: Likewise.
26123         * doc/posix-functions/sprintf.texi: Likewise.
26124         * doc/posix-functions/vfprintf.texi: Likewise.
26125         * doc/posix-functions/vprintf.texi: Likewise.
26126         * doc/posix-functions/vsnprintf.texi: Likewise.
26127         * doc/posix-functions/vsprintf.texi: Likewise.
26128         * doc/glibc-functions/obstack_printf.texi: Likewise.
26129         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26130
26131 2009-02-28  Bruno Haible  <bruno@clisp.org>
26132
26133         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
26134         Reported by Loïc Minier <lool@dooz.org>.
26135
26136 2009-02-27  Bruno Haible  <bruno@clisp.org>
26137
26138         * gnulib-tool (func_import): Make the sed expression used to create the
26139         sed script for updating the .gitignore file POSIX compliant.
26140         Reported by Eric Blake.
26141
26142 2009-02-27  Bruno Haible  <bruno@clisp.org>
26143
26144         * gnulib-tool (sed): Don't alias as "sed --posix".
26145         Reported by Eric Blake.
26146
26147 2009-02-27  Bruno Haible  <bruno@clisp.org>
26148
26149         Avoid test link errors.
26150         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
26151         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
26152         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
26153         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
26154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26155
26156 2009-02-27  Bruno Haible  <bruno@clisp.org>
26157
26158         Avoid spurious "(cached)" in configure output.
26159         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
26160         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
26161         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26162         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26163         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26164         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26165         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26166         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26167         Reported by Eric Blake.
26168
26169 2009-02-27  Eric Blake  <ebb9@byu.net>
26170
26171         printf: fix regression in previous patch
26172         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
26173
26174 2009-02-27  Bruno Haible  <bruno@clisp.org>
26175
26176         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
26177         value.
26178         * lib/stdint.in.h: Likewise.
26179         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
26180
26181 2009-02-27  Eric Blake  <ebb9@byu.net>
26182
26183         doc: mention more functions added in cygwin 1.7.0
26184         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
26185         addition.
26186         * doc/posix-functions/open_wmemstream.texi: Likewise.
26187         * doc/posix-functions/wcsnlen.texi: Likewise.
26188         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26189         * doc/posix-functions/wcstod.texi: Likewise.
26190         * doc/posix-functions/wcstof.texi: Likewise.
26191         * doc/posix-functions/wcstoimax.texi: Likewise.
26192         * doc/posix-functions/wcstok.texi: Likewise.
26193         * doc/posix-functions/wcstoumax.texi: Likewise.
26194
26195         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
26196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
26197         * doc/posix-functions/fprintf.texi: Update.
26198         * doc/posix-functions/printf.texi: Update.
26199         * doc/posix-functions/snprintf.texi: Update.
26200         * doc/posix-functions/sprintf.texi: Update.
26201         * doc/posix-functions/vfprintf.texi: Update.
26202         * doc/posix-functions/vprintf.texi: Update.
26203         * doc/posix-functions/vsnprintf.texi: Update.
26204         * doc/posix-functions/vsprintf.texi: Update.
26205         * doc/glibc-functions/obstack_printf.texi: Update.
26206         * doc/glibc-functions/obstack_vprintf.texi: Update.
26207
26208 2009-02-26  Eric Blake  <ebb9@byu.net>
26209
26210         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
26211         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
26212         compilation bug by using runtime conversion.
26213         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26214         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
26215         * modules/ceill-tests (Files): Use nan.h.
26216         * modules/floorl-tests (Files): Likewise.
26217         * modules/frexpl-tests (Files): Likewise.
26218         * modules/isnanl-tests (Files): Likewise.
26219         * modules/ldexpl-tests (Files): Likewise.
26220         * modules/roundl-tests (Files): Likewise.
26221         * modules/truncl-tests (Files): Likewise.
26222         * tests/test-ceill.c (main): Use a working NaN.
26223         * tests/test-floorl.c (main): Likewise.
26224         * tests/test-frexpl.c (main): Likewise.
26225         * tests/test-isnan.c (test_long_double): Likewise.
26226         * tests/test-isnanl.h (main): Likewise.
26227         * tests/test-ldexpl.h (main): Likewise.
26228         * tests/test-roundl.h (main): Likewise.
26229         * tests/test-truncl.h (main): Likewise.
26230         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
26231
26232 2009-02-26  Eric Blake  <ebb9@byu.net>
26233             Bruno Haible  <bruno@clisp.org>
26234
26235         Work around a *printf bug with %ls on Solaris.
26236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
26237         precision is specified, sprintf stops converting the wide string
26238         argument when the number of bytes that have been produced by this
26239         conversion equals or exceeds the precision.
26240         * doc/posix-functions/fprintf.texi: Update.
26241         * doc/posix-functions/printf.texi: Update.
26242         * doc/posix-functions/snprintf.texi: Update.
26243         * doc/posix-functions/sprintf.texi: Update.
26244         * doc/posix-functions/vfprintf.texi: Update.
26245         * doc/posix-functions/vprintf.texi: Update.
26246         * doc/posix-functions/vsnprintf.texi: Update.
26247         * doc/posix-functions/vsprintf.texi: Update.
26248         * doc/glibc-functions/obstack_printf.texi: Update.
26249         * doc/glibc-functions/obstack_vprintf.texi: Update.
26250
26251 2009-02-26  Eric Blake  <ebb9@byu.net>
26252
26253         stdlib: favor compiler check of random.h
26254         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
26255         to avoid an ObjC random.h installed by Swarm.
26256
26257 2009-02-26  Bruno Haible  <bruno@clisp.org>
26258
26259         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
26260         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
26261         Reported by Gary V. Vaughan <gary@gnu.org>.
26262
26263 2009-02-26  Bruno Haible  <bruno@clisp.org>
26264
26265         Fix *printf behaviour regarding the %ls directive.
26266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
26267         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
26268         NEED_PRINTF_DIRECTIVE_LS.
26269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
26270         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26271         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26272         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
26273         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
26274         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
26275         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26280         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
26281         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26284         * doc/posix-functions/fprintf.texi: Update.
26285         * doc/posix-functions/printf.texi: Update.
26286         * doc/posix-functions/snprintf.texi: Update.
26287         * doc/posix-functions/sprintf.texi: Update.
26288         * doc/posix-functions/vfprintf.texi: Update.
26289         * doc/posix-functions/vprintf.texi: Update.
26290         * doc/posix-functions/vsnprintf.texi: Update.
26291         * doc/posix-functions/vsprintf.texi: Update.
26292         * doc/glibc-functions/obstack_printf.texi: Update.
26293         * doc/glibc-functions/obstack_vprintf.texi: Update.
26294         Reported by Eric Blake.
26295
26296 2009-02-25  Bruno Haible  <bruno@clisp.org>
26297
26298         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
26299         with known value.
26300         Reported by Gary V. Vaughan <gary@gnu.org>.
26301
26302 2009-02-25  Bruno Haible  <bruno@clisp.org>
26303
26304         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
26305         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
26306         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
26307         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
26308         Reported by Gary V. Vaughan <gary@gnu.org>.
26309
26310 2009-02-25  Bruno Haible  <bruno@clisp.org>
26311
26312         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
26313         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
26314         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
26315         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
26316         Reported by Gary V. Vaughan <gary@gnu.org>.
26317
26318 2009-02-25  Eric Blake  <ebb9@byu.net>
26319
26320         tests: skip fseek/ftell tests if ungetc is broken
26321         * m4/ungetc.m4: New file.
26322         * modules/fseek-tests: Split test, so ungetc dependency is
26323         separate from rest of test.
26324         * modules/fseeko-tests: Likewise.
26325         * modules/ftell-tests: Likewise.
26326         * modules/ftello-tests: Likewise.
26327         * tests/test-fseek.c (main): Isolate ungetc dependency.
26328         * tests/test-fseeko.c (main): Likewise.
26329         * tests/test-ftell.c (main): Likewise.
26330         * tests/test-ftello.c (main): Likewise.
26331         * tests/test-fseek2.sh: New file.
26332         * tests/test-fseeko2.sh: Likewise.
26333         * tests/test-ftell2.sh: Likewise.
26334         * tests/test-ftello2.sh: Likewise.
26335
26336 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
26337
26338         test-getaddrinfo: fix usage of skip return code 77
26339         * tests/test-gettaddrinfo.c: Return skip code 77 only
26340         for first occurance of skip (4x77 is not 77)
26341
26342 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
26343
26344         strtod: avoid C99 decl-after-statement
26345         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
26346
26347 2009-02-24  Eric Blake  <ebb9@byu.net>
26348
26349         strtod: detect HP-UX 11.31 bug
26350         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
26351         Reported by Gary V. Vaughan.
26352
26353 2009-02-23  Bruno Haible  <bruno@clisp.org>
26354
26355         Fix invalid read past end of memory block.
26356         * lib/vasnprintf.c (DCHAR_SET): Define.
26357         (local_wcslen): Define only when needed.
26358         (local_strnlen, local_wcsnlen): New functions.
26359         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
26360         directives that involve a conversion ourselves.
26361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
26362         wcsnlen, mbrtowc, wcrtomb.
26363         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
26364         * tests/test-vasprintf-posix.c (test_function): Likewise.
26365         * tests/test-snprintf-posix.h (test_function): Likewise.
26366         * tests/test-sprintf-posix.h (test_function): Likewise.
26367         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26368
26369 2009-02-22  Bruno Haible  <bruno@clisp.org>
26370
26371         Implement new clarified decomposition of Hangul syllables.
26372         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
26373         of type LTV, return only a pairwise decomposition.
26374         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
26375         Likewise.
26376         * tests/uninorm/test-decomposition.c (main): Updated expected result.
26377         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
26378         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
26379
26380 2009-02-22  Bruno Haible  <bruno@clisp.org>
26381
26382         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
26383         zero-length results and shrink excess allocated memory.
26384         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
26385         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
26386         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
26387         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
26388         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
26389         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
26390         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
26391         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
26392         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
26393         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
26394         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
26395         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
26396
26397 2009-02-21  Bruno Haible  <bruno@clisp.org>
26398
26399         * doc/gnulib.texi: Include safe-alloc.texi earlier.
26400         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
26401         spaces after a period. Put a space between a macro name and its
26402         argument list. Trivial rewordings.
26403         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
26404         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
26405         (main): Return 0 explicitly.
26406
26407 2009-02-21  Bruno Haible  <bruno@clisp.org>
26408
26409         Tests for module 'uninorm/filter'.
26410         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
26411         * modules/uninorm/filter-tests: New file.
26412
26413         New module 'uninorm/filter'.
26414         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
26415         uninorm_filter_flush, uninorm_filter_free): New declarations.
26416         * lib/uninorm/uninorm-filter.c: New file.
26417         * modules/uninorm/filter: New file.
26418
26419 2009-02-21  Bruno Haible  <bruno@clisp.org>
26420
26421         Tests for module 'uninorm/nfkc'.
26422         * tests/uninorm/test-nfkc.c: New file.
26423         * tests/uninorm/test-u8-nfkc.c: New file.
26424         * tests/uninorm/test-u16-nfkc.c: New file.
26425         * tests/uninorm/test-u32-nfkc.c: New file.
26426         * tests/uninorm/test-u32-nfkc-big.sh: New file.
26427         * tests/uninorm/test-u32-nfkc-big.c: New file.
26428         * modules/uninorm/nfkc-tests: New file.
26429
26430         New module 'uninorm/nfkc'.
26431         * lib/uninorm/nfkc.c: New file.
26432         * modules/uninorm/nfkc: New file.
26433
26434         Tests for module 'uninorm/nfkd'.
26435         * tests/uninorm/test-nfkd.c: New file.
26436         * tests/uninorm/test-u8-nfkd.c: New file.
26437         * tests/uninorm/test-u16-nfkd.c: New file.
26438         * tests/uninorm/test-u32-nfkd.c: New file.
26439         * tests/uninorm/test-u32-nfkd-big.sh: New file.
26440         * tests/uninorm/test-u32-nfkd-big.c: New file.
26441         * modules/uninorm/nfkd-tests: New file.
26442
26443         New module 'uninorm/nfkd'.
26444         * lib/uninorm/nfkd.c: New file.
26445         * modules/uninorm/nfkd: New file.
26446
26447         Tests for module 'uninorm/nfc'.
26448         * tests/uninorm/test-nfc.c: New file.
26449         * tests/uninorm/test-u8-nfc.c: New file.
26450         * tests/uninorm/test-u16-nfc.c: New file.
26451         * tests/uninorm/test-u32-nfc.c: New file.
26452         * tests/uninorm/test-u32-nfc-big.sh: New file.
26453         * tests/uninorm/test-u32-nfc-big.c: New file.
26454         * modules/uninorm/nfc-tests: New file.
26455
26456         New module 'uninorm/nfc'.
26457         * lib/uninorm/nfc.c: New file.
26458         * modules/uninorm/nfc: New file.
26459
26460         Tests for module 'uninorm/nfd'.
26461         * tests/uninorm/test-nfd.c: New file.
26462         * tests/uninorm/test-u8-nfd.c: New file.
26463         * tests/uninorm/test-u16-nfd.c: New file.
26464         * tests/uninorm/test-u32-nfd.c: New file.
26465         * tests/uninorm/test-u32-nfd-big.sh: New file.
26466         * tests/uninorm/test-u32-nfd-big.c: New file.
26467         * tests/uninorm/test-u32-normalize-big.h: New file.
26468         * tests/uninorm/test-u32-normalize-big.c: New file.
26469         * tests/uninorm/NormalizationTest.txt: New file, created from
26470         Unicode 5.1.0 NormalizationTest.txt.
26471         * modules/uninorm/nfd-tests: New file.
26472
26473         New module 'uninorm/nfd'.
26474         * lib/uninorm/nfd.c: New file.
26475         * modules/uninorm/nfd: New file.
26476
26477         New module 'uninorm/u32-normalize'.
26478         * lib/uninorm/u32-normalize.c: New file.
26479         * modules/uninorm/u32-normalize: New file.
26480
26481         New module 'uninorm/u16-normalize'.
26482         * lib/uninorm/u16-normalize.c: New file.
26483         * modules/uninorm/u16-normalize: New file.
26484
26485         New module 'uninorm/u8-normalize'.
26486         * lib/uninorm/u8-normalize.c: New file.
26487         * lib/uninorm/normalize-internal.h: New file.
26488         * lib/uninorm/u-normalize-internal.h: New file.
26489         * modules/uninorm/u8-normalize: New file.
26490
26491         New module 'uninorm/decompose-internal'.
26492         * lib/uninorm/decompose-internal.c: New file.
26493         * modules/uninorm/decompose-internal: New file.
26494
26495         Tests for module 'uninorm/composition'.
26496         * tests/uninorm/test-composition.c: New file.
26497         * modules/uninorm/composition-tests: New file.
26498
26499         New module 'uninorm/composition'.
26500         * lib/uninorm/composition.c: New file.
26501         * lib/uninorm/composition-table.gperf: New file, generated by
26502         gen-uni-tables.
26503         * modules/uninorm/composition: New file.
26504
26505         Tests for module 'uninorm/compat-decomposition'.
26506         * tests/uninorm/test-compat-decomposition.c: New file.
26507         * modules/uninorm/compat-decomposition-tests: New file.
26508
26509         New module 'uninorm/compat-decomposition'.
26510         * lib/uninorm/decompose-internal.h: New file.
26511         * lib/uninorm/compat-decomposition.c: New file.
26512         * modules/uninorm/compat-decomposition: New file.
26513
26514         Tests for module 'uninorm/canonical-decomposition'.
26515         * tests/uninorm/test-canonical-decomposition.c: New file.
26516         * modules/uninorm/canonical-decomposition-tests: New file.
26517
26518         New module 'uninorm/canonical-decomposition'.
26519         * lib/uninorm/canonical-decomposition.c: New file.
26520         * modules/uninorm/canonical-decomposition: New file.
26521
26522         Tests for module 'uninorm/decomposition'.
26523         * tests/uninorm/test-decomposition.c: New file.
26524         * modules/uninorm/decomposition-tests: New file.
26525
26526         New module 'uninorm/decomposition'.
26527         * lib/uninorm/decomposition.c: New file.
26528         * modules/uninorm/decomposition: New file.
26529
26530         New module 'uninorm/decomposition-table'.
26531         * lib/uninorm/decomposition-table.h: New file.
26532         * lib/uninorm/decomposition-table.c: New file.
26533         * lib/uninorm/decomposition-table1.h: New file, generated by
26534         gen-uni-tables.
26535         * lib/uninorm/decomposition-table2.h: New file, generated by
26536         gen-uni-tables.
26537         * modules/uninorm/decomposition-table: New file.
26538
26539         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
26540         (UC_DECOMP_*): New enumeration items.
26541         (get_decomposition): New function.
26542         (struct decomp_table): New type.
26543         (output_decomposition, output_decomposition_tables): New functions.
26544         (unicode_composition_exclusions): New variable.
26545         (fill_composition_exclusions, debug_output_composition_tables): New
26546         functions.
26547         (main): Accept one more argument. Invoke fill_composition_exclusions.
26548         Output decomposition and composition tables.
26549
26550         New module 'uninorm/base'.
26551         * lib/uninorm.h: New file.
26552         * lib/unictype.h: Update comment.
26553         * modules/uninorm/base: New file.
26554
26555 2009-02-21  David Lutterkort  <lutter@redhat.com>
26556
26557         Tests for module 'safe-alloc'.
26558         * tests/test-safe-alloc.c: New file.
26559         * modules/safe-alloc-tests: New file.
26560
26561         New module 'safe-alloc'.
26562         * lib/safe-alloc.h: New file.
26563         * lib/safe-alloc.c: New file.
26564         * m4/safe-alloc.m4: New file.
26565         * modules/safe-alloc: New file.
26566         * doc/safe-alloc.texi: New file.
26567         * doc/gnulib.texi: Include it.
26568         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26569         safe-alloc.
26570
26571 2009-02-18  Bruno Haible  <bruno@clisp.org>
26572
26573         Fix link error on non-glibc systems.
26574         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26575         variable.
26576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26577
26578 2009-02-18  Jim Meyering  <meyering@redhat.com>
26579
26580         fts: avoid used-uninitialized error due to recent change
26581         * lib/fts.c (fts_read): Guard uses of the new member,
26582         parent->fts_n_dirs_remaining, since it's not relevant for
26583         the parent of a directory specified on the command-line.
26584
26585 2009-02-17  James Youngman  <jay@gnu.org>
26586             Bruno Haible  <bruno@clisp.org>
26587
26588         * m4/include_next.m4: Reformulate comment.
26589
26590 2009-02-16  Jim Meyering  <meyering@redhat.com>
26591
26592         fts: add #if guards so that the fts_lgpl module still builds
26593         * lib/fts.c: Guard just-added hash-table-using parts with
26594         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26595         Reported by Simon Josefsson.
26596
26597 2009-02-15  Bruno Haible  <bruno@clisp.org>
26598
26599         * modules/array-mergesort-tests: New file.
26600         * tests/test-array-mergesort.c: New file.
26601
26602         New module 'array-mergesort'.
26603         * modules/array-mergesort: New file.
26604         * lib/array-mergesort.h: New file.
26605
26606 2009-02-15  Bruno Haible  <bruno@clisp.org>
26607
26608         Fix 2009-02-07 commit.
26609         * lib/gen-uni-tables.c (output_predicate, output_category,
26610         output_combclass, output_bidi_category, output_decimal_digit,
26611         output_digit, output_numeric, output_mirror, output_scripts,
26612         output_ident_category, output_simple_mapping): Fix format directives.
26613         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
26614
26615 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
26616
26617         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
26618         fixes are available from IBM.
26619
26620 2009-02-13  Jim Meyering  <meyering@redhat.com>
26621
26622         fts: arrange not to stat non-directories in more cases
26623         This makes GNU find (when it doesn't need to stat each file)
26624         *much* more efficient at traversing reiserfs file systems.
26625         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
26626         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
26627         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
26628         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
26629         (leaf_optimization_applies): New function.
26630         (LCO_hash, LCO_compare): New helper functions.
26631         (link_count_optimize_ok): New function.
26632         (fts_stat): Initialize new member (if dir).
26633         (fts_read): Decrement parent's fts_n_dirs_remaining count if
26634         we've just stat'ed a directory.  Skip the stat call when possible.
26635         ---
26636         Note this AFS-related exchange:
26637         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
26638         and note find's pioctl call in find/fstype.c.
26639         But that is necessary only if you want to enable the
26640         optimization for AFS, and for now, I don't.
26641
26642         fts: move a function definition "up" (no semantic change)
26643         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
26644         "up" to precede upcoming use of a related function.
26645
26646 2009-02-11  Jim Meyering  <meyering@redhat.com>
26647
26648         fts: correct internal computation of nlinks (optimization-related)
26649         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
26650         whether the current entry is a directory, so don't test it.
26651
26652 2009-02-10  Bruno Haible  <bruno@clisp.org>
26653
26654         Tests for module 'uniwbrk/ulc-wordbreaks'.
26655         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
26656         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
26657         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
26658
26659         Tests for module 'uniwbrk/u32-wordbreaks'.
26660         * modules/uniwbrk/u32-wordbreaks-tests: New file.
26661         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
26662
26663         Tests for module 'uniwbrk/u16-wordbreaks'.
26664         * modules/uniwbrk/u16-wordbreaks-tests: New file.
26665         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
26666
26667         Tests for module 'uniwbrk/u8-wordbreaks'.
26668         * modules/uniwbrk/u8-wordbreaks-tests: New file.
26669         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
26670
26671 2009-02-10  Bruno Haible  <bruno@clisp.org>
26672
26673         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
26674         property.
26675         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
26676         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
26677         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
26678
26679 2009-02-10  Simon Josefsson  <simon@josefsson.org>
26680
26681         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
26682         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
26683
26684 2009-02-10  Bruno Haible  <bruno@clisp.org>
26685
26686         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
26687         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
26688         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
26689         * lib/unilbrk/u8-possible-linebreaks.c: Update.
26690         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
26691         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
26692
26693 2009-02-09  Simon Josefsson  <simon@josefsson.org>
26694
26695         * lib/sockets.h (gl_fd_to_handle): New function.
26696
26697         * tests/test-sockets.c: Call gl_fd_to_handle.
26698
26699 2009-02-09  Bruno Haible  <bruno@clisp.org>
26700
26701         * doc/havelib.texi: Document the conventions on bi-arch systems.
26702
26703 2009-02-08  Bruno Haible  <bruno@clisp.org>
26704
26705         Document the AC_LIB_LINKFLAGS macro.
26706         * doc/havelib.texi: New file, mostly written on 2005-05-24.
26707         * doc/gnulib.texi: Include it.
26708
26709 2009-02-08  Bruno Haible  <bruno@clisp.org>
26710
26711         Fix wrong order of sections, compared to TOC.
26712         * doc/gnulib.texi: Include relocatable-maint.texi after the
26713         "Regular expressions" node, not before.
26714
26715 2009-02-08  Bruno Haible  <bruno@clisp.org>
26716
26717         Tests for module 'unicase/totitle'.
26718         * modules/unicase/totitle-tests: New file.
26719
26720         Tests for module 'unicase/tolower'.
26721         * modules/unicase/tolower-tests: New file.
26722
26723         Tests for module 'unicase/toupper'.
26724         * modules/unicase/toupper-tests: New file.
26725         * tests/unicase/test-mapping-part1.h: New file.
26726         * tests/unicase/test-mapping-part2.h: New file.
26727
26728         New module 'unicase/totitle'.
26729         * modules/unicase/totitle: New file.
26730         * lib/unicase/totitle.c: New file.
26731
26732         New module 'unicase/tolower'.
26733         * modules/unicase/tolower: New file.
26734         * lib/unicase/tolower.c: New file.
26735
26736         New module 'unicase/toupper'.
26737         * modules/unicase/toupper: New file.
26738         * lib/unicase/toupper.c: New file.
26739         * lib/unicase/simple-mapping.h: New file.
26740
26741         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26742         (mapping_table): New structure.
26743         (output_simple_mapping): New function.
26744         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26745         * modules/gen-uni-tables (Description): Update.
26746         * lib/unicase/toupper.h: New file, automatically generated by
26747         gen-uni-tables.
26748         * lib/unicase/tolower.h: New file, automatically generated by
26749         gen-uni-tables.
26750         * lib/unicase/totitle.h: New file, automatically generated by
26751         gen-uni-tables.
26752         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26753         gen-uni-tables.
26754         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26755         gen-uni-tables.
26756         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26757         gen-uni-tables.
26758
26759         New module 'unicase/base'.
26760         * modules/unicase/base: New file.
26761         * lib/unicase.h: New file.
26762
26763 2009-02-08  Bruno Haible  <bruno@clisp.org>
26764
26765         New module 'uniwbrk/ulc-wordbreaks'.
26766         * modules/uniwbrk/ulc-wordbreaks: New file.
26767         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26768
26769         New module 'uniwbrk/u32-wordbreaks'.
26770         * modules/uniwbrk/u32-wordbreaks: New file.
26771         * lib/uniwbrk/u32-wordbreaks.c: New file.
26772
26773         New module 'uniwbrk/u16-wordbreaks'.
26774         * modules/uniwbrk/u16-wordbreaks: New file.
26775         * lib/uniwbrk/u16-wordbreaks.c: New file.
26776
26777         New module 'uniwbrk/u8-wordbreaks'.
26778         * modules/uniwbrk/u8-wordbreaks: New file.
26779         * lib/uniwbrk/u8-wordbreaks.c: New file.
26780         * lib/uniwbrk/u-wordbreaks.h: New file.
26781
26782         New module 'uniwbrk/table'.
26783         * modules/uniwbrk/table: New file.
26784         * lib/uniwbrk/wbrktable.h: New file.
26785         * lib/uniwbrk/wbrktable.c: New file.
26786
26787         New module 'uniwbrk/wordbreak-property'.
26788         * modules/uniwbrk/wordbreak-property: New file.
26789         * lib/uniwbrk/wordbreak-property.c: New file.
26790
26791         * lib/gen-uni-tables.c (WBP_*): New enum items.
26792         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26793         (unicode_org_wbp): New variable.
26794         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26795         New functions.
26796         (wbp_table): New structure.
26797         (output_wbp, output_wbrk_tables): New functions.
26798         (main): Accept additional argument. Invoke fill_org_wbp,
26799         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26800         output_wbrk_tables.
26801         * modules/gen-uni-tables (Description): Update.
26802         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26803         gen-uni-tables.
26804
26805         New module 'uniwbrk/base'.
26806         * modules/uniwbrk/base: New file.
26807         * lib/uniwbrk.h: New file.
26808
26809 2009-02-08  Bruno Haible  <bruno@clisp.org>
26810
26811         Update to Unicode 5.1.0.
26812         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26813         U+2185..U+2188.
26814         (is_property_default_ignorable_code_point): Don't include characters
26815         of category Cc or Cs and not-a-characters.
26816         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26817         U+0D79, U+109E, U+109F, U+A60C.
26818         * lib/unictype/bidi_of.h: Regenerated.
26819         * lib/unictype/blocks.h: Regenerated.
26820         * lib/unictype/categ_C.h: Regenerated.
26821         * lib/unictype/categ_Cf.h: Regenerated.
26822         * lib/unictype/categ_Cn.h: Regenerated.
26823         * lib/unictype/categ_L.h: Regenerated.
26824         * lib/unictype/categ_Ll.h: Regenerated.
26825         * lib/unictype/categ_Lm.h: Regenerated.
26826         * lib/unictype/categ_Lo.h: Regenerated.
26827         * lib/unictype/categ_Lu.h: Regenerated.
26828         * lib/unictype/categ_M.h: Regenerated.
26829         * lib/unictype/categ_Mc.h: Regenerated.
26830         * lib/unictype/categ_Me.h: Regenerated.
26831         * lib/unictype/categ_Mn.h: Regenerated.
26832         * lib/unictype/categ_N.h: Regenerated.
26833         * lib/unictype/categ_Nd.h: Regenerated.
26834         * lib/unictype/categ_Nl.h: Regenerated.
26835         * lib/unictype/categ_No.h: Regenerated.
26836         * lib/unictype/categ_P.h: Regenerated.
26837         * lib/unictype/categ_Pd.h: Regenerated.
26838         * lib/unictype/categ_Pe.h: Regenerated.
26839         * lib/unictype/categ_Pf.h: Regenerated.
26840         * lib/unictype/categ_Pi.h: Regenerated.
26841         * lib/unictype/categ_Po.h: Regenerated.
26842         * lib/unictype/categ_Ps.h: Regenerated.
26843         * lib/unictype/categ_S.h: Regenerated.
26844         * lib/unictype/categ_Sk.h: Regenerated.
26845         * lib/unictype/categ_Sm.h: Regenerated.
26846         * lib/unictype/categ_So.h: Regenerated.
26847         * lib/unictype/categ_of.h: Regenerated.
26848         * lib/unictype/combining.h: Regenerated.
26849         * lib/unictype/ctype_alnum.h: Regenerated.
26850         * lib/unictype/ctype_alpha.h: Regenerated.
26851         * lib/unictype/ctype_graph.h: Regenerated.
26852         * lib/unictype/ctype_lower.h: Regenerated.
26853         * lib/unictype/ctype_print.h: Regenerated.
26854         * lib/unictype/ctype_punct.h: Regenerated.
26855         * lib/unictype/ctype_upper.h: Regenerated.
26856         * lib/unictype/decdigit.h: Regenerated.
26857         * lib/unictype/digit.h: Regenerated.
26858         * lib/unictype/mirror.h: Regenerated.
26859         * lib/unictype/numeric.h: Regenerated.
26860         * lib/unictype/pr_alphabetic.h: Regenerated.
26861         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26862         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26863         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26864         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26865         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26866         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26867         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26868         * lib/unictype/pr_combining.h: Regenerated.
26869         * lib/unictype/pr_dash.h: Regenerated.
26870         * lib/unictype/pr_decimal_digit.h: Regenerated.
26871         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26872         * lib/unictype/pr_deprecated.h: Regenerated.
26873         * lib/unictype/pr_diacritic.h: Regenerated.
26874         * lib/unictype/pr_extender.h: Regenerated.
26875         * lib/unictype/pr_format_control.h: Regenerated.
26876         * lib/unictype/pr_grapheme_base.h: Regenerated.
26877         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26878         * lib/unictype/pr_grapheme_link.h: Regenerated.
26879         * lib/unictype/pr_id_continue.h: Regenerated.
26880         * lib/unictype/pr_id_start.h: Regenerated.
26881         * lib/unictype/pr_ideographic.h: Regenerated.
26882         * lib/unictype/pr_ignorable_control.h: Regenerated.
26883         * lib/unictype/pr_lowercase.h: Regenerated.
26884         * lib/unictype/pr_math.h: Regenerated.
26885         * lib/unictype/pr_numeric.h: Regenerated.
26886         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26887         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26888         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26889         * lib/unictype/pr_other_id_continue.h: Regenerated.
26890         * lib/unictype/pr_other_lowercase.h: Regenerated.
26891         * lib/unictype/pr_other_math.h: Regenerated.
26892         * lib/unictype/pr_punctuation.h: Regenerated.
26893         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26894         * lib/unictype/pr_soft_dotted.h: Regenerated.
26895         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26896         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26897         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26898         * lib/unictype/pr_uppercase.h: Regenerated.
26899         * lib/unictype/pr_xid_continue.h: Regenerated.
26900         * lib/unictype/pr_xid_start.h: Regenerated.
26901         * lib/unictype/pr_zero_width.h: Regenerated.
26902         * lib/unictype/scripts.h: Regenerated.
26903         * lib/unictype/scripts_byname.gperf: Regenerated.
26904         * lib/unictype/sy_java_ident.h: Regenerated.
26905         * lib/unilbrk/lbrkprop1.h: Regenerated.
26906         * lib/unilbrk/lbrkprop2.h: Regenerated.
26907         * tests/unictype/test-categ_C.c: Regenerated.
26908         * tests/unictype/test-categ_Cf.c: Regenerated.
26909         * tests/unictype/test-categ_Cn.c: Regenerated.
26910         * tests/unictype/test-categ_L.c: Regenerated.
26911         * tests/unictype/test-categ_Ll.c: Regenerated.
26912         * tests/unictype/test-categ_Lm.c: Regenerated.
26913         * tests/unictype/test-categ_Lo.c: Regenerated.
26914         * tests/unictype/test-categ_Lu.c: Regenerated.
26915         * tests/unictype/test-categ_M.c: Regenerated.
26916         * tests/unictype/test-categ_Mc.c: Regenerated.
26917         * tests/unictype/test-categ_Me.c: Regenerated.
26918         * tests/unictype/test-categ_Mn.c: Regenerated.
26919         * tests/unictype/test-categ_N.c: Regenerated.
26920         * tests/unictype/test-categ_Nd.c: Regenerated.
26921         * tests/unictype/test-categ_Nl.c: Regenerated.
26922         * tests/unictype/test-categ_No.c: Regenerated.
26923         * tests/unictype/test-categ_P.c: Regenerated.
26924         * tests/unictype/test-categ_Pd.c: Regenerated.
26925         * tests/unictype/test-categ_Pe.c: Regenerated.
26926         * tests/unictype/test-categ_Pf.c: Regenerated.
26927         * tests/unictype/test-categ_Pi.c: Regenerated.
26928         * tests/unictype/test-categ_Po.c: Regenerated.
26929         * tests/unictype/test-categ_Ps.c: Regenerated.
26930         * tests/unictype/test-categ_S.c: Regenerated.
26931         * tests/unictype/test-categ_Sk.c: Regenerated.
26932         * tests/unictype/test-categ_Sm.c: Regenerated.
26933         * tests/unictype/test-categ_So.c: Regenerated.
26934         * tests/unictype/test-ctype_alnum.c: Regenerated.
26935         * tests/unictype/test-ctype_alpha.c: Regenerated.
26936         * tests/unictype/test-ctype_graph.c: Regenerated.
26937         * tests/unictype/test-ctype_lower.c: Regenerated.
26938         * tests/unictype/test-ctype_print.c: Regenerated.
26939         * tests/unictype/test-ctype_punct.c: Regenerated.
26940         * tests/unictype/test-ctype_upper.c: Regenerated.
26941         * tests/unictype/test-decdigit.h: Regenerated.
26942         * tests/unictype/test-digit.h: Regenerated.
26943         * tests/unictype/test-numeric.h: Regenerated.
26944         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26945         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26946         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26947         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26948         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26949         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26950         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26951         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26952         * tests/unictype/test-pr_combining.c: Regenerated.
26953         * tests/unictype/test-pr_dash.c: Regenerated.
26954         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26955         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26956         * tests/unictype/test-pr_deprecated.c: Regenerated.
26957         * tests/unictype/test-pr_diacritic.c: Regenerated.
26958         * tests/unictype/test-pr_extender.c: Regenerated.
26959         * tests/unictype/test-pr_format_control.c: Regenerated.
26960         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26961         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26962         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26963         * tests/unictype/test-pr_id_continue.c: Regenerated.
26964         * tests/unictype/test-pr_id_start.c: Regenerated.
26965         * tests/unictype/test-pr_ideographic.c: Regenerated.
26966         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26967         * tests/unictype/test-pr_lowercase.c: Regenerated.
26968         * tests/unictype/test-pr_math.c: Regenerated.
26969         * tests/unictype/test-pr_numeric.c: Regenerated.
26970         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26971         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26972         Regenerated.
26973         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26974         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26975         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26976         * tests/unictype/test-pr_other_math.c: Regenerated.
26977         * tests/unictype/test-pr_punctuation.c: Regenerated.
26978         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26979         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26980         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26981         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26982         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26983         * tests/unictype/test-pr_uppercase.c: Regenerated.
26984         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26985         * tests/unictype/test-pr_xid_start.c: Regenerated.
26986         * tests/unictype/test-pr_zero_width.c: Regenerated.
26987
26988         Update to Unicode 5.1.0.
26989         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26990         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26991         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26992         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26993         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26994         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26995         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26996         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26997         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26998         (nonspacing_table_ind): Update.
26999         * tests/uniwidth/test-uc_width2.sh: Update expected result.
27000
27001         Update to Unicode 5.1.0.
27002         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
27003         code transform.
27004         * lib/uniname/uniname.c (unicode_character_name,
27005         unicode_name_character): Add the range 0x1Fxxx to the code transform.
27006         * lib/uniname/uninames.h: Regenerated.
27007         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
27008
27009 2009-02-07  Bruno Haible  <bruno@clisp.org>
27010
27011         Merge gen-ctype and gen-lbrk into a single program.
27012         * lib/gen-uni-tables.c: New file, incorporating
27013         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
27014         Add directory prefixes to the names of the generated files.
27015         * lib/unictype/gen-ctype.c: Remove file.
27016         * lib/unilbrk/gen-lbrk.c: Remove file.
27017         * modules/gen-uni-tables: New file.
27018         * modules/unictype/gen-ctype: Remove file.
27019         * modules/unilbrk/gen-lbrk: Remove file.
27020
27021 2009-02-07  Bruno Haible  <bruno@clisp.org>
27022
27023         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
27024
27025         New module 'unistr/u32-strcoll'.
27026         * modules/unistr/u32-strcoll: New file.
27027         * lib/unistr/u32-strcoll.c: New file.
27028
27029         New module 'unistr/u16-strcoll'.
27030         * modules/unistr/u16-strcoll: New file.
27031         * lib/unistr/u16-strcoll.c: New file.
27032
27033         New module 'unistr/u8-strcoll'.
27034         * modules/unistr/u8-strcoll: New file.
27035         * lib/unistr/u8-strcoll.c: New file.
27036         * lib/unistr/u-strcoll.h: New file.
27037
27038 2009-02-07  Bruno Haible  <bruno@clisp.org>
27039
27040         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
27041         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27042         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27043         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
27044         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
27045         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
27046
27047 2009-02-07  Bruno Haible  <bruno@clisp.org>
27048
27049         Make 64-bit clean.
27050         * lib/unictype/gen-ctype.c (output_predicate, output_category,
27051         output_combclass, output_bidi_category, output_decimal_digit,
27052         output_digit, output_numeric, output_mirror, output_scripts,
27053         output_ident_category): Use proper width specifier in format strings.
27054
27055 2009-02-07  Bruno Haible  <bruno@clisp.org>
27056
27057         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
27058         failure behaviour.
27059
27060 2009-02-07  Jim Meyering  <meyering@redhat.com>
27061
27062         regex: avoid compilation failure with upcoming gcc-4.4
27063         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
27064         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
27065         "... error: integer overflow in preprocessor expression".
27066
27067 2009-02-05  Ben Pfaff  <blp@gnu.org>
27068
27069         Fix link errors on Windows when close module is used.
27070         * modules/close: Add $(LIB_CLOSE) to Link section.
27071         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
27072         $(LIB_CLOSE) on Windows.
27073
27074 2009-02-05  Jim Meyering  <meyering@redhat.com>
27075
27076         still avoid unused-parameter warnings, but do it cleanly
27077         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
27078         (get_fs_usage): Cast to void instead.
27079         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
27080         (dev_from_mount_options, read_file_system_list): Cast to void.
27081         Prompted by Bruno Haible.
27082
27083 2009-02-04  Jim Meyering  <meyering@redhat.com>
27084
27085         fsusage.c: correct copyright year
27086         * lib/fsusage.c: Reflect year in which the change is pushed into
27087
27088         avoid misc. warnings
27089         * lib/fsusage.c (UNUSED_PARAM): Define.
27090         (get_fs_usage): Mark parameter "disk" as unused.
27091         * lib/getugroups.c (getgrent): Use "void" in prototype.
27092         * lib/mountlist.c: Mark unused parameters.
27093         (read_file_system_list): Declare a local with "const".
27094         * lib/nanosleep.c (getnow): Declare static.
27095         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
27096
27097         dirfd: set errno upon failure
27098         * lib/dirfd.c: Include <errno.h>.
27099         Set errno to ENOTSUP when returning -1.
27100         * modules/dirfd (Depends-on): Add errno.
27101         Suggested by John Kodis <kodis@comcast.net>.
27102
27103 2009-02-01  Bruno Haible  <bruno@clisp.org>
27104
27105         Don't assume sizeof (long) >= sizeof (void *).
27106         * lib/memcmp.c: Include stdint.h.
27107         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
27108         srcp2 to 'const byte *'.
27109         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
27110         types to uintptr_t.
27111         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
27112         * modules/memcmp (Depends-on): Add stdint.
27113         Reported by Ozkan Sezer <sezeroz@gmail.com>.
27114
27115 2009-01-30  Eric Blake  <ebb9@byu.net>
27116
27117         fix more require-before-expand issues
27118         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
27119         expand, AC_PROG_AWK.
27120         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
27121
27122 2009-01-28  Eric Blake  <ebb9@byu.net>
27123
27124         version-etc: use consistent URL formatting
27125         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
27126         Improve formatting.  Use fputs for string without %.
27127
27128 2009-01-28  Jim Meyering  <meyering@redhat.com>
27129
27130         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
27131         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
27132         "underquoted definition of NAME" from autoconf-2.59.
27133
27134 2009-01-28  Bruno Haible  <bruno@clisp.org>
27135
27136         * doc/gnulib.texi: Add "Obsolete modules" to index.
27137
27138 2009-01-28  Jim Meyering  <meyering@redhat.com>
27139
27140         useless-if-before-free: recognize more variants
27141         * build-aux/useless-if-before-free: Also recognize e.g.,
27142         if (NULL != p) free (p);
27143
27144 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
27145
27146         test-getaddrinfo: skip (don't fail) this test when there's no network
27147         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
27148         on the presumption that it means you lack network access.
27149
27150 2009-01-26  Jim Meyering  <meyering@redhat.com>
27151
27152         fflush: avoid warnings on modern systems
27153         * lib/fflush.c (rpl_fflush): Move declarations of locals,
27154         pos and result, into scopes where they're used.
27155
27156 2009-01-26  Eric Blake  <ebb9@byu.net>
27157
27158         Silence warning reintroduced by recent extensions patch.
27159         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
27160         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
27161         autoconf.
27162
27163         Backport improved autoconf semantics of AC_DEFUN_ONCE.
27164         * m4/00gnulib.m4: New file.
27165         * gnulib-tool (func_get_filelist): Always use it.
27166         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
27167         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
27168
27169 2009-01-25  Bruno Haible  <bruno@clisp.org>
27170
27171         Make test-quotearg work on MacOS X and AIX.
27172         * tests/test-quotearg.sh: New file.
27173         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
27174         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
27175         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
27176         include <libintl.h>.
27177         (fake_locale): Remove variable.
27178         (gettext, dgettext, dcgettext): Remove functions.
27179         (main): Instead of setting a fake locale, set a real locale. Call
27180         textdomain and bindtextdomain.
27181         * modules/quotearg-tests (Files): Add the new files.
27182         (Depends-on): Add gettext, setenv, unsetenv.
27183         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27184         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
27185         Augment TESTS_ENVIRONMENT.
27186
27187 2009-01-25  Bruno Haible  <bruno@clisp.org>
27188
27189         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
27190         fr_FR.ISO8859-1 locale on MacOS X.
27191         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
27192         ja_JP.eucJP locale on MacOS X.
27193         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
27194         zh_CN.GB18030 locale on MacOS X.
27195
27196 2009-01-25  Bruno Haible  <bruno@clisp.org>
27197
27198         Avoid link errors on MacOS X 10.3.
27199         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
27200         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27201
27202 2009-01-25  Bruno Haible  <bruno@clisp.org>
27203
27204         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27205         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
27206         * modules/pipe (Files): Remove m4/posix_spawn.m4.
27207         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27208         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
27209         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27210         posix_spawnattr_init, posix_spawnattr_setsigmask,
27211         posix_spawnattr_setflags, posix_spawnattr_destroy.
27212
27213         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27214         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
27215         * modules/execute (Files): Remove m4/posix_spawn.m4.
27216         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27217         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27218         posix_spawnattr_init, posix_spawnattr_setsigmask,
27219         posix_spawnattr_setflags, posix_spawnattr_destroy.
27220
27221 2009-01-25  Bruno Haible  <bruno@clisp.org>
27222
27223         * lib/glthread/threadlib.c: Include <stdlib.h>.
27224
27225 2009-01-25  Bruno Haible  <bruno@clisp.org>
27226
27227         * lib/glthread/threadlib.c (dummy): New declaration.
27228
27229 2009-01-25  Bruno Haible  <bruno@clisp.org>
27230
27231         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
27232         multibyte characters also for the GB18030 encoding. Don't crash when
27233         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
27234
27235 2009-01-25  Bruno Haible  <bruno@clisp.org>
27236
27237         Avoid redefining 'struct random_data' on OSF/1 5.1.
27238         * lib/stdlib.in.h: Include <random.h> if it exists.
27239         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
27240         HAVE_RANDOM_H. Include <random.h> when testing whether
27241         'struct random_data' exists.
27242         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
27243
27244 2009-01-25  Bruno Haible  <bruno@clisp.org>
27245
27246         Don't install charset.alias on MacOS X >= 10.3.
27247         * lib/localcharset.c (DARWIN7): New macro.
27248         (get_charset_aliases): Hardcode the result for Darwin7.
27249         * modules/localcharset (install-exec-local): Don't install
27250         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
27251
27252 2009-01-25  Bruno Haible  <bruno@clisp.org>
27253
27254         Don't install charset.alias on mingw and Cygwin.
27255         * modules/localcharset (install-exec-local): Don't install
27256         charset.alias on mingw and Cygwin, if the file does not yet exist.
27257         The result for these platforms is hardcoded in localcharset.c.
27258
27259 2009-01-25  Bruno Haible  <bruno@clisp.org>
27260
27261         Make it possible again to use AC_GNU_SOURCE together with gnulib.
27262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
27263         before requiring AC_USE_SYSTEM_EXTENSIONS.
27264
27265 2009-01-25  Jim Meyering  <meyering@redhat.com>
27266
27267         c-strtod: avoid warnings
27268         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
27269         "assignment discards qualifiers from pointer target type" warnings.
27270
27271 2009-01-24  Bruno Haible  <bruno@clisp.org>
27272
27273         Add support for non-UTF-8 locales on MacOS X.
27274         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
27275         canonical encodings. For Darwin 7 and newer, don't map traditional
27276         encodings to UTF-8.
27277         Reported by Vincent Lefevre <vincent@vinc17.org>
27278         at <http://savannah.gnu.org/bugs/?25235>.
27279
27280 2009-01-24  Bruno Haible  <bruno@clisp.org>
27281
27282         * doc/gnulib.texi (Obsolete modules): New section.
27283         Reported by Mike Frysinger <vapier@gentoo.org>.
27284
27285 2009-01-24  Bruno Haible  <bruno@clisp.org>
27286
27287         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
27288         (%.dvi): New rule.
27289
27290 2009-01-24  Bruno Haible  <bruno@clisp.org>
27291
27292         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
27293         Reported by Eric Blake.
27294
27295 2009-01-24  Bruno Haible  <bruno@clisp.org>
27296
27297         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
27298         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
27299         Reported by Gary V. Vaughan <gary@gnu.org>.
27300
27301 2009-01-24  Bruno Haible  <bruno@clisp.org>
27302
27303         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
27304
27305 2009-01-23  Bruno Haible  <bruno@clisp.org>
27306
27307         Make c-strtod, c-strtold usable in libraries.
27308         * lib/c-strtod.c: Include string.h instead of xalloc.h.
27309         (C_STRTOD): Call strdup instead of xstrdup.
27310         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
27311         * modules/c-strtold (Depends-on): Likewise.
27312         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
27313         * NEWS: Mention the change.
27314         Reported by Michael Gold <mgold@ncf.ca>.
27315
27316 2009-01-23  Jim Meyering  <meyering@redhat.com>
27317
27318         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
27319         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
27320         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
27321
27322 2009-01-23  Simon Josefsson  <simon@josefsson.org>
27323
27324         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
27325         GNU CoreUtils.
27326         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
27327         * modules/version-etc (Description): Update.
27328
27329 2009-01-22  Bruno Haible  <bruno@clisp.org>
27330
27331         Cache the C locale object.
27332         * lib/c-strtod.c (c_locale_cache): New variable.
27333         (c_locale): New function.
27334         (C_STRTOD): Use it, and don't call freelocale.
27335         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
27336         Suggested by Paolo Bonzini.
27337
27338 2009-01-21  Bruno Haible  <bruno@clisp.org>
27339
27340         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
27341         conditions other than overflow.
27342
27343 2009-01-21  Bruno Haible  <bruno@clisp.org>
27344
27345         * lib/c-strtod.c: Include errno.h.
27346         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
27347         value from STRTOD_L and STRTOD.
27348
27349 2009-01-21  Bruno Haible  <bruno@clisp.org>
27350         and Jim Meyering  <meyering@redhat.com>
27351
27352         nanosleep: skip configure test (fail it) for apple universal builds
27353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
27354         universal builds, assume that nanosleep does not work.
27355         * modules/nanosleep (Depends-on): Add multiarch.
27356
27357         mktime: skip configure test (fail it) for apple universal builds
27358         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
27359         universal builds, assume that mktime does not work.
27360         * modules/mktime (Depends-on): Add multiarch.
27361
27362 2009-01-21  Eric Blake  <ebb9@byu.net>
27363
27364         multiarch: avoid expand-before-require warning
27365         * modules/multiarch (configure.ac): Require, rather than expand,
27366         gl_MULTIARCH.
27367         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
27368         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
27369         enforce that all clients require it.  Partial reversion of
27370         2008-12-29 patch.
27371
27372         error: avoid expand-before-require warning
27373         * modules/errno (configure.ac): Require, rather than expand,
27374         gl_HEADER_ERRNO_H.
27375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
27376         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
27377         enforce that all clients require it.
27378
27379         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
27380         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
27381         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
27382         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
27383
27384 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
27385
27386         Revert:
27387         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27388
27389         regex: do not depend on obsolete modules.
27390         * modules/regex: Remove memcmp and memmove.
27391
27392 2009-01-20  Bruno Haible  <bruno@clisp.org>
27393
27394         Make the 'link' module link on Windows NT 4.
27395         * lib/link.c (_WIN32_WINNT): Don't define.
27396         (CreateHardLinkFuncType): New type.
27397         (CreateHardLinkFunc, initialized): New variables.
27398         (initialize): New function.
27399         (link): Invoke CreateHardLink indirectly through the function pointer.
27400
27401 2009-01-20  Bruno Haible  <bruno@clisp.org>
27402
27403         Fix compilation failure on mingw.
27404         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
27405
27406 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
27407
27408         * doc/c-strtod.texi: Mention a couple of restrictions.
27409
27410 2009-01-20  Jim Meyering  <meyering@redhat.com>
27411
27412         gettimeofday: move more declarations out of functions
27413         * lib/gettimeofday.c: Move extern declarations of tzset and
27414         gmtime out of containing functions.  Prompted by Bruno Haible.
27415
27416 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27417
27418         regex: do not depend on obsolete modules.
27419         * modules/regex: Remove memcmp and memmove.
27420
27421 2009-01-19  Bruno Haible  <bruno@clisp.org>
27422
27423         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27424         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
27425         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27426         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
27427         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
27428
27429 2009-01-19  Bruno Haible  <bruno@clisp.org>
27430
27431         * tests/test-link.c: Include <errno.h>.
27432         (main): Exit with code 77 when a hard link cannot be created due to
27433         the file system.
27434         * tests/test-link.sh: Skip test when a hard link cannot be created due
27435         to the file system.
27436         Suggested by Eric Blake.
27437
27438 2009-01-19  Martin Lambers  <marlam@marlam.de>
27439
27440         * modules/link-tests: New file.
27441         * tests/test-link.sh: New file.
27442         * tests/test-link.c: New file.
27443
27444 2009-01-19  Eric Blake  <ebb9@byu.net>
27445
27446         doc: mention another function added in cygwin 1.7.0
27447         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
27448         Another new function in cygwin 1.7.
27449
27450 2009-01-19  Bruno Haible  <bruno@clisp.org>
27451
27452         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27453         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
27454         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
27455         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27456         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27457         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27458         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27459         * m4/md4.m4 (gl_MD4): Likewise.
27460         * m4/md5.m4 (gl_MD5): Likewise.
27461         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
27462         * m4/sha1.m4 (gl_SHA1): Likewise.
27463         * m4/sha256.m4 (gl_SHA256): Likewise.
27464         * m4/sha512.m4 (gl_SHA512): Likewise.
27465
27466 2009-01-19  Bruno Haible  <bruno@clisp.org>
27467
27468         * modules/uniname/uniname-tests (Depends-on): Add progname.
27469         * tests/uniname/test-uninames.c: Include progname.h.
27470         (main): Call set_program_name.
27471
27472         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
27473         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
27474         (main): Call set_program_name.
27475
27476         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
27477         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
27478         (main): Call set_program_name.
27479
27480         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
27481         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
27482         (main): Call set_program_name.
27483
27484         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
27485         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
27486         (main): Call set_program_name.
27487
27488         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
27489         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
27490         (main): Call set_program_name.
27491
27492         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
27493         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
27494         (main): Call set_program_name.
27495
27496         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
27497         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
27498         (main): Call set_program_name.
27499
27500         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
27501         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
27502         (main): Call set_program_name.
27503
27504 2009-01-19  Eric Blake  <ebb9@byu.net>
27505
27506         test-unistd: test previous patch
27507         * tests/test-unistd.c: Test *_FILENO macros.
27508
27509         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
27510         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27511         Guarantee a definition.
27512         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
27513         * modules/unistd-safer (Depends-on): Add dependency on unistd.
27514         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
27515         * lib/dup-safer.c (STDERR_FILENO): Likewise.
27516         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27517         Likewise.
27518         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
27519         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
27520         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27521         Likewise.
27522         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
27523         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
27524         (STDERR_FILENO): Likewise.
27525         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
27526         (STDERR_FILENO): Likewise.
27527         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
27528         (STDERR_FILENO): Likewise.
27529         Reported by Elbert Pol.
27530
27531 2009-01-19  Eric Blake  <ebb9@byu.net>
27532
27533         doc: mention more functions added in cygwin 1.7.0
27534         * doc/posix-functions/abort.texi (abort): Update wording related
27535         to cygwin.
27536         * doc/posix-functions/daylight.texi (daylight): Likewise.
27537         * doc/posix-functions/optarg.texi (optarg): Likewise.
27538         * doc/posix-functions/optarg.texi (opterr): Likewise.
27539         * doc/posix-functions/optarg.texi (optind): Likewise.
27540         * doc/posix-functions/optarg.texi (optopt): Likewise.
27541         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
27542         worked in 1.5.x, and was withdrawn in 1.7.
27543         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
27544         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
27545         cygwin versions.
27546         * doc/posix-functions/perror.texi (perror): Likewise.
27547         * doc/posix-functions/printf.texi (printf): Likewise.
27548         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
27549         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
27550         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
27551         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
27552         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27553         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
27554         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27555         Likewise.
27556         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27557         Likewise.
27558         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
27559         this function.
27560         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
27561         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
27562         Likewise.
27563         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
27564         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
27565         * doc/posix-functions/confstr.texi (confstr): Likewise.
27566         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
27567         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
27568         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
27569         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
27570         * doc/posix-functions/fputws.texi (fputws): Likewise.
27571         * doc/posix-functions/fwide.texi (fwide): Likewise.
27572         * doc/posix-functions/getwc.texi (getwc): Likewise.
27573         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27574         * doc/posix-functions/putwc.texi (putwc): Likewise.
27575         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27576         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27577         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27578         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27579         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27580         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27581         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27582         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27583         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27584         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27585         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27586
27587 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27588
27589         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27590         * lib/ioctl.c: Include <sys/ioctl.h>.
27591
27592 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27593
27594         * modules/getdate-tests (Depends-on): Add progname.
27595         * tests/test-getdate.c: Use progname module, to avoid link errors
27596         on non-glibc systems.
27597
27598 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27599
27600         * modules/filenamecat-tests (Depends-on): Add progname.
27601         * modules/fstrcmp-tests (Depends-on): Likewise.
27602
27603         * tests/test-filenamecat.c: Use progname module, to avoid link
27604         errors on non-glibc systems.
27605         * tests/test-fstrcmp.c: Likewise.
27606
27607 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27608
27609         gettimeofday: avoid warning: nested extern declaration of 'localtime'
27610         * lib/gettimeofday.c: Move extern declaration out of function.
27611
27612 2009-01-18  Bruno Haible  <bruno@clisp.org>
27613
27614         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
27615         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
27616         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
27617
27618 2009-01-18  Bruno Haible  <bruno@clisp.org>
27619
27620         * lib/strftime.c (MEMPCPY): Remove unused macro.
27621         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
27622
27623 2009-01-18  Martin Lambers  <marlam@marlam.de>
27624
27625         New module 'link'.
27626         * lib/unistd.in.h (link): New declaration.
27627         * lib/link.c: New file.
27628         * m4/link.m4: New file.
27629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
27630         HAVE_LINK.
27631         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
27632         * modules/link: New file.
27633         * doc/posix-functions/link.texi: Mention the new module.
27634
27635 2009-01-18  Bruno Haible  <bruno@clisp.org>
27636
27637         * tests/test-avltree_list.c (main): Call set_program_name.
27638         * tests/test-avltree_oset.c (main): Likewise.
27639         * tests/test-obstack-printf.c: Include progname.h.
27640         (main): Call set_program_name.
27641         * tests/test-quotearg.c: Include progname.h.
27642         (main): Call set_program_name.
27643         * tests/test-xmemdup0.c: Include progname.h.
27644         (main): Call set_program_name.
27645
27646 2009-01-18  Bruno Haible  <bruno@clisp.org>
27647
27648         New module 'alphasort'.
27649         * lib/dirent.in.h (alphasort): New declaration.
27650         * lib/alphasort.c: New file, from glibc with modifications.
27651         * m4/alphasort.m4: New file.
27652         * modules/alphasort: New file.
27653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
27654         HAVE_ALPHASORT.
27655         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
27656         HAVE_ALPHASORT.
27657         * doc/posix-functions/alphasort.texi: Mention the new module and the
27658         portability problems.
27659
27660 2009-01-18  Bruno Haible  <bruno@clisp.org>
27661
27662         New module 'scandir'.
27663         * lib/dirent.in.h (scandir): New declaration.
27664         * lib/scandir.c: New file, from glibc with modifications.
27665         * m4/scandir.m4: New file.
27666         * modules/scandir: New file.
27667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
27668         HAVE_SCANDIR.
27669         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
27670         HAVE_SCANDIR.
27671         * doc/posix-functions/scandir.texi: Mention the new module and the
27672         portability problems.
27673
27674 2009-01-17  Bruno Haible  <bruno@clisp.org>
27675
27676         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
27677         Update documentation.
27678         (func_remove_suffix): Escape all dots in the suffix. Update
27679         documentation.
27680         (func_filter_filelist): Update documentation.
27681         Reported by Ralf Wildenhues.
27682
27683 2009-01-17  Bruno Haible  <bruno@clisp.org>
27684
27685         * modules/dprintf-posix-tests: New file.
27686         * tests/test-dprintf-posix.sh: New file.
27687         * tests/test-dprintf-posix.c: New file.
27688
27689         New modules 'dprintf', 'dprintf-posix'.
27690         * lib/stdio.in.h (dprintf): New declaration.
27691         * lib/dprintf.c: New file.
27692         * m4/dprintf.m4: New file.
27693         * m4/dprintf-posix.m4: New file.
27694         * modules/dprintf: New file.
27695         * modules/dprintf-posix: New file.
27696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
27697         HAVE_DPRINTF, REPLACE_DPRINTF.
27698         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
27699         HAVE_DPRINTF, REPLACE_DPRINTF.
27700         * doc/posix-functions/dprintf.texi: Mention the new modules.
27701
27702 2009-01-17  Bruno Haible  <bruno@clisp.org>
27703
27704         * modules/vdprintf-posix-tests: New file.
27705         * tests/test-vdprintf-posix.sh: New file.
27706         * tests/test-vdprintf-posix.c: New file.
27707
27708         New modules 'vdprintf', 'vdprintf-posix'.
27709         * lib/stdio.in.h (vdprintf): New declaration.
27710         * lib/vdprintf.c: New file.
27711         * m4/vdprintf.m4: New file.
27712         * m4/vdprintf-posix.m4: New file.
27713         * modules/vdprintf: New file.
27714         * modules/vdprintf-posix: New file.
27715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
27716         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27717         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
27718         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27719         * doc/posix-functions/vdprintf.texi: Mention the new modules.
27720
27721 2009-01-17  Bruno Haible  <bruno@clisp.org>
27722
27723         Fix replacement of fopen on mingw.
27724         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
27725         mingw.
27726
27727 2009-01-17  Bruno Haible  <bruno@clisp.org>
27728
27729         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27730         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27731
27732 2009-01-17  Bruno Haible  <bruno@clisp.org>
27733
27734         Avoid test-fflush2.sh failure on mingw.
27735         * tests/test-fflush2.c: Include binary-io.h.
27736         (main): Put standard input into binary mode.
27737         * modules/fflush-tests (Depends-on): Add binary-io.
27738
27739 2009-01-17  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/wchar.in.h: In another particular situation, include only the
27742         system's <wchar.h> file.
27743         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27744         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27745         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27746
27747 2009-01-17  Bruno Haible  <bruno@clisp.org>
27748
27749         Support for stripping executables in --enable-relocatable.
27750         * build-aux/install-reloc: Expect one more argument, or an environment
27751         variable RELOC_STRIP_PROG. If set, strip the destination program and
27752         its wrapper.
27753         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27754         RELOC_STRIP_PROG.
27755         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27756         to set RELOCATABLE_STRIP.
27757         * NEWS: Mention the new Makefile requirement.
27758
27759 2009-01-17  Bruno Haible  <bruno@clisp.org>
27760
27761         * build-aux/install-reloc: Remove debugging information left over by
27762         C compiler on MacOS X.
27763
27764 2009-01-17  Bruno Haible  <bruno@clisp.org>
27765
27766         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27767         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27768         _NSGetExecutablePath.
27769
27770 2009-01-16  Jim Meyering  <meyering@redhat.com>
27771
27772         strerror: avoid warnings about discarding "const"
27773         * lib/strerror.c (rpl_strerror): Instead of returning a const
27774         string from each and every "case", use a variable, and add a single
27775         cast after the switch.
27776
27777 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27778
27779         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27780
27781 2009-01-16  Bruno Haible  <bruno@clisp.org>
27782
27783         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27784         array initializer syntax that also works in C++ mode.
27785         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27786
27787 2009-01-16  Jim Meyering  <meyering@redhat.com>
27788
27789         poll: suppress a warning
27790         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27791         to ignore "...unsigned expression < 0 is always false" warnings.
27792
27793 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27794
27795         poll: remove declarations of unused variables
27796         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27797         sockbuf and optlen.
27798
27799 2009-01-15  Bruno Haible  <bruno@clisp.org>
27800
27801         Make fflush-after-ungetc POSIX compliant on BSD systems.
27802         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27803         (clear_ungetc_buffer): Implement also for other systems.
27804         (rpl_fflush): On glibc systems, invoke
27805         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27806         clear_ungetc_buffer after fetching the stream's position, not before.
27807
27808 2009-01-15  Bruno Haible  <bruno@clisp.org>
27809
27810         Make fflush-after-ungetc POSIX compliant on glibc systems.
27811         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27812         after ungetc.
27813         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27814         (rpl_fflush): On glibc systems, simply call the system's fflush
27815         function after clearing the ungetc buffer.
27816         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27817         Instead, lseek only to the end of file, then use the system's fseeko
27818         for the rest. On glibc systems, reset the EOF indicator bit.
27819
27820 2009-01-15  Jim Meyering  <meyering@redhat.com>
27821
27822         openmp.m4: revert quote-adding change, for portability to older autoconf
27823         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27824         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27825         Simon Josefsson noticed the problem when using autoconf-2.61.
27826
27827 2009-01-15  Bruno Haible  <bruno@clisp.org>
27828
27829         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27830         * tests/test-fflush2.c (ASSERT): Always fail.
27831         (main): Add two tests for fflush() after ungetc(), taking into account
27832         the Austin Group's clarification.
27833         Suggested by Eric Blake.
27834
27835 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27836
27837         mktime.m4: remove K&R-style function prototypes
27838         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27839         for the Sun C++ compiler.
27840
27841 2009-01-14  Bruno Haible  <bruno@clisp.org>
27842
27843         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27844         while including <wchar.h>.
27845         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27846         the system's <wchar.h> file.
27847         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27848
27849 2009-01-14  Bruno Haible  <bruno@clisp.org>
27850
27851         * m4/csharp.m4: Don't mention gettext on the serial number line.
27852         * m4/csharpexec.m4: Likewise.
27853         * m4/eaccess.m4: Likewise.
27854         * m4/javaexec.m4: Likewise.
27855         * m4/sig_atomic_t.m4: Likewise.
27856         * m4/tmpdir.m4: Likewise.
27857         * m4/intldir.m4: Bump gettext version.
27858         * m4/lib-ld.m4: Likewise.
27859
27860 2009-01-14  Bruno Haible  <bruno@clisp.org>
27861
27862         * lib/progname.c (set_program_name): Add more comments.
27863         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27864
27865 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27866
27867         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27868         were sys/stat.h does not define it.
27869
27870 2009-01-14  Jim Meyering  <meyering@redhat.com>
27871
27872         many *.m4 files: improve m4 quoting
27873         99% of this change was performed by running the following commands:
27874         git ls-files | grep '\.m4$' | xargs perl -pi \
27875           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27876           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27877           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27878           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27879         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27880         The remainder were to add Copyright dates, increment serial numbers,
27881         undo some changes in comments, exclude m4/intl.m4, and add quotes
27882         around the "1" in ",1" where the unusual spacing prohibited the
27883         above regexps from doing the job.  For more details, see
27884         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27885         * m4/acl.m4: Modified.
27886         * m4/afs.m4: Likewise.
27887         * m4/alloca.m4: Likewise.
27888         * m4/argp.m4: Likewise.
27889         * m4/argz.m4: Likewise.
27890         * m4/atexit.m4: Likewise.
27891         * m4/bison-i18n.m4: Likewise.
27892         * m4/bison.m4: Likewise.
27893         * m4/byteswap.m4: Likewise.
27894         * m4/c-stack.m4: Likewise.
27895         * m4/c-strtod.m4: Likewise.
27896         * m4/calloc.m4: Likewise.
27897         * m4/canonicalize-lgpl.m4: Likewise.
27898         * m4/chown.m4: Likewise.
27899         * m4/clock_time.m4: Likewise.
27900         * m4/codeset.m4: Likewise.
27901         * m4/copy-file.m4: Likewise.
27902         * m4/csharp.m4: Likewise.
27903         * m4/csharpcomp.m4: Likewise.
27904         * m4/csharpexec.m4: Likewise.
27905         * m4/d-ino.m4: Likewise.
27906         * m4/d-type.m4: Likewise.
27907         * m4/dirfd.m4: Likewise.
27908         * m4/double-slash-root.m4: Likewise.
27909         * m4/eaccess.m4: Likewise.
27910         * m4/eealloc.m4: Likewise.
27911         * m4/environ.m4: Likewise.
27912         * m4/errno_h.m4: Likewise.
27913         * m4/euidaccess.m4: Likewise.
27914         * m4/execute.m4: Likewise.
27915         * m4/fatal-signal.m4: Likewise.
27916         * m4/fchdir.m4: Likewise.
27917         * m4/fcntl_h.m4: Likewise.
27918         * m4/fileblocks.m4: Likewise.
27919         * m4/filenamecat.m4: Likewise.
27920         * m4/findprog.m4: Likewise.
27921         * m4/flexmember.m4: Likewise.
27922         * m4/fnmatch.m4: Likewise.
27923         * m4/fopen.m4: Likewise.
27924         * m4/fpending.m4: Likewise.
27925         * m4/fprintf-posix.m4: Likewise.
27926         * m4/free.m4: Likewise.
27927         * m4/frexp.m4: Likewise.
27928         * m4/frexpl.m4: Likewise.
27929         * m4/fsusage.m4: Likewise.
27930         * m4/ftruncate.m4: Likewise.
27931         * m4/gc-camellia.m4: Likewise.
27932         * m4/gc-random.m4: Likewise.
27933         * m4/gc.m4: Likewise.
27934         * m4/getaddrinfo.m4: Likewise.
27935         * m4/getcwd-abort-bug.m4: Likewise.
27936         * m4/getcwd-path-max.m4: Likewise.
27937         * m4/getdate.m4: Likewise.
27938         * m4/getdomainname.m4: Likewise.
27939         * m4/getgroups.m4: Likewise.
27940         * m4/gethostname.m4: Likewise.
27941         * m4/gethrxtime.m4: Likewise.
27942         * m4/getline.m4: Likewise.
27943         * m4/getloadavg.m4: Likewise.
27944         * m4/getndelim2.m4: Likewise.
27945         * m4/getpass.m4: Likewise.
27946         * m4/gettext.m4: Likewise.
27947         * m4/gettime.m4: Likewise.
27948         * m4/gettimeofday.m4: Likewise.
27949         * m4/gnulib-common.m4: Likewise.
27950         * m4/group-member.m4: Likewise.
27951         * m4/host-os.m4: Likewise.
27952         * m4/iconv.m4: Likewise.
27953         * m4/iconv_open.m4: Likewise.
27954         * m4/inet_ntop.m4: Likewise.
27955         * m4/inet_pton.m4: Likewise.
27956         * m4/inline.m4: Likewise.
27957         * m4/intldir.m4: Likewise.
27958         * m4/intlmacosx.m4: Likewise.
27959         * m4/intmax.m4: Likewise.
27960         * m4/intmax_t.m4: Likewise.
27961         * m4/inttypes.m4: Likewise.
27962         * m4/inttypes_h.m4: Likewise.
27963         * m4/inttypes-pri.m4: Likewise.
27964         * m4/isapipe.m4: Likewise.
27965         * m4/isnand.m4: Likewise.
27966         * m4/isnanf.m4: Likewise.
27967         * m4/isnanl.m4: Likewise.
27968         * m4/javacomp.m4: Likewise.
27969         * m4/javaexec.m4: Likewise.
27970         * m4/jm-winsz1.m4: Likewise.
27971         * m4/jm-winsz2.m4: Likewise.
27972         * m4/lchown.m4: Likewise.
27973         * m4/lcmessage.m4: Likewise.
27974         * m4/ldexpl.m4: Likewise.
27975         * m4/lib-ld.m4: Likewise.
27976         * m4/lib-link.m4: Likewise.
27977         * m4/libsigsegv.m4: Likewise.
27978         * m4/link-follow.m4: Likewise.
27979         * m4/localcharset.m4: Likewise.
27980         * m4/locale-fr.m4: Likewise.
27981         * m4/locale-ja.m4: Likewise.
27982         * m4/locale-tr.m4: Likewise.
27983         * m4/locale-zh.m4: Likewise.
27984         * m4/lock.m4: Likewise.
27985         * m4/longlong.m4: Likewise.
27986         * m4/ls-mntd-fs.m4: Likewise.
27987         * m4/lstat.m4: Likewise.
27988         * m4/malloc.m4: Likewise.
27989         * m4/mathl.m4: Likewise.
27990         * m4/mbrtowc.m4: Likewise.
27991         * m4/mbstate_t.m4: Likewise.
27992         * m4/mbswidth.m4: Likewise.
27993         * m4/memchr.m4: Likewise.
27994         * m4/memcmp.m4: Likewise.
27995         * m4/memcpy.m4: Likewise.
27996         * m4/memmem.m4: Likewise.
27997         * m4/memmove.m4: Likewise.
27998         * m4/mempcpy.m4: Likewise.
27999         * m4/memrchr.m4: Likewise.
28000         * m4/memset.m4: Likewise.
28001         * m4/minmax.m4: Likewise.
28002         * m4/mkdir-slash.m4: Likewise.
28003         * m4/mkdtemp.m4: Likewise.
28004         * m4/mktime.m4: Likewise.
28005         * m4/mmap-anon.m4: Likewise.
28006         * m4/mountlist.m4: Likewise.
28007         * m4/nanosleep.m4: Likewise.
28008         * m4/nls.m4: Likewise.
28009         * m4/nocrash.m4: Likewise.
28010         * m4/open.m4: Likewise.
28011         * m4/openat.m4: Likewise.
28012         * m4/openmp.m4: Likewise.
28013         * m4/pathmax.m4: Likewise.
28014         * m4/perl.m4: Likewise.
28015         * m4/physmem.m4: Likewise.
28016         * m4/pipe.m4: Likewise.
28017         * m4/po.m4: Likewise.
28018         * m4/poll.m4: Likewise.
28019         * m4/posixtm.m4: Likewise.
28020         * m4/posixver.m4: Likewise.
28021         * m4/printf-frexp.m4: Likewise.
28022         * m4/printf-frexpl.m4: Likewise.
28023         * m4/printf-posix.m4: Likewise.
28024         * m4/printf-posix-rpl.m4: Likewise.
28025         * m4/printf.m4: Likewise.
28026         * m4/progtest.m4: Likewise.
28027         * m4/putenv.m4: Likewise.
28028         * m4/readline.m4: Likewise.
28029         * m4/readlink.m4: Likewise.
28030         * m4/readutmp.m4: Likewise.
28031         * m4/realloc.m4: Likewise.
28032         * m4/regex.m4: Likewise.
28033         * m4/relocatable.m4: Likewise.
28034         * m4/relocatable-lib.m4: Likewise.
28035         * m4/rename-dest-slash.m4: Likewise.
28036         * m4/rename.m4: Likewise.
28037         * m4/rmdir-errno.m4: Likewise.
28038         * m4/rmdir.m4: Likewise.
28039         * m4/roundf.m4: Likewise.
28040         * m4/roundl.m4: Likewise.
28041         * m4/rpmatch.m4: Likewise.
28042         * m4/save-cwd.m4: Likewise.
28043         * m4/selinux-selinux-h.m4: Likewise.
28044         * m4/setenv.m4: Likewise.
28045         * m4/settime.m4: Likewise.
28046         * m4/sig2str.m4: Likewise.
28047         * m4/sig_atomic_t.m4: Likewise.
28048         * m4/signalblocking.m4: Likewise.
28049         * m4/signbit.m4: Likewise.
28050         * m4/sigpipe.m4: Likewise.
28051         * m4/sockets.m4: Likewise.
28052         * m4/sockpfaf.m4: Likewise.
28053         * m4/st_dm_mode.m4: Likewise.
28054         * m4/stat-time.m4: Likewise.
28055         * m4/stdbool.m4: Likewise.
28056         * m4/stdint.m4: Likewise.
28057         * m4/stdint_h.m4: Likewise.
28058         * m4/stpcpy.m4: Likewise.
28059         * m4/stpncpy.m4: Likewise.
28060         * m4/strcase.m4: Likewise.
28061         * m4/strchrnul.m4: Likewise.
28062         * m4/strcspn.m4: Likewise.
28063         * m4/strdup.m4: Likewise.
28064         * m4/strftime.m4: Likewise.
28065         * m4/strndup.m4: Likewise.
28066         * m4/strnlen.m4: Likewise.
28067         * m4/strpbrk.m4: Likewise.
28068         * m4/strptime.m4: Likewise.
28069         * m4/strsep.m4: Likewise.
28070         * m4/strtod.m4: Likewise.
28071         * m4/strtoimax.m4: Likewise.
28072         * m4/strtok_r.m4: Likewise.
28073         * m4/strtol.m4: Likewise.
28074         * m4/strtoll.m4: Likewise.
28075         * m4/strtoul.m4: Likewise.
28076         * m4/strtoull.m4: Likewise.
28077         * m4/strtoumax.m4: Likewise.
28078         * m4/strverscmp.m4: Likewise.
28079         * m4/threadlib.m4: Likewise.
28080         * m4/timegm.m4: Likewise.
28081         * m4/tm_gmtoff.m4: Likewise.
28082         * m4/tmpdir.m4: Likewise.
28083         * m4/tmpfile.m4: Likewise.
28084         * m4/tzset.m4: Likewise.
28085         * m4/uintmax_t.m4: Likewise.
28086         * m4/unlinkdir.m4: Likewise.
28087         * m4/unlocked-io.m4: Likewise.
28088         * m4/uptime.m4: Likewise.
28089         * m4/userspec.m4: Likewise.
28090         * m4/utimbuf.m4: Likewise.
28091         * m4/utime.m4: Likewise.
28092         * m4/utimes-null.m4: Likewise.
28093         * m4/utimes.m4: Likewise.
28094         * m4/vararrays.m4: Likewise.
28095         * m4/vasnprintf.m4: Likewise.
28096         * m4/vfprintf-posix.m4: Likewise.
28097         * m4/vprintf-posix.m4: Likewise.
28098         * m4/wait-process.m4: Likewise.
28099         * m4/wchar_t.m4: Likewise.
28100         * m4/wint_t.m4: Likewise.
28101         * m4/write-any-file.m4: Likewise.
28102         * m4/yield.m4: Likewise.
28103
28104 2009-01-13  Bruno Haible  <bruno@clisp.org>
28105
28106         Avoid test-copy-file.sh failures when ACL support insufficient.
28107         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
28108         TESTS_ENVIRONMENT.
28109         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
28110         Reported by Jim Meyering.
28111
28112 2009-01-13  Bruno Haible  <bruno@clisp.org>
28113
28114         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
28115         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
28116         * modules/unistdio/u8-printf-parse (Files): Likewise.
28117         * modules/unistdio/u32-printf-parse (Files): Likewise.
28118         * modules/unistdio/ulc-printf-parse (Files): Likewise.
28119
28120 2009-01-13  Simon Josefsson  <simon@josefsson.org>
28121
28122         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
28123         and m4/inttypes_h.m4 too.
28124
28125 2009-01-12  Eric Blake  <ebb9@byu.net>
28126
28127         tests: IRIX 6.2 cc can't compile -0.0 into .data
28128         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
28129         rather than at compile-time.
28130         * tests/test-floorl.c (minus_zero): Likewise.
28131         * tests/test-frexpl.c (minus_zero): Likewise.
28132         * tests/test-isnan.c (minus_zerol): Likewise.
28133         * tests/test-isnanl.h (minus_zero): Likewise.
28134         * tests/test-ldexpl.c (minus_zero): Likewise.
28135         * tests/test-roundl.c (minus_zero): Likewise.
28136         * tests/test-signbit.c (minus_zerol): Likewise.
28137         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28138         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28139         * tests/test-truncl.c (minus_zero): Likewise.
28140         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28141         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28142         Reported by Tom G. Christensen and Nelson H. F. Beebe.
28143
28144 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28145
28146         regex: fix glibc bug 9697
28147         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
28148         handling.
28149
28150 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28151
28152         regex: fix glibc bug 697
28153         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
28154         being NULL also if there are no backreferences.
28155
28156 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28157
28158         regex: merge glibc changes
28159         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
28160         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
28161         re_string_skip_chars, re_string_reconstruct): Likewise.
28162         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
28163
28164 2009-01-07  Jim Meyering  <meyering@redhat.com>
28165
28166         poll: filter through cppi
28167         * lib/poll.c: Indent cpp directives to reflect nesting.
28168
28169 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
28170
28171         poll: don't return uninitialized
28172         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
28173
28174 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
28175
28176         avoid compile failure on AIX 6.1
28177         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
28178         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
28179
28180 2009-01-04  Jim Meyering  <meyering@redhat.com>
28181
28182         remove duplicate inclusion of <stdio.h>
28183         * tests/test-fprintf-posix.c: Likewise.
28184         * tests/test-printf-posix.c: Likewise.
28185         * tests/test-snprintf-posix.c: Likewise.
28186         * tests/test-sprintf-posix.c: Likewise.
28187         * tests/test-vasprintf-posix.c: Likewise.
28188         * tests/test-vfprintf-posix.c: Likewise.
28189         * tests/test-vprintf-posix.c: Likewise.
28190         * tests/test-vsnprintf-posix.c: Likewise.
28191         * tests/test-vsprintf-posix.c: Likewise.
28192
28193 2009-01-03  Jim Meyering  <meyering@redhat.com>
28194
28195         gnulib-tool: fix sed-based filtering
28196         * gnulib-tool (func_filter_filelist): Remove extra backslash
28197         in sed_fff_filter definition.
28198
28199 2009-01-02  Jim Meyering  <meyering@redhat.com>
28200
28201         strftime: avoid compilation failure on Solaris 2.6
28202         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
28203         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
28204         Don't #define mbrlen or mbsinit, since now they're guaranteed to
28205         be available.  Reported by Tom G. Christensen.  Details in
28206         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
28207
28208 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28209             Bruno Haible  <bruno@clisp.org>
28210
28211         Speed up gnulib-tool by doing more string processing through shell
28212         built-ins.
28213         * gnulib-tool (fast_func_append): New variable.
28214         (func_remove_prefix, func_remove_suffix): New functions.
28215         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
28216         (func_filter_filelist): New function.
28217         (func_get_dependencies): Use func_remove_suffix instead of sed.
28218         (func_get_automake_snippet): Use func_filter_filelist instead of a
28219         subshell and sed invocation.
28220
28221 2009-01-01  Bruno Haible  <bruno@clisp.org>
28222
28223         Fix a security bug.
28224         * gnulib-tool (func_import, import, update): Don't allow the characters
28225         '"', '$', '`', '\' in macro arguments that become part of commands that
28226         are evaluated.
28227
28228 2009-01-01  Bruno Haible  <bruno@clisp.org>
28229
28230         * gnulib-tool (func_reset_sigpipe): Add more comments.
28231
28232 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28233
28234         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
28235         func_emit_tests_Makefile_am, func_import): Abort loops early if we
28236         already know the answer.
28237
28238 2009-01-01  Jim Meyering  <meyering@redhat.com>
28239
28240         * lib/version-etc.c (version_etc_va): Update copyright year.
28241
28242 2008-12-30  Bruno Haible  <bruno@clisp.org>
28243
28244         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
28245         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
28246         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
28247
28248 2008-12-29  Eric Blake  <ebb9@byu.net>
28249
28250         multiarch: avoid autoconf AC_REQUIRE bug
28251         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
28252         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
28253         2.63 and older.
28254         Reported by Bruno Haible, and analyzed in
28255         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
28256
28257 2008-12-29  Bruno Haible  <bruno@clisp.org>
28258
28259         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
28260         files in subdirectories correctly.
28261         Reported by Ralf Wildenhues.
28262
28263 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28264
28265         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
28266         rather than 'join FILE -', for Solaris join.
28267
28268 2008-12-29  Bruno Haible  <bruno@clisp.org>
28269
28270         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
28271         quoting.
28272         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28273         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28274         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28275         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
28276         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28277         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28278         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28279         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28280         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28281         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28282         * m4/nls.m4 (AM_NLS): Likewise.
28283         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
28284         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28285         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28286         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28287         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28288         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28289         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
28290         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28291         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28292         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28293         * m4/xsize.m4 (gl_XSIZE): Likewise.
28294         Suggested by Jim Meyering.
28295
28296 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28297
28298         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
28299         * lib/parse-duration.c: use a switch instead of cascading if's.
28300
28301 2008-12-29  Eric Blake  <ebb9@byu.net>
28302
28303         wchar.h: supply WEOF on Irix 5.3
28304         * lib/wchar.in.h (wint_t): Also supply WEOF.
28305         * lib/wctype.in.h (wint_t): Likewise.
28306         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
28307         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
28308         Reported by Tom G. Christensen.
28309
28310 2008-12-26  Bruno Haible  <bruno@clisp.org>
28311
28312         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
28313         i486, i586, i686.
28314
28315 2008-12-26  Bruno Haible  <bruno@clisp.org>
28316
28317         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
28318
28319 2008-12-26  Bruno Haible  <bruno@clisp.org>
28320
28321         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
28322         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
28323         not __STDC_CONSTANT_MACROS.
28324         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28325
28326 2008-12-25  Bruno Haible  <bruno@clisp.org>
28327
28328         Add support for universal builds to vasnprintf.
28329         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
28330         universal builds, guess no.
28331         * modules/vasnprintf-posix (Depends-on): Add multiarch.
28332         * modules/vasprintf-posix (Depends-on): Likewise.
28333         * modules/fprintf-posix (Depends-on): Likewise.
28334         * modules/vfprintf-posix (Depends-on): Likewise.
28335         * modules/snprintf-posix (Depends-on): Likewise.
28336         * modules/vsnprintf-posix (Depends-on): Likewise.
28337         * modules/sprintf-posix (Depends-on): Likewise.
28338         * modules/vsprintf-posix (Depends-on): Likewise.
28339         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28340         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28341         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28342         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28343         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28344         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28345         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28346
28347         Add support for universal builds to <inttypes.h>.
28348         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
28349         _SCNu64_PREFIX): In Apple
28350         universal builds, define directly, using _LP64.
28351         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
28352         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
28353         * modules/inttypes (Depends-on): Add multiarch.
28354         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28355
28356         Add support for universal builds to <stdint.h>.
28357         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
28358         universal builds, define directly, using _LP64.
28359         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
28360         Apple universal builds, don't test for the size and suffix of ptrdiff_t
28361         and size_t.
28362         * modules/stdint (Depends-on): Add multiarch.
28363         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28364
28365         New module 'multiarch'.
28366         * modules/multiarch: New file.
28367         * m4/multiarch.m4: New file.
28368
28369 2008-12-25  Bruno Haible  <bruno@clisp.org>
28370
28371         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
28372
28373 2008-12-25  Bruno Haible  <bruno@clisp.org>
28374
28375         * modules/btowc (License): Relicense under LGPLv2+.
28376         * modules/mbsinit (License): Likewise.
28377         * modules/mbrtowc (License): Likewise.
28378         * modules/wcrtomb (License): Likewise.
28379         * modules/streq (License): Likewise.
28380         Reported by David Lutterkort <lutter@redhat.com>.
28381
28382 2008-12-23  Bruno Haible  <bruno@clisp.org>
28383
28384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
28385
28386 2008-12-23  Bruno Haible  <bruno@clisp.org>
28387
28388         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
28389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
28390         GETADDRINFO_LIB, not in LIBS.
28391         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
28392         * modules/canon-host (Link): Likewise.
28393         * NEWS: Mention the change.
28394         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
28395         GETADDRINFO_LIB.
28396
28397 2008-12-22  Bruno Haible  <bruno@clisp.org>
28398
28399         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
28400         * doc/posix-functions/iswalpha_l.texi: Likewise.
28401         * doc/posix-functions/iswblank_l.texi: Likewise.
28402         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28403         * doc/posix-functions/iswctype_l.texi: Likewise.
28404         * doc/posix-functions/iswdigit_l.texi: Likewise.
28405         * doc/posix-functions/iswgraph_l.texi: Likewise.
28406         * doc/posix-functions/iswlower_l.texi: Likewise.
28407         * doc/posix-functions/iswprint_l.texi: Likewise.
28408         * doc/posix-functions/iswpunct_l.texi: Likewise.
28409         * doc/posix-functions/iswspace_l.texi: Likewise.
28410         * doc/posix-functions/iswupper_l.texi: Likewise.
28411         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28412         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
28413         * doc/posix-functions/open_wmemstream.texi: Likewise.
28414         * doc/posix-functions/swscanf.texi: Likewise.
28415         * doc/posix-functions/towctrans_l.texi: Likewise.
28416         * doc/posix-functions/towlower.texi: Likewise.
28417         * doc/posix-functions/towlower_l.texi: Likewise.
28418         * doc/posix-functions/towupper.texi: Likewise.
28419         * doc/posix-functions/towupper_l.texi: Likewise.
28420         * doc/posix-functions/vfwprintf.texi: Likewise.
28421         * doc/posix-functions/vfwscanf.texi: Likewise.
28422         * doc/posix-functions/vswscanf.texi: Likewise.
28423         * doc/posix-functions/vwprintf.texi: Likewise.
28424         * doc/posix-functions/vwscanf.texi: Likewise.
28425         * doc/posix-functions/wcpcpy.texi: Likewise.
28426         * doc/posix-functions/wcpncpy.texi: Likewise.
28427         * doc/posix-functions/wcscasecmp.texi: Likewise.
28428         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
28429         * doc/posix-functions/wcscoll_l.texi: Likewise.
28430         * doc/posix-functions/wcsdup.texi: Likewise.
28431         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28432         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
28433         * doc/posix-functions/wcsnlen.texi: Likewise.
28434         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28435         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28436         * doc/posix-functions/wctrans_l.texi: Likewise.
28437         * doc/posix-functions/wctype_l.texi: Likewise.
28438         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
28439         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
28440         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
28441         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
28442         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
28443         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
28444         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
28445         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
28446         * doc/glibc-functions/wcschrnul.texi: Likewise.
28447         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28448         * doc/glibc-functions/wcstod_l.texi: Likewise.
28449         * doc/glibc-functions/wcstof_l.texi: Likewise.
28450         * doc/glibc-functions/wcstol_l.texi: Likewise.
28451         * doc/glibc-functions/wcstold_l.texi: Likewise.
28452         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28453         * doc/glibc-functions/wcstoq.texi: Likewise.
28454         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28455         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28456         * doc/glibc-functions/wcstouq.texi: Likewise.
28457         * doc/glibc-functions/wmempcpy.texi: Likewise.
28458
28459 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
28460             Eric Blake  <ebb9@byu.net>
28461             Paolo Bonzini  <bonzini@gnu.org>
28462             Bruno Haible  <bruno@clisp.org>
28463
28464         Make c-stack work on Haiku.
28465         * lib/c-stack.c (SA_ONSTACK): Define fallback.
28466         (c_stack_action): Use SA_ONSTACK flag.
28467
28468 2008-12-22  Bruno Haible  <bruno@clisp.org>
28469
28470         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
28471
28472 2008-12-22  Bruno Haible  <bruno@clisp.org>
28473
28474         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
28475         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
28476         being overridden.
28477         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
28478         New macros.
28479         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
28480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
28481         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
28482         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
28483
28484 2008-12-22  Bruno Haible  <bruno@clisp.org>
28485
28486         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
28487         from test code.
28488
28489 2008-12-22  Eric Blake  <ebb9@byu.net>
28490
28491         Avoid gcc warnings on cygwin.
28492         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
28493         Avoid unused variable.
28494         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
28495         Likewise.
28496
28497 2008-12-22  Bruno Haible  <bruno@clisp.org>
28498
28499         Remove HAVE_MBRTOWC conditionals.
28500         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
28501         (mbscasecmp): Assume mbrtowc function.
28502         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
28503         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
28504         * lib/mbschr.c: Include mbuiter.h unconditionally.
28505         (mbschr): Assume mbrtowc function.
28506         * lib/mbscspn.c: Include mbuiter.h unconditionally.
28507         (mbscspn): Assume mbrtowc function.
28508         * lib/mbslen.c: Include mbuiter.h unconditionally.
28509         (mbslen): Assume mbrtowc function.
28510         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
28511         (mbsncasecmp): Assume mbrtowc function.
28512         * lib/mbsnlen.c: Include mbiter.h unconditionally.
28513         (mbsnlen): Assume mbrtowc function.
28514         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
28515         (mbspbrk): Assume mbrtowc function.
28516         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
28517         (mbspcasecmp): Assume mbrtowc function.
28518         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
28519         (mbsrchr): Assume mbrtowc function.
28520         * lib/mbssep.c: Include mbuiter.h unconditionally.
28521         (mbssep): Assume mbrtowc function.
28522         * lib/mbsspn.c: Include mbuiter.h unconditionally.
28523         (mbsspn): Assume mbrtowc function.
28524         * lib/mbsstr.c: Include mbuiter.h unconditionally.
28525         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
28526         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
28527         (mbstok_r): Assume mbrtowc function.
28528         * lib/propername.c: Include mbuiter.h unconditionally.
28529         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
28530         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
28531         (trim2): Assume mbrtowc function.
28532         * lib/mbswidth.c (mbsinit): Remove fallback definition.
28533         (mbsnwidth): Assume mbrtowc function.
28534         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
28535         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
28536         fallback definitions.
28537         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
28538
28539 2008-12-22  Bruno Haible  <bruno@clisp.org>
28540
28541         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
28542
28543 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
28544
28545         * modules/regex: Request emulations for the mb*/wc* functions we need.
28546         * m4/regex.m4: Don't look for those functions here.
28547         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
28548
28549 2008-12-22  Bruno Haible  <bruno@clisp.org>
28550
28551         * modules/fnmatch (Depends-on): Remove duplicated dependency.
28552
28553 2008-12-21  Bruno Haible  <bruno@clisp.org>
28554
28555         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
28556         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
28557         (Include): Remove conditionalization.
28558         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
28559         (Include): Remove conditionalization.
28560         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
28561         (Include): Remove conditionalization.
28562         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
28563         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28564         * NEWS: Mention the change.
28565         Reported by Alan Hourihane <alanh@fairlite.co.uk>
28566         via Sergey Poznyakoff <gray@gnu.org.ua>.
28567
28568 2008-12-21  Bruno Haible  <bruno@clisp.org>
28569
28570         * MODULES.html.sh (Extended multibyte and wide character utilities
28571         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28572         wcrtomb, wcsrtombs.
28573         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28574         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28575         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28576         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28577
28578 2008-12-21  Bruno Haible  <bruno@clisp.org>
28579
28580         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28581
28582 2008-12-21  Bruno Haible  <bruno@clisp.org>
28583
28584         * modules/wcsnrtombs-tests: New file.
28585         * tests/test-wcsnrtombs1.sh: New file.
28586         * tests/test-wcsnrtombs2.sh: New file.
28587         * tests/test-wcsnrtombs3.sh: New file.
28588         * tests/test-wcsnrtombs4.sh: New file.
28589         * tests/test-wcsnrtombs.c: New file.
28590
28591         New module 'wcsnrtombs'.
28592         * lib/wchar.in.h (wcsnrtombs): New declaration.
28593         * lib/wcsnrtombs.c: New file.
28594         * lib/wcsrtombs-state.c: New file.
28595         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28596         (internal_state): Remove variable.
28597         * m4/wcsnrtombs.m4: New file.
28598         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28599         compilation units.
28600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28601         HAVE_WCSNRTOMBS.
28602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28603         HAVE_WCSNRTOMBS.
28604         * modules/wcsnrtombs: New file.
28605         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
28606         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
28607
28608 2008-12-21  Bruno Haible  <bruno@clisp.org>
28609
28610         * modules/wcsrtombs-tests: New file.
28611         * tests/test-wcsrtombs1.sh: New file.
28612         * tests/test-wcsrtombs2.sh: New file.
28613         * tests/test-wcsrtombs3.sh: New file.
28614         * tests/test-wcsrtombs4.sh: New file.
28615         * tests/test-wcsrtombs.c: New file.
28616
28617         New module 'wcsrtombs'.
28618         * lib/wchar.in.h (wcsrtombs): New declaration.
28619         * lib/wcsrtombs.c: New file.
28620         * m4/wcsrtombs.m4: New file.
28621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
28622         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
28624         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28625         * modules/wcsrtombs: New file.
28626         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
28627         bugs.
28628
28629 2008-12-21  Bruno Haible  <bruno@clisp.org>
28630
28631         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
28632         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
28633         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
28634         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
28635         if not correct.
28636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
28637         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
28638         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28639         m4/locale-zh.m4, m4/codeset.m4.
28640         * doc/posix-functions/wcrtomb.texi: Document the bug.
28641
28642 2008-12-21  Bruno Haible  <bruno@clisp.org>
28643
28644         Work around a btowc() bug on IRIX 6.5.
28645         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
28646         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
28647         REPLACE_WTOBC if not.
28648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
28649         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
28650         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
28651
28652 2008-12-21  Bruno Haible  <bruno@clisp.org>
28653
28654         * modules/wcrtomb-tests: New file.
28655         * tests/test-wcrtomb.sh: New file.
28656         * tests/test-wcrtomb.c: New file.
28657
28658         New module 'wcrtomb'.
28659         * lib/wchar.in.h (wcrtomb): New declaration.
28660         * lib/wcrtomb.c: New file.
28661         * m4/wcrtomb.m4: New file.
28662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
28663         HAVE_WCRTOMB.
28664         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
28665         HAVE_WCRTOMB.
28666         * modules/wcrtomb: New file.
28667         * doc/posix-functions/wcrtomb.texi: Mention the new module.
28668
28669 2008-12-21  Bruno Haible  <bruno@clisp.org>
28670
28671         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
28672         * modules/mbsrtowcs (Files): Likewise.
28673         * modules/wctob (Files): Likewise.
28674         * modules/c-strcase-tests (Files): Likewise.
28675         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28676         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28677         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28678         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28679         * modules/vasnprintf-posix-tests (Files): Likewise.
28680
28681 2008-12-21  William Pursell  <bill.pursell@gmail.com>
28682
28683         gitlog-to-changelog: pass all command-line arguments to git-log
28684         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
28685         it is sometimes convenient to filter the commits in various ways.
28686         gitlog-to-changelog only allows --since to specify a start date,
28687         but git-log itself supports many other filtering mechanisms.
28688         At the moment, I want to filter by branch name.  Rather than
28689         adding a --branch option to gitlog-to-changelog, it seems more
28690         flexible to simply pass all options directly to git-log and let
28691         git do the work.  Notice that this effectively makes --since a
28692         redundant option for gitlog-to-changelog, but removing it would
28693         require current usage to change since calls would then require
28694         an additional '--'.
28695
28696 2008-12-21  Bruno Haible  <bruno@clisp.org>
28697
28698         * modules/mbsnrtowcs-tests: New file.
28699         * tests/test-mbsnrtowcs1.sh: New file.
28700         * tests/test-mbsnrtowcs2.sh: New file.
28701         * tests/test-mbsnrtowcs3.sh: New file.
28702         * tests/test-mbsnrtowcs4.sh: New file.
28703         * tests/test-mbsnrtowcs.c: New file.
28704
28705         New module 'mbsnrtowcs'.
28706         * lib/wchar.in.h (mbsnrtowcs): New declaration.
28707         * lib/mbsnrtowcs.c: New file.
28708         * lib/mbsrtowcs-state.c: New file.
28709         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
28710         (internal_state): Remove variable.
28711         * m4/mbsnrtowcs.m4: New file.
28712         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
28713         compilation units.
28714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
28715         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28716         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
28717         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28718         * modules/mbsnrtowcs: New file.
28719         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
28720         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
28721         portability problem.
28722
28723 2008-12-21  Bruno Haible  <bruno@clisp.org>
28724
28725         Work around mbsrtowcs bug.
28726         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
28727         (gl_FUNC_MBSRTOWCS): Invoke it.
28728         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28729         m4/locale-zh.m4.
28730         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28731
28732 2008-12-21  Bruno Haible  <bruno@clisp.org>
28733
28734         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28735
28736 2008-12-21  Bruno Haible  <bruno@clisp.org>
28737
28738         Update doc for AIX.
28739         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28740         16-bit wchar_t type.
28741         * doc/posix-functions/btowc.texi: Likewise.
28742         * doc/posix-functions/fgetwc.texi: Likewise.
28743         * doc/posix-functions/fgetws.texi: Likewise.
28744         * doc/posix-functions/fputwc.texi: Likewise.
28745         * doc/posix-functions/fputws.texi: Likewise.
28746         * doc/posix-functions/fwide.texi: Likewise.
28747         * doc/posix-functions/fwprintf.texi: Likewise.
28748         * doc/posix-functions/fwscanf.texi: Likewise.
28749         * doc/posix-functions/getwchar.texi: Likewise.
28750         * doc/posix-functions/getwc.texi: Likewise.
28751         * doc/posix-functions/iswalnum.texi: Likewise.
28752         * doc/posix-functions/iswalpha.texi: Likewise.
28753         * doc/posix-functions/iswblank.texi: Likewise.
28754         * doc/posix-functions/iswcntrl.texi: Likewise.
28755         * doc/posix-functions/iswctype.texi: Likewise.
28756         * doc/posix-functions/iswdigit.texi: Likewise.
28757         * doc/posix-functions/iswgraph.texi: Likewise.
28758         * doc/posix-functions/iswlower.texi: Likewise.
28759         * doc/posix-functions/iswprint.texi: Likewise.
28760         * doc/posix-functions/iswpunct.texi: Likewise.
28761         * doc/posix-functions/iswspace.texi: Likewise.
28762         * doc/posix-functions/iswupper.texi: Likewise.
28763         * doc/posix-functions/iswxdigit.texi: Likewise.
28764         * doc/posix-functions/mbrtowc.texi: Likewise.
28765         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28766         * doc/posix-functions/mbstowcs.texi: Likewise.
28767         * doc/posix-functions/mbtowc.texi: Likewise.
28768         * doc/posix-functions/putwchar.texi: Likewise.
28769         * doc/posix-functions/putwc.texi: Likewise.
28770         * doc/posix-functions/swprintf.texi: Likewise.
28771         * doc/posix-functions/tolower.texi: Likewise.
28772         * doc/posix-functions/toupper.texi: Likewise.
28773         * doc/posix-functions/towctrans.texi: Likewise.
28774         * doc/posix-functions/ungetwc.texi: Likewise.
28775         * doc/posix-functions/vswprintf.texi: Likewise.
28776         * doc/posix-functions/wcrtomb.texi: Likewise.
28777         * doc/posix-functions/wcscat.texi: Likewise.
28778         * doc/posix-functions/wcschr.texi: Likewise.
28779         * doc/posix-functions/wcscmp.texi: Likewise.
28780         * doc/posix-functions/wcscoll.texi: Likewise.
28781         * doc/posix-functions/wcscpy.texi: Likewise.
28782         * doc/posix-functions/wcscspn.texi: Likewise.
28783         * doc/posix-functions/wcsftime.texi: Likewise.
28784         * doc/posix-functions/wcslen.texi: Likewise.
28785         * doc/posix-functions/wcsncat.texi: Likewise.
28786         * doc/posix-functions/wcsncmp.texi: Likewise.
28787         * doc/posix-functions/wcsncpy.texi: Likewise.
28788         * doc/posix-functions/wcspbrk.texi: Likewise.
28789         * doc/posix-functions/wcsrchr.texi: Likewise.
28790         * doc/posix-functions/wcsrtombs.texi: Likewise.
28791         * doc/posix-functions/wcsspn.texi: Likewise.
28792         * doc/posix-functions/wcsstr.texi: Likewise.
28793         * doc/posix-functions/wcstod.texi: Likewise.
28794         * doc/posix-functions/wcstof.texi: Likewise.
28795         * doc/posix-functions/wcstoimax.texi: Likewise.
28796         * doc/posix-functions/wcstok.texi: Likewise.
28797         * doc/posix-functions/wcstold.texi: Likewise.
28798         * doc/posix-functions/wcstoll.texi: Likewise.
28799         * doc/posix-functions/wcstol.texi: Likewise.
28800         * doc/posix-functions/wcstombs.texi: Likewise.
28801         * doc/posix-functions/wcstoull.texi: Likewise.
28802         * doc/posix-functions/wcstoul.texi: Likewise.
28803         * doc/posix-functions/wcstoumax.texi: Likewise.
28804         * doc/posix-functions/wcswidth.texi: Likewise.
28805         * doc/posix-functions/wcsxfrm.texi: Likewise.
28806         * doc/posix-functions/wctob.texi: Likewise.
28807         * doc/posix-functions/wctomb.texi: Likewise.
28808         * doc/posix-functions/wctrans.texi: Likewise.
28809         * doc/posix-functions/wctype.texi: Likewise.
28810         * doc/posix-functions/wcwidth.texi: Likewise.
28811         * doc/posix-functions/wmemchr.texi: Likewise.
28812         * doc/posix-functions/wmemcmp.texi: Likewise.
28813         * doc/posix-functions/wmemcpy.texi: Likewise.
28814         * doc/posix-functions/wmemmove.texi: Likewise.
28815         * doc/posix-functions/wmemset.texi: Likewise.
28816         * doc/posix-functions/wprintf.texi: Likewise.
28817         * doc/posix-functions/wscanf.texi: Likewise.
28818
28819 2008-12-21  Bruno Haible  <bruno@clisp.org>
28820
28821         Update doc for HP-UX 11.11.
28822         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28823         in HP-UX version 11.00, not in all versions of HP-UX 11.
28824         * doc/posix-functions/fwide.texi: Likewise.
28825         * doc/posix-functions/fwprintf.texi: Likewise.
28826         * doc/posix-functions/fwscanf.texi: Likewise.
28827         * doc/posix-functions/inet_ntop.texi: Likewise.
28828         * doc/posix-functions/inet_pton.texi: Likewise.
28829         * doc/posix-functions/mbrlen.texi: Likewise.
28830         * doc/posix-functions/mbrtowc.texi: Likewise.
28831         * doc/posix-functions/mbsinit.texi: Likewise.
28832         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28833         * doc/posix-functions/swprintf.texi: Likewise.
28834         * doc/posix-functions/swscanf.texi: Likewise.
28835         * doc/posix-functions/towctrans.texi: Likewise.
28836         * doc/posix-functions/vfwprintf.texi: Likewise.
28837         * doc/posix-functions/vswprintf.texi: Likewise.
28838         * doc/posix-functions/vwprintf.texi: Likewise.
28839         * doc/posix-functions/wcrtomb.texi: Likewise.
28840         * doc/posix-functions/wcsrtombs.texi: Likewise.
28841         * doc/posix-functions/wcsstr.texi: Likewise.
28842         * doc/posix-functions/wctob.texi: Likewise.
28843         * doc/posix-functions/wctrans.texi: Likewise.
28844         * doc/posix-functions/wmemchr.texi: Likewise.
28845         * doc/posix-functions/wmemcmp.texi: Likewise.
28846         * doc/posix-functions/wmemcpy.texi: Likewise.
28847         * doc/posix-functions/wmemmove.texi: Likewise.
28848         * doc/posix-functions/wmemset.texi: Likewise.
28849         * doc/posix-functions/wprintf.texi: Likewise.
28850         * doc/posix-functions/wscanf.texi: Likewise.
28851
28852 2008-12-21  Bruno Haible  <bruno@clisp.org>
28853
28854         Work around a portability problem.
28855         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28856         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28857
28858 2008-12-20  Bruno Haible  <bruno@clisp.org>
28859
28860         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28861         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28862         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28864         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28865
28866         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28867         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28868         set.
28869         (GNULIB_defined_mbstate_t): New macro.
28870         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28871         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28872         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28873         reuses the system's mbrtowc function but works around the bugs.
28874         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28875         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28876         macros.
28877         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28878         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28879         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28880         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28881         REPLACE_MBSINIT if mbsinit needs to be overridden.
28882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28883         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28884         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28885         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28886         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28887         m4/locale-zh.m4.
28888         (Depends): Add mbsinit.
28889         * modules/mbsinit (Depends): Add mbrtowc.
28890         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28891
28892 2008-12-20  Bruno Haible  <bruno@clisp.org>
28893
28894         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28895         so that there are no conversion errors on AIX.
28896         * tests/test-mbsrtowcs.c (main): LIkewise.
28897
28898 2008-12-20  Bruno Haible  <bruno@clisp.org>
28899
28900         Work around wctob bug on Solaris <= 9.
28901         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28902         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28904         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28905         * modules/wctob (Files): Add m4/locale-fr.m4.
28906         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28907
28908 2008-12-20  Bruno Haible  <bruno@clisp.org>
28909
28910         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28911         /dev/null.
28912         * tests/test-select-in.sh: Likewise.
28913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28914
28915 2008-12-20  Bruno Haible  <bruno@clisp.org>
28916
28917         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28918         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28919         Cygwin 1.5.x.
28920
28921 2008-12-20  Bruno Haible  <bruno@clisp.org>
28922
28923         Ensure mbstate_t is defined on HP-UX 11.11.
28924         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28925         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28926         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28927         AC_USE_SYSTEM_EXTENSIONS.
28928         * modules/fnmatch (Depends-on): Add extensions.
28929         * modules/mbrlen (Depends-on): Likewise.
28930         * modules/mbrtowc (Depends-on): Likewise.
28931         * modules/mbsinit (Depends-on): Likewise.
28932         * modules/mbsrtowcs (Depends-on): Likewise.
28933         * modules/mbswidth (Depends-on): Likewise.
28934         * modules/quotearg (Depends-on): Likewise.
28935         * modules/strftime (Depends-on): Likewise.
28936
28937 2008-12-20  Bruno Haible  <bruno@clisp.org>
28938
28939         Ensure wctob is declared on IRIX 6.5.
28940         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28941         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28942         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28944         of HAVE_WCTOB.
28945         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28946         HAVE_WCTOB.
28947         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28948
28949 2008-12-19  Bruno Haible  <bruno@clisp.org>
28950
28951         * modules/mbsrtowcs-tests: New file.
28952         * tests/test-mbsrtowcs1.sh: New file.
28953         * tests/test-mbsrtowcs2.sh: New file.
28954         * tests/test-mbsrtowcs3.sh: New file.
28955         * tests/test-mbsrtowcs4.sh: New file.
28956         * tests/test-mbsrtowcs.c: New file.
28957
28958         New module 'mbsrtowcs'.
28959         * lib/wchar.in.h (mbsrtowcs): New declaration.
28960         * lib/mbsrtowcs.c: New file.
28961         * m4/mbsrtowcs.m4: New file.
28962         * modules/mbsrtowcs: New file.
28963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28964         HAVE_MBSRTOWCS.
28965         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28966         HAVE_MBSRTOWCS.
28967         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28968
28969 2008-12-19  Bruno Haible  <bruno@clisp.org>
28970
28971         New module 'mbrlen'.
28972         * lib/wchar.in.h (mbrlen): New declaration.
28973         * lib/mbrlen.c: New file.
28974         * m4/mbrlen.m4: New file.
28975         * modules/mbrlen: New file.
28976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28977         HAVE_MBRLEN.
28978         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28979         HAVE_MBRLEN.
28980         * doc/posix-functions/mbrlen.texi: Document the new module.
28981
28982 2008-12-19  Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28985         * modules/mbrtowc (Depends-on): Add verify.
28986         Suggested by Paul Eggert.
28987
28988 2008-12-18  Bruno Haible  <bruno@clisp.org>
28989
28990         * modules/mbsinit-tests: New file.
28991         * tests/test-mbsinit.sh: New file.
28992         * tests/test-mbsinit.c: New file.
28993
28994 2008-12-18  Bruno Haible  <bruno@clisp.org>
28995
28996         * modules/mbrtowc-tests: New file.
28997         * tests/test-mbrtowc1.sh: New file.
28998         * tests/test-mbrtowc2.sh: New file.
28999         * tests/test-mbrtowc3.sh: New file.
29000         * tests/test-mbrtowc4.sh: New file.
29001         * tests/test-mbrtowc.c: New file.
29002
29003         New module 'mbrtowc'.
29004         * lib/wchar.in.h (mbstate_t): Override when the system does not have
29005         mbsinit and mbrtowc.
29006         (mbrtowc): New declaration.
29007         * lib/mbrtowc.c: New file.
29008         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
29009         * modules/mbrtowc: New file.
29010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
29011         HAVE_MBRTOWC.
29012         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
29013         HAVE_MBRTOWC.
29014         * doc/posix-functions/mbrtowc.texi: Document the new module.
29015
29016 2008-12-18  Bruno Haible  <bruno@clisp.org>
29017
29018         New module 'wctob'.
29019         * lib/wchar.in.h (wctob): New declaration.
29020         * lib/wctob.c: New file.
29021         * m4/wctob.m4: New file.
29022         * modules/wctob: New file.
29023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
29024         HAVE_WCTOB.
29025         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
29026         * doc/posix-functions/wctob.texi: Document the new module.
29027
29028 2008-12-18  Bruno Haible  <bruno@clisp.org>
29029
29030         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
29031         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
29032
29033 2008-12-18  Simon Josefsson  <simon@josefsson.org>
29034
29035         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
29036         G. Christensen" <tgc@jupiterrise.com>.
29037
29038         * lib/flock.c: Need to include errno.h.  Reported by "Tom
29039         G. Christensen" <tgc@jupiterrise.com>.
29040
29041         * lib/flock.c: Need to include string.h.  Reported by "Tom
29042         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
29043         <ebb9@byu.net>.
29044
29045 2008-12-18  Bruno Haible  <bruno@clisp.org>
29046
29047         * m4/locale-ja.m4: New file, from GNU gettext.
29048
29049 2008-12-17  Bruno Haible  <bruno@clisp.org>
29050
29051         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
29052         Suggested by Eric Blake.
29053
29054 2008-12-17  Bruno Haible  <bruno@clisp.org>
29055
29056         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
29057
29058 2008-12-17  Bruno Haible  <bruno@clisp.org>
29059
29060         * lib/mbsinit.c: Include verify.h. Verify an assumption.
29061         * modules/mbsinit (Depends-on): Add verify.
29062         Suggested by Paul Eggert.
29063
29064 2008-12-17  Bruno Haible  <bruno@clisp.org>
29065
29066         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
29067         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
29068         gl_FUNC_MBRTOWC.
29069         * m4/mbiter.m4 (gl_MBITER): LIkewise.
29070         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
29071         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
29072         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
29073         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
29074         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
29075         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
29076         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
29077         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
29078         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
29079         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
29080         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
29081         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
29082         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
29083         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
29084         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29085         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
29086         * modules/trim (configure.ac): Likewise.
29087
29088 2008-12-17  Bruno Haible  <bruno@clisp.org>
29089
29090         * modules/btowc-tests: New file.
29091         * tests/test-btowc1.sh: New file.
29092         * tests/test-btowc2.sh: New file.
29093         * tests/test-btowc.c: New file.
29094
29095         New module 'btowc'.
29096         * lib/wchar.in.h (btowc): New declaration.
29097         * lib/btowc.c: New file.
29098         * m4/btowc.m4: New file.
29099         * modules/btowc: New file.
29100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
29101         HAVE_BTOWC.
29102         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
29103         * doc/posix-functions/btowc.texi: Document the new module.
29104
29105 2008-12-17  Bruno Haible  <bruno@clisp.org>
29106
29107         New module 'mbsinit'.
29108         * lib/wchar.in.h (mbsinit): New declaration.
29109         * lib/mbsinit.c: New file.
29110         * m4/mbsinit.m4: New file.
29111         * modules/mbsinit: New file.
29112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
29113         HAVE_MBSINIT.
29114         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
29115         HAVE_MBSINIT.
29116         * doc/posix-functions/mbsinit.texi: Document the new module.
29117
29118 2008-12-16  Bruno Haible  <bruno@clisp.org>
29119
29120         * lib/unistd.in.h: Add comment.
29121         * tests/test-environ.c: Don't include <stdlib.h>.
29122
29123 2008-12-16  Bruno Haible  <bruno@clisp.org>
29124
29125         * lib/parse-duration.h (parse_duration): Document return value
29126         convention.
29127         * lib/parse-duration.c: Include specification header first. Add
29128         comments.
29129         (_): Remove macro.
29130         (parse_year_month_day, parse_hour_minute_second): Move side effects
29131         outside of strchr call.
29132         (parse_non_iso8601): Move side effects outside of isspace call.
29133         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
29134         call.
29135
29136 2008-12-16  Bruno Haible  <bruno@clisp.org>
29137
29138         * tests/test-parse-duration.sh: Produce no output when the test
29139         succeeds.
29140
29141 2008-12-16  Bruno Haible  <bruno@clisp.org>
29142
29143         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
29144         expressions.
29145
29146 2008-12-15  Bruno Haible  <bruno@clisp.org>
29147
29148         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
29149         * doc/glibc-functions/flistxattr.texi: Likewise.
29150         * doc/glibc-functions/fopencookie.texi: Likewise.
29151         * doc/glibc-functions/fremovexattr.texi: Likewise.
29152         * doc/glibc-functions/fsetxattr.texi: Likewise.
29153         * doc/glibc-functions/getxattr.texi: Likewise.
29154         * doc/glibc-functions/lgetxattr.texi: Likewise.
29155         * doc/glibc-functions/listxattr.texi: Likewise.
29156         * doc/glibc-functions/llistxattr.texi: Likewise.
29157         * doc/glibc-functions/lremovexattr.texi: Likewise.
29158         * doc/glibc-functions/lsetxattr.texi: Likewise.
29159         * doc/glibc-functions/removexattr.texi: Likewise.
29160         * doc/glibc-functions/setxattr.texi: Likewise.
29161         * doc/posix-functions/open_memstream.texi: Likewise.
29162
29163 2008-12-15  Eric Blake  <ebb9@byu.net>
29164
29165         Update doc for cygwin 1.7.
29166         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
29167         functions.
29168         * doc/posix-functions/fchmodat.texi: Likewise.
29169         * doc/posix-functions/fchownat.texi: Likewise.
29170         * doc/posix-functions/fdopendir.texi: Likewise.
29171         * doc/posix-functions/fmemopen.texi: Likewise.
29172         * doc/posix-functions/freeaddrinfo.texi: Likewise.
29173         * doc/posix-functions/fstatat.texi: Likewise.
29174         * doc/posix-functions/futimens.texi: Likewise.
29175         * doc/posix-functions/gai_strerror.texi: Likewise.
29176         * doc/posix-functions/getaddrinfo.texi: Likewise.
29177         * doc/posix-functions/getnameinfo.texi: Likewise.
29178         * doc/posix-functions/if_freenameindex.texi: Likewise.
29179         * doc/posix-functions/if_indextoname.texi: Likewise.
29180         * doc/posix-functions/if_nameindex.texi: Likewise.
29181         * doc/posix-functions/if_nametoindex.texi: Likewise.
29182         * doc/posix-functions/insque.texi: Likewise.
29183         * doc/posix-functions/linkat.texi: Likewise.
29184         * doc/posix-functions/llrint.texi: Likewise.
29185         * doc/posix-functions/llrintf.texi: Likewise.
29186         * doc/posix-functions/llrintl.texi: Likewise.
29187         * doc/posix-functions/lockf.texi: Likewise.
29188         * doc/posix-functions/lrintl.texi: Likewise.
29189         * doc/posix-functions/mkdirat.texi: Likewise.
29190         * doc/posix-functions/mkfifoat.texi: Likewise.
29191         * doc/posix-functions/mknodat.texi: Likewise.
29192         * doc/posix-functions/mq_close.texi: Likewise.
29193         * doc/posix-functions/mq_getattr.texi: Likewise.
29194         * doc/posix-functions/mq_notify.texi: Likewise.
29195         * doc/posix-functions/mq_open.texi: Likewise.
29196         * doc/posix-functions/mq_receive.texi: Likewise.
29197         * doc/posix-functions/mq_send.texi: Likewise.
29198         * doc/posix-functions/mq_setattr.texi: Likewise.
29199         * doc/posix-functions/mq_timedreceive.texi: Likewise.
29200         * doc/posix-functions/mq_timedsend.texi: Likewise.
29201         * doc/posix-functions/mq_unlink.texi: Likewise.
29202         * doc/posix-functions/open_memstream.texi: Likewise.
29203         * doc/posix-functions/openat.texi: Likewise.
29204         * doc/posix-functions/posix_fadvise.texi: Likewise.
29205         * doc/posix-functions/posix_fallocate.texi: Likewise.
29206         * doc/posix-functions/posix_madvise.texi: Likewise.
29207         * doc/posix-functions/posix_memalign.texi: Likewise.
29208         * doc/posix-functions/posix_openpt.texi: Likewise.
29209         * doc/posix-functions/readlinkat.texi: Likewise.
29210         * doc/posix-functions/remque.texi: Likewise.
29211         * doc/posix-functions/renameat.texi: Likewise.
29212         * doc/posix-functions/rintl.texi: Likewise.
29213         * doc/posix-functions/sem_unlink.texi: Likewise.
29214         * doc/posix-functions/shm_open.texi: Likewise.
29215         * doc/posix-functions/shm_unlink.texi: Likewise.
29216         * doc/posix-functions/signgam.texi: Likewise.
29217         * doc/posix-functions/sigset.texi: Likewise.
29218         * doc/posix-functions/stpcpy.texi: Likewise.
29219         * doc/posix-functions/stpncpy.texi: Likewise.
29220         * doc/posix-functions/strerror.texi: Likewise.
29221         * doc/posix-functions/strtod.texi: Likewise.
29222         * doc/posix-functions/symlinkat.texi: Likewise.
29223         * doc/posix-functions/unlinkat.texi: Likewise.
29224         * doc/posix-functions/utimensat.texi: Likewise.
29225         * doc/glibc-functions/bindresvport.texi: Likewise.
29226         * doc/glibc-functions/dn_expand.texi: Likewise.
29227         * doc/glibc-functions/exp10.texi: Likewise.
29228         * doc/glibc-functions/exp10f.texi: Likewise.
29229         * doc/glibc-functions/fgetxattr.texi: Likewise.
29230         * doc/glibc-functions/flistxattr.texi: Likewise.
29231         * doc/glibc-functions/fopencookie.texi: Likewise.
29232         * doc/glibc-functions/freeifaddrs.texi: Likewise.
29233         * doc/glibc-functions/fremovexattr.texi: Likewise.
29234         * doc/glibc-functions/fsetxattr.texi: Likewise.
29235         * doc/glibc-functions/getifaddrs.texi: Likewise.
29236         * doc/glibc-functions/getxattr.texi: Likewise.
29237         * doc/glibc-functions/lgetxattr.texi: Likewise.
29238         * doc/glibc-functions/listxattr.texi: Likewise.
29239         * doc/glibc-functions/llistxattr.texi: Likewise.
29240         * doc/glibc-functions/lremovexattr.texi: Likewise.
29241         * doc/glibc-functions/lsetxattr.texi: Likewise.
29242         * doc/glibc-functions/pow10.texi: Likewise.
29243         * doc/glibc-functions/pow10f.texi: Likewise.
29244         * doc/glibc-functions/rcmd_af.texi: Likewise.
29245         * doc/glibc-functions/removexattr.texi: Likewise.
29246         * doc/glibc-functions/res_init.texi: Likewise.
29247         * doc/glibc-functions/res_mkquery.texi: Likewise.
29248         * doc/glibc-functions/res_query.texi: Likewise.
29249         * doc/glibc-functions/res_querydomain.texi: Likewise.
29250         * doc/glibc-functions/res_send.texi: Likewise.
29251         * doc/glibc-functions/rresvport_af.texi: Likewise.
29252         * doc/glibc-functions/setxattr.texi: Likewise.
29253         * doc/glibc-functions/strcasestr.texi: Likewise.
29254
29255 2008-12-15  Bruno Haible  <bruno@clisp.org>
29256
29257         Fix compilation error on OSF/1 4.0.
29258         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
29259         <sys/time.h>, simply delegate to the system header.
29260         Reported by Daniel Richard G. <oss@teragram.com>.
29261
29262 2008-12-15  Bruno Haible  <bruno@clisp.org>
29263
29264         * doc/posix-functions/openat.texi: Mention the 'openat' module.
29265         * doc/posix-functions/fchmodat.texi: Likewise.
29266         * doc/posix-functions/fchownat.texi: Likewise.
29267         * doc/posix-functions/fdopendir.texi: Likewise.
29268         * doc/posix-functions/fstatat.texi: Likewise.
29269         * doc/posix-functions/mkdirat.texi: Likewise.
29270         * doc/posix-functions/unlinkat.texi: Likewise.
29271
29272 2008-12-14  Bruno Haible  <bruno@clisp.org>
29273
29274         Update doc for POSIX:2008.
29275         * doc/posix-functions/faccessat.texi: New file.
29276         * doc/posix-functions/fchmodat.texi: New file.
29277         * doc/posix-functions/fchownat.texi: New file.
29278         * doc/posix-functions/fdopendir.texi: New file.
29279         * doc/posix-functions/fstatat.texi: New file.
29280         * doc/posix-functions/futimens.texi: New file.
29281         * doc/posix-functions/linkat.texi: New file.
29282         * doc/posix-functions/mkdirat.texi: New file.
29283         * doc/posix-functions/mkfifoat.texi: New file.
29284         * doc/posix-functions/mknodat.texi: New file.
29285         * doc/posix-functions/open_wmemstream.texi: New file.
29286         * doc/posix-functions/openat.texi: New file.
29287         * doc/posix-functions/psiginfo.texi: New file.
29288         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
29289         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
29290         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
29291         * doc/posix-functions/readlinkat.texi: New file.
29292         * doc/posix-functions/renameat.texi: New file.
29293         * doc/posix-functions/strerror_l.texi: New file.
29294         * doc/posix-functions/symlinkat.texi: New file.
29295         * doc/posix-functions/unlinkat.texi: New file.
29296         * doc/posix-functions/utimensat.texi: New file.
29297         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29298
29299 2008-12-14  Bruno Haible  <bruno@clisp.org>
29300
29301         Update doc for POSIX:2008.
29302         * doc/posix-functions/alphasort.texi: Renamed from
29303         doc/glibc-functions/alphasort.texi.
29304         * doc/posix-functions/dirfd.texi: Renamed from
29305         doc/glibc-functions/dirfd.texi.
29306         * doc/posix-functions/dprintf.texi: Renamed from
29307         doc/glibc-functions/dprintf.texi.
29308         * doc/posix-functions/duplocale.texi: Renamed from
29309         doc/glibc-functions/duplocale.texi.
29310         * doc/posix-functions/fexecve.texi: Renamed from
29311         doc/glibc-functions/fexecve.texi.
29312         * doc/posix-functions/fmemopen.texi: Renamed from
29313         doc/glibc-functions/fmemopen.texi.
29314         * doc/posix-functions/freelocale.texi: Renamed from
29315         doc/glibc-functions/freelocale.texi.
29316         * doc/posix-functions/getdate_err.texi: Renamed from
29317         doc/glibc-functions/getdate_err.texi.
29318         * doc/posix-functions/isalnum_l.texi: Renamed from
29319         doc/glibc-functions/isalnum_l.texi.
29320         * doc/posix-functions/isalpha_l.texi: Renamed from
29321         doc/glibc-functions/isalpha_l.texi.
29322         * doc/posix-functions/isblank_l.texi: Renamed from
29323         doc/glibc-functions/isblank_l.texi.
29324         * doc/posix-functions/iscntrl_l.texi: Renamed from
29325         doc/glibc-functions/iscntrl_l.texi.
29326         * doc/posix-functions/isdigit_l.texi: Renamed from
29327         doc/glibc-functions/isdigit_l.texi.
29328         * doc/posix-functions/isgraph_l.texi: Renamed from
29329         doc/glibc-functions/isgraph_l.texi.
29330         * doc/posix-functions/islower_l.texi: Renamed from
29331         doc/glibc-functions/islower_l.texi.
29332         * doc/posix-functions/isprint_l.texi: Renamed from
29333         doc/glibc-functions/isprint_l.texi.
29334         * doc/posix-functions/ispunct_l.texi: Renamed from
29335         doc/glibc-functions/ispunct_l.texi.
29336         * doc/posix-functions/isspace_l.texi: Renamed from
29337         doc/glibc-functions/isspace_l.texi.
29338         * doc/posix-functions/isupper_l.texi: Renamed from
29339         doc/glibc-functions/isupper_l.texi.
29340         * doc/posix-functions/iswalnum_l.texi: Renamed from
29341         doc/glibc-functions/iswalnum_l.texi.
29342         * doc/posix-functions/iswalpha_l.texi: Renamed from
29343         doc/glibc-functions/iswalpha_l.texi.
29344         * doc/posix-functions/iswblank_l.texi: Renamed from
29345         doc/glibc-functions/iswblank_l.texi.
29346         * doc/posix-functions/iswcntrl_l.texi: Renamed from
29347         doc/glibc-functions/iswcntrl_l.texi.
29348         * doc/posix-functions/iswctype_l.texi: Renamed from
29349         doc/glibc-functions/iswctype_l.texi.
29350         * doc/posix-functions/iswdigit_l.texi: Renamed from
29351         doc/glibc-functions/iswdigit_l.texi.
29352         * doc/posix-functions/iswgraph_l.texi: Renamed from
29353         doc/glibc-functions/iswgraph_l.texi.
29354         * doc/posix-functions/iswlower_l.texi: Renamed from
29355         doc/glibc-functions/iswlower_l.texi.
29356         * doc/posix-functions/iswprint_l.texi: Renamed from
29357         doc/glibc-functions/iswprint_l.texi.
29358         * doc/posix-functions/iswpunct_l.texi: Renamed from
29359         doc/glibc-functions/iswpunct_l.texi.
29360         * doc/posix-functions/iswspace_l.texi: Renamed from
29361         doc/glibc-functions/iswspace_l.texi.
29362         * doc/posix-functions/iswupper_l.texi: Renamed from
29363         doc/glibc-functions/iswupper_l.texi.
29364         * doc/posix-functions/iswxdigit_l.texi: Renamed from
29365         doc/glibc-functions/iswxdigit_l.texi.
29366         * doc/posix-functions/isxdigit_l.texi: Renamed from
29367         doc/glibc-functions/isxdigit_l.texi.
29368         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
29369         doc/glibc-functions/mbsnrtowcs.texi.
29370         * doc/posix-functions/mkdtemp.texi: Renamed from
29371         doc/glibc-functions/mkdtemp.texi.
29372         * doc/posix-functions/newlocale.texi: Renamed from
29373         doc/glibc-functions/newlocale.texi.
29374         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
29375         doc/glibc-functions/nl_langinfo_l.texi.
29376         * doc/posix-functions/open_memstream.texi: Renamed from
29377         doc/glibc-functions/open_memstream.texi.
29378         * doc/posix-functions/opterr.texi: Renamed from
29379         doc/glibc-functions/opterr.texi.
29380         * doc/posix-functions/optind.texi: Renamed from
29381         doc/glibc-functions/optind.texi.
29382         * doc/posix-functions/optopt.texi: Renamed from
29383         doc/glibc-functions/optopt.texi.
29384         * doc/posix-functions/psignal.texi: Renamed from
29385         doc/glibc-functions/psignal.texi.
29386         * doc/posix-functions/scandir.texi: Renamed from
29387         doc/glibc-functions/scandir.texi.
29388         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
29389         doc/glibc-functions/sched_get_priority_min.texi.
29390         * doc/posix-functions/signgam.texi: Renamed from
29391         doc/glibc-functions/signgam.texi.
29392         * doc/posix-functions/stpcpy.texi: Renamed from
29393         doc/glibc-functions/stpcpy.texi.
29394         * doc/posix-functions/stpncpy.texi: Renamed from
29395         doc/glibc-functions/stpncpy.texi.
29396         * doc/posix-functions/strcasecmp_l.texi: Renamed from
29397         doc/glibc-functions/strcasecmp_l.texi.
29398         * doc/posix-functions/strcoll_l.texi: Renamed from
29399         doc/glibc-functions/strcoll_l.texi.
29400         * doc/posix-functions/strfmon_l.texi: Renamed from
29401         doc/glibc-functions/strfmon_l.texi.
29402         * doc/posix-functions/strftime_l.texi: Renamed from
29403         doc/glibc-functions/strftime_l.texi.
29404         * doc/posix-functions/strncasecmp_l.texi: Renamed from
29405         doc/glibc-functions/strncasecmp_l.texi.
29406         * doc/posix-functions/strndup.texi: Renamed from
29407         doc/glibc-functions/strndup.texi.
29408         * doc/posix-functions/strnlen.texi: Renamed from
29409         doc/glibc-functions/strnlen.texi.
29410         * doc/posix-functions/strsignal.texi: Renamed from
29411         doc/glibc-functions/strsignal.texi.
29412         * doc/posix-functions/strxfrm_l.texi: Renamed from
29413         doc/glibc-functions/strxfrm_l.texi.
29414         * doc/posix-functions/timer_gettime.texi: Renamed from
29415         doc/glibc-functions/timer_gettime.texi.
29416         * doc/posix-functions/tolower_l.texi: Renamed from
29417         doc/glibc-functions/tolower_l.texi.
29418         * doc/posix-functions/toupper_l.texi: Renamed from
29419         doc/glibc-functions/toupper_l.texi.
29420         * doc/posix-functions/towctrans_l.texi: Renamed from
29421         doc/glibc-functions/towctrans_l.texi.
29422         * doc/posix-functions/towlower_l.texi: Renamed from
29423         doc/glibc-functions/towlower_l.texi.
29424         * doc/posix-functions/towupper_l.texi: Renamed from
29425         doc/glibc-functions/towupper_l.texi.
29426         * doc/posix-functions/uselocale.texi: Renamed from
29427         doc/glibc-functions/uselocale.texi.
29428         * doc/posix-functions/vdprintf.texi: Renamed from
29429         doc/glibc-functions/vdprintf.texi.
29430         * doc/posix-functions/wcpcpy.texi:
29431         Renamed from doc/glibc-functions/wcpcpy.texi.
29432         * doc/posix-functions/wcpncpy.texi: Renamed from
29433         doc/glibc-functions/wcpncpy.texi.
29434         * doc/posix-functions/wcscasecmp.texi: Renamed from
29435         doc/glibc-functions/wcscasecmp.texi.
29436         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
29437         doc/glibc-functions/wcscasecmp_l.texi.
29438         * doc/posix-functions/wcscoll_l.texi: Renamed from
29439         doc/glibc-functions/wcscoll_l.texi.
29440         * doc/posix-functions/wcsdup.texi: Renamed from
29441         doc/glibc-functions/wcsdup.texi.
29442         * doc/posix-functions/wcsncasecmp.texi: Renamed from
29443         doc/glibc-functions/wcsncasecmp.texi.
29444         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
29445         doc/glibc-functions/wcsncasecmp_l.texi.
29446         * doc/posix-functions/wcsnlen.texi: Renamed from
29447         doc/glibc-functions/wcsnlen.texi.
29448         * doc/posix-functions/wcsnrtombs.texi: Renamed from
29449         doc/glibc-functions/wcsnrtombs.texi.
29450         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
29451         doc/glibc-functions/wcsxfrm_l.texi.
29452         * doc/posix-functions/wctrans_l.texi: Renamed from
29453         doc/glibc-functions/wctrans_l.texi.
29454         * doc/posix-functions/wctype_l.texi: Renamed from
29455         doc/glibc-functions/wctype_l.texi.
29456         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29457         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
29458         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
29459         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
29460         these subsections.
29461         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
29462         Remove sections.
29463
29464 2008-12-14  Bruno Haible  <bruno@clisp.org>
29465
29466         Update doc for POSIX:2008.
29467         * doc/posix-functions/*.texi: Update URL of POSIX specification.
29468
29469 2008-12-14  Bruno Haible  <bruno@clisp.org>
29470
29471         Update doc for POSIX:2008.
29472         * doc/pastposix-functions/bcmp.texi: Renamed from
29473         doc/posix-functions/bcmp.texi.
29474         * doc/pastposix-functions/bcopy.texi: Renamed from
29475         doc/posix-functions/bcopy.texi.
29476         * doc/pastposix-functions/bsd_signal.texi: Renamed from
29477         doc/posix-functions/bsd_signal.texi.
29478         * doc/pastposix-functions/bzero.texi: Renamed from
29479         doc/posix-functions/bzero.texi.
29480         * doc/pastposix-functions/ecvt.texi: Renamed from
29481         doc/posix-functions/ecvt.texi.
29482         * doc/pastposix-functions/fcvt.texi: Renamed from
29483         doc/posix-functions/fcvt.texi.
29484         * doc/pastposix-functions/ftime.texi: Renamed from
29485         doc/posix-functions/ftime.texi.
29486         * doc/pastposix-functions/gcvt.texi: Renamed from
29487         doc/posix-functions/gcvt.texi.
29488         * doc/pastposix-functions/getcontext.texi: Renamed from
29489         doc/posix-functions/getcontext.texi.
29490         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
29491         doc/posix-functions/gethostbyaddr.texi.
29492         * doc/pastposix-functions/gethostbyname.texi: Renamed from
29493         doc/posix-functions/gethostbyname.texi.
29494         * doc/pastposix-functions/getwd.texi: Renamed from
29495         doc/posix-functions/getwd.texi.
29496         * doc/pastposix-functions/h_errno.texi: Renamed from
29497         doc/posix-functions/h_errno.texi.
29498         * doc/pastposix-functions/index.texi: Renamed from
29499         doc/posix-functions/index.texi.
29500         * doc/pastposix-functions/makecontext.texi: Renamed from
29501         doc/posix-functions/makecontext.texi.
29502         * doc/pastposix-functions/mktemp.texi: Renamed from
29503         doc/posix-functions/mktemp.texi.
29504         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
29505         doc/posix-functions/pthread_attr_getstackaddr.texi.
29506         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
29507         doc/posix-functions/pthread_attr_setstackaddr.texi.
29508         * doc/pastposix-functions/rindex.texi: Renamed from
29509         doc/posix-functions/rindex.texi.
29510         * doc/pastposix-functions/scalb.texi: Renamed from
29511         doc/posix-functions/scalb.texi.
29512         * doc/pastposix-functions/setcontext.texi: Renamed from
29513         doc/posix-functions/setcontext.texi.
29514         * doc/pastposix-functions/swapcontext.texi: Renamed from
29515         doc/posix-functions/swapcontext.texi.
29516         * doc/pastposix-functions/ualarm.texi: Renamed from
29517         doc/posix-functions/ualarm.texi.
29518         * doc/pastposix-functions/usleep.texi: Renamed from
29519         doc/posix-functions/usleep.texi.
29520         * doc/pastposix-functions/vfork.texi: Renamed from
29521         doc/posix-functions/vfork.texi.
29522         * doc/pastposix-functions/wcswcs.texi: Renamed from
29523         doc/posix-functions/wcswcs.texi.
29524         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
29525         (Function Substitutes): Update.
29526
29527 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29528
29529         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
29530         m4/strerror.m4.
29531
29532 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29533             Bruno Haible  <bruno@clisp.org>
29534
29535         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
29536
29537 2008-12-13  Bruno Haible  <bruno@clisp.org>
29538
29539         * modules/strtoull (Depends-on): Remove unistd.
29540
29541 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29542
29543         * modules/strtoull (Depends-on): Add stdlib.
29544
29545 2008-12-11  Simon Josefsson  <simon@josefsson.org>
29546
29547         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
29548
29549 2008-12-10  Jim Meyering  <meyering@redhat.com>
29550
29551         gl_ASSERT: don't say assertions are disabled when they're not
29552         * m4/assert.m4 (gl_ASSERT): Do not make configure report
29553         "checking whether to enable assertions... no", when they are in
29554         fact enabled.  This is solely a bug in the output of configure.
29555         In spite of saying "no", NDEBUG was not defined in that case.
29556         Also, as noted by Eric Blake, leave assertions enabled upon
29557         --enable-assert=INVALID.
29558
29559 2008-12-10  Bruno Haible  <bruno@clisp.org>
29560
29561         Change MODULES.html to refer to POSIX:2008 where possible.
29562         * MODULES.html.sh (POSIX2008_URL): New variable.
29563         (posix_headers): Remove sys/timeb, ucontext.
29564         (posix2001_headers): New variable.
29565         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
29566         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
29567         index, makecontext, mktemp, pthread_attr_getstackaddr,
29568         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
29569         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
29570         (posix2001_functions): New variable.
29571         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29572         otherwise.
29573
29574 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29575
29576         add missing include to parse-duration.c
29577         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29578         * modules/parse-duration (Depends-on): Add xalloc.
29579
29580         fix sed script reading maint.mk
29581         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29582         (syntax-check-rules): Use it.
29583
29584 2008-12-09  Bruno Haible  <bruno@clisp.org>
29585
29586         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29587         MacOS X 10.4/PowerPC.
29588         Reported by Simon Josefsson.
29589
29590 2008-12-08  Jim Meyering  <meyering@redhat.com>
29591
29592         work around mingw's lack of some S_IF definitions
29593         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29594         Reported by Simon Josefsson.
29595
29596 2008-12-08  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29599         applied to variables. Needed on MacOS X 10.4/PowerPC.
29600         Reported by Simon Josefsson.
29601
29602 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29603         and Eric Blake  <ebb9@byu.net>
29604
29605         assert: honor --enable-assert
29606         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
29607         order to honor --enable-assert, rather than treating it as a
29608         synonym for --disable-assert.
29609
29610 2008-12-08  Jim Meyering  <meyering@redhat.com>
29611
29612         * lib/posixtm.c: Remove now-useless declaration of mktime.
29613
29614         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
29615
29616 2008-12-07  Bruno Haible  <bruno@clisp.org>
29617
29618         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
29619         test_once): Mark functions as static.
29620         * tests/test-tls.c (test_tls): Likewise.
29621
29622 2008-12-07  Bruno Haible  <bruno@clisp.org>
29623
29624         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
29625         iconv_register_autodetect.
29626
29627 2008-12-07  Jim Meyering  <meyering@redhat.com>
29628
29629         posixtm.c: avoid a warning
29630         * lib/posixtm.c (posixtime): Don't initialize tm0.
29631         It's no longer needed to placate gcc4's -Wuninitialized,
29632         and the attempt to placate would elicit a new warning.
29633
29634         unicodeio.c: mark unused parameters
29635         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29636         (fallback_failure_callback): Likewise.
29637
29638 2008-12-07  Bruno Haible  <bruno@clisp.org>
29639
29640         * gnulib-tool (func_create_testdir): When building the tests
29641         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
29642         Reported by Simon Josefsson.
29643
29644 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29645
29646         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
29647
29648 2008-12-06  Bruno Haible  <bruno@clisp.org>
29649
29650         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
29651         Suggested by Eric Blake.
29652
29653 2008-12-06  Bruno Haible  <bruno@clisp.org>
29654
29655         Fix a c-stack test failure on MacOS X.
29656         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
29657         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
29658         handler for SIGBUS as well.
29659         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
29660         install a signal handler for SIGBUS as well.
29661         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
29662
29663 2008-12-06  Bruno Haible  <bruno@clisp.org>
29664
29665         Advocacy documentation.
29666         * doc/gnulib-intro.texi (Benefits): New section.
29667         * doc/gnulib.texi: Update.
29668
29669 2008-12-06  Bruno Haible  <bruno@clisp.org>
29670
29671         Document the 'manywarnings' module.
29672         * doc/manywarnings.texi: New file.
29673         * doc/gnulib.texi: Include it.
29674
29675 2008-12-05  Eric Blake  <ebb9@byu.net>
29676
29677         tests: silence some gcc warnings
29678         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
29679         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
29680         type mismatches.
29681
29682 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29683             Bruno Haible  <bruno@clisp.org>
29684
29685         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
29686
29687 2008-11-29  Jim Meyering  <meyering@redhat.com>
29688
29689         unicodeio.c: mark unused parameters
29690         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29691         (fallback_failure_callback): Likewise.
29692
29693         fts: fix a thinko
29694         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
29695         (set_stat_type): Return S_IF*-valued "type" directly.
29696         Prompted by James Youngman's spotting a related bug.
29697         Confirmed by further testing through find.
29698
29699         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
29700         * lib/fts.c (D_TYPE): Define.
29701         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
29702         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
29703         (s_ifmt_shift_bits): New function.
29704         (set_stat_type): New function.
29705         (fts_build): When not calling fts_stat, call set_stat_type
29706         to propagate dirent.d_type info to fts_read caller.
29707         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
29708         fts_statp->st_mode type information may be valid.
29709
29710 2008-11-28  Simon Josefsson  <simon@josefsson.org>
29711
29712         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
29713         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
29714         <sds@gnu.org>.
29715
29716 2008-11-20  Bruno Haible  <bruno@clisp.org>
29717
29718         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
29719         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
29720         INCLUDE_NEXT.
29721         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
29722         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
29723         * modules/math (Makefile.am): Substitute
29724         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
29725         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29726
29727 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29728             Bruno Haible  <bruno@clisp.org>
29729
29730         * lib/stdint.in.h: Define all type macros so that their expansion is
29731         a single typedef'ed token. Fixes a compilation failure in Boost which
29732         does "using ::int8_t;".
29733
29734 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29735
29736         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29737         gl_MANYWARN_ALL_GCC.
29738         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29739         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29740         * modules/manywarnings: New file.
29741         * MODULES.html.sh: Mention manywarnings module.
29742
29743 2008-11-18  Bruno Haible  <bruno@clisp.org>
29744
29745         * doc/gnulib-tool.texi (Unit tests): New section.
29746
29747 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29748
29749         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29750         paths like 'lib/po/foo.po'.
29751
29752 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29753
29754         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29755         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29756
29757 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29758
29759         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29760         parameter works.
29761
29762 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29763
29764         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29765
29766 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29767
29768         * modules/parse-duration-tests: New file.
29769         * tests/test-parse-duration.sh: New file.
29770         * tests/test-parse-duration.c: New file.
29771
29772         New module 'parse-duration'.
29773         * lib/parse-duration.h: New file.
29774         * lib/parse-duration.c: New file.
29775         * modules/parse-duration: New file.
29776
29777 2008-11-17  Bruno Haible  <bruno@clisp.org>
29778
29779         * tests/test-select-out.sh: Comment out the first pipe test.
29780         Reported by Simon Josefsson.
29781
29782 2008-11-17  Bruno Haible  <bruno@clisp.org>
29783
29784         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29785         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29786         gl_HOSTENT.
29787
29788 2008-11-17  Bruno Haible  <bruno@clisp.org>
29789
29790         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29791         -lnetwork and -lnet. Needed for Haiku and BeOS.
29792
29793 2008-11-16  Bruno Haible  <bruno@clisp.org>
29794
29795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29796
29797 2008-11-16  Bruno Haible  <bruno@clisp.org>
29798
29799         Avoid test failure on Haiku.
29800         * tests/test-fsync.c: Include <errno.h>.
29801         (main): Don't require that fsync (0) fails.
29802
29803 2008-11-15  Bruno Haible  <bruno@clisp.org>
29804
29805         New module 'hostent'.
29806         * modules/hostent: New file.
29807         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29808
29809 2008-11-15  Bruno Haible  <bruno@clisp.org>
29810
29811         New module 'servent'.
29812         * modules/servent: New file.
29813         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29814
29815 2008-11-15  Bruno Haible  <bruno@clisp.org>
29816
29817         Avoid generating same test program with two different rules.
29818         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29819         test-frexp to test-frexp-nolibm.
29820         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29821         test-frexpl to test-frexpl-nolibm.
29822
29823 2008-11-15  Bruno Haible  <bruno@clisp.org>
29824
29825         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29826         $(FREXPL_LIBM).
29827
29828 2008-11-15  Bruno Haible  <bruno@clisp.org>
29829
29830         * lib/netdb.in.h: Activate the definitions also when the system's
29831         <netdb.h> has 'struct addrinfo'.
29832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29833         EAI_OVERFLOW or AI_NUMERICSERV.
29834         * doc/posix-headers/netdb.texi: Document the problem.
29835
29836 2008-11-15  Bruno Haible  <bruno@clisp.org>
29837
29838         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29839
29840         Make the 'sched' module work on platforms where <sched.h> exists but
29841         is incomplete (such as Haiku).
29842         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29843         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29844         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29845         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29846         HAVE_STRUCT_SCHED_PARAM.
29847         * modules/sched (Depends-on): Add include_next.
29848         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29849         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29850         * doc/posix-headers/sched.texi: Document the issue.
29851
29852 2008-11-13  Jim Meyering  <meyering@redhat.com>
29853
29854         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29855         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29856         test would fail due to the difference in the Report bugs to ...
29857         line.  The expected address is empty, "<>", while the actual
29858         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29859
29860 2008-11-12  Bruno Haible  <bruno@clisp.org>
29861
29862         lstat: don't compile lstat.c on systems lacking lstat
29863         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29864         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29865         Reported by Daniel P. Berrange via Jim Meyering.
29866
29867 2008-11-12  Jim Meyering  <meyering@redhat.com>
29868
29869         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29870
29871 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29872
29873         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29874         instead.
29875
29876 2008-11-12  Bruno Haible  <bruno@clisp.org>
29877
29878         * lib/unicodeio.c: Include unistr.h.
29879         (utf8_wctomb): Remove function.
29880         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29881
29882 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29883
29884         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29885         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29886         <bruno@clisp.org>.
29887         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29888
29889 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29890
29891         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29892         * doc/gnulib.texi: Add section for warnings.
29893
29894 2008-11-11  Bruno Haible  <bruno@clisp.org>
29895
29896         * lib/sockets.h: Add a comment.
29897
29898 2008-11-11  Karl Berry  <karl@gnu.org>
29899
29900         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29901
29902 2008-11-11  Eric Blake  <ebb9@byu.net>
29903
29904         fdl.texi: avoid git symlinks
29905         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29906
29907 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29908
29909         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29910
29911 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29912
29913         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29914         (gl_WARN_ADD): Substitute $2 if literal.
29915
29916 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29917
29918         * m4/warning.m4: Remove.
29919
29920 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29921
29922         * m4/warnings.m4: Almost complete rewrite. :-)
29923
29924 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29925
29926         * modules/warnings: New module.
29927         * m4/warnings.m4: New file.
29928         * MODULES.html.sh: Mention warnings module.
29929         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29930         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29931
29932 2008-11-10  Eric Blake  <ebb9@byu.net>
29933
29934         fdl.texi: make a symlink to the latest version
29935         * doc/standards.texi: Revert today's earlier change.
29936         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29937         * doc/fdl.texi: ...and replace this with a symlink to the newer
29938         fdl-1.3.texi.
29939
29940 2008-11-10  Bruno Haible  <bruno@clisp.org>
29941
29942         * tests/test-select-fd.c (main): Accept the result file name as fourth
29943         argument.
29944         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29945         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29946
29947 2008-11-10  Bruno Haible  <bruno@clisp.org>
29948
29949         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29950         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29951         as autoconf-substituted macros.
29952         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29953         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29954         gl_NETDB_H_DEFAULTS. Set these variables.
29955         * modules/netdb (Makefile.am): Substitute these variables.
29956
29957 2008-11-10  Eric Blake  <ebb9@byu.net>
29958
29959         standards.texi: include correct file for FDL 1.3
29960         * doc/standards.texi (GNU Free Documentation License): Change
29961         include file to pull in FDL 1.3, not 1.2.
29962
29963         fdl.texi: revert accidental change to license
29964         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29965
29966 2008-11-10  Bruno Haible  <bruno@clisp.org>
29967
29968         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29969         cross-compiling guesses also when the native compile gives no result.
29970
29971 2008-11-10  Bruno Haible  <bruno@clisp.org>
29972
29973         * lib/spawni.c (__spawni): Force variable into the stack.
29974
29975 2008-11-10  Bruno Haible  <bruno@clisp.org>
29976
29977         Add support for Haiku.
29978         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29979         glibc and BeOS, but also on Haiku.
29980         * lib/fpurge.c (fpurge): Likewise.
29981         * lib/freadable.c (freadable): Likewise.
29982         * lib/freadahead.c (freadahead): Likewise.
29983         * lib/freading.c (freading): Likewise.
29984         * lib/freadptr.c (freadptr): Likewise.
29985         * lib/freadseek.c (freadptrinc): Likewise.
29986         * lib/fseeko.c (rpl_fseeko): Likewise.
29987         * lib/fseterr.c (fseterr): Likewise.
29988         * lib/fwritable.c (fwritable): Likewise.
29989         * lib/fwriting.c (fwriting): Likewise.
29990         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29991
29992 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29993
29994         * lib/config.charset: Treat Haiku like BeOS.
29995
29996 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29997
29998         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29999         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
30000
30001 2008-11-08  Bruno Haible  <bruno@clisp.org>
30002
30003         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
30004         AC_CACHE_CHECK.
30005
30006 2008-11-08  Bruno Haible  <bruno@clisp.org>
30007
30008         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
30009
30010 2008-11-08  Bruno Haible  <bruno@clisp.org>
30011
30012         * tests/test-select-fd.c: New file.
30013         * tests/test-select-in.sh: New file.
30014         * tests/test-select-out.sh: New file.
30015         * tests/test-select-stdin.c: New file.
30016         * modules/select-tests (Files): Add the new files.
30017         (Depends-on): Add gettimeofday.
30018         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
30019         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
30020         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
30021
30022 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
30023             Bruno Haible  <bruno@clisp.org>
30024
30025         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
30026
30027 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
30028
30029         * build-aux/pmccabe2html: Added support for C++ source files.
30030
30031 2008-11-05  Ben Pfaff  <blp@gnu.org>
30032
30033         Fix lib/close.c build on Windows.
30034         * modules/close (Files): Add lib/w32sock.h.
30035
30036 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
30037
30038         Accept Bison's NEWS format.
30039         * build-aux/announce-gen (print_news_deltas): Tweak
30040         $re_prefix.
30041
30042 2008-11-04  Bruno Haible  <bruno@clisp.org>
30043
30044         * modules/random_r (Maintainer): Add glibc.
30045
30046 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30047
30048         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
30049         by karl@freefriends.org (Karl Berry).
30050         * doc/alloca.texi: Likewise.
30051         * doc/c-ctype.texi: Likewise.
30052         * doc/c-strcase.texi: Likewise.
30053         * doc/c-strcaseeq.texi: Likewise.
30054         * doc/c-strcasestr.texi: Likewise.
30055         * doc/c-strstr.texi: Likewise.
30056         * doc/c-strtod.texi: Likewise.
30057         * doc/c-strtold.texi: Likewise.
30058         * doc/ctime.texi: Likewise.
30059         * doc/error.texi: Likewise.
30060         * doc/fdl.texi: Likewise.
30061         * doc/gcd.texi: Likewise.
30062         * doc/getdate.texi: Likewise.
30063         * doc/gnulib-intro.texi: Likewise.
30064         * doc/gnulib-tool.texi: Likewise.
30065         * doc/gnulib.texi: Likewise.
30066         * doc/inet_ntoa.texi: Likewise.
30067         * doc/maintain.texi: Likewise.
30068         * doc/make-stds.texi: Likewise.
30069         * doc/quote.texi: Likewise.
30070         * doc/regexprops-generic.texi: Likewise.
30071         * doc/standards.texi: Likewise.
30072         * doc/verify.texi: Likewise.
30073         * doc/visibility.texi: Likewise.
30074         * doc/gnulib.texi (GNU Free Documentation License): Include
30075         fdl-1.3.texi instead of fdl.texi.
30076
30077 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30078
30079         * doc/fdl-1.3.texi: New file, from
30080         <http://www.gnu.org/licenses/fdl-1.3.texi>.
30081         * modules/fdl-1.3: Add.
30082         * MODULES.html.sh: Add fdl-1.3.
30083
30084 2008-11-03  Bruno Haible  <bruno@clisp.org>
30085
30086         Make determination of absolute name of header file work with AIX xlc.
30087         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
30088         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
30089         preprocessing.
30090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30091         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30092
30093 2008-11-03  Simon Josefsson  <simon@josefsson.org>
30094
30095         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
30096         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
30097         <ludo@gnu.org>.
30098
30099 2008-11-02  Bruno Haible  <bruno@clisp.org>
30100
30101         Mark 'strpbrk' obsolete.
30102         * modules/strpbrk (Status, Notice): New sections.
30103         * modules/strtok_r (Depends-on): Add strpbrk.
30104
30105 2008-11-02  Bruno Haible  <bruno@clisp.org>
30106
30107         Mark 'strdup' obsolete.
30108         * modules/strdup (Status, Notice): New sections.
30109         * modules/findprog (Depends-on): Add strdup.
30110         * modules/getaddrinfo (Depends-on): Likewise.
30111         * modules/localename (Depends-on): Likewise.
30112         * modules/relocatable-lib (Depends-on): Likewise.
30113         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
30114         * modules/relocatable-prog (Depends-on): Likewise.
30115         * modules/trim (Depends-on): Likewise.
30116         * modules/unictype/gen-ctype (Depends-on): Likewise.
30117         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30118
30119 2008-11-02  Bruno Haible  <bruno@clisp.org>
30120
30121         Mark 'strcspn' obsolete.
30122         * modules/strcspn (Status, Notice): New sections.
30123
30124 2008-11-02  Bruno Haible  <bruno@clisp.org>
30125
30126         Mark 'rmdir' obsolete.
30127         * modules/rmdir (Status, Notice): New sections.
30128         * modules/clean-temp (Depends-on): Add rmdir.
30129         * modules/openat (Depends-on): Likewise.
30130
30131 2008-11-02  Bruno Haible  <bruno@clisp.org>
30132
30133         Mark 'raise' obsolete.
30134         * modules/raise (Status, Notice): New sections.
30135         (Include): Specify <signal.h>.
30136         * modules/stdio (Depends-on): Add raise.
30137         * modules/write (Depends-on): Likewise.
30138
30139 2008-11-02  Bruno Haible  <bruno@clisp.org>
30140
30141         Mark 'memset' obsolete.
30142         * modules/memset (Status, Notice): New sections.
30143
30144 2008-11-02  Bruno Haible  <bruno@clisp.org>
30145
30146         Mark 'memmove' obsolete.
30147         * modules/memmove (Status, Notice): New sections.
30148         * modules/argp (Depends-on): Add memmove.
30149         * modules/argz (Depends-on): Likewise.
30150         * modules/canonicalize (Depends-on): Likewise.
30151         * modules/canonicalize-lgpl (Depends-on): Likewise.
30152         * modules/fts (Depends-on): Likewise.
30153         * modules/getcwd (Depends-on): Likewise.
30154         * modules/human (Depends-on): Likewise.
30155         * modules/regex (Depends-on): Likewise.
30156         * modules/striconveh (Depends-on): Likewise.
30157         * modules/trim (Depends-on): Likewise.
30158         * modules/unistr/u8-move (Depends-on): Likewise.
30159         * modules/unistr/u16-move (Depends-on): Likewise.
30160         * modules/unistr/u32-move (Depends-on): Likewise.
30161
30162 2008-11-02  Bruno Haible  <bruno@clisp.org>
30163
30164         Mark 'memcpy' obsolete.
30165         * modules/memcpy (Status, Notice): New sections.
30166
30167 2008-11-02  Bruno Haible  <bruno@clisp.org>
30168
30169         Mark 'memcmp' obsolete.
30170         * modules/memcmp (Status, Notice): New sections.
30171         * modules/argmatch (Depends-on): Add memchr.
30172         * modules/backupfile (Depends-on): Likewise.
30173         * modules/c-strcasestr (Depends-on): Likewise.
30174         * modules/crypto/des (Depends-on): Likewise.
30175         * modules/csharpcomp (Depends-on): Likewise.
30176         * modules/fnmatch (Depends-on): Likewise.
30177         * modules/git-merge-changelog (Depends-on): Likewise.
30178         * modules/isnand (Depends-on): Likewise.
30179         * modules/isnand-nolibm (Depends-on): Likewise.
30180         * modules/isnanf (Depends-on): Likewise.
30181         * modules/isnanf-nolibm (Depends-on): Likewise.
30182         * modules/isnanl (Depends-on): Likewise.
30183         * modules/isnanl-nolibm (Depends-on): Likewise.
30184         * modules/mbchar (Depends-on): Likewise.
30185         * modules/memcoll (Depends-on): Likewise.
30186         * modules/quotearg (Depends-on): Likewise.
30187         * modules/regex (Depends-on): Likewise.
30188         * modules/relocatable-prog (Depends-on): Likewise.
30189         * modules/same (Depends-on): Likewise.
30190         * modules/signbit (Depends-on): Likewise.
30191         * modules/strcasestr-simple (Depends-on): Likewise.
30192         * modules/unictype/gen-ctype (Depends-on): Likewise.
30193         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30194         * modules/uniname/uniname (Depends-on): Likewise.
30195         * modules/unistr/u8-cmp (Depends-on): Likewise.
30196
30197 2008-11-02  Bruno Haible  <bruno@clisp.org>
30198
30199         Mark 'memchr' obsolete.
30200         * modules/memchr (Status, Notice): New sections.
30201         * modules/argp (Depends-on): Add memchr.
30202         * modules/base64 (Depends-on): Likewise.
30203         * modules/c-strcasestr (Depends-on): Likewise.
30204         * modules/chdir-long (Depends-on): Likewise.
30205         * modules/fnmatch (Depends-on): Likewise.
30206         * modules/getsubopt (Depends-on): Likewise.
30207         * modules/git-merge-changelog (Depends-on): Likewise.
30208         * modules/glob (Depends-on): Likewise.
30209         * modules/strcasestr-simple (Depends-on): Likewise.
30210         * modules/strnlen (Depends-on): Likewise.
30211
30212 2008-11-02  Bruno Haible  <bruno@clisp.org>
30213
30214         Mark 'atexit' obsolete.
30215         * modules/atexit (Status, Notice): New sections.
30216         * modules/chdir-long (Depends-on): Add atexit.
30217         * modules/wait-process (Depends-on): Likewise.
30218
30219 2008-11-02  Bruno Haible  <bruno@clisp.org>
30220
30221         * gnulib-tool: New option --with-obsolete.
30222         (func_usage): Document it.
30223         (func_modules_transitive_closure): Drop obsolete dependencies if
30224         incobsolete is not true.
30225         (func_import): Read and save the incobsolete variable to the cache.
30226
30227 2008-11-02  Bruno Haible  <bruno@clisp.org>
30228
30229         * modules/TEMPLATE-EXTENDED: New field 'Status'.
30230         * gnulib-tool: New option --extract-status.
30231         (func_usage): Document it.
30232         (sed_extract_prog): Recognize it.
30233         (func_get_status): New function.
30234
30235 2008-10-30  Simon Josefsson  <simon@josefsson.org>
30236
30237         * modules/sockets (License): Change from LGPL to LGPLv2+.
30238
30239 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30240
30241         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
30242
30243 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30244
30245         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30246         Mention times and sys_times.
30247         * modules/sys_times, modules/sys_times-tests: New modules.
30248         * modules/times, modules/times-tests: Likewise
30249         * m4/sys_times_h.m4: New file.
30250         * lib/sys_times.in.h: Likewise
30251         * lib/times.c: Likewise.
30252         * tests/test-sys_times.c: Likewise.
30253         * tests/test-times.c: Likewise.
30254         * doc/posix-headers/sys_times.texi: Update.
30255         * doc/posix-functions/times.texi: Update.
30256
30257 2008-10-28  Jim Meyering  <meyering@redhat.com>
30258
30259         * modules/tempname (Depends-on): Add lstat.
30260
30261         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
30262
30263 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30264
30265         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
30266         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
30267         using idiom used elsewhere in gnulib.
30268
30269 2008-10-27  Jim Meyering  <meyering@redhat.com>
30270
30271         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
30272
30273 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30274
30275         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
30276         TESTS_ENVIRONMENT, for shell scripts that needs to call built
30277         programs.
30278         * tests/test-argp-2.sh: Use $EXEEXT when needed.
30279
30280 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30281
30282         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
30283
30284 2008-10-27  Bruno Haible  <bruno@clisp.org>
30285
30286         * tests/test-lstat.c: Include <stdio.h>.
30287
30288 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30289
30290         * modules/lstat-tests: New module.
30291         * tests/test-lstat.c: New file.
30292
30293 2008-10-26  Jim Meyering  <meyering@redhat.com>
30294
30295         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
30296
30297 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30298             Bruno Haible  <bruno@clisp.org>
30299
30300         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
30301         * modules/configmake (Include): Add a note that the include must come
30302         after all system headers.
30303         * lib/javaversion.c: Include configmake.h after all other includes.
30304
30305 2008-10-26  Bruno Haible  <bruno@clisp.org>
30306
30307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
30308         HAVE_STRUCT_RANDOM_DATA to 1.
30309         (gl_STDLIB_H): Simplify.
30310
30311 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30312
30313         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
30314         substitute HAVE_STRUCT_RANDOM_DATA.
30315         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
30316         random_data.
30317         * modules/stdlib (Makefile.am): Substitute
30318         HAVE_STRUCT_RANDOM_DATA.
30319
30320 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30321
30322         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
30323         * doc/gnulib-intro.texi (Copyright): Likewise.
30324
30325 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30326
30327         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
30328         findings.
30329
30330 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
30331             Bruno Haible  <bruno@clisp.org>
30332
30333         * lib/unistd.in.h: Include <winsock2.h>.
30334         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
30335         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
30336         Provide dummy declarations.
30337         (gethostname): Override.
30338         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
30339         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
30340         gl_PREREQ_SYS_H_WINSOCK2.
30341         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
30342         * doc/posix-functions/gethostname.texi: More details.
30343
30344 2008-10-25  Bruno Haible  <bruno@clisp.org>
30345
30346         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30347         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
30348         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
30349
30350         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
30351         here ...
30352         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
30353         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
30354         gl_UNISTD_H_DEFAULTS.
30355
30356 2008-10-25  Eric Blake  <ebb9@byu.net>
30357
30358         signbit: avoid spurious compiler failure
30359         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
30360         declarations inside function.
30361
30362 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30363             Bruno Haible  <bruno@clisp.org>
30364
30365         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
30366         * modules/random_r (Depends-on): Add stdint.
30367
30368 2008-10-24  Bruno Haible  <bruno@clisp.org>
30369
30370         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
30371         Eggert.
30372         * modules/strerror (License): Likewise.
30373
30374 2008-10-24  Jim Meyering  <meyering@redhat.com>
30375
30376         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
30377         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
30378
30379 2008-10-24  Eric Blake  <ebb9@byu.net>
30380
30381         getgroups: fix compilation when getgroups is available
30382         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
30383         but with <config.h> override of getgroups disabled.
30384
30385 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30386
30387         * doc/gnulib.texi (Header files): Add note about C++ problems.
30388         Explained by Bruno Haible <bruno@clisp.org>.
30389
30390 2008-10-23  Bruno Haible  <bruno@clisp.org>
30391
30392         Define a dummy SA_NODEFER macro on Interix.
30393         * lib/signal.in.h (SA_NODEFER): Define fallback.
30394         Reported by Aleksey Cheusov <cheusov@tut.by> via
30395         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
30396
30397 2008-10-23  Bruno Haible  <bruno@clisp.org>
30398
30399         * modules/freadahead (License): Change to LGPLv2+.
30400         Suggested by Simon Josefsson.
30401
30402 2008-10-23  Jim Meyering  <meyering@redhat.com>
30403
30404         random_r: new module
30405         * modules/random_r: New file.
30406         * m4/random_r.m4: New file.
30407         * lib/random_r.c: New file, from glibc.
30408         * modules/random_r-tests: New file.
30409         * tests/test-random_r.c: New file.
30410         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
30411          Declare.
30412         (RAND_MAX): Define.
30413         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
30414         * modules/stdlib: Substitute them, too.
30415         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
30416         * doc/glibc-functions/initstate_r.texi: Mention the new module.
30417         * doc/glibc-functions/random_r.texi: Likewise.
30418         * doc/glibc-functions/setstate_r.texi: Likewise.
30419         * doc/glibc-functions/srandom_r.texi: Likewise.
30420         * config/srclist.txt: Mention it.
30421
30422 2008-10-23  David Lutterkort  <lutter@redhat.com>
30423
30424         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
30425         link requirement
30426
30427 2008-10-23  Jim Meyering  <meyering@redhat.com>
30428
30429         selinux-h: mark parameters of stub functions as intentionally unused
30430         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
30431         * lib/se-context.in.h: Likewise.
30432
30433 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30434
30435         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
30436
30437 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30438
30439         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
30440
30441 2008-10-22  Eric Blake  <ebb9@byu.net>
30442
30443         glthread/thread: avoid compiler warning
30444         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
30445         Add unreachable abort to silence compiler.
30446
30447 2008-10-22  Eric Blake  <ebb9@byu.net>
30448
30449         netdb: also supply struct addrinfo for cygwin 1.5.x
30450         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
30451         older cygwin.
30452         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
30453         cygwin.
30454         * doc/posix-headers/netdb.texi (netdb.h): Document this.
30455
30456 2008-10-22  Bruno Haible  <bruno@clisp.org>
30457
30458         * users.txt: Update entry about pspp.
30459
30460 2008-10-21  Bruno Haible  <bruno@clisp.org>
30461
30462         Simplification.
30463         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
30464         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
30465
30466         Simplification.
30467         * lib/ioctl.c (ioctl): Don't undefine.
30468         * lib/socket.c (socket): Don't undefine.
30469
30470         Remove unused module indicator macros.
30471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
30472         GNULIB_$1 as a C macro.
30473
30474         * doc/posix-functions/close.texi: Undo last change.
30475         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
30476         Windows platforms.
30477
30478 2008-10-21  Bruno Haible  <bruno@clisp.org>
30479
30480         Add gethostname() declaration to <unistd.h>.
30481         * lib/unistd.in.h (gethostname): New declaration.
30482         * lib/gethostname.c: Include <unistd.h>.
30483         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
30484         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
30485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
30486         and HAVE_GETHOSTNAME.
30487         * modules/gethostname (Depends-on): Add unistd.
30488         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30489         (Include): Specify <unistd.h>.
30490         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
30491         HAVE_GETHOSTNAME.
30492         * tests/test-gethostname.c: Include <unistd.h> first.
30493
30494 2008-10-21  Bruno Haible  <bruno@clisp.org>
30495
30496         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
30497         * modules/select-tests (Depends-on): Likewise.
30498         Reported by Simon Josefsson.
30499
30500 2008-10-21  Simon Josefsson  <simon@josefsson.org>
30501
30502         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
30503         * lib/accept.c: New file, based on winsock.c.
30504         * lib/bind.c: New file, based on winsock.c.
30505         * lib/connect.c: New file, based on winsock.c.
30506         * lib/getpeername.c: New file, based on winsock.c.
30507         * lib/getsockname.c: New file, based on winsock.c.
30508         * lib/getsockopt.c: New file, based on winsock.c.
30509         * lib/ioctl.c: New file, based on winsock.c.
30510         * lib/listen.c: New file, based on winsock.c.
30511         * lib/recv.c: New file, based on winsock.c.
30512         * lib/recvfrom.c: New file, based on winsock.c.
30513         * lib/send.c: New file, based on winsock.c.
30514         * lib/sendto.c: New file, based on winsock.c.
30515         * lib/setsockopt.c: New file, based on winsock.c.
30516         * lib/shutdown.c: New file, based on winsock.c.
30517         * lib/socket.c: New file, based on winsock.c.
30518         * lib/w32sock.h: New file, based on winsock.c.
30519         * lib/winsock.c: Remove file.
30520         * modules/accept: Likewise.
30521         * modules/bind: Likewise.
30522         * modules/connect: Likewise.
30523         * modules/getpeername: Likewise.
30524         * modules/getsockname: Likewise.
30525         * modules/getsockopt: Likewise.
30526         * modules/ioctl: Likewise.
30527         * modules/listen: Likewise.
30528         * modules/recv: Likewise.
30529         * modules/recvfrom: Likewise.
30530         * modules/send: Likewise.
30531         * modules/sendto: Likewise.
30532         * modules/setsockopt: Likewise.
30533         * modules/shutdown: Likewise.
30534         * modules/socket: Use socket.c instead of winsock.c.
30535         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
30536         * doc/posix-functions/accept.texi: Doc fix.
30537         * doc/posix-functions/bind.texi: Doc fix.
30538         * doc/posix-functions/close.texi: Doc fix.
30539         * doc/posix-functions/connect.texi: Doc fix.
30540         * doc/posix-functions/getpeername.texi: Doc fix.
30541         * doc/posix-functions/getsockname.texi: Doc fix.
30542         * doc/posix-functions/getsockopt.texi: Doc fix.
30543         * doc/posix-functions/ioctl.texi: Doc fix.
30544         * doc/posix-functions/listen.texi: Doc fix.
30545         * doc/posix-functions/recv.texi: Doc fix.
30546         * doc/posix-functions/recvfrom.texi: Doc fix.
30547         * doc/posix-functions/send.texi: Doc fix.
30548         * doc/posix-functions/sendto.texi: Doc fix.
30549         * doc/posix-functions/setsockopt.texi: Doc fix.
30550         * doc/posix-functions/shutdown.texi: Doc fix.
30551         * doc/posix-functions/socket.texi: Doc fix.
30552
30553 2008-10-20  Bruno Haible  <bruno@clisp.org>
30554
30555         Take into account the role of SIGABRT_COMPAT on Windows 2008.
30556         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
30557         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
30558         as an alias for SIGABRT.
30559         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
30560         (sigaction): Map it to SIGABRT.
30561         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
30562
30563 2008-10-20  Bruno Haible  <bruno@clisp.org>
30564
30565         * lib/fts.c: Don't include lstat.h.
30566         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
30567
30568         Move the lstat() declaration to <sys/stat.h>.
30569         * lib/lstat.h: Remove file.
30570         * lib/sys_stat.in.h: Add special invocation convention.
30571         (lstat): New declaration.
30572         * lib/lstat.c (orig_lstat): New function.
30573         (rpl_lstat): Use orig_lstat instead of lstat.
30574         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30575         AC_C_INLINE. Set REPLACE_LSTAT.
30576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30577         and REPLACE_LSTAT.
30578         * modules/lstat (Files): Remove lib/lstat.h.
30579         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30580         (Include): Specify <sys/stat.h> instead of lstat.h.
30581         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30582         REPLACE_LSTAT.
30583         * NEWS: Mention the change.
30584
30585 2008-10-20  Bruno Haible  <bruno@clisp.org>
30586
30587         * modules/posix_spawn-tests: New file.
30588         * tests/test-posix_spawn3.c: New file.
30589
30590 2008-10-20  Bruno Haible  <bruno@clisp.org>
30591
30592         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30593         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30594         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30595         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30596         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30597
30598 2008-10-20  Bruno Haible  <bruno@clisp.org>
30599
30600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30601         of posix_spawn on AIX 5.3.
30602
30603 2008-10-20  Bruno Haible  <bruno@clisp.org>
30604
30605         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
30606
30607 2008-10-20  Bruno Haible  <bruno@clisp.org>
30608
30609         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
30610         of AC_LANG_PROGRAM.
30611
30612 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30613
30614         * lib/netdb.in.h: Don't define GNU specific constants until they
30615         are supported or needed.  Reported by Bruno Haible
30616         <bruno@clisp.org>.
30617
30618 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30619
30620         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
30621
30622 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30623
30624         * lib/getaddrinfo.h: Remove file.
30625         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
30626         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
30627         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
30628         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
30629         * modules/netdb: Substitute GNULIB_GETADDRINFO.
30630         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
30631         * tests/test-getaddrinfo.c: Likewise.
30632         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
30633         * NEWS: Mention change.
30634
30635 2008-10-19  Bruno Haible  <bruno@clisp.org>
30636
30637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
30638
30639 2008-10-19  Bruno Haible  <bruno@clisp.org>
30640
30641         * lib/wait-process.c: Include simply <sys/wait.h>.
30642         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
30643         WIFSTOPPED): Remove fallback definitions.
30644         * modules/wait-process (Depends-on): Add sys_wait.
30645
30646         New module 'sys_wait'.
30647         * modules/sys_wait: New file.
30648         * lib/sys_wait.in.h: New file, partially copied from
30649         lib/wait-process.c.
30650         * m4/sys_wait_h.m4: New file.
30651         * doc/posix-headers/sys_wait.texi: Mention the new module.
30652
30653 2008-10-19  Bruno Haible  <bruno@clisp.org>
30654
30655         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
30656
30657 2008-10-19  Bruno Haible  <bruno@clisp.org>
30658
30659         Assume that waitpid() fills an 'int' status, not a 'union wait'.
30660         * lib/wait-process.c (WAIT_T): Remove type.
30661         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
30662         (wait_subprocess): Update.
30663
30664 2008-10-19  Bruno Haible  <bruno@clisp.org>
30665
30666         New module 'atoll'.
30667         * modules/atoll: New file.
30668         * lib/stdlib.in.h (atoll): New declaration.
30669         * lib/atoll.c: New file, from glibc with modifications.
30670         * m4/atoll.m4: New file.
30671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
30672         HAVE_ATOLL.
30673         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
30674         * doc/posix-functions/atoll.texi: Mention the new module.
30675
30676 2008-10-19  Bruno Haible  <bruno@clisp.org>
30677
30678         Add strtoull() declaration to <stdlib.h>.
30679         * lib/stdlib.in.h (strtoull): New declaration.
30680         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30681         Set HAVE_STRTOULL.
30682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
30683         HAVE_STRTOULL.
30684         * modules/strtoull (Depends-on): Add stdlib.
30685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30686         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
30687         HAVE_STRTOULL.
30688
30689 2008-10-19  Bruno Haible  <bruno@clisp.org>
30690
30691         Add strtoll() declaration to <stdlib.h>.
30692         * lib/stdlib.in.h (strtoll): New declaration.
30693         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30694         Set HAVE_STRTOLL.
30695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
30696         HAVE_STRTOLL.
30697         * modules/strtoll (Depends-on): Add stdlib.
30698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30699         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
30700
30701 2008-10-19  Bruno Haible  <bruno@clisp.org>
30702
30703         * modules/bcopy (Depends-on): Add strings.
30704         (Include): Specify <strings.h>.
30705
30706 2008-10-19  Bruno Haible  <bruno@clisp.org>
30707
30708         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
30709
30710 2008-10-19  Bruno Haible  <bruno@clisp.org>
30711
30712         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
30713         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
30714         mingw.
30715
30716 2008-10-19  Bruno Haible  <bruno@clisp.org>
30717
30718         * lib/atanl.c: Don't include isnanl.h.
30719         * lib/cosl.c: Likewise.
30720         * lib/ldexpl.c: Likewise.
30721         * lib/logl.c: Likewise.
30722         * lib/sinl.c: Likewise.
30723         * lib/sqrtl.c: Likewise.
30724         * lib/tanl.c: Likewise.
30725
30726         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
30727         * lib/isnanf.h: Remove file.
30728         * lib/isnand.h: Remove file.
30729         * lib/isnanl.h: Remove file.
30730         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30731         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30732         macros.
30733         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30734         HAVE_ISNANF, don't define it as a C macro.
30735         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30736         HAVE_ISNAND, don't define it as a C macro.
30737         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30738         HAVE_ISNANL, don't define it as a C macro.
30739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30740         HAVE_ISNAN[FDL].
30741         * modules/isnanf (Files): Remove lib/isnanf.h.
30742         (Depends-on): Add math.
30743         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30744         (Include): Specify <math.h> instead of isnanf.h.
30745         * modules/isnand (Files): Remove lib/isnand.h.
30746         (Depends-on): Add math.
30747         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30748         (Include): Specify <math.h> instead of isnand.h.
30749         * modules/isnanl (Files): Remove lib/isnanl.h.
30750         (Depends-on): Add math.
30751         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30752         (Include): Specify <math.h> instead of isnanl.h.
30753         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30754         HAVE_ISNAN[FDL].
30755         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30756         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30757         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30758         * NEWS: Mention the change.
30759
30760 2008-10-18  Bruno Haible  <bruno@clisp.org>
30761
30762         Add getusershell(), setusershell(), endusershell() declarations to
30763         <unistd.h>.
30764         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30765         declarations.
30766         * lib/getusershell.c: Include unistd.h.
30767         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30768         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30769         HAVE_GETUSERSHELL.
30770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30771         and HAVE_GETUSERSHELL.
30772         * modules/getusershell (Depends-on): Add unistd, extensions.
30773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30774         (Include): Specify <unistd.h>.
30775         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30776         HAVE_GETUSERSHELL.
30777
30778 2008-10-18  Bruno Haible  <bruno@clisp.org>
30779
30780         Add a getloadavg() declaration to <stdlib.h>.
30781         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30782         getloadavg declaration.
30783         (getloadavg): New declaration.
30784         * lib/getloadavg.c: Include <stdlib.h> first.
30785         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30786         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30787         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30789         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30790         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30791         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30792         (Include): Specify <stdlib.h>.
30793         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30794         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30795
30796 2008-10-18  Bruno Haible  <bruno@clisp.org>
30797
30798         * lib/dirchownmod.c: Don't include lchmod.h.
30799
30800         Move the lchmod() declaration to <sys/stat.h>.
30801         * lib/lchmod.h: Remove file.
30802         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30803         (lchmod): New declaration, moved here from lib/lchown.h.
30804         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30805         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30806         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30807         and HAVE_LCHMOD.
30808         * modules/lchmod (Files): Remove lib/lchmod.h.
30809         (Depends-on): Add sys_stat, extensions.
30810         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30811         (Include): Specify <sys/stat.h> instead of lchmod.h.
30812         * modules/sys_stat (Depends-on): Add link-warning.
30813         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30814         definition of GL_LINK_WARNING.
30815         * NEWS: Mention the change.
30816
30817 2008-10-18  Bruno Haible  <bruno@clisp.org>
30818
30819         * lib/fchdir.c: Don't include dirfd.h.
30820         * lib/fts.c: Likewise.
30821         * lib/getcwd.c: Likewise.
30822         * lib/glob.c: Likewise.
30823
30824         Move the dirfd() declaration to <dirent.h>.
30825         * lib/dirfd.h: Remove file.
30826         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30827         (dirfd): New declaration.
30828         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30829         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30830         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30831         HAVE_DECL_DIRFD.
30832         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30833         HAVE_DECL_DIRFD.
30834         * modules/dirfd (Files): Remove lib/dirfd.h.
30835         (Depends-on): Add dirent, extensions.
30836         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30837         (Include): Specify <dirent.h> instead of dirfd.h.
30838         * modules/dirent (Depends-on): Add link-warning.
30839         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30840         definition of GL_LINK_WARNING.
30841         * NEWS: Mention the change.
30842
30843 2008-10-18  Bruno Haible  <bruno@clisp.org>
30844
30845         Move the euidaccess() declaration to <unistd.h>.
30846         * lib/euidaccess.h: Remove file.
30847         * lib/unistd.in.h (euidaccess): New declaration.
30848         * lib/euidaccess.c: Don't include euidaccess.h.
30849         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30850         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30852         and HAVE_EUIDACCESS.
30853         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30854         (Depends-on): Add unistd.
30855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30856         (Include): Specify <unistd.h> instead of euidaccess.h.
30857         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30858         HAVE_EUIDACCESS.
30859         * NEWS: Mention the change.
30860
30861 2008-10-18  Bruno Haible  <bruno@clisp.org>
30862
30863         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30864
30865         Move the getdomainname() declaration to <unistd.h>.
30866         * lib/getdomainname.h: Remove file.
30867         * lib/unistd.in.h (getdomainname): New declaration.
30868         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30869         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30870         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30871         HAVE_GETDOMAINNAME.
30872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30873         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30874         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30875         (Depends-on): Add unistd, extensions.
30876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30877         (Includes): Specify <unistd.h> instead of getdomainname.h.
30878         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30879         HAVE_GETDOMAINNAME.
30880         * NEWS: Mention the change.
30881
30882 2008-10-18  Bruno Haible  <bruno@clisp.org>
30883
30884         * modules/dirent: New file.
30885         * m4/dirent_h.m4: New file.
30886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30887         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30888         * modules/fchdir (Files): Remove lib/dirent.in.h.
30889         (Depends-on): Add dirent.
30890         (Makefile.am): Move rules to modules/dirent.
30891         * doc/posix-headers/dirent.texi: Mention the new module.
30892
30893 2008-10-18  Bruno Haible  <bruno@clisp.org>
30894
30895         Avoid -Wunused-parameter warnings in public gnulib header files.
30896         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30897         macro.
30898         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30899
30900 2008-10-18  Bruno Haible  <bruno@clisp.org>
30901
30902         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30903         * doc/glibc-functions/error.texi: Mention the module 'error'.
30904         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30905         * doc/glibc-functions/getdomainname.texi: Mention the module
30906         'getdomainname'.
30907         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30908         * doc/glibc-functions/getpagesize.texi: Mention the module
30909         'getpagesize'.
30910         * doc/glibc-functions/getusershell.texi: Mention the module
30911         'getusershell'.
30912         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30913         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30914         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30915         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30916         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30917         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30918         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30919         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30920         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30921         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30922         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30923         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30924         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30925         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30926
30927 2008-10-17  Bruno Haible  <bruno@clisp.org>
30928
30929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30930         HP-UX and IRIX, use -0.0L.
30931         * tests/test-ceill.c (minus_zero): Likewise.
30932         * tests/test-floorl.c (minus_zero): Likewise.
30933         * tests/test-frexpl.c (minus_zero): Likewise.
30934         * tests/test-isnan.c (minus_zerol): Likewise.
30935         * tests/test-isnanl.h (minus_zero): Likewise.
30936         * tests/test-ldexpl.c (minus_zero): Likewise.
30937         * tests/test-roundl.c (minus_zero): Likewise.
30938         * tests/test-signbit.c (minus_zerol): Likewise.
30939         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30940         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30941         * tests/test-truncl.c (minus_zero): Likewise.
30942         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30943         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30944         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30945         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30946
30947 2008-10-17  Bruno Haible  <bruno@clisp.org>
30948
30949         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30950         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30951         that it gets activated only for gcc >= 3.0.
30952         * lib/dirent.in.h: Likewise.
30953         * lib/errno.in.h: Likewise.
30954         * lib/fcntl.in.h: Likewise.
30955         * lib/float.in.h: Likewise.
30956         * lib/iconv.in.h: Likewise.
30957         * lib/inttypes.in.h: Likewise.
30958         * lib/locale.in.h: Likewise.
30959         * lib/math.in.h: Likewise.
30960         * lib/netdb.in.h: Likewise.
30961         * lib/netinet_in.in.h: Likewise.
30962         * lib/search.in.h: Likewise.
30963         * lib/signal.in.h: Likewise.
30964         * lib/spawn.in.h: Likewise.
30965         * lib/stdarg.in.h: Likewise.
30966         * lib/stdint.in.h: Likewise.
30967         * lib/stdio.in.h: Likewise.
30968         * lib/stdlib.in.h: Likewise.
30969         * lib/string.in.h: Likewise.
30970         * lib/strings.in.h: Likewise.
30971         * lib/sys_file.in.h: Likewise.
30972         * lib/sys_ioctl.in.h: Likewise.
30973         * lib/sys_select.in.h: Likewise.
30974         * lib/sys_socket.in.h: Likewise.
30975         * lib/sys_stat.in.h: Likewise.
30976         * lib/sys_time.in.h: Likewise.
30977         * lib/sysexits.in.h: Likewise.
30978         * lib/time.in.h: Likewise.
30979         * lib/unistd.in.h: Likewise.
30980         * lib/wchar.in.h: Likewise.
30981         * lib/wctype.in.h: Likewise.
30982         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30983
30984 2008-10-17  Jim Meyering  <meyering@redhat.com>
30985
30986         ignore-value: don't depend on inline module
30987         * modules/ignore-value (Depends-on): Remove 'inline'.
30988         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30989         Suggestion from Bruno Haible.
30990
30991 2008-10-17  Bruno Haible  <bruno@clisp.org>
30992
30993         New implementation of condition variables for Win32.
30994         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30995         (gl_linked_waitqueue_t): New type.
30996         (gl_cond_t): Use it.
30997         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30998         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30999         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
31000         (glthread_cond_init_func, glthread_cond_wait_func,
31001         glthread_cond_timedwait_func, glthread_cond_signal_func,
31002         glthread_cond_broadcast_func, glthread_cond_destroy_func):
31003         Reimplemented on the basis of gl_linked_waitqueue_t.
31004         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
31005         gl_waitqueue_t.
31006         (gl_rwlock_t): Update.
31007         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
31008
31009 2008-10-17  Simon Josefsson  <simon@josefsson.org>
31010
31011         * modules/recvfrom (Depends-on): Add dependency on getpeername.
31012         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31013
31014 2008-10-17  Jim Meyering  <meyering@redhat.com>
31015
31016         ignore-value: new module
31017         * modules/ignore-value: New file.
31018         * lib/ignore-value.h: New file.
31019         * MODULES.html.sh (Compiler warning management): New section,
31020         just for this module.  More to come.
31021
31022 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31023
31024         open-safer.c: avoid 'signed and unsigned in conditional...' warning
31025         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
31026         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
31027
31028 2008-10-16  Jim Meyering  <meyering@redhat.com>
31029
31030         openat-die.c: avoid 'no previous prototype' warning
31031         * lib/openat-die.c: Include "openat.h".
31032         Reported by Reuben Thomas <rrt@sc3d.org>.
31033
31034 2008-10-16  Simon Josefsson  <simon@josefsson.org>
31035
31036         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
31037         * lib/netdb.in.h: Fix typo.
31038         Reported by Bruno Haible  <bruno@clisp.org>
31039
31040         * lib/netdb.in.h: Include sys/socket.h for platforms without
31041         netdb.h, to get structures like hostent on MinGW.
31042         * modules/netdb (Depends-on): Add sys_socket.
31043
31044 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31045
31046         * modules/netdb, modules/netdb-tests: New file.
31047         * m4/netdb_h.m4: New file.
31048         * lib/netdb.in.h: Add, currently just an empty file pending
31049         definitions.
31050         * tests/test-netdb.c: New file.
31051         * doc/posix-headers/netdb.texi: Mention that we replace it if
31052         needed.
31053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31054         netdb.
31055
31056 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31057
31058         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
31059         with code.
31060
31061 2008-10-13  Bruno Haible  <bruno@clisp.org>
31062
31063         * lib/glthread/cond.c (glthread_cond_wait_func,
31064         glthread_cond_timedwait_func): Add a comment.
31065
31066 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31067
31068         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
31069         * tests/test-select.c: Likewise,
31070
31071 2008-10-13  Bruno Haible  <bruno@clisp.org>
31072
31073         * lib/glthread/cond.c (glthread_cond_wait_func,
31074         glthread_cond_timedwait_func): Fix variable name.
31075         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31076
31077 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
31078
31079         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
31080         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
31081         struct sockaddr.sa_len.
31082         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
31083
31084 2008-10-13  Simon Josefsson  <simon@josefsson.org>
31085
31086         * build-aux/pmccabe2html: Add css and css_url parameters.
31087
31088 2008-10-12  Bruno Haible  <bruno@clisp.org>
31089
31090         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
31091         calling aclx_get.
31092         Reported by Rainer Tammer <tammer@tammer.net>.
31093
31094 2008-10-12  Bruno Haible  <bruno@clisp.org>
31095
31096         Use msvcrt aware primitives for creation/termination of Win32 threads.
31097         * lib/glthread/thread.c: Include <process.h>.
31098         (glthread_create_func): Use _beginthreadex instead of CreateThread.
31099         (wrapper_func): Update signature.
31100         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
31101
31102 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31103             Bruno Haible  <bruno@clisp.org>
31104
31105         Provide a Win32 implementation of the 'cond' module.
31106         * lib/glthread/cond.h [USE_WIN32]: New implementation.
31107         * lib/glthread/cond.c (glthread_cond_init_func,
31108         glthread_cond_wait_func, glthread_cond_timedwait_func,
31109         glthread_cond_signal_func, glthread_cond_broadcast_func,
31110         glthread_cond_destroy_func) [USE_WIN32]: New functions.
31111         * modules/cond (Dependencies): Add gettimeofday.
31112
31113 2008-10-11  Bruno Haible  <bruno@clisp.org>
31114
31115         Make sleep work on older versions of mingw.
31116         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
31117         only whether it exists.
31118         * doc/posix-functions/sleep.texi: Mention the problem with older
31119         versions of mingw.
31120
31121 2008-10-11  Bruno Haible  <bruno@clisp.org>
31122
31123         New module 'shutdown'.
31124         * modules/shutdown: New file.
31125         * lib/sys_socket.in.h (shutdown): New declaration.
31126         * lib/winsock.c (shutdown): New function.
31127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31128         GNULIB_SHUTDOWN.
31129         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
31130         * doc/posix-functions/shutdown.texi: Document the new module.
31131
31132 2008-10-11  Jim Meyering  <meyering@redhat.com>
31133
31134         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
31135
31136 2008-10-11  Bruno Haible  <bruno@clisp.org>
31137
31138         New module 'fclose'.
31139         * modules/fclose: New file.
31140         * lib/stdio.in.h (fclose): New declaration.
31141         * lib/fclose.c: New file.
31142         * m4/fclose.m4: New file.
31143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
31144         REPLACE_FCLOSE.
31145         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
31146         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
31147         REPLACE_FCLOSE.
31148         * modules/close (Depends-on): fclose.
31149         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
31150
31151 2008-10-11  Bruno Haible  <bruno@clisp.org>
31152
31153         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
31154         set errno and don't call _close.
31155
31156 2008-10-10  Bruno Haible  <bruno@clisp.org>
31157
31158         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
31159         ACL, not afterwards. Fixes test failure on Cygwin.
31160
31161 2008-10-09  Ben Pfaff  <blp@gnu.org>
31162
31163         * build-aux/announce-gen: Fix gnulib version related part of usage
31164         message.  Die with a useful error message if no tarballs are
31165         found.
31166
31167 2008-10-10  Jim Meyering  <meyering@redhat.com>
31168
31169         bootstrap: use git's --depth=N option only if it's supported
31170         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
31171         recognize the --depth option.  Reported by Pádraig Brady.
31172
31173 2008-10-09  Bruno Haible  <bruno@clisp.org>
31174
31175         New module 'ioctl'.
31176         * modules/ioctl: New file.
31177         * lib/sys_socket.in.h (ioctl): Remove declaration.
31178         * lib/winsock.c: Include <sys/ioctl.h>.
31179         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
31180         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31181         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
31182         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
31183         * doc/posix-functions/ioctl.texi: Mention the new module.
31184
31185 2008-10-09  Bruno Haible  <bruno@clisp.org>
31186
31187         New module 'sys_ioctl'.
31188         * lib/sys_ioctl.in.h: New file.
31189         * m4/sys_ioctl_h.m4: New file.
31190         * modules/sys_ioctl: New file.
31191         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
31192
31193 2008-10-09  Bruno Haible  <bruno@clisp.org>
31194
31195         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
31196         * lib/winsock.c: Include <stdarg.h>.
31197         (rpl_ioctl): Change to second argument 'int' and then varargs.
31198
31199 2008-10-09  Bruno Haible  <bruno@clisp.org>
31200
31201         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
31202         when the sys_socket module is present and the system has <winsock2.h>.
31203
31204 2008-10-09  Bruno Haible  <bruno@clisp.org>
31205
31206         * doc/posix-functions/close.texi: Mention module 'close' instead of
31207         module 'sys_socket'.
31208
31209 2008-10-09  Bruno Haible  <bruno@clisp.org>
31210
31211         * doc/glibc-headers/sys_ioctl.texi: New file.
31212         * doc/gnulib.texi: Include it.
31213
31214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31215             Bruno Haible  <bruno@clisp.org>
31216
31217         Combine the two replacements of 'close'.
31218         * lib/sys_socket.in.h (close): Define to a reminder to include
31219         <unistd.h>.
31220         (_gl_close_fd_maybe_socket): New declaration.
31221         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
31222         * lib/winsock.c (close): Remove undefinition.
31223         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
31224         needed for the gnulib module 'close'.
31225         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
31226         define to an error symbol or to a warning, if suitable.
31227         * lib/close.c: Include <sys/socket.h>.
31228         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
31229         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
31230         UNISTD_H_HAVE_WINSOCK2_H.
31231         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
31232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31233         UNISTD_H_HAVE_WINSOCK2_H.
31234         * modules/sys_socket (Files): Add m4/unistd_h.m4.
31235         (configure.ac): Set a module indicator.
31236         (Makefile.am): Substitute GNULIB_CLOSE.
31237         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
31238         * modules/poll-tests (Depends-on): Add close.
31239         * modules/select-tests (Depends-on): Likewise.
31240
31241 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31242             Bruno Haible  <bruno@clisp.org>
31243
31244         New module 'close'.
31245         * modules/close: New file.
31246         * lib/unistd.in.h (close): Move declaration out of the
31247         FCHDIR_REPLACEMENT scope.
31248         (_gl_unregister_fd): New declaration.
31249         * lib/close.c: New file.
31250         * lib/fchdir.c (rpl_close): Remove function.
31251         * m4/close.m4: New file.
31252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31253         close.
31254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
31255         REPLACE_CLOSE.
31256         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
31257         REPLACE_CLOSE.
31258         * modules/fchdir (Depends-on): Add close.
31259
31260 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31261             Bruno Haible  <bruno@clisp.org>
31262
31263         * lib/fcntl.in.h (open): Simplify conditionals.
31264         (_gl_register_fd): New declaration.
31265         * lib/fchdir.c (rpl_open): Remove function.
31266         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
31267         also.
31268         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
31269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31270         open.
31271
31272 2008-10-09  Jim Meyering  <meyering@redhat.com>
31273
31274         GNUmakefile: use the more name-space-friendly "_version"
31275         * top/GNUmakefile (_dummy): Update.
31276         (_version): Rename from "version".
31277
31278 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31279             Bruno Haible  <bruno@clisp.org>
31280
31281         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
31282         rpl_close.
31283         (_gl_register_fd): New function, extracted from rpl_open.
31284         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
31285         (rpl_open, rpl_opendir): Use _gl_register_fd.
31286
31287 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31288
31289         Fix organization of 'open' replacement.
31290         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
31291         (gl_FUNC_OPEN): Use it.
31292         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
31293
31294 2008-10-08  Bruno Haible  <bruno@clisp.org>
31295
31296         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
31297
31298 2008-10-08  Simon Josefsson  <simon@josefsson.org>
31299
31300         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
31301         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
31302         listen).
31303
31304 2008-10-08  Eric Blake  <ebb9@byu.net>
31305
31306         GNUmakefile: add 'make version' target
31307         * top/GNUmakefile (_curr-ver): Split version update rules...
31308         (version): ...into a target.
31309
31310 2008-10-07  Bruno Haible  <bruno@clisp.org>
31311
31312         Use a more portable replacement expression for -0.0L.
31313         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
31314         instead of -0.0L. Fix m4 quotation.
31315
31316         * tests/test-signbit.c: Include <float.h>.
31317         (minus_zero): New variable.
31318         (test_signbitl): Use minus_zero instead of -zero.
31319         * modules/signbit-tests (Depends-on): Add float.
31320
31321         * tests/test-ceill.c: Include <float.h>.
31322         (zero): Remove variable.
31323         (minus_zero): New variable.
31324         (main): Use minus_zero instead of -zero.
31325         * modules/ceill-tests (Depends-on): Add float.
31326
31327         * tests/test-floorl.c: Include <float.h>.
31328         (zero): Remove variable.
31329         (minus_zero): New variable.
31330         (main): Use minus_zero instead of -zero.
31331         * modules/floorl-tests (Depends-on): Add float.
31332
31333         * tests/test-roundl.c: Include <float.h>.
31334         (zero): Remove variable.
31335         (minus_zero): New variable.
31336         (main): Use minus_zero instead of -zero.
31337         * modules/roundl-tests (Depends-on): Add float.
31338
31339         * tests/test-truncl.c: Include <float.h>.
31340         (zero): Remove variable.
31341         (minus_zero): New variable.
31342         (main): Use minus_zero instead of -zero.
31343         * modules/truncl-tests (Depends-on): Add float.
31344
31345         * tests/test-frexpl.c (zero): Remove variable.
31346         (minus_zero): New variable.
31347         (main): Use minus_zero instead of -zero.
31348         * modules/frexpl-tests (Depends-on): Add float.
31349
31350         * tests/test-isnan.c (zerol): Remove variable.
31351         (minus_zerol): New variable.
31352         (test_long_double): Use minus_zerol instead of -zerol.
31353         * modules/isnan-tests (Depends-on): Add float.
31354
31355         * tests/test-isnanl.h (zero): Remove variable.
31356         (minus_zero): New variable.
31357         (main): Use minus_zero instead of -zero.
31358         * modules/isnanl-nolibm-tests (Depends-on): Add float.
31359         * modules/isnanl-tests (Depends-on): Add float.
31360
31361         * tests/test-ldexpl.c (zero): Remove variable.
31362         (minus_zero): New variable.
31363         (main): Use minus_zero instead of -zero.
31364         * modules/ldexpl-tests (Depends-on): Add float.
31365
31366         * tests/test-snprintf-posix.h (zerol): Remove variable.
31367         (minus_zerol): New variable.
31368         (test_function): Use minus_zerol instead of -zerol.
31369         * modules/snprintf-posix-tests (Depends-on): Add float.
31370         * modules/vsnprintf-posix-tests (Depends-on): Add float.
31371
31372         * tests/test-sprintf-posix.h (zerol): Remove variable.
31373         (minus_zerol): New variable.
31374         (test_function): Use minus_zerol instead of -zerol.
31375         * modules/sprintf-posix-tests (Depends-on): Add float.
31376         * modules/vsprintf-posix-tests (Depends-on): Add float.
31377
31378         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
31379         (minus_zerol): New variable.
31380         (test_function): Use minus_zerol instead of -zerol.
31381         * modules/vasnprintf-posix-tests (Depends-on): Add float.
31382
31383         * tests/test-vasprintf-posix.c (zerol): Remove variable.
31384         (minus_zerol): New variable.
31385         (test_function): Use minus_zerol instead of -zerol.
31386         * modules/vasprintf-posix-tests (Depends-on): Add float.
31387
31388 2008-10-07  Simon Josefsson  <simon@josefsson.org>
31389
31390         * MODULES.html.sh (Support for building documentation): Mention
31391         pmccabe2html.  Sort entries.
31392
31393         Add pmccabe2html module, from gnupdf.
31394         * build-aux/pmccabe.css: New file.
31395         * build-aux/pmccabe2html: New file.
31396         * m4/pmccabe2html.m4: New file.
31397         * modules/pmccabe2html: New file.
31398
31399 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
31400
31401         flock: new module
31402         * MODULES.html.sh: Add to list of modules.
31403         * lib/flock.c: flock implementation for Windows and Unix systems
31404         which have fcntl.
31405         * doc/glibc-functions/flock.texi: Update documentation.
31406         * lib/sys_file.in.h: <sys/file.h> header file.
31407         * m4/flock.m4: M4 macros.
31408         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
31409         * modules/flock: flock module.
31410         * modules/flock-tests: flock tests module.
31411         * modules/sys_file: sys/file.h module.
31412         * tests/test-flock.c: test suite for flock.
31413
31414 2008-10-06  Jim Meyering  <meyering@redhat.com>
31415
31416         bootstrap: check for LT_INIT more portably still ;-)
31417         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
31418         Spotted by Bruno Haible.
31419
31420 2008-10-06  Eric Blake  <ebb9@byu.net>
31421
31422         test-signbit: avoid tripping Irix cc bug on -0.0L
31423         * tests/test-signbit.c (minus_zerol): Delete, and replace with
31424         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
31425         entire testsuite consistent and avoids an Irix 6.2 bug.
31426
31427 2008-10-05  Bruno Haible  <bruno@clisp.org>
31428             Jim Meyering  <jim@meyering.net>
31429
31430         Add an option for ignoring EPIPE during close_stdout.
31431         * lib/closeout.h: Include <stdbool.h>.
31432         (close_stdout_set_ignore_EPIPE): New declaration.
31433         * lib/closeout.c: Include <stdbool.h>.
31434         (ignore_EPIPE): New variable.
31435         (close_stdout_set_ignore_EPIPE): New function.
31436         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
31437         * lib/close-stream.c (close_stream): Mention the possible EPIPE
31438         failure.
31439         * modules/closeout (Depends-on): Add stdbool.
31440
31441 2008-10-05  Bruno Haible  <bruno@clisp.org>
31442
31443         * modules/accept: New file.
31444         * modules/bind: New file.
31445         * modules/connect: New file.
31446         * modules/getpeername: New file.
31447         * modules/getsockname: New file.
31448         * modules/getsockopt: New file.
31449         * modules/listen: New file.
31450         * modules/recv: New file.
31451         * modules/recvfrom: New file.
31452         * modules/send: New file.
31453         * modules/sendto: New file.
31454         * modules/setsockopt: New file.
31455         * modules/socket: New file.
31456         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
31457         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31458         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
31459         the particular module is requested. Add a link warning when the
31460         particular module is not requested.
31461         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
31462         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
31463         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
31464         the particular module is requested.
31465         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
31466         gl_SYS_SOCKET_H_DEFAULTS): New macros.
31467         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
31468         * modules/sys_socket (Depends-on): Add link-warning.
31469         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
31470         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
31471         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
31472         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
31473         GL_LINK_WARNING.
31474         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
31475         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
31476         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
31477         * doc/posix-functions/getpeername.texi: Mention the new module
31478         'getpeername'.
31479         * doc/posix-functions/getsockname.texi: Mention the new module
31480         'getsockname'.
31481         * doc/posix-functions/getsockopt.texi: Mention the new module
31482         'getsockopt'.
31483         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
31484         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
31485         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
31486         * doc/posix-functions/send.texi: Mention the new module 'send'.
31487         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
31488         * doc/posix-functions/setsockopt.texi: Mention the new module
31489         'setsockopt'.
31490         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
31491         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
31492         listen, connect, accept.
31493         * modules/select-tests (Depends-on): Likewise.
31494
31495 2008-10-05  Bruno Haible  <bruno@clisp.org>
31496
31497         * lib/winsock.c (strerror): Remove unused #undef.
31498         (rpl_close): Remove unused local variable.
31499
31500         * modules/sys_socket (Depends-on); Add errno.
31501
31502 2008-10-05  Bruno Haible  <bruno@clisp.org>
31503
31504         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
31505         (select): Add a link warning when the 'select' module is not used.
31506         * modules/sys_select (Depends-on): Add link-warning.
31507         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
31508         Suggested by Paolo Bonzini.
31509
31510 2008-10-05  Jim Meyering  <meyering@redhat.com>
31511
31512         bootstrap: check for LT_INIT more portably
31513         * build-aux/bootstrap: Avoid using grep -E, since it's not
31514         portable enough.  Suggestion from Bruno Haible.
31515
31516 2008-10-05  Bruno Haible  <bruno@clisp.org>
31517
31518         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
31519         as being fixed by gnulib.
31520
31521 2008-10-05  Bruno Haible  <bruno@clisp.org>
31522
31523         * modules/select-tests: New file, mostly copied from
31524         modules/sys_select-tests.
31525         * tests/test-select.c: New file, mostly copied from
31526         tests/test-sys_select.c.
31527         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
31528         * modules/sys_select-tests (Depends-on): Remove all dependencies.
31529         (Makefile.am): Remove test_sys_select_LDADD.
31530
31531         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
31532         to an undefined symbol, for an error message.
31533         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
31534         (gl_SYS_SELECT_H_DEFAULTS): New macro.
31535         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
31536         winsock-select.c here.
31537         * modules/sys_select (Files): Remove lib/winsock-select.c.
31538         (Depends-on): Remove alloca.
31539         (Makefile.am): Substitute GNULIB_SELECT.
31540         * modules/select: New file.
31541         * doc/posix-functions/select.texi: Update.
31542
31543 2008-10-05  Bruno Haible  <bruno@clisp.org>
31544
31545         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
31546         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
31547         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
31548         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
31549         getdtablesize.
31550         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31551         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31552
31553 2008-10-05  Bruno Haible  <bruno@clisp.org>
31554
31555         * modules/getdtablesize-tests: New file.
31556         * tests/test-getdtablesize.c: New file.
31557
31558         New module 'getdtablesize'.
31559         * lib/unistd.in.h (getdtablesize): New declaration.
31560         * lib/getdtablesize.c: New file.
31561         * m4/getdtablesize.m4: New file.
31562         * modules/getdtablesize: New file.
31563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31564         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
31565         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
31566         HAVE_GETDTABLESIZE.
31567         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
31568
31569 2008-10-05  Bruno Haible  <bruno@clisp.org>
31570
31571         * modules/sched (Makefile.am): Fix typo.
31572         Reported by Simon Josefsson.
31573
31574 2008-10-05  Jim Meyering  <meyering@redhat.com>
31575
31576         bootstrap: check for LT_INIT, too
31577         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31578         are deprecated.  Suggestion from Ralf Wildenhues.
31579
31580 2008-10-05  Bruno Haible  <bruno@clisp.org>
31581
31582         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31583         overriding them by ours.
31584         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31585
31586 2008-10-05  Jim Meyering  <meyering@redhat.com>
31587
31588         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31589         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31590         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31591
31592 2008-10-04  Bruno Haible  <bruno@clisp.org>
31593
31594         * modules/dup2 (License): Change to LGPLv2+.
31595         * modules/sleep (License): Likewise.
31596         * modules/perror (License): Likewise.
31597         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31598         Blake.
31599         * modules/signal (License): Likewise.
31600         * modules/sigprocmask (License): Likewise.
31601         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31602         Meyering.
31603
31604 2008-10-04  Bruno Haible  <bruno@clisp.org>
31605
31606         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
31607         Reported by Rainer Tammer <tammer@tammer.net>.
31608
31609 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
31610             Bruno Haible  <bruno@clisp.org>
31611
31612         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
31613         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
31614         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
31615
31616 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
31617
31618         filevercmp: new module
31619         * lib/filevercmp.h: New function filevercmp comparing version strings.
31620         * lib/filevercmp.c: Implementation of filevercmp function.
31621         * modules/filevercmp: Module metadata.
31622         * tests/test-filevercmp.c: Unit test for new module.
31623         * modules/filevercmp-tests: Unit test metadata.
31624         * MODULES.html.sh: Add filevercmp module.
31625
31626 2008-10-03  Bruno Haible  <bruno@clisp.org>
31627
31628         * lib/c-ctype.h: Add comment.
31629         Reported by Jim Meyering.
31630
31631 2008-10-02  Bruno Haible  <bruno@clisp.org>
31632
31633         * modules/posix_spawn-internal (Depends-on): Add 'open'.
31634
31635 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31636
31637         * build-aux/bootstrap: Allow renaming bootstrap, and change the
31638         name of bootstrap.conf accordingly.
31639
31640 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31641
31642         * build-aux/bootstrap: Install git-merge-changelog configuration
31643         items into .gitconfig if needed.
31644
31645 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31646
31647         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
31648         git repository, and initialize/update it accordingly.
31649
31650 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
31651
31652         * modules/fsync-tests: New file.
31653         * tests/test-fsync.c: New file.
31654
31655         New module 'fsync'.
31656         * lib/fsync.c: New file.
31657         * m4/fsync.m4: New file.
31658         * modules/fsync: New file.
31659         * lib/unistd.in.h (fsync): New declaration.
31660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
31661         GNULIB_FSYNC and HAVE_FSYNC.
31662         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
31663         * MODULES.html.sh (posix_functions): Add fsync.
31664         * doc/posix-functions/fsync.texi: Mention the new module.
31665
31666 2008-10-02  Jim Meyering  <meyering@redhat.com>
31667
31668         fts.c: sync with similar code from coreutils' remove.c
31669         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
31670         Guard also with "#if defined __linux__", since for now at least,
31671         this code is Linux-kernel-specific.
31672
31673 2008-10-02  Jim Meyering  <meyering@redhat.com>
31674
31675         fts: bug fixes
31676         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
31677         Include <sys/vfs.h>, not <sys/statfs.h>.
31678
31679         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
31680         Include <sys/vfs.h>, not <sys/statfs.h>.
31681
31682 2008-10-01  Bruno Haible  <bruno@clisp.org>
31683
31684         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
31685         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
31686         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
31687         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
31688         * doc/posix-functions/posix_spawnp.texi: Likewise.
31689         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
31690         whether posix_spawn actually works.
31691         * m4/pipe.m4 (gl_PIPE): Likewise.
31692         * modules/execute (Files): Add m4/posix_spawn.m4.
31693         * modules/pipe (Files): Add m4/posix_spawn.m4.
31694         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
31695
31696 2008-10-01  Jim Meyering  <meyering@redhat.com>
31697
31698         remove trailing spaces
31699         * NEWS: Likewise.
31700         * lib/poll.c (poll): Likewise.
31701         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
31702         * lib/winsock.c (rpl_close): Likewise.
31703         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31704         * modules/yield: Likewise.
31705         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
31706         * tests/test-sys_select.c (connect_to_socket): Likewise.
31707
31708         fts.c: adjust a new interface to be more generally useful
31709         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
31710         (fts_build): Adjust caller.
31711
31712 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31713
31714         * modules/cond-tests: New file.
31715         * tests/test-cond.c: New file.
31716
31717 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31718             Bruno Haible  <bruno@clisp.org>
31719
31720         * modules/cond (Dependencies): Add errno, time.
31721         * lib/glthread/cond.h: Include <time.h>.
31722         (gl_cond_define, gl_cond_define_initialized): Use the same definition
31723         across platforms.
31724
31725 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31726             Bruno Haible  <bruno@clisp.org>
31727
31728         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
31729
31730 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31731             Bruno Haible  <bruno@clisp.org>
31732
31733         * modules/tls-tests (Depends-on): Add thread, yield.
31734         (configure.ac): Remove all checks.
31735         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31736         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31737         gl_thread_self): Remove definitions. Include glthread/thread.h and
31738         glthread/yield.h instead.
31739         (test_tls): Pass an additional NULL argument to gl_thread_join.
31740
31741 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31742             Bruno Haible  <bruno@clisp.org>
31743
31744         * modules/lock-tests (Depends-on): Add thread, yield.
31745         (configure.ac): Remove all checks.
31746         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31747         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31748         gl_thread_self): Remove definitions. Include glthread/thread.h and
31749         glthread/yield.h instead.
31750         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31751         additional NULL argument to gl_thread_join.
31752
31753 2008-09-30  Bruno Haible  <bruno@clisp.org>
31754
31755         Fix the Win32 implementation of the 'thread' module.
31756         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31757         pointer type.
31758         (gl_thread_self): Invoke gl_thread_self_func.
31759         (gl_thread_self_func): New declaration.
31760         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31761         (do_init_self_key, init_self_key): New functions.
31762         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31763         Remove some fields.
31764         (running_threads, running_lock): Remove variables.
31765         (get_current_thread_handle): New function.
31766         (gl_thread_self_func, wrapper_func, glthread_create_func,
31767         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31768         simplified.
31769
31770 2008-09-30  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31773         files.
31774
31775 2008-09-30  Jim Meyering  <meyering@redhat.com>
31776
31777         fts.m4: correct the test for statfs.f_type
31778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31779         when checking for statfs.f_type.
31780
31781 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31782
31783         tests: avoid some compiler warnings
31784         * tests/test-memchr.c (main): Pass NULL indirectly.
31785         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31786
31787 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
31788
31789         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31790         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31791         exactly specified dayshifts.
31792         (dayshift): New rule.
31793         (rel): Add dayshift.
31794         (relative_time_table) [tomorrow, yesterday, today, now]:
31795         Use tDAY_SHIFT in place of tDAY_UNIT.
31796         * tests/test-getdate.c: Add tests for now-disallowed countable
31797         dayshifts, e.g., "4 yesterday ago".
31798
31799 2008-09-29  Bruno Haible  <bruno@clisp.org>
31800
31801         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31802         * tests/test-posix_spawn1.in.sh: Renamed from
31803         tests/test-posix_spawn.in.sh.
31804         * tests/test-posix_spawn2.c: New file.
31805         * tests/test-posix_spawn2.in.sh: New file.
31806         * modules/posix_spawnp-tests (Files): Update.
31807         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31808
31809 2008-09-29  Bruno Haible  <bruno@clisp.org>
31810
31811         Propagate effects of putenv/setenv/unsetenv to child processes.
31812         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31813         * lib/pipe.c (create_pipe): Likewise.
31814
31815 2008-09-29  Bruno Haible  <bruno@clisp.org>
31816
31817         Enable use of shell scripts as executables in mingw.
31818         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31819         run the program as a shell script.
31820         * lib/pipe.c (create_pipe): Likewise.
31821         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31822         resulting array.
31823
31824 2008-09-29  Eric Blake  <ebb9@byu.net>
31825
31826         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31827
31828 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31829
31830         * doc/posix-functions/accept.texi: Update mingw problems.
31831         * doc/posix-functions/bind.texi: Update mingw problems.
31832         * doc/posix-functions/close.texi: Update mingw problems.
31833         * doc/posix-functions/connect.texi: Update mingw problems.
31834         * doc/posix-functions/getpeername.texi: Update mingw problems.
31835         * doc/posix-functions/getsockname.texi: Update mingw problems.
31836         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31837         * doc/posix-functions/ioctl.texi: Update mingw problems.
31838         * doc/posix-functions/listen.texi: Update mingw problems.
31839         * doc/posix-functions/recv.texi: Update mingw problems.
31840         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31841         * doc/posix-functions/select.texi: Update mingw problems.
31842         * doc/posix-functions/send.texi: Update mingw problems.
31843         * doc/posix-functions/sendto.texi: Update mingw problems.
31844         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31845         * doc/posix-functions/socket.texi: Update mingw problems.
31846
31847 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31848             Bruno Haible  <bruno@clisp.org>
31849
31850         * lib/sys_select.in.h: Include sys/time.h.
31851         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31852         * modules/sys_select: Depend on sys_time.
31853         * tests/test-sys_select.c: Test that sys/select.h defines struct
31854         timeval fully.
31855
31856 2008-09-29  Bruno Haible  <bruno@clisp.org>
31857
31858         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31859         * lib/sys_select.in.h: Likewise.
31860
31861 2008-09-29  Bruno Haible  <bruno@clisp.org>
31862
31863         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31864
31865 2008-09-29  Bruno Haible  <bruno@clisp.org>
31866
31867         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31868         Set LIBSOCKET instead of augmenting LIBS.
31869         * modules/sockets (Link): New section.
31870         * modules/sockets-tests (test_sockets_LDADD): New variable.
31871         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31872         * modules/poll-tests (test_poll_LDADD): New variable.
31873         * NEWS: Document the change.
31874
31875 2008-09-29  Bruno Haible  <bruno@clisp.org>
31876
31877         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31878         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31879         ARPA_INET_H directly.
31880         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31881
31882 2008-09-28  Bruno Haible  <bruno@clisp.org>
31883
31884         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31885         from gl_HEADER_SYS_SOCKET.
31886         (gl_HEADER_SYS_SOCKET): Invoke it.
31887         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31888
31889 2008-09-28  Bruno Haible  <bruno@clisp.org>
31890
31891         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31892         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31893         Needed on OSF/1 4.0.
31894
31895 2008-09-28  Bruno Haible  <bruno@clisp.org>
31896
31897         Override open more carefully.
31898         * lib/open.c (orig_open): New function.
31899         (rpl_open): Use orig_open instead of open.
31900         * lib/fcntl.in.h: Add special invocation convention.
31901         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31902         (gl_FUNC_OPEN): Invoke it.
31903
31904         Override freopen more carefully.
31905         * lib/freopen.c (orig_freopen): New function.
31906         (rpl_freopen): Use orig_freopen instead of freopen.
31907         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31908         (gl_FUNC_FREOPEN): Invoke it.
31909
31910         Override fopen more carefully.
31911         * lib/fopen.c (orig_fopen): New function.
31912         (rpl_fopen): Use orig_fopen instead of fopen.
31913         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31914         (gl_FUNC_FOPEN): Invoke it.
31915         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31916
31917 2008-09-28  Bruno Haible  <bruno@clisp.org>
31918
31919         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31920         SIGPIPE.
31921
31922 2008-09-28  Bruno Haible  <bruno@clisp.org>
31923
31924         * tests/test-sigaction.c (handler, main): Disable the check whether
31925         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31926         glibc systems with LinuxThreads.
31927
31928 2008-09-28  Bruno Haible  <bruno@clisp.org>
31929
31930         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31931
31932         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31933         with AIX xlc.
31934         * lib/fcntl.in.h (open): Likewise.
31935         Reported by Rainer Tammer <tammer@tammer.net>.
31936
31937 2008-09-28  Bruno Haible  <bruno@clisp.org>
31938
31939         * modules/posix_spawnp-tests: New file.
31940         * tests/test-posix_spawn.c: New file.
31941         * tests/test-posix_spawn.in.sh: New file.
31942
31943         New module 'posix_spawnp'.
31944         * modules/posix_spawnp: New file.
31945         * lib/spawnp.c: New file, from GNU libc with modifications.
31946         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31947
31948         New module 'posix_spawn'.
31949         * modules/posix_spawn: New file.
31950         * lib/spawn.c: New file, from GNU libc with modifications.
31951         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31952
31953         New module 'posix_spawnattr_destroy'.
31954         * modules/posix_spawnattr_destroy: New file.
31955         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31956         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31957         module.
31958
31959         New module 'posix_spawnattr_setsigmask'.
31960         * modules/posix_spawnattr_setsigmask: New file.
31961         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31962         modifications.
31963         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31964         new module.
31965
31966         New module 'posix_spawnattr_getsigmask'.
31967         * modules/posix_spawnattr_getsigmask: New file.
31968         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31969         modifications.
31970         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31971         new module.
31972
31973         New module 'posix_spawnattr_setsigdefault'.
31974         * modules/posix_spawnattr_setsigdefault: New file.
31975         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31976         modifications.
31977         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31978         new module.
31979
31980         New module 'posix_spawnattr_getsigdefault'.
31981         * modules/posix_spawnattr_getsigdefault: New file.
31982         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31983         modifications.
31984         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31985         new module.
31986
31987         New module 'posix_spawnattr_setschedpolicy'.
31988         * modules/posix_spawnattr_setschedpolicy: New file.
31989         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31990         modifications.
31991         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31992         new module.
31993
31994         New module 'posix_spawnattr_getschedpolicy'.
31995         * modules/posix_spawnattr_getschedpolicy: New file.
31996         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31997         modifications.
31998         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31999         new module.
32000
32001         New module 'posix_spawnattr_setschedparam'.
32002         * modules/posix_spawnattr_setschedparam: New file.
32003         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
32004         modifications.
32005         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
32006         new module.
32007
32008         New module 'posix_spawnattr_getschedparam'.
32009         * modules/posix_spawnattr_getschedparam: New file.
32010         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
32011         modifications.
32012         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
32013         new module.
32014
32015         New module 'posix_spawnattr_setpgroup'.
32016         * modules/posix_spawnattr_setpgroup: New file.
32017         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
32018         modifications.
32019         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
32020         module.
32021
32022         New module 'posix_spawnattr_getpgroup'.
32023         * modules/posix_spawnattr_getpgroup: New file.
32024         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
32025         modifications.
32026         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
32027         module.
32028
32029         New module 'posix_spawnattr_setflags'.
32030         * modules/posix_spawnattr_setflags: New file.
32031         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
32032         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
32033         module.
32034
32035         New module 'posix_spawnattr_getflags'.
32036         * modules/posix_spawnattr_getflags: New file.
32037         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
32038         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
32039         module.
32040
32041         New module 'posix_spawnattr_init'.
32042         * modules/posix_spawnattr_init: New file.
32043         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
32044         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
32045         module.
32046
32047         New module 'posix_spawn_file_actions_destroy'.
32048         * modules/posix_spawn_file_actions_destroy: New file.
32049         * lib/spawn_faction_destroy.c: New file, from GNU libc with
32050         modifications.
32051         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
32052         the new module.
32053
32054         New module 'posix_spawn_file_actions_addopen'.
32055         * modules/posix_spawn_file_actions_addopen: New file.
32056         * lib/spawn_faction_addopen.c: New file, from GNU libc with
32057         modifications.
32058         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32059         the new module.
32060
32061         New module 'posix_spawn_file_actions_adddup2'.
32062         * modules/posix_spawn_file_actions_adddup2: New file.
32063         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
32064         modifications.
32065         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32066         the new module.
32067
32068         New module 'posix_spawn_file_actions_addclose'.
32069         * modules/posix_spawn_file_actions_addclose: New file.
32070         * lib/spawn_faction_addclose.c: New file, from GNU libc with
32071         modifications.
32072         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32073         the new module.
32074
32075         New module 'posix_spawn_file_actions_init'.
32076         * modules/posix_spawn_file_actions_init: New file.
32077         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
32078         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
32079         new module.
32080
32081         New module 'posix_spawn-internal'.
32082         * modules/posix_spawn-internal: New file.
32083         * lib/spawn_int.h: New file, from GNU libc with modifications.
32084         * lib/spawni.c: New file, from GNU libc with modifications.
32085         * m4/posix_spawn.m4: New file.
32086
32087         New module 'spawn'.
32088         * modules/spawn: New file.
32089         * lib/spawn.in.h: New file, from GNU libc with modifications.
32090         * m4/spawn_h.m4: New file.
32091         * doc/posix-headers/spawn.texi: Mention the new module.
32092
32093 2008-09-28  Bruno Haible  <bruno@clisp.org>
32094
32095         * modules/sched-tests: New file.
32096         * tests/test-sched.c: New file.
32097
32098         New module 'sched'.
32099         * modules/sched: New file.
32100         * lib/sched.in.h: New file.
32101         * m4/sched_h.m4: New file.
32102         * doc/posix-headers/sched.texi: Mention the new module.
32103
32104 2008-09-27  Eric Blake  <ebb9@byu.net>
32105
32106         Fix previous patch, and tweak references to $0.
32107         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
32108         (func_version, func_gnulib_dir): Don't call this program
32109         gnulib-tool.
32110         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
32111         with using $0 in function.
32112         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
32113         (func_fatal_error): Reuse the name the user invoked us with.
32114
32115 2008-09-27  Bruno Haible  <bruno@clisp.org>
32116
32117         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
32118         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
32119         (gl_ICONV_H): Not here.
32120         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32121         instead of assigning ICONV_H directly.
32122
32123         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
32124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
32125         WCHAR_H directly.
32126
32127 2008-09-27  Bruno Haible  <bruno@clisp.org>
32128
32129         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
32130         * modules/arpa_inet (Depends-on): Add link-warning.
32131         (Makefile.am): Insert the definition of GL_LINK-WARNING.
32132         * modules/unistd (Makefile.am): Likewise.
32133
32134 2008-09-26  Bruno Haible  <bruno@clisp.org>
32135
32136         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
32137         variables.
32138         (func_version): Essentially copied from gnulib-tool.
32139         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
32140         func_readlink): Copied from gnulib-tool.
32141
32142 2008-09-26  Bruno Haible  <bruno@clisp.org>
32143
32144         * gnulib-tool (func_version): Change directory to $gnulib_dir before
32145         invoking git-version-gen.
32146
32147 2008-09-26  Bruno Haible  <bruno@clisp.org>
32148
32149         * posix-modules: Update to directory names changed on 2008-01-19.
32150         Remove commas in output before splitting into words. No more need to
32151         avoid 'ftruncate' since 2007-02-19.
32152
32153 2008-09-26  Bruno Haible  <bruno@clisp.org>
32154
32155         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
32156
32157 2008-09-26  Bruno Haible  <bruno@clisp.org>
32158
32159         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
32160         * modules/fwriteerror (Depends-on): Add errno.
32161
32162 2008-09-26  Bruno Haible  <bruno@clisp.org>
32163
32164         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
32165         * tests/test-vc-list-files-cvs.sh: Likewise.
32166
32167 2008-09-26  Bruno Haible  <bruno@clisp.org>
32168
32169         * doc/posix-headers/sys_resource.texi: Reorder items.
32170
32171 2008-09-26  Jim Meyering  <meyering@redhat.com>
32172
32173         fts: tweak inode comparison function
32174         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
32175         inode numbers, as documented.
32176
32177         fts: sort dirent entries on inode number before traversing
32178         This avoids a quadratic, seek-related performance penalty when
32179         operating on a directory containing many entries (measurable at 10k;
32180         3.5 hours at 2 million entries with a cold cache) on certain types
32181         of file systems, including ext3 and ext4, but not tmpfs.
32182         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
32183         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
32184         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32185         (fs_handles_readdir_ordered_dirents_efficiently): New function.
32186         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
32187         (fts_build): Set the stat.st_ino member from D_INO.
32188         If it is likely to be useful, sort dirent entries on inode number.
32189
32190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
32191         and the struct statfs.f_type member.
32192         * modules/fts (Depends-on): Add d-ino.
32193
32194 2008-09-26  Bruno Haible  <bruno@clisp.org>
32195
32196         * modules/sigpipe-die (Depends-on): Add sigpipe.
32197
32198         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
32199         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
32200         and GNULIB_STDIO_H_SIGPIPE are set.
32201         * lib/stdio-write.c: New file.
32202         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
32203         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32204         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32205         REPLACE_STDIO_WRITE_FUNCS.
32206         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
32207         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32208         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32209         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32210         * modules/stdio (Files): Add lib/stdio-write.c.
32211         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
32212         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32213         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32214         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32215         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
32216         REPLACE_FPRINTF_POSIX.
32217         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
32218         REPLACE_PRINTF_POSIX.
32219         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
32220         REPLACE_VFPRINTF_POSIX.
32221         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
32222         REPLACE_VPRINTF_POSIX.
32223         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
32224         SIGPIPE issue.
32225         * doc/posix-functions/fputc.texi: Likewise.
32226         * doc/posix-functions/fputs.texi: Likewise.
32227         * doc/posix-functions/fwrite.texi: Likewise.
32228         * doc/posix-functions/printf.texi: Likewise.
32229         * doc/posix-functions/putc.texi: Likewise.
32230         * doc/posix-functions/putchar.texi: Likewise.
32231         * doc/posix-functions/puts.texi: Likewise.
32232         * doc/posix-functions/vfprintf.texi: Likewise.
32233         * doc/posix-functions/vprintf.texi: Likewise.
32234
32235         * modules/safe-write (Depends-on): Add write.
32236
32237         * modules/sigpipe-tests: New file.
32238         * tests/test-sigpipe.c: New file.
32239         * tests/test-sigpipe.sh: New file.
32240
32241         * modules/write: New file.
32242         * lib/unistd.in.h: Include <sys/types.h>.
32243         (write): New declaration.
32244         * lib/write.c: New file.
32245         * m4/write.m4: New file.
32246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32247         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
32248         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
32249         GNULIB_WRITE, REPLACE_WRITE.
32250         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
32251         and the SIGPIPE issue.
32252
32253         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
32254         (raise): New declaration.
32255         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
32256         (ext_signal): New function.
32257         (rpl_raise): New function.
32258         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32259         GNULIB_SIGNAL_H_SIGPIPE.
32260         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
32261         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
32262
32263         * modules/sigpipe: New file.
32264         * m4/sigpipe.m4: New file.
32265
32266 2008-09-25  Derek Price  <derek@ximbiot.com>
32267             Bruno Haible  <bruno@clisp.org>
32268
32269         * gnulib-tool (func_import): Report all license incompatibilities, not
32270         just the first one.
32271
32272 2008-09-25  Bruno Haible  <bruno@clisp.org>
32273
32274         * gnulib-tool (func_import): When computing the edits, consider not
32275         only the Makefile.ams that exist but also those that will be generated.
32276
32277 2008-09-25  Simon Josefsson  <simon@josefsson.org>
32278
32279         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
32280         fixes gnulib-tool --test warning about duplicate dependency.
32281
32282 2008-09-25  Bruno Haible  <bruno@clisp.org>
32283
32284         * gnulib-tool: Don't ask the user to perform edits in the generated
32285         Makefile.ams.
32286         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
32287         apply to the Makefile.am being generated.
32288         (func_emit_tests_Makefile_am): Execute edits that apply to the
32289         Makefile.am being generated.
32290         (func_import): Setup list of Makefile.am edits before emitting the
32291         Makefile.ams, not at the end.
32292         (func_create_testdir): Update.
32293         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32294
32295 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32296
32297         * gnulib-tool (func_import): Store the --tests-base option in the
32298         comment in gnulib-cache.m4.
32299
32300 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
32301
32302         * NEWS: Document increased portability that sys_select now provides.
32303
32304         * lib/sys_select.in.h: Install select wrapper.
32305         * lib/sys_socket.in.h: Use more descriptive name when there is no
32306         select wrapper.
32307         * lib/winsock-select.c: New.
32308         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
32309         Require gl_HEADER_SYS_SOCKET.
32310         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
32311         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
32312         * tests/test-sys_select.c: Add functional tests.
32313
32314 2008-09-24  Eric Blake  <ebb9@byu.net>
32315
32316         open, fopen: close fd leak in last patch
32317         * lib/open.c (rpl_open): Close fd before returning error.
32318         * lib/fopen.c (rpl_fopen): Close fd before returning error.
32319         * doc/posix-functions/open.texi (open): Document that Irix also
32320         has the bug.
32321         * doc/posix-functions/fopen.texi (fopen): Likewise.
32322         Reported by Paolo Bonzini.
32323
32324 2008-09-24  Bruno Haible  <bruno@clisp.org>
32325
32326         Ensure that a filename ending in a slash cannot be used to access a
32327         non-directory.
32328         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
32329         to check whether it's really a directory.
32330         * lib/fopen.c: Include fcntl.h, unistd.h.
32331         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
32332         and fdopen().
32333         * modules/fopen (Depends-on): Add unistd.
32334         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
32335         * tests/test-fopen.c (main): Likewise.
32336         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
32337         * doc/posix-functions/fopen.texi: Likewise.
32338         Reported by Eric Blake.
32339
32340 2008-09-23  Eric Blake  <ebb9@byu.net>
32341
32342         c-stack: avoid compiler optimizations when provoking overflow
32343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
32344         recursion harder to optimize, to ensure a stack overflow occurs.
32345         * tests/test-c-stack.c (recurse): Likewise.
32346         Borrowed from libsigsegv.
32347
32348         c-stack: work around Irix sigaltstack bug
32349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
32350         whether sigaltstack uses wrong end of stack_t (copied in part from
32351         libsigsegv).
32352         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
32353         Irix bug, without requiring an over-allocation.
32354         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
32355         bug.
32356
32357         fopen: document mingw bug on directories
32358         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
32359         not allowing a stream visiting a directory, even though reading
32360         from such a stream is not portable.
32361
32362 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32363
32364         * lib/poll.c: Rewrite.
32365         * modules/poll: Depend on alloca.
32366
32367 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32368
32369         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
32370         instead define prototypes for a full set of wrappers.  Ensure
32371         that Cygwin does not use the compatibility code, which is only
32372         for MinGW.
32373         * lib/winsock.c: New.
32374         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
32375         * modules/sys_socket: Add lib/winsock.c.
32376
32377         * modules/poll-tests: Add errno and perror.
32378         * tests/test-poll.c: Use ioctl, not ioctlsocket.
32379
32380 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32381
32382         * tests/test-poll.c: Downgrade minimum needed Winsock version.
32383
32384 2008-09-23  Bruno Haible  <bruno@clisp.org>
32385
32386         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
32387         * doc/glibc-functions/*: Likewise.
32388
32389 2008-09-23  Simon Josefsson  <simon@josefsson.org>
32390
32391         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
32392         success.
32393
32394 2008-09-22  Eric Blake  <ebb9@byu.net>
32395             Bruno Haible  <bruno@clisp.org>
32396
32397         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
32398         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
32399         supply %A but mishandle pseudo-NaN.
32400         Reported by Simon Josefsson.
32401
32402 2008-09-21  Bruno Haible  <bruno@clisp.org>
32403
32404         * tests/test-lock.c (main): Tweak skip message.
32405         * tests/test-tls.c (main): Likewise.
32406
32407 2008-09-21  Bruno Haible  <bruno@clisp.org>
32408
32409         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
32410         whether 'struct sigaction' has sa_sigaction here...
32411         (gl_PREREQ_SIG_HANDLER_H): ... not here.
32412         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
32413
32414 2008-09-21  Bruno Haible  <bruno@clisp.org>
32415
32416         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
32417         section.
32418         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
32419         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
32420         the new section.
32421         (Support for obsolete systems lacking POSIX:2001): New section.
32422         (String handling <string.h>): Move strdup to the new section.
32423         Suggested by Simon Josefsson and Paolo Bonzini.
32424
32425 2008-09-21  Bruno Haible  <bruno@clisp.org>
32426
32427         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
32428         exponents in %e and %g results on 'long double'. Needed for mingw's
32429         improved *printf functions.
32430         * tests/test-vasprintf-posix.c (test_function): Likewise.
32431         * tests/test-snprintf-posix.h (test_function): Likewise.
32432         * tests/test-sprintf-posix.h (test_function): Likewise.
32433         Reported by Eric Blake.
32434
32435 2008-09-21  Bruno Haible  <bruno@clisp.org>
32436
32437         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
32438         * tests/test-sprintf-posix.h (test_function): Likewise.
32439
32440 2008-09-21  Bruno Haible  <bruno@clisp.org>
32441
32442         * modules/getpass (Depends-on): Add strdup-posix.
32443
32444         New module 'strdup-posix'.
32445         * modules/strdup-posix: New file.
32446         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
32447         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
32448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32449         REPLACE_STRDUP.
32450         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
32451         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
32452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32453         strdup-posix.
32454
32455         * modules/strdup (Depends-on): Remove malloc-posix.
32456
32457 2008-09-20  Bruno Haible  <bruno@clisp.org>
32458
32459         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
32460         Wildenhues.
32461
32462 2008-09-20  Bruno Haible  <bruno@clisp.org>
32463
32464         Ensure that wint_t gets defined on IRIX 5.3.
32465         * lib/wchar.in.h (wint_t): Define if not defined by the system.
32466         * lib/wctype.in.h (wint_t): Likewise.
32467         (__wctype_wint_t): Remove type.
32468         (isw*): Use wint_t instead of __wctype_wint_t.
32469         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
32470         * modules/wchar (Files): Add m4/wint_t.m4.
32471         (Makefile.am): Substitute HAVE_WINT_T.
32472         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
32473         * tests/test-wctype.c: Check that wint_t is defined.
32474         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
32475         * doc/posix-headers/wctype.texi: Likewise.
32476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32477
32478 2008-09-18  Bruno Haible  <bruno@clisp.org>
32479
32480         * gnulib-tool (func_exit): Update comment.
32481
32482 2008-09-18  Simon Josefsson  <simon@josefsson.org>
32483
32484         * modules/getaddrinfo (Depends-on): Remove strdup, this module
32485         assumes strdup exists and does not depend on strdup to return
32486         ENOMEM on out of memory conditions.
32487
32488 2008-09-18  Bruno Haible  <bruno@clisp.org>
32489
32490         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
32491         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
32492         digits for the exponent.
32493
32494 2008-09-18  Jim Meyering  <meyering@redhat.com>
32495             Bruno Haible  <bruno@clisp.org>
32496
32497         * lib/vasnprintf.c (decimal_point_char): Define also if
32498         NEED_PRINTF_INFINITE_LONG_DOUBLE.
32499
32500 2008-09-16  Bruno Haible  <bruno@clisp.org>
32501         and Eric Blake  <ebb9@byu.net>
32502
32503         vasnprintf: support Irix 5.3
32504         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
32505         that mishandle long double infinity.
32506         Reported by Tom G. Christensen.
32507
32508 2008-09-16  Bruno Haible  <bruno@clisp.org>
32509
32510         * doc/glibc-functions/scandir.texi: Mention the function is missing on
32511         Solaris 9.
32512         * doc/glibc-functions/alphasort.texi: Likewise.
32513         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
32514
32515 2008-09-16  Jim Meyering  <meyering@redhat.com>
32516
32517         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
32518         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
32519         a umask modification leak out of a subshell.  Otherwise, the
32520         opensolaris /bin/sh would be accepted and thus cause unwarranted
32521         failures in the coreutils test suite.
32522
32523 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
32524
32525         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
32526         to succeed.
32527
32528 2008-09-16  Jim Meyering  <meyering@redhat.com>
32529
32530         avoid spurious test failure when library is built without ACL support
32531         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
32532         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
32533         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
32534         * tests/test-copy-acl.sh: Likewise.
32535
32536 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32537
32538         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
32539         based on character occurrence counts.
32540
32541 2008-09-15  Eric Blake  <ebb9@byu.net>
32542
32543         tests: avoid some compiler warnings
32544         * tests/test-memchr.c (main): Pass NULL indirectly.
32545         * tests/test-closein.c (main): Avoid unused variable.
32546
32547 2008-09-15  Bruno Haible  <bruno@clisp.org>
32548
32549         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
32550         are missing on OpenBSD 4.0 individually.
32551         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32552
32553 2008-09-15  Bruno Haible  <bruno@clisp.org>
32554
32555         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
32556         * doc/posix-functions/strerror.texi: Mention also Cygwin.
32557         * doc/posix-functions/perror.texi: Likewise.
32558         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
32559         is missing.
32560         Reported by Eric Blake.
32561
32562         * lib/errno.in.h: Use replacement values >= 2000.
32563         Reported by Eric Blake.
32564
32565 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32566
32567         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
32568         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
32569         limit.
32570         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
32571         compareseq was aborted.
32572
32573 2008-09-14  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32576         yvec_edit_count.
32577         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32578         (fstrcmp_bounded): Simplify result computation accordingly.
32579
32580 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32581
32582         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32583         (fstrcmp): Define in terms of fstrcmp_bounded.
32584         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32585         lower_bound argument.
32586         Return quickly if the result is certainly < lower_bound.
32587         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32588
32589 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32590
32591         * lib/diffseq.h (EARLY_ABORT): New macro.
32592         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32593         evaluates to true.
32594
32595 2008-09-14  Bruno Haible  <bruno@clisp.org>
32596
32597         * modules/perror-tests: New file.
32598         * tests/test-perror.sh: New file.
32599         * tests/test-perror.c: New file.
32600
32601         New module 'perror'.
32602         * lib/stdio.in.h (perror): New declaration.
32603         * lib/perror.c: New file.
32604         * m4/perror.m4: New file.
32605         * modules/perror: New file.
32606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
32607         * doc/posix-functions/perror.texi: Mention the perror module.
32608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
32609         REPLACE_PERROR.
32610         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
32611         REPLACE_PERROR.
32612
32613 2008-09-14  Bruno Haible  <bruno@clisp.org>
32614
32615         * modules/stdio (Makefile.am): Reorder to match the order in
32616         lib/stdio.in.h.
32617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32618
32619 2008-09-13  Bruno Haible  <bruno@clisp.org>
32620
32621         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
32622
32623 2008-09-13  Bruno Haible  <bruno@clisp.org>
32624
32625         Extend strerror to cover the added errno values.
32626         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
32627         (rpl_strerror): Provide error messages for the added errno values and
32628         for the WSA* values.
32629         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
32630         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
32631         strerror.
32632         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
32633         * modules/strerror (Depends-on): Add errno.
32634         * doc/posix-functions/strerror.texi: Document the change.
32635         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
32636         and EOVERFLOW.
32637
32638 2008-09-13  Bruno Haible  <bruno@clisp.org>
32639
32640         * modules/EOVERFLOW: Remove file.
32641         * m4/eoverflow.m4: Remove file.
32642         * modules/EOVERFLOW-tests: Remove file.
32643         * tests/test-EOVERFLOW.c: Remove file.
32644         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
32645         * modules/ftell (Depends-on): Likewise.
32646         * modules/getdelim (Depends-on): Likewise.
32647         * modules/getugroups (Depends-on): Likewise.
32648         * modules/poll (Depends-on): Likewise.
32649         * modules/snprintf (Depends-on): Likewise.
32650         * modules/sprintf-posix (Depends-on): Likewise.
32651         * modules/vasnprintf (Depends-on): Likewise.
32652         * modules/vasprintf (Depends-on): Likewise.
32653         * modules/vfprintf-posix (Depends-on): Likewise.
32654         * modules/vsnprintf (Depends-on): Likewise.
32655         * modules/vsprintf-posix (Depends-on): Likewise.
32656         * modules/xvasprintf (Depends-on): Likewise.
32657         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32658         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
32659         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
32660         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
32661         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32662         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
32663         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
32664         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
32665         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32666         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
32667         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
32668         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
32669         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32670         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
32671         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
32672         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
32673         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32674         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
32675         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
32676         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
32677         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32678         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
32679         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
32680         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
32681         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
32682         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32683         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
32684         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
32685         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
32686         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
32687         * MODULES.html.sh: Remove EOVERFLOW.
32688         * NEWS: Mention the change.
32689
32690 2008-09-13  Bruno Haible  <bruno@clisp.org>
32691
32692         * modules/errno-tests: New file.
32693         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
32694
32695         * lib/errno.in.h: New file.
32696         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
32697         * modules/errno: New file.
32698         * doc/posix-headers/errno.texi: Update documentation.
32699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
32700
32701 2008-09-13  Bruno Haible  <bruno@clisp.org>
32702
32703         * tests/test-poll.c: Use #if for native Windows, rather than testing
32704         __MSVCRT__.
32705
32706 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32707             Bruno Haible  <bruno@clisp.org>
32708
32709         * lib/glob.c: Don't include <pwd.h> on native Windows.
32710         (WINDOWS32): New macro.
32711         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
32712
32713 2008-09-13  Bruno Haible  <bruno@clisp.org>
32714
32715         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
32716         (ETIMEDOUT): Remove macro.
32717         (glthread_cond_timedwait_multithreaded): New declaration.
32718         (glthread_cond_timedwait): Use it.
32719         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
32720         (glthread_cond_timedwait_multithreaded): New function.
32721
32722 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32723
32724         * modules/poll-tests: Do not check for io.h.
32725         * tests/test-poll.c: Check for __MSVCRT__ instead.
32726
32727 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32728
32729         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32730         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32731         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32732
32733 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32734
32735         * modules/poll-tests: New.
32736         * tests/test-poll.c: New.
32737
32738 2008-09-12  Eric Blake  <ebb9@byu.net>
32739
32740         frexp: test for NetBSD failure on -0.0
32741         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32742         not all, bugs from NetBSD 3.0 have been fixed.
32743         * doc/posix-functions/frexp.texi (frexp): Document bug.
32744         Reported by Thomas Klausner.
32745
32746         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32747         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32748         literal -0.0.
32749         Reported by Jonathan C. Patschke <jp@centtech.com>.
32750
32751 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32752
32753         * lib/glthread/cond.h: Use dummy implementation also if
32754         USE_WIN32_THREADS.
32755
32756 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32757
32758         * modules/fnmatch-posix (License): Change to LGPLv2+.
32759         * modules/fnmatch-gnu (License): Likewise.
32760
32761 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32762
32763         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32764
32765 2008-09-11  Jim Meyering  <meyering@redhat.com>
32766
32767         * users.txt: Add gtk-vnc.
32768
32769 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32770
32771         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32772         rotate amounts.
32773
32774         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32775         required for 16-bit and 8-bit rotates.
32776         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32777         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32778         UINT8_MAX instead of hard-coded constants.
32779         Suggested by Paul Eggert.
32780
32781 2008-09-07  Bruno Haible  <bruno@clisp.org>
32782
32783         * tests/test-striconveh.c (main): Check behaviour when converting from
32784         UTF-7.
32785
32786         Make striconveh work better with stateful encodings.
32787         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32788         that iconv does not increment the inptr when returning -1/EINVAL.
32789
32790 2008-09-07  Bruno Haible  <bruno@clisp.org>
32791
32792         * build-aux/config.rpath: Update according to libtool-2.2.6.
32793         * build-aux/config.libpath: Likewise.
32794
32795 2008-09-06  Bruno Haible  <bruno@clisp.org>
32796
32797         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32798         * lib/freadptr.c (freadptr): Likewise.
32799         * lib/freadseek.c (freadptrinc): Likewise.
32800         Reported by Simon Josefsson.
32801
32802 2008-09-06  Bruno Haible  <bruno@clisp.org>
32803
32804         * modules/freadptr (License): Change to LGPLv2+.
32805         * modules/freadseek (License): Likewise.
32806         Suggested by Eric Blake.
32807
32808         * modules/memchr2 (License): Change to LGPLv2+.
32809         Approved by Eric Blake.
32810
32811 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32812             Bruno Haible  <bruno@clisp.org>
32813
32814         Make gnulib-tool work with native 'sed' on AIX.
32815         * gnulib-tool (sed_noop): New variable.
32816         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32817         func_add_or_update, func_create_testdir): Use it to initialize sed
32818         script variables.
32819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32820
32821 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32822             Bruno Haible  <bruno@clisp.org>
32823
32824         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32825         also works after #include directives.
32826
32827 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
32828
32829         getdate.y: reject an out-of-range timezone value
32830         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32831         the range [-24...+24].  When specified with only one or two digits,
32832         * tests/test-getdate.c: Tests for the fix.
32833         * doc/getdate.texi: Document this change.
32834
32835 2008-09-03  Bruno Haible  <bruno@clisp.org>
32836
32837         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32838
32839 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32840
32841         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32842         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32843         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32844         Blake <ebb9@byu.net>.
32845
32846         * tests/test-bitrotate.c: Add more test vectors.
32847
32848 2008-09-02  Eric Blake  <ebb9@byu.net>
32849
32850         vasnprintf-posix: handle large precision via %.*d
32851         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32852         when handling it ourselves.
32853         * tests/test-vasnprintf-posix.c (test_function): Add test.
32854         * tests/test-snprintf-posix.h (test_function): Likewise.
32855         * tests/test-sprintf-posix.h (test_function): Likewise.
32856         * tests/test-vasprintf-posix.c (test_function): Likewise.
32857         Reported by Alain Guibert.
32858
32859 2008-09-01  Eric Blake  <ebb9@byu.net>
32860
32861         c-stack: make configure-time check more robust
32862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32863         successful sigaction call.
32864         Reported by Tom G. Christensen.
32865
32866 2008-09-01  Bruno Haible  <bruno@clisp.org>
32867
32868         New module 'findprog-lgpl'.
32869         * modules/findprog-lgpl: New file.
32870         * lib/findprog-lgpl.c: New file.
32871         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32872         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32873         to decide whether to use strdup or xstrdup, concatenated_filename or
32874         xconcatenated_filename.
32875
32876 2008-09-01  Bruno Haible  <bruno@clisp.org>
32877
32878         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32879         'xconcat-filename' (GPL).
32880         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32881         (License): Change to LGPLv2+.
32882         * modules/xconcat-filename: New file.
32883         * lib/concat-filename.h (concatenated_filename): Change specification.
32884         (xconcatenated_filename): New declaration.
32885         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32886         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32887         memory situations.
32888         * lib/xconcat-filename.c: New file.
32889         * NEWS: Mention the change.
32890         * lib/findprog.c: Include concat-filename.h, not filename.h.
32891         (find_in_path): Use xconcatenated_filename instead of
32892         concatenated_filename.
32893         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32894         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32895         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32896         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32897         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32898         instead of concatenated_filename.
32899         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32900         (execute_java_class): Use xconcatenated_filename instead of
32901         concatenated_filename.
32902         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32903         * modules/javacomp (Depends-on): Likewise.
32904         * modules/javaexec (Depends-on): Likewise.
32905
32906 2008-09-01  Bruno Haible  <bruno@clisp.org>
32907
32908         Split module 'filename' into 'filename' and 'concat-filename'.
32909         * modules/filename: Keep only lib/filename.h.
32910         (License): Change to LGPLv2+.
32911         * modules/concat-filename: New file, extracted from modules/filename.
32912         * lib/filename.h (concatenated_filename): Remove declaration.
32913         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32914         * lib/concat-filename.c: Include concat-filename.h.
32915         * NEWS: Mention the change.
32916
32917 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32918
32919         * lib/bitrotate.h (rotl8, rotr8): Add.
32920
32921         * modules/bitrotate (configure.ac): Need
32922         AC_REQUIRE([AC_C_INLINE]).
32923         (Description): Mention stdint.h.  Reported by Bruno Haible
32924         <bruno@clisp.org>.
32925
32926         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32927         Paolo Bonzini <bonzini@gnu.org>.
32928
32929 2008-08-31  Bruno Haible  <bruno@clisp.org>
32930
32931         Assume Solaris specific bi-arch conventions on Solaris systems.
32932         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32933         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32935         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32936         like acl_libdirstem.
32937         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32938         acl_libdirstem.
32939         * NEWS: Mention the change.
32940         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32941
32942 2008-08-31  Jim Meyering  <meyering@redhat.com>
32943
32944         * lib/strftime.h: Add comments describing the two added arguments.
32945
32946         remove duplicate #include directives
32947         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32948         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32949
32950 2008-08-31  Bruno Haible  <bruno@clisp.org>
32951
32952         New module 'sigpipe-die'.
32953         * modules/sigpipe-die: New file.
32954         * lib/sigpipe-die.h: New file.
32955         * lib/sigpipe-die.c: New file.
32956         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32957
32958 2008-08-31  Bruno Haible  <bruno@clisp.org>
32959
32960         Don't override previously installed signal handlers.
32961         * lib/fatal-signal.c (saved_sigactions): New variable.
32962         (uninstall_handlers): Reset the signal to the saved handler, not
32963         to SIG_DFL (except when ignored).
32964         (install_handlers): Save the previous handlers.
32965
32966 2008-08-30  Bruno Haible  <bruno@clisp.org>
32967
32968         * gnulib-tool (func_reset_sigpipe): New function.
32969         (func_get_automake_snippet, func_modules_transitive_closure,
32970         func_import): Invoke it before a join command that reads from stdin,
32971         to avoid "echo: write error: Broken pipe" error messages on stderr.
32972         Reported by Sam Steingold <sds@gnu.org>.
32973
32974 2008-08-30  Bruno Haible  <bruno@clisp.org>
32975
32976         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32977         Code copied from m4/open.m4.
32978         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32979         access and the filename ends in a slash. Code copied from lib/open.c.
32980         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32981         * tests/test-fopen.c (main): Check against bug with trailing slash.
32982
32983 2008-08-29  Bruno Haible  <bruno@clisp.org>
32984
32985         Avoid some "gcc -pedantic" warnings.
32986         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32987         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32988         * lib/dirent.in.h: Likewise.
32989         * lib/fcntl.in.h: Likewise.
32990         * lib/float.in.h: Likewise.
32991         * lib/iconv.in.h: Likewise.
32992         * lib/inttypes.in.h: Likewise.
32993         * lib/locale.in.h: Likewise.
32994         * lib/math.in.h: Likewise.
32995         * lib/netinet_in.in.h: Likewise.
32996         * lib/search.in.h: Likewise.
32997         * lib/signal.in.h: Likewise.
32998         * lib/stdarg.in.h: Likewise.
32999         * lib/stdint.in.h: Likewise.
33000         * lib/stdio.in.h: Likewise.
33001         * lib/stdlib.in.h: Likewise.
33002         * lib/string.in.h: Likewise.
33003         * lib/strings.in.h: Likewise.
33004         * lib/sys_select.in.h: Likewise.
33005         * lib/sys_socket.in.h: Likewise.
33006         * lib/sys_stat.in.h: Likewise.
33007         * lib/sys_time.in.h: Likewise.
33008         * lib/sysexits.in.h: Likewise.
33009         * lib/time.in.h: Likewise.
33010         * lib/unistd.in.h: Likewise.
33011         * lib/wchar.in.h: Likewise.
33012         * lib/wctype.in.h: Likewise.
33013         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
33014         * modules/fchdir (Makefile.am): Likewise.
33015         * modules/fcntl (Makefile.am): Likewise.
33016         * modules/float (Makefile.am): Likewise.
33017         * modules/iconv_open (Makefile.am): Likewise.
33018         * modules/inttypes (Makefile.am): Likewise.
33019         * modules/locale (Makefile.am): Likewise.
33020         * modules/math (Makefile.am): Likewise.
33021         * modules/netinet_in (Makefile.am): Likewise.
33022         * modules/search (Makefile.am): Likewise.
33023         * modules/signal (Makefile.am): Likewise.
33024         * modules/stdarg (Makefile.am): Likewise.
33025         * modules/stdint (Makefile.am): Likewise.
33026         * modules/stdio (Makefile.am): Likewise.
33027         * modules/stdlib (Makefile.am): Likewise.
33028         * modules/string (Makefile.am): Likewise.
33029         * modules/strings (Makefile.am): Likewise.
33030         * modules/sys_select (Makefile.am): Likewise.
33031         * modules/sys_socket (Makefile.am): Likewise.
33032         * modules/sys_stat (Makefile.am): Likewise.
33033         * modules/sys_time (Makefile.am): Likewise.
33034         * modules/sysexits (Makefile.am): Likewise.
33035         * modules/time (Makefile.am): Likewise.
33036         * modules/unistd (Makefile.am): Likewise.
33037         * modules/wchar (Makefile.am): Likewise.
33038         * modules/wctype (Makefile.am): Likewise.
33039         Reported by Reuben Thomas <rrt@sc3d.org>.
33040
33041 2008-08-29  Bruno Haible  <bruno@clisp.org>
33042
33043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
33044         any more.
33045
33046 2008-08-29  Simon Josefsson  <simon@josefsson.org>
33047
33048         * MODULES.html.sh (Misc): Add bitrotate.
33049
33050         * modules/bitrotate: New file.
33051
33052         * lib/bitrotate.h: New file.
33053
33054         * modules/bitrotate-tests: New file.
33055
33056         * tests/test-bitrotate.c: New file.
33057
33058         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
33059         on the bitrotate module.
33060
33061         * lib/arctwo.c: Use new bitrotate module.
33062
33063 2008-08-29  Jim Meyering  <meyering@redhat.com>
33064
33065         bootstrap: merge changes from coreutils
33066         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
33067         of copied files.  Remove a kludge, now that this is fixed.
33068         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
33069         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
33070         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
33071
33072 2008-08-29  Bruno Haible  <bruno@clisp.org>
33073
33074         * MODULES.html.sh: Remove --cvs-urls option.
33075
33076 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
33077
33078         maint.mk: adjust to file name change
33079         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
33080
33081 2008-08-28  Jim Meyering  <meyering@redhat.com>
33082
33083         * modules/getndelim2 (License): Relicense to LGPLv2+.
33084         Approved by Richard Stallman for the version of 1995, and by
33085         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
33086
33087 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
33088
33089         * lib/getdelim.c (flockfile, funlockfile): Make all of them
33090         dummy if one is not available.  Do not touch them if
33091         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
33092         (getc_maybe_unlocked): New.
33093         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
33094
33095 2008-08-26  Eric Blake  <ebb9@byu.net>
33096
33097         doc/INSTALL: resync from autoconf
33098         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
33099         (INSTALL_PRELUDE): Delete; this is done more efficiently by
33100         moving...
33101         * install.texi [!autoconf]: ...here.  Resync from autoconf.
33102         * INSTALL: Regenerate.
33103         * INSTALL.ISO: New file.
33104         * INSTALL.UTF-8: Likewise.
33105
33106 2008-08-26  Jim Meyering  <meyering@redhat.com>
33107
33108         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
33109         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
33110         these definitions conditional, so that they may be overridden, too.
33111
33112 2008-08-26  Bruno Haible  <bruno@clisp.org>
33113
33114         Generate INSTALL file variants with prettier quotes.
33115         * doc/Makefile (INSTALL_PRELUDE): New macro.
33116         (INSTALL): Use it.
33117         (INSTALL.ISO, INSTALL.UTF-8): New rules.
33118
33119 2008-08-26  Bruno Haible  <bruno@clisp.org>
33120
33121         Run makeinfo in an English locale.
33122         * doc/Makefile (MAKEINFO): New variable.
33123
33124 2008-08-26  Bruno Haible  <bruno@clisp.org>
33125
33126         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
33127         Suggested by Eric Blake.
33128
33129 2008-08-25  Bruno Haible  <bruno@clisp.org>
33130
33131         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
33132
33133 2008-08-25  Eric Blake  <ebb9@byu.net>
33134
33135         c-stack: test that stack overflow can be caught
33136         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
33137         that platform allows handling stack overflow; at least OS/2 EMX
33138         has sigaltstack, but crashes before transferring control to
33139         handler on stack overflow.
33140         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
33141         check for HAVE_STACK_OVERFLOW_HANDLING.
33142         Reported by Elbert Pol.
33143
33144 2008-08-25  Bruno Haible  <bruno@clisp.org>
33145
33146         * doc/posix-functions/strftime.texi: Fix description of strftime
33147         module.
33148
33149 2008-08-24  Bruno Haible  <bruno@clisp.org>
33150
33151         * tests/uniwidth/test-uc_width2.c: New file.
33152         * tests/uniwidth/test-uc_width2.sh: New file.
33153         * modules/uniwidth/width-tests (Files): Add the new files.
33154         (TESTS): Add uniwidth/test-uc_width2.sh.
33155         (TESTS_ENVIRONMENT): New variable.
33156         (check_PROGRAMS): Add test-uc_width2.
33157         (test_uc_width2_SOURCES): New variable.
33158
33159         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
33160         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
33161         not 0x00AB.
33162         Reported by Alexander V. Lukyanov <lav@netis.ru>.
33163
33164 2008-08-22  Eric Blake  <ebb9@byu.net>
33165
33166         test-lock, test-tls: mention why a test is skipped
33167         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
33168         skipped.
33169         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
33170
33171         count-one-bits: relax license
33172         * modules/count-one-bits (License): Relicense to LGPLv2+.
33173         Suggested by Ludovic Courtès, approved by Ben Pfaff.
33174
33175 2008-08-22  Andreas Schwab  <schwab@suse.de>
33176
33177         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33178         Remove spurious space in assignment.
33179
33180 2008-08-21  Simon Josefsson  <simon@josefsson.org>
33181
33182         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
33183         Paul Eggert <eggert@CS.UCLA.EDU>.
33184
33185 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
33186
33187         * modules/gettext: Add m4/threadlib.m4.
33188
33189 2008-08-19  Eric Blake  <ebb9@byu.net>
33190
33191         test-c-stack: fix compilation failure on FreeBSD 5.0
33192         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
33193         headers before <sys/resource.h>.
33194         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
33195         the bug.
33196         Reported by Nelson H. F. Beebe.
33197
33198         strverscmp: migrate from "strverscmp.h" to <string.h>
33199         * modules/string (Makefile.am): Add new hooks.
33200         * modules/strverscmp (Files): Remove strverscmp.h.
33201         (Depends-on): Add string.
33202         (configure.ac): Add indicator.
33203         (Include): Mention new header.
33204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
33205         defaults.
33206         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
33207         results.
33208         * lib/strverscmp.h: Delete.
33209         * lib/string.in.h (strverscmp): Provide declaration, when needed.
33210         * tests/test-strverscmp.c (includes): Adjust client.
33211         * lib/check-version.c (includes): Likewise.
33212         * NEWS: Document the change.
33213
33214         strverscmp: add unit test
33215         * modules/strverscmp-tests: New file.
33216         * tests/test-strverscmp.c: Likewise.
33217
33218 2008-08-19  Simon Josefsson  <simon@josefsson.org>
33219
33220         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
33221         regarding Windows crypto stuff, from Mono.
33222
33223 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
33224
33225         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
33226         if present, for intel RND.  Return error on failures.
33227
33228 2008-08-18  Ben Pfaff  <blp@gnu.org>
33229
33230         gitlog-to-changelog: give better diagnostic for failed pipe-open
33231         * build-aux/gitlog-to-changelog: Improve error message: suggest
33232         that the version of Git may be too old.
33233
33234 2008-08-18  Simon Josefsson  <simon@josefsson.org>
33235
33236         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
33237         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
33238
33239 2008-08-18  Bruno Haible  <bruno@clisp.org>
33240
33241         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
33242         pthread_in_use().
33243
33244 2008-08-18  Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/glthread/threadlib.c: Include <pthread.h>.
33247
33248 2008-08-18  Bruno Haible  <bruno@clisp.org>
33249
33250         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
33251         glthread_recursive_lock_* macros.
33252         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
33253         Fix syntax error.
33254
33255 2008-08-18  Bruno Haible  <bruno@clisp.org>
33256
33257         * lib/glthread/thread.c: Avoid forcing a context switch right after
33258         thread creation.
33259
33260 2008-08-17  Bruno Haible  <bruno@clisp.org>
33261
33262         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
33263         * lib/glthread/thread.h: Provide Win32 specific implementation.
33264         * modules/thread (Files): Add lib/glthread/thread.c.
33265         (Depends-on): Add lock.
33266         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
33267
33268 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33269
33270         New module 'yield'.
33271         * modules/yield: New file.
33272         * lib/glthread/yield.h: New file.
33273         * m4/yield.m4: New file.
33274         * MODULES.html.sh (Multithreading): Add yield.
33275
33276 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33277
33278         New module 'thread'.
33279         * modules/thread: New file.
33280         * lib/glthread/thread.h: New file.
33281         * m4/thread.m4: New file.
33282         * MODULES.html.sh (Multithreading): Add thread.
33283
33284 2008-08-17  Bruno Haible  <bruno@clisp.org>
33285
33286         * lib/glthread/lock.h: Include <stdlib.h> always.
33287         * lib/glthread/tls.h: Likewise.
33288         * lib/glthread/cond.h: Likewise.
33289
33290 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33291
33292         New module 'cond'.
33293         * modules/cond: New file.
33294         * lib/glthread/cond.h: New file.
33295         * lib/glthread/cond.c: New file.
33296         * m4/cond.m4: New file.
33297         * MODULES.html.sh (Multithreading): Add cond.
33298
33299 2008-08-16  Eric Blake  <ebb9@byu.net>
33300
33301         c-stack: fix regression on Irix 5.3 from 2008-06-21
33302         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
33303         sa_sigaction...
33304         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
33305         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
33306         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
33307         * modules/signal (Makefile.am): Use the value.
33308         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
33309         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
33310         * doc/posix-headers/signal.texi (signal.h): Document this
33311         portability issue.
33312         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
33313         Reported by Tom G. Christensen.
33314
33315 2008-08-17  Bruno Haible  <bruno@clisp.org>
33316
33317         New module 'threadlib'.
33318         * modules/threadlib: New file.
33319         * lib/glthread/threadlib.c: New file, extracted from
33320         lib/glthread/lock.c.
33321         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
33322         functions.
33323         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
33324         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
33325         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
33326         macros.
33327         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
33328         (gl_DISABLE_THREADS): Remove macro.
33329         * modules/lock (Files): Remove build-aux/config.rpath.
33330         (Depends-on): Remove havelib. Add threadlib.
33331         (configure.ac-early): Remove section.
33332         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
33333         * modules/tls (Depends-on): Remove lock. Add threadlib.
33334         (Link): New section, copied from threadlib.
33335         * MODULES.html.sh (Multithreading): Add threadlib.
33336
33337 2008-08-14  Bruno Haible  <bruno@clisp.org>
33338
33339         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
33340         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
33341         glthread_rwlock_unlock, glthread_rwlock_destroy,
33342         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
33343         glthread_recursive_lock_destroy): Define as macros always.
33344         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
33345         glthread_lock_lock.
33346         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
33347         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
33348         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
33349         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
33350         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
33351         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
33352         (glthread_recursive_lock_lock_func): Renamed from
33353         glthread_recursive_lock_lock.
33354         (glthread_recursive_lock_unlock_func): Renamed from
33355         glthread_recursive_lock_unlock.
33356         (glthread_recursive_lock_destroy_func): Renamed from
33357         glthread_recursive_lock_destroy.
33358
33359 2008-08-14  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/glthread/lock.h: Renamed from lib/lock.h.
33362         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
33363         * lib/glthread/tls.h: Renamed from lib/tls.h.
33364         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
33365         * lib/fstrcmp.c: Update includes.
33366         * lib/strsignal.c: Update includes.
33367         * modules/lock (Files, Makefile.am): Update.
33368         (Include): Change to "glthread/lock.h".
33369         * modules/tls (Files, Makefile.am): Update.
33370         (Include): Change to "glthread/tls.h".
33371         * tests/test-lock.c: Update includes.
33372         * tests/test-tls.c: Update includes.
33373         * NEWS: Mention the renamed header files.
33374
33375 2008-08-11  Jim Meyering  <meyering@redhat.com>
33376
33377         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
33378
33379 2008-08-11  Eric Blake  <ebb9@byu.net>
33380
33381         test-c-stack: avoid C99-ism
33382         * tests/test-c-stack.c (main): Fix whitespace, move declaration
33383         before statement.
33384         Reported by Alain Guibert.
33385
33386 2008-08-10  Jim Meyering  <meyering@redhat.com>
33387
33388         ensure that return value of uinttostr et al are not ignored
33389         * lib/inttostr.h (__GNUC_PREREQ): Define.
33390         (__attribute_warn_unused_result__): Define.
33391         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
33392
33393 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
33394
33395         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
33396         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
33397
33398 2008-08-07  Jim Meyering  <meyering@redhat.com>
33399
33400         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
33401
33402         * modules/mkstemp (License): Relicense under LGPLv2+.
33403         * modules/tempname (License): Likewise.
33404
33405 2008-08-06  Bruno Haible  <bruno@clisp.org>
33406
33407         * lib/poll.c (poll): Further micro-optimization.
33408
33409 2008-08-06  Jim Meyering  <meyering@redhat.com>
33410
33411         inet_pton.c: use locale-independent tolower
33412         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
33413         (inet_pton6): Use c_tolower rather than tolower.
33414         * modules/inet_pton (Depends-on): Add c-ctype.
33415
33416 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
33417
33418         * lib/poll.c (poll): Avoid division when timeout is 0, cache
33419         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
33420
33421 2008-08-06  Jim Meyering  <meyering@redhat.com>
33422
33423         * modules/inet_pton (License): Relicense under LGPLv2+.
33424
33425 2008-08-03  Bruno Haible  <bruno@clisp.org>
33426
33427         Additional non-aborting API for lock and tls.
33428         * lib/lock.h: Include <errno.h>.
33429         (glthread_lock_init): New macro/function.
33430         (gl_lock_init): Define as wrapper around glthread_lock_init.
33431         (glthread_lock_lock): New macro/function.
33432         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
33433         (glthread_lock_unlock): New macro/function.
33434         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
33435         (glthread_lock_destroy): New macro/function.
33436         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
33437         (glthread_rwlock_init): New macro/function.
33438         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
33439         (glthread_rwlock_rdlock): New macro/function.
33440         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
33441         (glthread_rwlock_wrlock): New macro/function.
33442         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
33443         (glthread_rwlock_unlock): New macro/function.
33444         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
33445         (glthread_rwlock_destroy): New macro/function.
33446         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
33447         (glthread_recursive_lock_init): New macro/function.
33448         (gl_recursive_lock_init): Define as wrapper around
33449         glthread_recursive_lock_init.
33450         (glthread_recursive_lock_lock): New macro/function.
33451         (gl_recursive_lock_lock): Define as wrapper around
33452         glthread_recursive_lock_lock.
33453         (glthread_recursive_lock_unlock): New macro/function.
33454         (gl_recursive_lock_unlock): Define as wrapper around
33455         glthread_recursive_lock_unlock.
33456         (glthread_recursive_lock_destroy): New macro/function.
33457         (gl_recursive_lock_destroy): Define as wrapper around
33458         glthread_recursive_lock_destroy.
33459         (glthread_once): New macro/function.
33460         (gl_once): Define as wrapper around glthread_once.
33461         Update function declarations.
33462         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
33463         glthread_rwlock_init. Return error code.
33464         (glthread_rwlock_rdlock_multithreaded): Renamed from
33465         glthread_rwlock_rdlock. Return error code.
33466         (glthread_rwlock_wrlock_multithreaded): Renamed from
33467         glthread_rwlock_wrlock. Return error code.
33468         (glthread_rwlock_unlock_multithreaded): Renamed from
33469         glthread_rwlock_unlock. Return error code.
33470         (glthread_rwlock_destroy_multithreaded): Renamed from
33471         glthread_rwlock_destroy. Return error code.
33472         (glthread_recursive_lock_init_multithreaded): Renamed from
33473         glthread_recursive_lock_init. Return error code.
33474         (glthread_recursive_lock_lock_multithreaded): Renamed from
33475         glthread_recursive_lock_lock. Return error code.
33476         (glthread_recursive_lock_unlock_multithreaded): Renamed from
33477         glthread_recursive_lock_unlock. Return error code.
33478         (glthread_recursive_lock_destroy_multithreaded): Renamed from
33479         glthread_recursive_lock_destroy. Return error code.
33480         (glthread_once_call): Make static.
33481         (glthread_once_multithreaded): Renamed from glthread_once.
33482         * lib/tls.h: Include <errno.h>.
33483         (glthread_tls_key_init): New macro/function.
33484         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
33485         (glthread_tls_set): New macro/function.
33486         (gl_tls_set): Define as wrapper around glthread_tls_set.
33487         (glthread_tls_key_destroy): New macro/function.
33488         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
33489         Update function declarations.
33490         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
33491         glthread_tls_get.
33492         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33493
33494 2008-08-04  Eric Blake  <ebb9@byu.net>
33495
33496         gnumakefile: use space, not TAB, outside of targets
33497         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
33498
33499 2008-08-02  Jim Meyering  <meyering@redhat.com>
33500
33501         getdate.y: avoid locale-dependent date parsing failure
33502         In Turkish locales, getdate would fail to recognize keywords
33503         containing a lowercase "i".  The solution is not to rely on
33504         locale-sensitive case-conversion.
33505         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
33506         (lookup_word): Use c_toupper in place of toupper.
33507         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
33508         Reported by Vefa Bicakci <bicave@superonline.com> in
33509         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
33510         * modules/getdate (Depends-on): Add c-ctype.
33511
33512 2008-08-02  Bruno Haible  <bruno@clisp.org>
33513
33514         * gnulib-tool (func_import): When updating or creating a .gitignore
33515         file, prepend each added line with a slash, and ignore leading slashes
33516         from the existing lines.
33517         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33518
33519 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33520
33521         Portability fix for GNU make 3.79.1.
33522         * top/GNUmakefile: Avoid 'else COND', which older GNU make
33523         versions do not understand.
33524
33525 2008-08-01  Bruno Haible  <bruno@clisp.org>
33526
33527         Work around bug of HP-UX 10.20 cc with -0.0 literal.
33528         * tests/test-isnanf.h (zero): New variable.
33529         (main): Avoid literal -0.0f.
33530         * tests/test-isnand.h (zero): New variable.
33531         (main): Avoid literal -0.0.
33532         * tests/test-isnanl.h (zero): New variable.
33533         (main): Avoid literal -0.0L.
33534         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
33535         (test_float, test_double, test_long_double): Avoid literals -0.0f,
33536         -0.0, -0.0L.
33537         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
33538         (test_signbitd): Avoid literal -0.0.
33539         (test_signbitl): Avoid literal -0.0L.
33540         * tests/test-ceilf1.c (zero): New variable.
33541         (main): Avoid literal -0.0f.
33542         * tests/test-ceill.c (zero): New variable.
33543         (main): Avoid literal -0.0L.
33544         * tests/test-floorf1.c (zero): New variable.
33545         (main): Avoid literal -0.0f.
33546         * tests/test-floorl.c (zero): New variable.
33547         (main): Avoid literal -0.0L.
33548         * tests/test-roundf1.c (zero): New variable.
33549         (main): Avoid literal -0.0f.
33550         * tests/test-round1.c (zero): New variable.
33551         (main): Avoid literal -0.0.
33552         * tests/test-roundl.c (zero): New variable.
33553         (main): Avoid literal -0.0L.
33554         * tests/test-truncf1.c (zero): New variable.
33555         (main): Avoid literal -0.0f.
33556         * tests/test-trunc1.c (zero): New variable.
33557         (main): Avoid literal -0.0.
33558         * tests/test-truncl.c (zero): New variable.
33559         (main): Avoid literal -0.0L.
33560         * tests/test-frexp.c (zero): New variable.
33561         (main): Avoid literal -0.0.
33562         * tests/test-frexpl.c (zero): New variable.
33563         (main): Avoid literal -0.0L.
33564         * tests/test-ldexpl.c (zero): New variable.
33565         (main): Avoid literal -0.0L.
33566         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33567         (zerod, zerol): New variables.
33568         (test_function): Avoid literals -0.0, -0.0L.
33569         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33570         (zerod, zerol): New variables.
33571         (test_function): Avoid literals -0.0, -0.0L.
33572         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33573         (zerod, zerol): New variables.
33574         (test_function): Avoid literals -0.0, -0.0L.
33575         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33576         (zerod, zerol): New variables.
33577         (test_function): Avoid literals -0.0, -0.0L.
33578         * tests/test-strtod.c (zero): New variable.
33579         (main): Avoid literal -0.0.
33580         Reported by Jonathan C. Patschke <jp@centtech.com>.
33581
33582 2008-07-31  Jim Meyering  <meyering@redhat.com>
33583
33584         sha256.h: correct definition of SHA224_DIGEST_SIZE
33585         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33586         Reported by Paulie Pena IV <paulie4@gmail.com>.
33587         Define as 224 / 8, rather than as a literal.
33588         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33589         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33590         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33591
33592 2008-07-31  Bruno Haible  <bruno@clisp.org>
33593
33594         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33595         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33596         Reported by Jonathan Patschke <jp@centtech.com>.
33597
33598 2008-07-31  Bruno Haible  <bruno@clisp.org>
33599
33600         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33601         Reported by Paolo Bonzini <bonzini@gnu.org>.
33602
33603 2008-07-30  Eric Blake  <ebb9@byu.net>
33604
33605         test-strtod: allow compilation without -lm
33606         * tests/test-strtod.c (main): Avoid link dependence on fabs.
33607         Reported by Dennis Clarke <blastwave@gmail.com>.
33608
33609 2008-07-28  Jim Meyering  <meyering@redhat.com>
33610
33611         bootstrap: work also when there are no .po files in po/
33612         * build-aux/bootstrap (update_po_files): Complete the change
33613         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
33614
33615 2008-07-27  Jim Meyering  <meyering@redhat.com>
33616
33617         * users.txt: Add zile.
33618
33619 2008-07-26  Ben Pfaff  <blp@gnu.org>
33620
33621         Add missing dependencies on new m4/exponent[fdl].m4 files.
33622         * modules/isnanf-nolibm: Add m4/exponentf.m4.
33623         * modules/isnand-nolibm: Add m4/exponentd.m4.
33624         * modules/isnanl-nolibm: Add m4/exponentl.m4.
33625         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
33626         m4/isnan[fdl].m4, because the macros actually used moved.
33627         Reported by Jim Meyering.
33628
33629 2008-07-14  Ben Pfaff  <blp@gnu.org>
33630
33631         Add isinf module.
33632         * lib/isinf.c: New file.
33633         * lib/math.in.h: Define isinf macro if we have decided to replace
33634         it.
33635         * m4/isinf.m4: New file.
33636         * m4/math_h.m4: Initialize and substitute variables for isinf
33637         module.
33638         * modules/isinf: New file.
33639         * modules/isinf-tests: New file.
33640         * modules/math: Add substitutions for new module.
33641         * tests/test-isinf.c: New file.
33642         * doc/posix-functions/isinf.texi: Mention new module.
33643         * MODULES.html.sh: Mention new module.
33644
33645 2008-07-14  Ben Pfaff  <blp@gnu.org>
33646
33647         Factor out some macros for use by additional modules.
33648         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
33649         exponentf.m4.
33650         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
33651         exponentd.m4.
33652         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
33653         file exponentl.m4.
33654         * m4/exponentf.m4: New file.
33655         * m4/exponentd.m4: New file.
33656         * m4/exponentl.m4: New file.
33657         * modules/isnanf: Use new file m4/exponentf.m4.
33658         * modules/isnand: Use new file m4/exponentd.m4.
33659         * modules/isnanl: Use new file m4/exponentl.m4.
33660
33661 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
33662
33663         mktime.c: normalize tp->tm_isdst value to -1/0/1.
33664         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
33665         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
33666         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
33667
33668         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
33669         readlink on platforms without PATH_MAX.
33670
33671 2008-07-21  Eric Blake  <ebb9@byu.net>
33672
33673         Warn, not fail, on stale version.
33674         * top/GNUmakefile (_curr-ver): Tone down previous patch.
33675
33676         Don't allow installation with stale devel version number.
33677         * top/GNUmakefile (_is-install-target): New macro.
33678         (_curr-ver): Forbid installation with stale version number.
33679
33680 2008-07-20  Bruno Haible  <bruno@clisp.org>
33681
33682         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
33683         TESTS_ENVIRONMENT.
33684         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
33685
33686 2008-07-20  Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/c-stack.h (c_stack_action): Add documentation.
33689         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
33690
33691 2008-07-20  Bruno Haible  <bruno@clisp.org>
33692
33693         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
33694         * modules/readlink (License): Likewise.
33695
33696 2008-07-17  Eric Blake  <ebb9@byu.net>
33697
33698         * modules/c-stack (Link): Fix typo.
33699
33700         Make c-stack use libsigsegv, when available.
33701         * modules/c-stack (Depends-on): Add libsigsegv.
33702         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
33703         needed.
33704         * lib/c-stack.c (SIGSTKSZ): Define fallback.
33705         (segv_handler, overflow_handler, c_stack_action)
33706         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
33707         implementation when libsigsegv is available, but only when using
33708         the library is necessary.
33709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
33710         comment, explaining why XSI check fails on Linux.
33711         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
33712         * tests/test-c-stack2.sh: Tweak skip message.
33713         * NEWS: Document new link-time requirements.
33714
33715 2008-07-16  Eric Blake  <ebb9@byu.net>
33716
33717         c-stack: Expose false positives when not using libsigsegv.
33718         * modules/c-stack-tests (Files): Expand test.
33719         * tests/test-c-stack.c (main): Add means to conditionally trigger
33720         non-overflow SIGSEGV.
33721         * tests/test-c-stack2.sh: New file.
33722
33723 2008-07-14  Bruno Haible  <bruno@clisp.org>
33724
33725         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
33726         Reported by Eric Blake.
33727
33728 2008-07-14  Sam Steingold  <sds@gnu.org>
33729             Bruno Haible  <bruno@clisp.org>
33730
33731         New module libsigsegv.
33732         * modules/libsigsegv: New file.
33733         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33734         modifications.
33735         * MODULES.html.sh (Signal handling): New section.
33736
33737 2008-07-14  Bruno Haible  <bruno@clisp.org>
33738
33739         * modules/unictype/ctype-* (Description): Add the word "function".
33740         Improves the resulting doc in MODULES.html.
33741
33742 2008-07-12  Ben Pfaff  <blp@gnu.org>
33743
33744         Add longlong module.
33745         * modules/longlong: New file.
33746
33747 2008-07-12  Bruno Haible  <bruno@clisp.org>
33748
33749         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33750         to empty.
33751
33752 2008-07-10  Ben Pfaff  <blp@gnu.org>
33753
33754         Add isnan module.
33755         * doc/posix-functions/isnan.texi: Mention new module.
33756         * lib/math.in.h: Define isnan macro if we have decided to replace
33757         it.
33758         * m4/isnan.m4: New file.
33759         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33760         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33761         also.
33762         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33763         redundancy.
33764         * m4/math_h.m4: Initialize and substitute variables for isnan
33765         module.
33766         * modules/isnan: New file.
33767         * modules/isnan-tests: New file.
33768         * modules/math: Add substitutions for new module.
33769         * tests/test-isnan.c: New file.
33770         * MODULES.html.sh: Mention new module.
33771
33772 2008-07-10  Ben Pfaff  <blp@gnu.org>
33773
33774         Add isnanf module.
33775         * lib/isnanf.m4: New file.
33776         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33777         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33778         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33779         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33780         * modules/isnanf: New file.
33781         * modules/isnanf-tests: New file.
33782         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33783         files.
33784         * tests/test-isnanf-nolibm.c: factored most of its contents into
33785         new file tests/test-isnanf.h.
33786         * tests/test-isnanf.h: New file.
33787         * tests/test-isnanf.c: New file.
33788         * MODULES.html.sh: Mention new module.
33789         * doc/glibc-functions/isnanf.texi: Mention new module.
33790
33791 2008-07-10  Ben Pfaff  <blp@gnu.org>
33792
33793         Add isnand module.
33794         * lib/isnand.h: New file.
33795         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33796         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33797         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33798         functionality also.
33799         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33800         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33801         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33802         * modules/isnand: New file.
33803         * modules/isnand-tests: New file.
33804         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33805         files.
33806         * tests/test-isnand-nolibm.c: factored most of its contents into
33807         new file tests/test-isnand.h.
33808         * tests/test-isnand.h: New file.
33809         * tests/test-isnand.c: New file.
33810         * MODULES.html.sh: Mention new module.
33811
33812 2008-07-10  Ben Pfaff  <blp@gnu.org>
33813
33814         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33815         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33816         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33817         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33818         * modules/isnanf-nolibm: Update references to renamed files.
33819         * modules/isnand-nolibm: Likewise.
33820         * modules/isnanf-nolibm-tests: Likewise.
33821         * modules/isnand-nolibm-tests: Likewise.
33822         * lib/frexp.c: Likewise.
33823         * lib/isfinite.c: Likewise.
33824         * lib/signbitd.c: Likewise.
33825         * lib/signbitf.c: Likewise.
33826         * lib/vasnprintf.c: Likewise.
33827         * tests/test-ceilf1.c: Likewise.
33828         * tests/test-ceilf2.c: Likewise.
33829         * tests/test-floorf1.c: Likewise.
33830         * tests/test-floorf2.c: Likewise.
33831         * tests/test-frexp.c: Likewise.
33832         * tests/test-round1.c: Likewise.
33833         * tests/test-round2.c: Likewise.
33834         * tests/test-roundf1.c: Likewise.
33835         * tests/test-strtod.c: Likewise.
33836         * tests/test-trunc1.c: Likewise.
33837         * tests/test-trunc2.c: Likewise.
33838         * tests/test-truncf1.c: Likewise.
33839         * tests/test-truncf2.c: Likewise.
33840         * NEWS: Mention the renamed header files.
33841
33842 2008-07-11  Jim Meyering  <meyering@redhat.com>
33843
33844         vc-list-files: make the last-resort awk code more portable
33845         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33846         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33847         does not support it.
33848
33849 2008-07-10  Eric Blake  <ebb9@byu.net>
33850
33851         Work with tar's bootstrap.
33852         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33853         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33854         an m4 comment.
33855
33856 2008-07-09  Jim Meyering  <meyering@redhat.com>
33857
33858         posix-shell.m4: fix typo that made this test malfunction
33859         * m4/posix-shell.m4: Remove capitalization in variable name.
33860
33861 2008-07-08  Bruno Haible  <bruno@clisp.org>
33862
33863         * m4/onceonly.m4: Update comments.
33864         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33865
33866 2008-07-04  Jim Meyering  <meyering@redhat.com>
33867
33868         * users.txt: Add vc-dwim.
33869         (bison, coreutils): Use the gitweb URL.
33870
33871 2008-07-03  Jim Meyering  <meyering@redhat.com>
33872
33873         * users.txt: Add libffcall.  From Sam Steingold.
33874
33875 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
33876
33877         getdate.y: do not ignore TZ with relative day, month or year offset
33878         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33879         relative-date-handling, since otherwise, the latter would clobber the
33880         sole output (an updated Start value) of the tz-handling block.
33881         * tests/test-getdate.c: Tests for the fix
33882
33883 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33884
33885         Recognize 'foo_LIBRARIES += libgnu.a'.
33886         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33887         makefile snippet has already specified an installation location,
33888         also using '+='.
33889
33890 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
33891
33892         getdate.y: factor out common actions
33893         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33894         Use them in place of open-coded actions.
33895
33896 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33897
33898         Add self-test for getdate module.
33899         * modules/getdate-tests: New file.
33900         * tests/test-getdate.c: New file.
33901
33902 2008-06-29  Bruno Haible  <bruno@clisp.org>
33903
33904         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33905         .gitignore.
33906         Reported by Sylvain Beucler <beuc@beuc.net>.
33907
33908 2008-06-29  Bruno Haible  <bruno@clisp.org>
33909
33910         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33911         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33912
33913 2008-06-29  Bruno Haible  <bruno@clisp.org>
33914
33915         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33916         EXTRA_DIST.
33917         Reported by Sylvain Beucler <beuc@beuc.net>.
33918
33919 2008-06-26  Jim Meyering  <meyering@redhat.com>
33920
33921         make several modules depend on the "open" module
33922         This provides slightly increased consistency when opening-for-write
33923         the name of a non-directory spelled with a trailing slash.
33924         * modules/chdir-safer: Likewise.
33925         * modules/chown: Likewise.
33926         * modules/clean-temp: Likewise.
33927         * modules/copy-file: Likewise.
33928         * modules/fchdir: Likewise.
33929         * modules/fcntl-safer: Likewise.
33930         * modules/pipe: Likewise.
33931         * modules/utime: Likewise.
33932         Prompted by Eric Blake and Bruno Haible.
33933
33934 2008-06-24  Andreas Schwab  <schwab@suse.de>
33935
33936         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33937         literals can be used as initializers for global variables.
33938
33939 2008-06-23  Eric Blake  <ebb9@byu.net>
33940
33941         Make gnulib-cache.m4 easier to diff.
33942         * gnulib-tool (func_import): Allow newlines when reading cached
33943         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33944
33945 2008-06-23  Bruno Haible  <bruno@clisp.org>
33946
33947         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33948         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33949         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33950         m4/signalblocking.m4.
33951         (gl_PREREQ_SIGACTION): Don't invoke it.
33952         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33953         gl_PREREQ_SIG_HANDLER_H.
33954         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33955         Don't check for sigaction here.
33956
33957 2008-06-23  Bruno Haible  <bruno@clisp.org>
33958
33959         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33960         (install_handlers): Don't set the SA_RESETHAND flag.
33961
33962 2008-06-23  Bruno Haible  <bruno@clisp.org>
33963
33964         * m4/sigaction.m4: Comment fixes.
33965         * lib/signal.in.h: Likewise.
33966
33967 2008-06-23  Eric Blake  <ebb9@byu.net>
33968
33969         Fix typo.
33970         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33971
33972         Avoid SA_ namespace.
33973         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33974         Reported by Ralf Wildenhues.
33975
33976         Avoid test failure due to SA_RESTORER.
33977         * tests/test-sigaction.c (SA_MASK): New macro.
33978         (main): Avoid failing due to extension flags being set.
33979         Reported by Jim Meyering.
33980
33981         Revert use of sig-handler.h in sigprocmask.c.
33982         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33983         it requires the existence of struct sigaction.
33984         * lib/sigprocmask.c (handler_t): Restore typedef.
33985         (rpl_signal, old_handlers): Use local type.
33986
33987 2008-06-22  Bruno Haible  <bruno@clisp.org>
33988
33989         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33990         conditionally.
33991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33992
33993 2008-06-22  Bruno Haible  <bruno@clisp.org>
33994
33995         * doc/posix-functions/siginterrupt.texi: Move note.
33996
33997         * lib/signal.in.h (SA_RESTART): New macro.
33998         * lib/sigaction.c: Update comment.
33999
34000         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
34001
34002         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
34003         (gl_PREREQ_SIGPROCMASK): Invoke it.
34004         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
34005
34006         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
34007
34008         * lib/sigprocmask.c: Update a comment.
34009
34010 2008-06-21  Eric Blake  <ebb9@byu.net>
34011
34012         Use sigaction module rather than signal().
34013         * modules/c-stack (Depends-on): Add sigaction.
34014         * modules/fatal-signal (Depends-on): Likewise.
34015         * modules/nanosleep (Depends-on): Likewise.
34016         * modules/sigprocmask (Files): Add sig-handler.h.
34017         * modules/sigaction (Files): Likewise.
34018         * lib/sig-handler.h (get_handler): New file, suggested by Paul
34019         Eggert.
34020         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
34021         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
34022         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34023         (init_fatal_signals): Likewise.
34024         * lib/nanosleep.c (rpl_nanosleep): Likewise.
34025         (siginterrupt): Delete fallback.
34026         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
34027         instead.
34028         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
34029         siginterrupt.
34030
34031         New module sigaction, for mingw.
34032         * modules/sigaction: New module...
34033         * modules/sigaction-tests: ...and its test.
34034         * m4/sigaction.m4: New file.
34035         * lib/sigaction.c: Likewise.
34036         * tests/test-sigaction.c: Likewise.
34037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
34038         * modules/signal (Makefile.am): Likewise.
34039         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
34040         needed.
34041         * doc/posix-headers/signal.texi (signal.h): Mention provided
34042         types.
34043         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
34044         that sigaction is preferable.
34045         * doc/posix-functions/sigaction.texi (sigaction): Mention new
34046         module.
34047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34048         sigaction.
34049
34050         Improve robustness of sigprocmask by overriding signal.
34051         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
34052         is in use.
34053         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
34054         (SIGKILL, SIGSTOP): Provide fallbacks.
34055         (rpl_signal): Implement.
34056         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
34057         signal can be called inside handlers.
34058
34059         Fix nanosleep module on mingw.
34060         * modules/nanosleep (Depends-on): Add sys_select.
34061         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
34062
34063         Fix licensing of sigprocmask.
34064         * modules/raise (License): Relicense as LGPL.
34065
34066 2008-06-21  Bruno Haible  <bruno@clisp.org>
34067
34068         * lib/propername.c (proper_name_utf8): Don't use the transliterated
34069         result if it contains question marks.
34070         Reported by Michael Geng <linux@michaelgeng.de>.
34071
34072 2008-06-19  Bruno Haible  <bruno@clisp.org>
34073
34074         Fix CVS-ism.
34075         * doc/gnulib.texi: Include updated-stamp.texi.
34076         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
34077         (updated-stamp.texi): New rule.
34078         (gnulib.info): Depend on it.
34079         * doc/.gitignore: Add updated-stamp.texi.
34080         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
34081
34082 2008-06-19  Bruno Haible  <bruno@clisp.org>
34083
34084         * doc/Makefile (gnulib.info): Update and simplify dependencies.
34085         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34086
34087 2008-06-19  Eric Blake  <ebb9@byu.net>
34088
34089         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
34090         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
34091         Reported by Stepan Kasal.
34092
34093 2008-06-18  Bruno Haible  <bruno@clisp.org>
34094
34095         * lib/fatal-signal.c (init_fatal_signals): Add comment.
34096         Reported by Eric Blake.
34097
34098 2008-06-18  Eric Blake  <ebb9@byu.net>
34099
34100         Work around cygwin 1.5.25 strsignal bug.
34101         * tests/test-strsignal.c: Allow for const char *.
34102         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
34103
34104 2008-06-18  Simon Josefsson  <simon@josefsson.org>
34105
34106         * users.txt: Update URL to article and add author/date
34107         information.
34108
34109 2008-06-17  Bruno Haible  <bruno@clisp.org>
34110
34111         New macro gl_DISABLE_THREADS.
34112         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
34113         if the user did not pass --enable-threads or --disable-threads option.
34114         (gl_DISABLE_THREADS): New macro.
34115         Reported by Eric Blake <ebb9@byu.net>.
34116
34117 2008-06-17  Bruno Haible  <bruno@clisp.org>
34118
34119         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
34120         when the macro ignores it.
34121         Based on a patch by Eric Blake <ebb9@byu.net>.
34122
34123 2008-06-17  Bruno Haible  <bruno@clisp.org>
34124
34125         * modules/tls (License): Change to LGPLv2+.
34126         Reported by Eric Blake.
34127
34128 2008-06-17  Eric Blake  <ebb9@byu.net>
34129
34130         Simplify c-stack prerequisites.
34131         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
34132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
34133         no longer requires <ucontext.h> to exist.  Optimize setrlimit
34134         check.
34135         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
34136         <sys/resource.h>.
34137
34138         Move c-stack test into testsuite.
34139         * modules/c-stack-tests: New file.
34140         * lib/c-stack.c [DEBUG]: Move test program...
34141         * tests/test-c-stack.c: ...into this new file.  Skip rather than
34142         fail test if sigaltstack is lacking.
34143         * tests/test-c-stack.sh: New driver file.
34144
34145 2008-06-16  Eric Blake  <ebb9@byu.net>
34146
34147         Use raise module consistently.
34148         * modules/fatal-signal (Depends-on): Add raise.
34149         * modules/sigprocmask (Depends-on): Likewise.
34150         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
34151         * lib/sigprocmask.c (sigprocmask): Likewise.
34152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34153         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
34154
34155         Fix compliance bug in sigpending.
34156         * lib/sigprocmask.c (sigpending): Return pending array via
34157         parameter, not return value.
34158
34159 2008-06-14  Eric Blake  <ebb9@byu.net>
34160
34161         Improve obstack-printf test code.
34162         * tests/test-obstack-printf.c (test_function): Fix comment, and
34163         simplify usage of obstack_* in macros.  Add a test for coverage.
34164         Reported by Bruno Haible.
34165
34166 2008-06-14  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
34169         array size as a constant, not as a const variable.
34170         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
34171         AC_USE_SYSTEM_EXTENSIONS.
34172         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34173         Test whether the obstack_printf function actually exists.
34174         * modules/obstack-printf (Depends-on): Add extensions.
34175         (Include): Remove obstack.h.
34176         * modules/obstack-printf-posix (Depends-on): Add extensions.
34177         (Include): Remove obstack.h.
34178
34179 2008-06-13  Eric Blake  <ebb9@byu.net>
34180
34181         Add obstack-printf and obstack-printf-posix modules.
34182         * modules/obstack-printf: New file.
34183         * modules/obstack-printf-posix: Likewise.
34184         * MODULES.html.sh (Misc): Mention them.
34185         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34186         Likewise.
34187         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34188         Likewise.
34189         * modules/stdio (Makefile.am): Accomodate new modules.
34190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34191         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
34192         Declare.
34193         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
34194         functions.
34195         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
34196         (gl_REPLACE_OBSTACK_PRINTF): New macros
34197         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
34198         * tests/test-obstack-printf.c: New file.
34199         * modules/obstack-printf-tests: Likewise.
34200         * modules/obstack-printf-posix-tests: Likewise.
34201
34202 2008-06-11  Bruno Haible  <bruno@clisp.org>
34203
34204         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
34205         * lib/open.c: Include errno.h.
34206         (open): Fail when attempting to write to a file that has a trailing
34207         slash.
34208         * tests/test-open.c (main): Test against trailing slash bug.
34209         * doc/posix-functions/open.texi: Mention the trailing slash bug.
34210
34211 2008-06-10  Bruno Haible  <bruno@clisp.org>
34212
34213         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
34214         for $? to work inside the trap command, with various /bin/sh-s.
34215         * tests/test-vc-list-files-cvs.sh: Likewise.
34216
34217 2008-06-10  Bruno Haible  <bruno@clisp.org>
34218
34219         * lib/acl-internal.h: Don't include gettext.h here.
34220         * lib/set-mode-acl.c: Include gettext.h here.
34221         * lib/copy-acl.c: Likewise.
34222
34223 2008-06-10  Bruno Haible  <bruno@clisp.org>
34224
34225         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
34226         * lib/wait-process.c (wait_subprocess): Likewise.
34227         * lib/execute.h (execute): Add termsigp argument.
34228         * lib/execute.c (execute): Likewise.
34229         * lib/csharpcomp.c (compile_csharp_using_pnet,
34230         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
34231         * lib/csharpexec.c (execute_csharp_using_pnet,
34232         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
34233         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
34234         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34235         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
34236         is_jikes_present): Update.
34237         * lib/javaexec.c (execute_java_class): Update.
34238         * lib/javaversion.c (execute_and_read_line): Update.
34239         * NEWS: Document the changes.
34240         Reported by Eric Blake.
34241
34242 2008-06-10  Eric Blake  <ebb9@byu.net>
34243
34244         Add missing include.
34245         * tests/test-strstr.c (includes): Add <signal.h>.
34246         * tests/test-strcasestr.c (includes): Likewise.
34247         * tests/test-memmem.c (includes): Likewise.
34248
34249 2008-06-10  Bruno Haible  <bruno@clisp.org>
34250
34251         * lib/wait-process.c (wait_subprocess): Add an assertion.
34252
34253 2008-06-10  Bruno Haible  <bruno@clisp.org>
34254
34255         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
34256
34257 2008-06-10  Bruno Haible  <bruno@clisp.org>
34258
34259         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
34260         using alarm().
34261         * tests/test-strcasestr.c (main): Likewise.
34262         * tests/test-strstr.c (main): Likewise.
34263
34264 2008-06-09  Bruno Haible  <bruno@clisp.org>
34265
34266         Work around the Solaris 10 ACE ACLs ABI change.
34267         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
34268         declare if ACL_NO_TRIVIAL is present.
34269         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
34270         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
34271         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
34272         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
34273         define if ACL_NO_TRIVIAL is present.
34274         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
34275         and use the current ABI.
34276         (file_has_acl): Use same #if condition as elsewhere.
34277         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
34278         in use, and use the current ABI.
34279         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
34280         Reported by Jim Meyering.
34281
34282 2008-06-09  Eric Blake  <ebb9@byu.net>
34283
34284         Work around environments that (stupidly) ignore SIGALRM.
34285         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
34286         before using alarm().
34287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34288         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34289         Reported by Ian Beckwith <ianb@erislabs.net>.
34290
34291         Produce autobuild blurb earlier in log.
34292         * modules/autobuild (configure.ac-early): Move AB_INIT here.
34293
34294 2008-06-09  Jim Meyering  <meyering@redhat.com>
34295         and OndÅ™ej Vašík  <ovasik@redhat.com>
34296
34297         utimens.c: correct kernel bug work-around
34298         OndÅ™ej Vašík found that the invalid return value of 280 indicates
34299         failure, not success, and the kernel bug we're trying to work
34300         around affects not just the utimensat call, but also the fallback
34301         futimens call.
34302         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
34303         not success.
34304         [HAVE_FUTIMENS]: Use the same work-around, here.
34305
34306 2008-06-09  Jim Meyering  <meyering@redhat.com>
34307
34308         add more guards around definition of ACE_-related code
34309         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
34310         ALLOW and ACE_OWNER are also defined.
34311
34312 2008-06-08  Bruno Haible  <bruno@clisp.org>
34313
34314         * lib/acl-internal.h: Add me as co-author.
34315         * lib/file-has-acl.c: Likewise.
34316         * lib/set-mode-acl.c: Likewise.
34317         * lib/copy-acl.c: Likewise.
34318
34319 2008-06-08  Bruno Haible  <bruno@clisp.org>
34320
34321         Add support for AIX ACLs.
34322         * lib/acl-internal.h (acl_nontrivial): New declaration.
34323         * lib/file-has-acl.c (acl_nontrivial): New function.
34324         (file_has_acl): Add implementation using AIX 4 ACL API.
34325         * lib/set-mode-acl.c (qset_acl): Likewise.
34326         * lib/copy-acl.c (qcopy_acl): Likewise.
34327
34328 2008-06-08  Bruno Haible  <bruno@clisp.org>
34329
34330         Add support for HP-UX ACLs.
34331         * lib/acl-internal.h (acl_nontrivial): New declaration.
34332         * lib/file-has-acl.c (acl_nontrivial): New function.
34333         (file_has_acl): Add implementation using HP-UX 11 ACL API.
34334         * lib/set-mode-acl.c (qset_acl): Likewise.
34335         * lib/copy-acl.c (qcopy_acl): Likewise.
34336
34337 2008-06-08  Bruno Haible  <bruno@clisp.org>
34338
34339         Add support for Cygwin ACLs.
34340         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
34341         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
34342         the chmod_or_fchmod call.
34343         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
34344
34345 2008-06-08  Bruno Haible  <bruno@clisp.org>
34346
34347         Fix bug with setuid modes in Solaris 10+ code.
34348         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
34349         succeeded, when the mode contains some special bits.
34350
34351 2008-06-08  Bruno Haible  <bruno@clisp.org>
34352
34353         Add support for Solaris 7..10 ACLs.
34354         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
34355         declarations.
34356         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
34357         functions.
34358         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
34359         * lib/set-mode-acl.c (qset_acl): Likewise.
34360         * lib/copy-acl.c (qcopy_acl): Likewise.
34361
34362 2008-06-08  Bruno Haible  <bruno@clisp.org>
34363
34364         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
34365         declaration.
34366         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
34367         (acl_access_nontrivial): Remove MacOS X case.
34368         (file_has_acl): Use acl_extended_nontrivial.
34369         * lib/copy-acl.c (qcopy_acl): Likewise.
34370
34371 2008-06-08  Bruno Haible  <bruno@clisp.org>
34372
34373         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
34374
34375 2008-06-08  Jim Meyering  <meyering@redhat.com>
34376
34377         * modules/acl (Maintainer): Add Bruno Haible.
34378
34379 2008-06-07  Bruno Haible  <bruno@clisp.org>
34380
34381         Improve support for Tru64 ACLs.
34382         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
34383         ACL on OSF/1.
34384
34385 2008-06-07  Bruno Haible  <bruno@clisp.org>
34386
34387         Add support for MacOS X ACLs.
34388         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
34389         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
34390         * lib/set-mode-acl.c (qset_acl): Likewise.
34391         * lib/copy-acl.c (qcopy_acl): Likewise.
34392
34393 2008-06-07  Bruno Haible  <bruno@clisp.org>
34394
34395         Fix memory leak introduced on 2008-05-22.
34396         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
34397         use.
34398
34399 2008-06-07  Bruno Haible  <bruno@clisp.org>
34400
34401         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
34402         to construct an empty ACL.
34403
34404 2008-06-07  Bruno Haible  <bruno@clisp.org>
34405
34406         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
34407         precisely.
34408         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
34409
34410 2008-06-07  Bruno Haible  <bruno@clisp.org>
34411
34412         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
34413         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
34414
34415 2008-06-07  Bruno Haible  <bruno@clisp.org>
34416
34417         * doc/posix-functions/_setjmp.texi: Explain the use of this function
34418         regardless of POSIX.
34419         * doc/posix-functions/_longjmp.texi: Likewise.
34420         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
34421         SystemV platform in this case.
34422
34423 2008-06-06  Eric Blake  <ebb9@byu.net>
34424
34425         Document abort() bugs.
34426         * doc/posix-functions/abort.texi (abort): Mention anomalies.
34427
34428         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
34429         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
34430         sigsetjmp.
34431         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
34432         siglongjmp, but only as a macro.
34433         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
34434         is obsolete.
34435         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
34436
34437         Tweak documentation to cover cygwin argz bugs.
34438         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
34439         argz bug fix; no code change needed since no cygwin releases
34440         occurred between the last fix and the bug being tested.
34441         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
34442         module and recently fixed cygwin bugs.
34443         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
34444         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
34445         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
34446         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
34447         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
34448         Likewise.
34449         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
34450         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
34451         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
34452         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
34453         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
34454         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
34455         Likewise.
34456
34457         Avoid gcc warning on cygwin.
34458         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
34459         !ACL_NO_TRIVIAL]: Avoid unused variable.
34460
34461 2008-06-05  Eric Blake  <ebb9@byu.net>
34462
34463         Be tolerant of UNKNOWN version in gnulib-tool test dir.
34464         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
34465         git-version-gen fails to come up with a version.
34466         Reported by Simon Josefsson.
34467
34468 2008-06-05  Jim Meyering  <meyering@redhat.com>
34469             Paul Eggert  <eggert@cs.ucla.edu>
34470
34471         utimens.c: work around a probable Linux kernel bug
34472         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
34473         appears to be a kernel bug that causes utimensat to return 280
34474         instead of 0, indicating success.
34475
34476 2008-06-04  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
34479         2008-06-01 commit.
34480
34481 2008-06-04  Bruno Haible  <bruno@clisp.org>
34482
34483         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
34484         * lib/file-has-acl.c (acl_access_nontrivial): New function.
34485         (file_has_acl): Use it. Save errno afterwards.
34486         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
34487
34488 2008-06-03  Bruno Haible  <bruno@clisp.org>
34489
34490         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
34491         draft code. Simplify #ifs.
34492         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
34493         Put Solaris code after POSIX-draft code. Fix comments regarding
34494         Solaris 10, HP-UX. Mention Cygwin.
34495         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
34496
34497 2008-06-03  Eric Blake  <ebb9@byu.net>
34498
34499         Provide fallback for older kernels.
34500         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
34501         Provide runtime fallback if kernel lacks support.
34502         Reported by Mike Frysinger.
34503
34504 2008-06-02  Bruno Haible  <bruno@clisp.org>
34505
34506         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
34507         it exists.
34508
34509 2008-06-02  Bruno Haible  <bruno@clisp.org>
34510
34511         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
34512         * lib/copy-acl.c (qcopy_acl): Update comment.
34513
34514 2008-06-02  Bruno Haible  <bruno@clisp.org>
34515
34516         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
34517         like ACL APIs.
34518
34519 2008-06-02  Bruno Haible  <bruno@clisp.org>
34520
34521         * tests/test-file-has-acl.sh: Use different code for Cygwin.
34522         * tests/test-set-mode-acl.sh: Likewise.
34523         * tests/test-copy-acl.sh: Likewise.
34524         * tests/test-copy-file.sh: Likewise.
34525
34526 2008-06-02  Bruno Haible  <bruno@clisp.org>
34527
34528         * tests/test-file-has-acl.sh: Remove unused code.
34529
34530 2008-06-01  Bruno Haible  <bruno@clisp.org>
34531
34532         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
34533         (copy_acl): Just a wrapper around qcopy_acl that emits the error
34534         messages.
34535         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
34536
34537 2008-06-01  Bruno Haible  <bruno@clisp.org>
34538
34539         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
34540         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
34541         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
34542         APIs.
34543         * modules/acl-tests (configure.ac): Remove tests now contained in
34544         m4/acl.m4.
34545
34546 2008-06-02  Jim Meyering  <meyering@redhat.com>
34547
34548         announce-gen: use a better key-server host name
34549         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
34550         it may be more consistently reliable.  Suggested by Werner Koch
34551         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
34552
34553 2008-06-01  Bruno Haible  <bruno@clisp.org>
34554
34555         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
34556         Reported by Voroskoi Andras <voroskoi@gmail.com>.
34557
34558 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
34559
34560         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
34561
34562 2008-06-01  Bruno Haible  <bruno@clisp.org>
34563
34564         New ACL tests.
34565         * tests/test-file-has-acl.sh: New file.
34566         * tests/test-file-has-acl.c: New file.
34567         * tests/test-set-mode-acl.sh: New file.
34568         * tests/test-set-mode-acl.c: New file.
34569         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
34570         * tests/test-copy-acl.c: New file.
34571         * modules/acl-tests: New file, based on modules/copy-file-tests.
34572         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34573         (Depends-on): Add acl-tests.
34574         (configure.ac): Remove checks.
34575         (Makefile.am): Don't create test-sameacls program here any more.
34576
34577 2008-06-01  Bruno Haible  <bruno@clisp.org>
34578
34579         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34580         * tests/test-sameacls.c: Include progname.h.
34581         (main): Invoke set_program_name. Portability fixes for MacOS X,
34582         Solaris, HP-UX.
34583
34584 2008-06-01  Bruno Haible  <bruno@clisp.org>
34585
34586         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34587         function.
34588         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34589
34590 2008-06-01  Bruno Haible  <bruno@clisp.org>
34591
34592         * modules/rpmatch (Depends-on): Add strdup.
34593
34594 2008-06-01  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/pipe.c: Include unistd-safer.h.
34597         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34598         * modules/pipe (Depends-on): Add unistd-safer.
34599
34600 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34601
34602         * modules/autobuild (configure.ac): Call AB_INIT.
34603
34604 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34605
34606         * tests/test-getaddrinfo.c: Don't print debug messages by default.
34607         Suggested by Bruno Haible <bruno@clisp.org>.
34608
34609 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34610
34611         * tests/test-base64.c: Cast size_t to unsigned long when invoking
34612         printf.  Use %lu instead of %d.  Reported by Bruno Haible
34613         <bruno@clisp.org>.
34614
34615 2008-05-29  Eric Blake  <ebb9@byu.net>
34616
34617         Prefer new POSIX 200x interfaces over futimesat.
34618         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
34619         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
34620         when available.
34621         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
34622
34623 2008-05-28  Bruno Haible  <bruno@clisp.org>
34624
34625         * modules/stpcpy (License): Change to LGPLv2+.
34626         Requested by David Lutterkort <dlutter@redhat.com>.
34627
34628 2008-05-27  Bruno Haible  <bruno@clisp.org>
34629
34630         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
34631         current mingw.
34632         Reported by Jose E. Marchesi <jemarch@gnu.org>.
34633
34634 2008-05-27  Bruno Haible  <bruno@clisp.org>
34635
34636         * modules/iconv_open (Link): New section, from module 'iconv'.
34637         * modules/striconv (Link): Likewise.
34638         * modules/striconveh (Link): Likewise.
34639         * modules/xstriconv (Link): Likewise.
34640         * modules/unicodeio (Link): Likewise.
34641         * modules/propername (Link): Likewise.
34642         Reported by Jim Meyering.
34643
34644 2008-05-26  Jim Meyering  <meyering@redhat.com>
34645
34646         sha256: do not artificially restrict buffer length to be < 2^32
34647         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
34648         uint32_t to size_t.
34649         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
34650         to match.
34651
34652         avoid unaligned access errors, e.g., on sparc
34653         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
34654         direct access through a possibly-unaligned uint64* pointer.
34655         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
34656         direct access through a possibly-unaligned uint32* pointer.
34657         Prompted by this patch from Tom "spot" Callaway:
34658         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
34659
34660         sha512.c: fix typo in comment
34661         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
34662
34663 2008-05-25  Bruno Haible  <bruno@clisp.org>
34664
34665         * lib/set-mode-acl.c: Renamed from lib/acl.c.
34666         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
34667         (Makefile.am): Update lib_SOURCES.
34668
34669 2008-05-25  Bruno Haible  <bruno@clisp.org>
34670
34671         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
34672
34673 2008-05-25  Jim Meyering  <meyering@redhat.com>
34674
34675         useless-if-before-free: freed expr may have white-space differences
34676         * build-aux/useless-if-before-free: Recognize cases in which the
34677         freed expression differs from the tested one in embedded white
34678         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
34679         $1 was used, so we can't make any regexp shy.  Improved tests now
34680         detect this.
34681
34682         useless-if-before-free: accept white space in the expression.
34683         * build-aux/useless-if-before-free: For now, any white space
34684         in the expression must be identical in the free argument.
34685
34686         useless-if-before-free: efficiency tweak
34687         * build-aux/useless-if-before-free: Make the expression-matching
34688         regexp "shy".
34689         Make the *outer* regexp shy, not the expr-matching one.
34690
34691         update code-in-comment to accept cast of free arg
34692         * build-aux/useless-if-before-free: Update regexp.
34693
34694 2008-05-25  Bruno Haible  <bruno@clisp.org>
34695
34696         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
34697         * modules/copy-file-tests (Files, Makefile.am): Update.
34698         * tests/test-copy-file.c (func_test_copy): Update.
34699
34700 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
34701
34702         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
34703
34704 2008-05-23  Bruno Haible  <bruno@clisp.org>
34705
34706         Improve support for ACLs on OSF/1.
34707         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
34708         Remove fallback for unknown flavors of ACLs.
34709
34710 2008-05-22  Bruno Haible  <bruno@clisp.org>
34711
34712         Add support for ACLs on OSF/1.
34713         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
34714         replacements.
34715         (acl_free_text): New macro fallback.
34716         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
34717         acl_free.
34718         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
34719         acl_free_text function. Require AC_C_INLINE.
34720
34721 2008-05-22  Bruno Haible  <bruno@clisp.org>
34722
34723         Make copy_acl work on MacOS X 10.5.
34724         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
34725         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
34726         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
34727         If MODE_INSIDE_ACL, don't assume that every system has the same text
34728         representation for ACLs as FreeBSD.
34729         * lib/copy-acl.c (copy_acl): Add support for platforms with
34730         !MODE_INSIDE_ACL.
34731         * lib/file-has-acl.c (file_has_acl): Likewise.
34732         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34733         FreeBSD, MacOS X, or IRIX, respectively.
34734
34735 2008-05-22  Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/acl.h: Don't include <sys/acl.h>.
34738         (GETACLCNT): Move fallback to lib/acl-internal.h.
34739         * lib/acl-internal.h: Include <sys/acl.h> here.
34740         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34741
34742 2008-05-22  Bruno Haible  <bruno@clisp.org>
34743
34744         Split off copy_acl function to separate file.
34745         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34746         * lib/acl.c (copy_acl): Moved function to separate file.
34747         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34748         * modules/acl (Files): Add lib/copy-acl.c.
34749         (Makefiles.am): Augment lib_SOURCES.
34750
34751 2008-05-22  Bruno Haible  <bruno@clisp.org>
34752
34753         * modules/copy-file-tests: New file.
34754         * tests/test-copy-file.sh: New file.
34755         * tests/test-copy-file.c: New file.
34756         * tests/test-copy-file-sameacls.c: New file.
34757
34758 2008-05-22  Eric Blake  <ebb9@byu.net>
34759
34760         Avoid gcc warning.
34761         * tests/test-memcmp.c (main): Pass NULL indirectly.
34762
34763 2008-05-21  Bruno Haible  <bruno@clisp.org>
34764
34765         Add reference doc about ACLs.
34766         * doc/acl-resources.txt: New file.
34767         * doc/acl-cygwin.txt: New file.
34768
34769 2008-05-21  Bruno Haible  <bruno@clisp.org>
34770
34771         Avoid one more warning from gcc.
34772         * lib/vasnprintf.c (IF_LINT): Update comments.
34773         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34774
34775 2008-05-21  Jim Meyering  <meyering@redhat.com>
34776
34777         avoid a warning from gcc
34778         * lib/vasnprintf.c (IF_LINT): Define.
34779         (scale10_round_decimal_long_double):
34780         Use it to avoid a "may be used uninitialized" warning.
34781         (scale10_round_decimal_double): Likewise.
34782
34783 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34784
34785         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34786         declared.
34787
34788 2008-05-20  Bruno Haible  <bruno@clisp.org>
34789
34790         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34791         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34792
34793 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34794
34795         * modules/memcmp-tests: New file.
34796         * tests/test-memcmp.c: New file.
34797
34798 2008-05-19  Bruno Haible  <bruno@clisp.org>
34799
34800         * modules/propername (Notice, configure.ac): Put quoted "..." into
34801         --keyword option.
34802         * lib/propername.h: Update comments accordingly.
34803         Reported by Eric Blake.
34804
34805 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34806
34807         * modules/getpass-gnu (Depends-on): Add fseeko.
34808
34809 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34810
34811         * modules/base64-tests: New file.
34812
34813 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34814
34815         * lib/base64.c (base64_decode_ctx): If a decode context structure
34816         was passed in use it to ignore newlines.  If a context structure
34817         was _not_ passed in, continue to treat newlines as garbage (this
34818         is the historical behavior).  Formerly base64_decode.
34819         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34820         takes a decode context structure.
34821         * lib/base64.h (base64_decode): Macro for four-argument calls.
34822         (base64_decode_alloc): Likewise.
34823         * lib/base64.c (base64_decode_ctx): If a decode context structure
34824         was passed in use it to ignore newlines.  If a context structure
34825         was _not_ passed in, continue to treat newlines as garbage (this
34826         is the historical behavior).  Formerly base64_decode.
34827         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34828         takes a decode context structure.
34829         * lib/base64.h (base64_decode): Macro for four-argument calls.
34830         (base64_decode_alloc): Likewise.
34831
34832 2008-05-19  Jim Meyering  <meyering@redhat.com>
34833
34834         avoid a warning from gcc
34835         * lib/trim.c (IF_LINT): Define.
34836         (trim2): Use it to avoid a "may be used uninitialized" warning.
34837
34838         Fix doc typo.
34839         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34840
34841 2008-05-19  Bruno Haible  <bruno@clisp.org>
34842
34843         * doc/glibc-functions/getpass.texi: Document limits of other
34844         implementations.
34845
34846 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34847             Bruno Haible <bruno@clisp.org>
34848
34849         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34850
34851 2008-05-18  Bruno Haible  <bruno@clisp.org>
34852
34853         * modules/propername: New file, from GNU gettext.
34854         * lib/propername.h: New file, from GNU gettext.
34855         * lib/propername.c: New file, from GNU gettext.
34856         * MODULES.html.sh (Internationalization functions): Add propername.
34857
34858 2008-05-16  Jim Meyering  <meyering@redhat.com>
34859             Bruno Haible  <bruno@clisp.org>
34860
34861         Avoid some warnings from "gcc -Wshadow".
34862         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34863
34864 2008-05-15  Eric Blake  <ebb9@byu.net>
34865
34866         Extend previous patch to cygwin 1.7.0.
34867         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34868         fast implementation in cygwin >= 1.7.0.
34869         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34871
34872 2008-05-15  Bruno Haible  <bruno@clisp.org>
34873
34874         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34875         implementation in glibc >= 2.9.
34876         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34878
34879 2008-05-15  Bruno Haible  <bruno@clisp.org>
34880
34881         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34882         (Unicode string functions): Add unilbrk/*.
34883         Reported by Karl Berry.
34884
34885 2008-05-15  Eric Blake  <ebb9@byu.net>
34886
34887         Fix violation of <stdbool.h> replacement in regex.
34888         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34889         * lib/regexec.c (re_search_internal): Likewise.
34890         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34891
34892 2008-05-15  Jim Meyering  <meyering@redhat.com>
34893
34894         avoid distracting test output when git or cvs is not found
34895         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34896         * tests/test-vc-list-files-git.sh: Likewise.
34897
34898 2008-05-15  Eric Blake  <ebb9@byu.net>
34899
34900         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34901         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34902         glibc version.
34903         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34904         * doc/posix-functions/strstr.texi (strstr): Likewise.
34905         * lib/str-two-way.h (MAX): Sychronize with glibc.
34906
34907 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34908
34909         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34910         opr.ctx_type.
34911         (calc_first): Initialize constraint field.
34912         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34913         Fix grammar.
34914         (duplicate_node): Merge constraint field for all node types.
34915         (calc_eclosure_iter): Look at constraint field for all node types.
34916         * lib/regex_internal.c (create_cd_newstate): Don't look at
34917         opr.ctx_type.
34918
34919 2008-05-14  Bruno Haible  <bruno@clisp.org>
34920
34921         Help GCC to do better code generation.
34922         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34923         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34924         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34925         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34926         Declare with attribute 'malloc' if supported.
34927
34928 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34929
34930         use "echo STR|wc -c" rather than unportable "expr length STR"
34931         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34932         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34933
34934 2008-05-14  Jim Meyering  <meyering@redhat.com>
34935
34936         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34937         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34938         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34939         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34940         via Collin Lasse.
34941
34942 2008-05-14  Eric Blake  <ebb9@byu.net>
34943
34944         Avoid quadratic growth in gl_LIBSOURCES.
34945         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34946         Suggested by Bruno Haible.
34947
34948         Test xmemdup0.
34949         * modules/xmemdup0-tests: New file.
34950         * tests/test-xmemdup0.c: Likewise.
34951
34952 2008-05-13  Eric Blake  <ebb9@byu.net>
34953
34954         Split xmemdup0 into its own module.
34955         * modules/xmemdup0: New file.
34956         * lib/xmemdup0.h: Likewise.
34957         * lib/xmemdup0.c: Likewise.
34958         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34959         * lib/xalloc.h (xmemdup0): Remove.
34960         * lib/xmalloc.c (xmemdup0): Likewise.
34961
34962 2008-05-13  Eric Blake  <ebb9@byu.net>
34963             Bruno Haible  <bruno@clisp.org>
34964
34965         Reduce number of forks required during autoconf.
34966         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34967         and gl_LIBSOURCES_DIR.
34968         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34969         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34970         m4_syscmd per file.
34971         <m4_foreach_w>: Move...
34972         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34973
34974 2008-05-13  Eric Blake  <ebb9@byu.net>
34975
34976         * gnulib-tool: Fix various comment typos.
34977
34978 2008-05-12  Bruno Haible  <bruno@clisp.org>
34979
34980         Tailor the linebreaking algorithm.
34981         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34982
34983 2008-05-12  Bruno Haible  <bruno@clisp.org>
34984
34985         Update to Unicode 5.0.0.
34986         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34987         LBP_JV, LBP_JT. Redistribute values.
34988         (unilbrk_table): Change size.
34989         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34990         Unicode TR#14 rev. 22.
34991         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34992         LBP_JV, LBP_JT. Redistribute values.
34993         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34994         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34995         Update.
34996         * lib/unilbrk/lbrkprop1.h: Regenerated.
34997         * lib/unilbrk/lbrkprop2.h: Regenerated.
34998         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34999         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
35000         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
35001         Likewise.
35002         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
35003         Likewise.
35004         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
35005         result.
35006         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35007         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35008         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
35009         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
35010         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
35011         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
35012
35013 2008-05-11  Bruno Haible  <bruno@clisp.org>
35014
35015         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
35016
35017 2008-05-11  Bruno Haible  <bruno@clisp.org>
35018
35019         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
35020         * modules/unilbrk/gen-lbrk: New file.
35021
35022 2008-05-11  Bruno Haible  <bruno@clisp.org>
35023
35024         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
35025         * m4/sha512.m4 (gl_SHA512): Likewise.
35026
35027 2008-05-11  Jim Meyering  <meyering@redhat.com>
35028
35029         New modules: crypto/sha256, crypto/sha512 (from coreutils)
35030         * modules/crypto/sha256: New file.
35031         * modules/crypto/sha512: Likewise.
35032         * lib/sha256.c: Likewise.
35033         * lib/sha256.h: Likewise.
35034         * lib/sha512.c: Likewise.
35035         * lib/sha512.h: Likewise.
35036         * lib/u64.h: Likewise.
35037         * m4/sha256.m4: Likewise.
35038         * m4/sha512.m4: Likewise.
35039         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
35040
35041 2008-05-10  Bruno Haible  <bruno@clisp.org>
35042
35043         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
35044         (Input/Output <stdio.h>): Add xprintf.
35045         (Signal handling <signal.h>): Add strsignal.
35046         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
35047         (Core language properties): Add func.
35048         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
35049         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
35050         strings.
35051         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
35052         (Input/output): New section.
35053         (File system functions): Add openat-die, stat-macros.
35054         (Networking functions): Add sockets.
35055         (Unicode string functions): Add unictype/*.
35056         (Support for building libraries and executables): Add gperf.
35057         (Support for building documentation): Add agpl-3.0.
35058         (Misc): Add nocrash.
35059
35060 2008-05-10  Bruno Haible  <bruno@clisp.org>
35061
35062         * modules/unictype/gen-ctype: New file.
35063
35064 2008-05-10  Jim Meyering  <meyering@redhat.com>
35065
35066         Make chdir-safer.c more efficient on a system with no symlinks.
35067         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
35068         also if ELOOP is zero.  Suggested by Bruno Haible.
35069
35070         Make chdir-safer.c slightly safer.
35071         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
35072         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
35073
35074         Avoid compile failure on systems without ELOOP (like mingw).
35075         * lib/chdir-safer.c (ELOOP): Define if not already defined.
35076         Reported by Bruno Haible.
35077
35078 2008-05-10  Bruno Haible  <bruno@clisp.org>
35079
35080         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
35081         (is_utf8_encoding): Use a case-insensitive comparison.
35082         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
35083         streq.
35084
35085 2008-05-10  Bruno Haible  <bruno@clisp.org>
35086
35087         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
35088         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
35089         * lib/unilbrk/ulc-common.h (iconv_string_length,
35090         iconv_string_keeping_offsets): Remove declarations.
35091         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
35092         Don't include <iconv.h>, streq.h, xsize.h.
35093         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
35094         conversion.
35095         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
35096         <iconv.h>, streq.h, xsize.h.
35097         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
35098         conversion.
35099         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
35100         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
35101         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
35102         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
35103
35104 2008-05-10  Bruno Haible  <bruno@clisp.org>
35105
35106         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
35107         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
35108
35109         * modules/unilbrk/u32-width-linebreaks-tests: New file.
35110         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
35111
35112         * modules/unilbrk/u16-width-linebreaks-tests: New file.
35113         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
35114
35115         * modules/unilbrk/u8-width-linebreaks-tests: New file.
35116         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
35117
35118         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
35119         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
35120
35121         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
35122         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
35123
35124         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
35125         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
35126
35127         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
35128         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
35129
35130 2008-05-10  Bruno Haible  <bruno@clisp.org>
35131
35132         Split up 'linebreak' module.
35133         * lib/unilbrk.h: New file, based on lib/linebreak.h.
35134         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
35135         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
35136         modifications.
35137         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
35138         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
35139         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
35140         lib/linebreak.c.
35141         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
35142         lib/linebreak.c.
35143         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
35144         lib/linebreak.c.
35145         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
35146         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
35147         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
35148         lib/linebreak.c.
35149         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
35150         lib/linebreak.c.
35151         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
35152         lib/linebreak.c.
35153         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
35154         lib/linebreak.c.
35155         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
35156         lib/linebreak.c.
35157         * modules/unilbrk/base: New file.
35158         * modules/unilbrk/tables: New file.
35159         * modules/unilbrk/u8-possible-linebreaks: New file.
35160         * modules/unilbrk/u16-possible-linebreaks: New file.
35161         * modules/unilbrk/u32-possible-linebreaks: New file.
35162         * modules/unilbrk/ulc-common: New file.
35163         * modules/unilbrk/ulc-possible-linebreaks: New file.
35164         * modules/unilbrk/u8-width-linebreaks: New file.
35165         * modules/unilbrk/u16-width-linebreaks: New file.
35166         * modules/unilbrk/u32-width-linebreaks: New file.
35167         * modules/unilbrk/ulc-width-linebreaks: New file.
35168         * lib/linebreak.h: Remove file.
35169         * lib/linebreak.c: Remove file.
35170         * m4/linebreak.m4: Remove file.
35171         * modules/linebreak: Remove file.
35172         * NEWS: Mention the changes.
35173
35174 2008-05-09  Eric Blake  <ebb9@byu.net>
35175
35176         Add xmemdup0.
35177         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
35178         implementation.
35179         * lib/xmalloc.c (xmemdup0): New C implementation.
35180
35181 2008-05-08  Bruno Haible  <bruno@clisp.org>
35182
35183         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
35184
35185 2008-05-07  Eric Blake  <ebb9@byu.net>
35186
35187         Support cross-compilation of <wctype.h>.
35188         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
35189         AC_CACHE_CHECK.
35190
35191 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
35192
35193         * build-aux/vc-list-files: Add support for bzr.
35194
35195 2008-05-03  Jim Meyering  <meyering@redhat.com>
35196
35197         avoid failed assertion with tight malloc
35198         * tests/test-getndelim2.c: Correct an off-by-one assertion.
35199
35200 2008-05-03  Simon Josefsson  <simon@josefsson.org>
35201
35202         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
35203         are needed from arpa/inet.h.
35204         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
35205         Reported by Bruno Haible.
35206
35207 2008-05-02  Jim Meyering  <meyering@redhat.com>
35208
35209         avoid compilation error on FreeBSD 6
35210         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
35211
35212 2008-05-01  Jim Meyering  <meyering@redhat.com>
35213
35214         useless-if-before-free: correct --help's exit status description
35215         * build-aux/useless-if-before-free (usage): Like grep, exit 0
35216         for one or more matches, etc.  Reported by Bruno Haible.
35217
35218         vc-list-files: make the stand-alone gnulib test work
35219         * modules/vc-list-files-tests (configure.ac):
35220         Define and AC_SUBST abs_aux_dir.
35221         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
35222         $(abs_top_srcdir) to each script and having each of them
35223         duplicate the work of setting PATH, set PATH here, using
35224         the new variable, abs_aux_dir instead.
35225         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
35226         * tests/test-vc-list-files-git.sh: Likewise.
35227         Reported by Bruno Haible.
35228
35229 2008-05-01  Bruno Haible  <bruno@clisp.org>
35230
35231         * lib/getndelim2.c (getndelim2): Fix newsize computation during
35232         reallocation. Rename 'done' to 'found_delimiter'.
35233
35234 2008-05-01  Jim Meyering  <meyering@redhat.com>
35235
35236         vc-list-files: accommodate /bin/sh like the one from Solaris 10
35237         * build-aux/vc-list-files: Use `...`, not $(...).
35238
35239 2008-04-30  Jim Meyering  <meyering@redhat.com>
35240
35241         add tests for vc-list-files
35242         * modules/vc-list-files-tests: New module.
35243         * tests/test-vc-list-files-cvs.sh: New file.
35244         * tests/test-vc-list-files-git.sh: New file.
35245
35246         avoid a warning from gcc
35247         * lib/getndelim2.c (IF_LINT): Define.
35248         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
35249
35250         vc-list-files: work properly with build-aux/cvsu, too
35251         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
35252         to all cvs-based clauses.
35253
35254         vc-list-files: work properly in the CVS+awk case, too
35255         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
35256
35257         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
35258         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
35259         take more than one file argument, so .  Add quotes, just in case $dir
35260         ever contains a shell meta-character.  Prompted by Soren Hansen in
35261         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
35262
35263 2008-04-29  Eric Blake  <ebb9@byu.net>
35264
35265         Optimize getndelim2 to use block operations when possible.
35266         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
35267         freadseek, and memchr2.
35268         * lib/getndelim2.c (getndelim2): Use them for block reads.
35269
35270 2008-04-29  Bruno Haible  <bruno@clisp.org>
35271
35272         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
35273         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35274         * modules/inet_ntop (Depends-on): Add extensions.
35275         * modules/inet_pton (Depends-on): Likewise.
35276         Reported by Simon Josefsson.
35277
35278 2008-04-29  Jim Meyering  <meyering@redhat.com>
35279
35280         When the is more than one match in a block, match all of them.
35281         * build-aux/useless-if-before-free: Iterate through each block
35282         until there are no more matches.
35283
35284         Fix broken useless-if-before-free script.
35285         * build-aux/useless-if-before-free: Fix typo: missing "?" after
35286         the expression to match cast of argument to free-like function.
35287
35288 2008-04-29  Eric Blake  <ebb9@byu.net>
35289
35290         Use new header.
35291         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
35292
35293 2008-04-29  Jim Meyering  <meyering@redhat.com>
35294
35295         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
35296         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
35297         by gnulib to exist and to declare e.g., inet_ntop.
35298         Don't include "inet_ntop.h", now removed.
35299
35300         * m4/arpa_inet_h.m4: Remove trailing blanks.
35301
35302 2008-04-29  Eric Blake  <ebb9@byu.net>
35303
35304         Silence valgrind on safe reads beyond potential array bounds.
35305         * lib/rawmemchr.valgrind: New file.
35306         * lib/strchrnul.valgrind: Likewise.
35307         * modules/rawmemchr (Files): Distribute new file.
35308         * modules/strchrnul (Files): Likewise.
35309         Suggested by Bruno Haible.
35310
35311 2008-04-29  Bruno Haible  <bruno@clisp.org>
35312
35313         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
35314         (inet_ntop, inet_pton): Change portability warning's wording.
35315         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
35316         Invoke gl_CHECK_NEXT_HEADERS.
35317         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
35318         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
35319         set ARPA_INET_H.
35320         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35321         * modules/arpa_inet (Description): No longer only for systems that
35322         lack it.
35323         (Depends-on): Add include_next.
35324         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
35325         HAVE_ARPA_INET_H.
35326
35327 2008-04-29  Jim Meyering  <meyering@redhat.com>
35328
35329         * modules/mkdir (License): Re-license as LGPLv2+.
35330
35331 2008-04-29  Bruno Haible  <bruno@clisp.org>
35332
35333         * modules/rawmemchr (Maintainer): Set to Eric.
35334         * modules/strchrnul (Maintainer): Likewise.
35335
35336 2008-04-29  Simon Josefsson  <simon@josefsson.org>
35337
35338         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
35339         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
35340
35341         * modules/arpa_inet (arpa/inet.h): Use them.
35342
35343 2008-04-28  Eric Blake  <ebb9@byu.net>
35344
35345         Test getndelim2.
35346         * modules/getndelim2-tests: New file.
35347         * tests/test-getndelim2.c: Likewise.
35348         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
35349         stream.
35350         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
35351
35352         * MODULES.html.sh: Document new module.
35353
35354 2008-04-20  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/c-stack.c (die): Use raise.
35357         * modules/c-stack (Depends-on): Add raise.
35358
35359 2008-04-28  Bruno Haible  <bruno@clisp.org>
35360
35361         Expect rpmatch to be declared.
35362         * lib/yesno.c (rpmatch): Remove declaration.
35363
35364         Declare rpmatch.
35365         * lib/stdlib.in.h (rpmatch): New declaration.
35366         * lib/rpmatch.c: Include <stdlib.h> first.
35367         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
35368         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
35369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
35370         HAVE_RPMATCH.
35371         * modules/rpmatch (Depends-on): Add stdlib, extensions.
35372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35373         (Include): Set to <stdlib.h>.
35374         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
35375         HAVE_RPMATCH.
35376         * NEWS: Document the change.
35377
35378 2008-04-28  Bruno Haible  <bruno@clisp.org>
35379
35380         Change rpmatch to use nl_langinfo when appropriate.
35381         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
35382         (N_): New macro.
35383         (localized_pattern): New function/macro.
35384         (try): Remove match, nomatch arguments. Copy the pattern into safe
35385         memory before caching it.
35386         (rpmatch): Use localized_pattern. Add translator comments.
35387         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
35388         Suggested by Eric Blake.
35389         * modules/rpmatch (Depends-on): Add stdbool.
35390
35391 2008-04-28  Eric Blake  <ebb9@byu.net>
35392
35393         Add rawmemchr module, matching glibc.
35394         * modules/string (Makefile.am): New indicator.
35395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
35396         * lib/string.in.h (rawmemchr): Declare when appropriate.
35397         * modules/rawmemchr: New file.
35398         * m4/rawmemchr.m4: Likewise.
35399         * lib/rawmemchr.c: Likewise.
35400         * modules/rawmemchr-tests: Likewise.
35401         * tests/test-rawmemchr.c: Likewise.
35402         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
35403         module.
35404         * modules/strchrnul (Depends-on): Add rawmemchr.
35405         * lib/strchrnul.c (strchrnul): Optimize a corner case.
35406
35407         Whitespace cleanup.
35408         * tests/test-strchrnul.c: Reindent.
35409         * lib/strchrnul.c: Likewise.
35410
35411         Optimize and test strchrnul.
35412         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
35413         * modules/strchrnul-tests: New file.
35414         * tests/test-strchrnul.c: Likewise.
35415
35416         Remove intprops dependency.
35417         * modules/memchr (Depends-on): Remove intprops.
35418         * modules/memrchr (Depends-on): Likewise.
35419         * modules/memchr2 (Depends-on): Likewise.
35420         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
35421         * lib/memrchr.c (__memrchr): Likewise.
35422         * lib/memrchr2.c (memchr2): Likewise.
35423         Reported by Simon Josefsson.
35424
35425 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35426
35427         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
35428         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35429
35430 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35431
35432         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
35433
35434         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
35435
35436         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
35437
35438         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
35439         declarations.
35440         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
35441
35442         * m4/inet_pton.m4: Don't check for header files.
35443
35444         * m4/inet_ntop.m4: Don't check for header files.
35445
35446 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35447
35448         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
35449         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
35450         trigger for cygwin).
35451         Reported by Bruno Haible  <bruno@clisp.org>.
35452
35453 2008-04-28  Bruno Haible  <bruno@clisp.org>
35454
35455         * doc/posix-functions/strdup.texi: Mention mingw problem.
35456
35457 2008-04-27  Bruno Haible  <bruno@clisp.org>
35458
35459         * modules/stat-time-tests (Depends-on): Add sleep.
35460         * tests/test-stat-time.c (force_unlink): New function.
35461         (cleanup): Use it.
35462         (test_mtime): Remove the ctime related tests.
35463         (test_ctime): New function, containing the ctime related tests.
35464         (main): Call test_ctime, except on native Windows platforms.
35465
35466 2008-04-27  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/rpmatch.c (rpmatch): Add some comments.
35469         Reported by James Youngman <jay@gnu.org>.
35470
35471 2008-04-27  Bruno Haible  <bruno@clisp.org>
35472
35473         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
35474         quiet NaNs.
35475
35476 2008-04-27  Bruno Haible  <bruno@clisp.org>
35477
35478         Make test-yesno.sh work on mingw.
35479         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
35480         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
35481         (main): Set stdin to binary mode.
35482         * modules/yesno-tests (Depends-on): Add binary-io.
35483
35484 2008-04-27  Bruno Haible  <bruno@clisp.org>
35485
35486         Fix 'isfinite' on x86, x86_64, ia64 platforms.
35487         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
35488         argument that lie outside the IEEE 854 domain.
35489         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
35490         (gl_ISFINITE): Use it.
35491         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
35492
35493 2008-04-27  Bruno Haible  <bruno@clisp.org>
35494
35495         Allow local renaming in config.h.
35496         * lib/memrchr.c (memrchr): Don't undefine outside libc.
35497
35498 2008-04-27  Bruno Haible  <bruno@clisp.org>
35499
35500         * lib/memchr.c (__memchr): Change type of 'i'.
35501         * lib/memchr2.c (memchr2): Likewise.
35502
35503 2008-04-26  Eric Blake  <ebb9@byu.net>
35504         and Bruno Haible  <bruno@clisp.org>
35505
35506         Optimize and test memrchr.
35507         * modules/memrchr (Depends-on): Add intprops.
35508         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
35509         * modules/memrchr-tests: New file.
35510         * tests/test-memrchr.c: New file.
35511
35512 2008-04-26  Bruno Haible  <bruno@clisp.org>
35513
35514         Add tentative support for DragonFly BSD.
35515         * lib/stdio-impl.h: Add macros for DragonFly BSD.
35516         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
35517         fp.
35518         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35519         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
35520         * lib/fpurge.c (fpurge): Likewise.
35521         * lib/freadable.c (freaadable): Likewise.
35522         * lib/freadahead.c (freadahead): Likewise.
35523         * lib/freading.c (freading): Likewise.
35524         * lib/freadptr.c (freadptr): Likewise.
35525         * lib/freadseek.c (freadptrinc): Likewise.
35526         * lib/fseeko.c (fseeko): Likewise.
35527         * lib/fseterr.c (fseterr): Likewise.
35528         * lib/fwritable.c (fwritable): Likewise.
35529         * lib/fwriting.c (fwriting): Likewise.
35530
35531 2008-04-26  Bruno Haible  <bruno@clisp.org>
35532
35533         * lib/stdio-impl.h: New file.
35534         * lib/fbufmode.c: Include stdio-impl.h.
35535         (fbufmode): Use fp_, remove redundant #defines.
35536         * lib/fflush.c: Include stdio-impl.h.
35537         (clear_ungetc_buffer): Remove redundant #defines.
35538         * lib/fpurge.c: Include stdio-impl.h.
35539         (fpurge): Remove redundant #defines.
35540         * lib/freadable.c: Include stdio-impl.h.
35541         (freadable): Remove redundant #defines.
35542         * lib/freadahead.c: Include stdio-impl.h.
35543         (freadahead): Remove redundant #defines.
35544         * lib/freading.c: Include stdio-impl.h.
35545         (freading): Remove redundant #defines.
35546         * lib/freadptr.c: Include stdio-impl.h.
35547         (freadptr): Remove redundant #defines.
35548         * lib/freadseek.c: Include stdio-impl.h.
35549         (freadptrinc): Remove redundant #defines.
35550         * lib/fseeko.c: Include stdio-impl.h.
35551         (rpl_fseeko): Remove redundant #defines.
35552         * lib/fseterr.c: Include stdio-impl.h.
35553         (fseterr): Remove redundant #defines.
35554         * lib/fwritable.c: Include stdio-impl.h.
35555         (fwritable: Remove redundant #defines.
35556         * lib/fwriting.c: Include stdio-impl.h.
35557         (fwriting): Remove redundant #defines.
35558         * modules/fbufmode (Files): Add lib/stdio-impl.h.
35559         * modules/fflush (Files): Likewise.
35560         * modules/fpurge (Files): Likewise.
35561         * modules/freadable (Files): Likewise.
35562         * modules/freadahead (Files): Likewise.
35563         * modules/freading (Files): Likewise.
35564         * modules/freadptr (Files): Likewise.
35565         * modules/freadseek (Files): Likewise.
35566         * modules/fseeko (Files): Likewise.
35567         * modules/fseterr (Files): Likewise.
35568         * modules/fwritable (Files): Likewise.
35569         * modules/fwriting (Files): Likewise.
35570
35571 2008-04-26  Bruno Haible  <bruno@clisp.org>
35572
35573         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35574         restore_seek_optimization, update_fpos_cache): New functions, extracted
35575         from rpl_fflush.
35576         (rpl_fflush): Use them.
35577         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35578         (gl_REPLACE_FFLUSH): Use it.
35579
35580 2008-04-26  Bruno Haible  <bruno@clisp.org>
35581
35582         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35583         on Solaris.
35584         * tests/test-xstrtoimax.sh: Likewise.
35585         * tests/test-xstrtoumax.sh: Likewise.
35586         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35587
35588 2008-04-26  Bruno Haible  <bruno@clisp.org>
35589
35590         * modules/memchr-tests: New file.
35591         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35592
35593 2008-04-26  Eric Blake  <ebb9@byu.net>
35594             Bruno Haible  <bruno@clisp.org>
35595
35596         * lib/memchr.c: Include intprops.h.
35597         (__memchr): Optimize parallel detection of matching bytes. Rename local
35598         variables. Add explanatory comments.
35599
35600 2008-04-26  Bruno Haible  <bruno@clisp.org>
35601
35602         Fix module 'memchr', broken since 2000-10-28.
35603         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35604
35605 2008-04-26  Bruno Haible  <bruno@clisp.org>
35606
35607         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
35608         comments.
35609
35610 2008-04-25  Eric Blake  <ebb9@byu.net>
35611
35612         Use native fstatat on cygwin 1.7.0.
35613         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
35614         first.
35615
35616 2008-04-23  Eric Blake  <ebb9@byu.net>
35617
35618         Improve memchr2 performance.
35619         * lib/memchr2.c (memchr2): Further optimize parallel detection of
35620         NUL bytes.
35621         * modules/memchr2 (Depends-on): Use intprops.h.
35622
35623 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35624
35625         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
35626         an inline function instead of a CPP macro.  Patch by Ben Pfaff
35627         <blp@cs.stanford.edu>.
35628
35629 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35630
35631         * lib/arpa_inet.in.h: New file.
35632
35633         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
35634         (Makefile.am): Sed in substitute header file.
35635
35636         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
35637         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
35638
35639         * modules/inet_ntop (configure.ac): Use
35640         gl_ARPA_INET_MODULE_INDICATOR.
35641
35642         * modules/inet_pton (configure.ac): Use
35643         gl_ARPA_INET_MODULE_INDICATOR.
35644
35645 2008-04-22  Jim Meyering  <meyering@redhat.com>
35646
35647         * modules/verify (License): Re-license as LGPLv2+.
35648
35649 2008-04-22  Simon Josefsson  <simon@josefsson.org>
35650
35651         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
35652         parameter to void* as per POSIX standard (MinGW uses char*).
35653
35654 2008-04-21  Bruno Haible  <bruno@clisp.org>
35655
35656         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35657         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35658         Define to replacements if REPLACE_ISWCNTRL is 1.
35659         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
35660         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
35661         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
35662         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
35663         what it fixes.
35664         * doc/posix-functions/iswalpha.texi: Likewise.
35665         * doc/posix-functions/iswblank.texi: Likewise.
35666         * doc/posix-functions/iswcntrl.texi: Likewise.
35667         * doc/posix-functions/iswdigit.texi: Likewise.
35668         * doc/posix-functions/iswgraph.texi: Likewise.
35669         * doc/posix-functions/iswlower.texi: Likewise.
35670         * doc/posix-functions/iswprint.texi: Likewise.
35671         * doc/posix-functions/iswpunct.texi: Likewise.
35672         * doc/posix-functions/iswspace.texi: Likewise.
35673         * doc/posix-functions/iswupper.texi: Likewise.
35674         * doc/posix-functions/iswxdigit.texi: Likewise.
35675         Reported by Alain Guibert.
35676
35677 2008-04-21  Bruno Haible  <bruno@clisp.org>
35678
35679         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
35680         Patch by Alain Guibert.
35681
35682 2008-04-21  Bruno Haible  <bruno@clisp.org>
35683
35684         Fix test failures on mingw.
35685         * tests/test-xstrtol.c (print_no_progname): New function.
35686         (main): Install it in error_print_progname hook.
35687         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
35688         * tests/test-xstrtoimax.sh: Likewise.
35689         * tests/test-xstrtoumax.sh: Likewise.
35690
35691 2008-04-21  Bruno Haible  <bruno@clisp.org>
35692
35693         Fix test failure on mingw.
35694         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
35695
35696 2008-04-21  Bruno Haible  <bruno@clisp.org>
35697
35698         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
35699         Actually assign a value.
35700
35701 2008-04-20  Bruno Haible  <bruno@clisp.org>
35702
35703         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
35704         take 2.
35705         * lib/canonicalize.c (canonicalize_file_name): Elide if the
35706         'canonicalize-lgpl' module is also used.
35707         * lib/canonicalize-lgpl.c: Undo last change.
35708         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
35709
35710 2008-04-20  Bruno Haible  <bruno@clisp.org>
35711
35712         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
35713         config.h. Provide _mkdir based fallback for mingw.
35714         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
35715         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
35716         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
35717         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
35718         rather than defining mkdir in config.h.
35719         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
35720         (gl_SYS_STAT_H_DEFAULTS): New macro.
35721         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
35722         HAVE_IO_H any more.
35723         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
35724         HAVE_DECL_MKDIR and HAVE_IO_H.
35725
35726 2008-04-20  Bruno Haible  <bruno@clisp.org>
35727
35728         * lib/isapipe.c: Port to native Windows platforms.
35729
35730 2008-04-20  Bruno Haible  <bruno@clisp.org>
35731
35732         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35733
35734 2008-04-21  Eric Blake  <ebb9@byu.net>
35735
35736         Work around preprocessors that don't handle UINTMAX_MAX.
35737         * lib/memchr2.c (memchr2): Avoid embedded #if.
35738         Reported by Alain Guibert, fix suggested by Bruno Haible.
35739
35740 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35741
35742         * doc/posix-functions/strftime.texi (strftime): Explain better
35743         Windows incompatibility.  Suggested by Micah Cowan
35744         <micah@cowan.name>.
35745
35746 2008-04-20  Bruno Haible  <bruno@clisp.org>
35747
35748         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35749         unistr/u8-mblen.
35750
35751 2008-04-20  Bruno Haible  <bruno@clisp.org>
35752
35753         Fix test failure on platforms with non-GNU iconv.
35754         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35755         (U_TO_U8): Use it, rather than u16_to_u8.
35756         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35757         units at the end of the input string.
35758         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35759
35760 2008-04-20  Bruno Haible  <bruno@clisp.org>
35761
35762         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35763         when the resulting length is 0.
35764         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35765
35766 2008-04-20  Bruno Haible  <bruno@clisp.org>
35767
35768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35769         works.
35770         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35771
35772 2008-04-20  Bruno Haible  <bruno@clisp.org>
35773
35774         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35775         * modules/tsearch-tests (configure.ac): Test for initstate function.
35776
35777 2008-04-20  Bruno Haible  <bruno@clisp.org>
35778
35779         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35780         for nlink_t if missing.
35781         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35782
35783 2008-04-19  Bruno Haible  <bruno@clisp.org>
35784
35785         Work around snprintf bug on Linux libc5.
35786         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35788         gl_SNPRINTF_SIZE1.
35789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35790         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35791         that test failed.
35792         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35793         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35794         * modules/snprintf (Files): Add m4/printf.m4.
35795         * modules/vsnprintf (Files): Likewise.
35796         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35797         * doc/posix-functions/vsnprintf.texi: Likewise.
35798
35799 2008-04-19  Bruno Haible  <bruno@clisp.org>
35800
35801         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35802         from 0.0058 to less than 10^-7.
35803
35804 2008-04-19  Bruno Haible  <bruno@clisp.org>
35805
35806         Fix rounding when a precision is given.
35807         * lib/vasnprintf.c (is_borderline): New function.
35808         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35809         9...9x.
35810         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35811         %e, %g.
35812         * tests/test-vasprintf-posix.c (test_function): Likewise.
35813         * tests/test-snprintf-posix.h (test_function): Likewise.
35814         * tests/test-sprintf-posix.h (test_function): Likewise.
35815         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35816         * tests/test-printf-posix.h (test_function): Likewise.
35817         * tests/test-printf-posix.output: Update.
35818         Reported by John Darrington <john@darrington.wattle.id.au> via
35819         Ben Pfaff <blp@cs.stanford.edu>.
35820
35821 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35822
35823         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35824         Suggested by Bruno Haible <bruno@clisp.org>.
35825
35826 2008-04-17  Bruno Haible  <bruno@clisp.org>
35827
35828         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35829         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35830         implementation.
35831         Patch by Bruce Merry <bmerry@gmail.com>.
35832
35833 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35834
35835         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35836         doesn't work under Windows.
35837
35838 2008-04-16  Bruno Haible  <bruno@clisp.org>
35839
35840         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35841         New macros.
35842         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35843         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35844         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35845         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35846         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35847         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35848         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35849         macros.
35850         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35851         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35852         Northern Sotho, Uighur.
35853
35854 2008-04-16  Bruno Haible  <bruno@clisp.org>
35855
35856         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35857         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35858         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35859         Reported by Daniel Bergström <daniel@octocode.com>.
35860
35861 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35862             Bruno Haible  <bruno@clisp.org>
35863
35864         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35865         function.
35866         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35867         New functions, mostly extracted from gl_locale_name_default.
35868         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35869
35870 2008-04-16  Eric Blake  <ebb9@byu.net>
35871
35872         Adjust strtod detection to catch glibc 2.7 bug.
35873         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35874         Reported by John Gatewood Ham.
35875
35876 2008-04-16  Bruno Haible  <bruno@clisp.org>
35877
35878         Add tentative support for Linux libc5.
35879         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35880         * lib/fpurge.c (fpurge): Likewise.
35881         * lib/freadable.c (freadable): Likewise.
35882         * lib/freadahead.c (freadahead): Likewise.
35883         * lib/freading.c (freading): Likewise.
35884         * lib/freadptr.c (freadptr): Likewise.
35885         * lib/freadseek.c (freadptrinc): Likewise.
35886         * lib/fseeko.c (rpl_fseeko): Likewise.
35887         * lib/fseterr.c (fseterr): Likewise.
35888         * lib/fwritable.c (fwritable): Likewise.
35889         * lib/fwriting.c (fwriting): Likewise.
35890         Reported by Alain Guibert <alguibert+bts@free.fr>.
35891
35892 2008-04-15  Bruno Haible  <bruno@clisp.org>
35893
35894         * modules/mathl (configure.ac): Define module indicator.
35895
35896 2008-04-15  Bruno Haible  <bruno@clisp.org>
35897
35898         * lib/logl.c (logl): Remove unused variables.
35899
35900 2008-04-15  Bruno Haible  <bruno@clisp.org>
35901
35902         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35903         fails.
35904
35905 2008-04-15  Bruno Haible  <bruno@clisp.org>
35906
35907         * lib/trim.c (trim2): Fix argument of isspace() macro.
35908
35909 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35910
35911         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35912         to 0.
35913         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35914
35915 2008-04-14  Bruno Haible  <bruno@clisp.org>
35916
35917         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35918         AC_LANG_PROGRAM argument.
35919         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35920         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35922         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35923         * m4/math_h.m4 (gl_MATH_H): Likewise.
35924         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35926         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35927         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35928         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35929         * m4/regex.m4 (gl_REGEX): Likewise.
35930         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35931         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35933         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35934         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35935         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35938
35939 2008-04-14  Jim Meyering  <meyering@redhat.com>
35940
35941         test-strtod: fix typos: s/abs/fabs/
35942         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35943
35944 2008-04-13  Bruno Haible  <bruno@clisp.org>
35945
35946         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35947         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35948         module is also used and while not building the reloc-wrapper.
35949
35950 2008-04-13  Bruno Haible  <bruno@clisp.org>
35951
35952         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35953
35954 2008-04-13  Bruno Haible  <bruno@clisp.org>
35955
35956         Fix AIX compilation failure introduced on 2008-04-02.
35957         * tests/test-frexp.c (exp): Undefine before redefining.
35958         * tests/test-frexpl.c (exp): Likewise.
35959
35960 2008-04-13  Bruno Haible  <bruno@clisp.org>
35961
35962         Work around a HP-UX stdio bug.
35963         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35964         * tests/test-ftello.c (main): Likewise.
35965         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35966         * doc/posix-functions/ftello.texi: Likewise.
35967
35968 2008-04-13  Bruno Haible  <bruno@clisp.org>
35969
35970         Make test-signbit pass on HP-UX/hppa.
35971         * tests/test-signbit.c (minus_zerol): New variable.
35972         (test_signbitl): Use it.
35973
35974 2008-04-13  Bruno Haible  <bruno@clisp.org>
35975
35976         Make truncl work on OSF/1 4.0.
35977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35978         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35979         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35981         HAVE_DECL_TRUNCL.
35982         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35983         HAVE_DECL_TRUNCL.
35984         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35985
35986 2008-04-13  Bruno Haible  <bruno@clisp.org>
35987
35988         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35989
35990 2008-04-13  Bruno Haible  <bruno@clisp.org>
35991
35992         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35993         expression, so as to avoid HP-UX 11 cc compiler bug.
35994
35995 2008-04-13  Bruno Haible  <bruno@clisp.org>
35996
35997         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35998
35999 2008-04-13  Bruno Haible  <bruno@clisp.org>
36000
36001         * lib/git-merge-changelog.c: Remove empty declaration outside of
36002         functions.
36003
36004 2008-04-13  Bruno Haible  <bruno@clisp.org>
36005
36006         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
36007
36008 2008-04-13  Bruno Haible  <bruno@clisp.org>
36009
36010         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
36011         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
36012         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
36013         also if it exists but lacks definitions of the SHUT_* macros.
36014         * modules/sys_socket (Description): Update.
36015         Reported by Elbert Pol <e.pol@chello.nl>.
36016
36017 2008-04-13  Bruno Haible  <bruno@clisp.org>
36018
36019         * lib/localcharset.c (OS2): Don't redefine if already defined.
36020         Reported by Elbert Pol <e.pol@chello.nl>.
36021
36022 2008-04-13  Bruno Haible  <bruno@clisp.org>
36023
36024         * lib/binary-io.h [__EMX__]: Include <io.h>.
36025         Reported by Elbert Pol <e.pol@chello.nl>.
36026
36027 2008-04-12  Bruno Haible  <bruno@clisp.org>
36028
36029         * lib/fpucw.h: Enable the definitions also for x86_64.
36030         Needed for NetBSD/x86_64.
36031         Reported by Thomas Klausner <tk@giga.or.at>.
36032
36033 2008-04-12  Bruno Haible  <bruno@clisp.org>
36034
36035         * tests/test-strtod.c: Include isnand.h.
36036         (main): Use isnand instead of isnan.
36037         Reported by Jim Meyering.
36038
36039 2008-04-12  Bruno Haible  <bruno@clisp.org>
36040
36041         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
36042         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36043
36044 2008-04-12  Jim Meyering  <meyering@redhat.com>
36045
36046         * m4/math_h.m4 (gl_MATH_H): Fix typos.
36047
36048 2008-04-12  Bruno Haible  <bruno@clisp.org>
36049
36050         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
36051         Reported by Elbert Pol <e.pol@chello.nl>.
36052
36053 2008-04-12  Eric Blake  <ebb9@byu.net>
36054
36055         Work around Solaris 10 math.h bug.
36056         * m4/math_h.m4 (gl_MATH_H): Check for bug.
36057         (gl_MATH_H_DEFAULTS): Set up default.
36058         * modules/math (Makefile.am): Replace new indicators.
36059         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
36060         * tests/test-math.c (main): Test this.
36061         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
36062         * doc/posix-headers/math.texi (math.h): Mention bug.
36063         Reported by Nelson H. F. Beebe and Jim Meyering.
36064
36065 2008-04-11  Bruno Haible  <bruno@clisp.org>
36066
36067         Adapt to future versions of Apple GCC.
36068         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
36069         Reported by Peter O'Gorman <peter@pogma.com>.
36070
36071 2008-04-11  Bruno Haible  <bruno@clisp.org>
36072
36073         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
36074
36075 2008-04-11  Bruno Haible  <bruno@clisp.org>
36076
36077         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
36078
36079         * modules/getaddrinfo-tests (Makefile.am): Define
36080         test_getaddrinfo_LDADD.
36081
36082 2008-04-11  Bruno Haible  <bruno@clisp.org>
36083
36084         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
36085         (init): Fix syntax error.
36086         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
36087         is declared.
36088
36089 2008-04-11  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
36092         * modules/glob (Depends-on): Add stdbool.
36093
36094 2008-04-11  Bruno Haible  <bruno@clisp.org>
36095
36096         * lib/trim.c: Include <string.h>.
36097
36098 2008-04-11  Eric Blake  <ebb9@byu.net>
36099
36100         Avoid compile failure on OS/2.
36101         * lib/regex_internal.h (internal_function): Disable optimization
36102         on OS/2 (__EMX__), where it caused compiler error.
36103         Reported by Elbert Pol.
36104
36105 2008-04-11  Bruno Haible  <bruno@clisp.org>
36106
36107         Flush the standard error stream before aborting. Needed on mingw.
36108         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
36109         * tests/test-array_list.c (ASSERT): Likewise.
36110         * tests/test-array_oset.c (ASSERT): Likewise.
36111         * tests/test-avltree_list.c (ASSERT): Likewise.
36112         * tests/test-avltree_oset.c (ASSERT): Likewise.
36113         * tests/test-avltreehash_list.c (ASSERT): Likewise.
36114         * tests/test-binary-io.c (ASSERT): Likewise.
36115         * tests/test-byteswap.c (ASSERT): Likewise.
36116         * tests/test-c-ctype.c (ASSERT): Likewise.
36117         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
36118         * tests/test-c-strcasestr.c (ASSERT): Likewise.
36119         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
36120         * tests/test-c-strstr.c (ASSERT): Likewise.
36121         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
36122         * tests/test-canonicalize.c (ASSERT): Likewise.
36123         * tests/test-carray_list.c (ASSERT): Likewise.
36124         * tests/test-ceilf1.c (ASSERT): Likewise.
36125         * tests/test-ceilf2.c (ASSERT): Likewise.
36126         * tests/test-ceill.c (ASSERT): Likewise.
36127         * tests/test-count-one-bits.c (ASSERT): Likewise.
36128         * tests/test-fbufmode.c (ASSERT): Likewise.
36129         * tests/test-fflush2.c (ASSERT): Likewise.
36130         * tests/test-floorf1.c (ASSERT): Likewise.
36131         * tests/test-floorf2.c (ASSERT): Likewise.
36132         * tests/test-floorl.c (ASSERT): Likewise.
36133         * tests/test-fopen.c (ASSERT): Likewise.
36134         * tests/test-fpending.c (ASSERT): Likewise.
36135         * tests/test-fprintf-posix.c (ASSERT): Likewise.
36136         * tests/test-fpurge.c (ASSERT): Likewise.
36137         * tests/test-freadable.c (ASSERT): Likewise.
36138         * tests/test-freadahead.c (ASSERT): Likewise.
36139         * tests/test-freading.c (ASSERT): Likewise.
36140         * tests/test-freadptr.c (ASSERT): Likewise.
36141         * tests/test-freadptr2.c (ASSERT): Likewise.
36142         * tests/test-freadseek.c (ASSERT): Likewise.
36143         * tests/test-freopen.c (ASSERT): Likewise.
36144         * tests/test-frexp.c (ASSERT): Likewise.
36145         * tests/test-frexpl.c (ASSERT): Likewise.
36146         * tests/test-fseek.c (ASSERT): Likewise.
36147         * tests/test-fseeko.c (ASSERT): Likewise.
36148         * tests/test-fstrcmp.c (ASSERT): Likewise.
36149         * tests/test-ftell.c (ASSERT): Likewise.
36150         * tests/test-ftello.c (ASSERT): Likewise.
36151         * tests/test-func.c (ASSERT): Likewise.
36152         * tests/test-fwritable.c (ASSERT): Likewise.
36153         * tests/test-fwriting.c (ASSERT): Likewise.
36154         * tests/test-getdelim.c (ASSERT): Likewise.
36155         * tests/test-getline.c (ASSERT): Likewise.
36156         * tests/test-i-ring.c (ASSERT): Likewise.
36157         * tests/test-iconv-utf.c (ASSERT): Likewise.
36158         * tests/test-iconv.c (ASSERT): Likewise.
36159         * tests/test-isfinite.c (ASSERT): Likewise.
36160         * tests/test-isnand.c (ASSERT): Likewise.
36161         * tests/test-isnanf.c (ASSERT): Likewise.
36162         * tests/test-isnanl.h (ASSERT): Likewise.
36163         * tests/test-ldexpl.c (ASSERT): Likewise.
36164         * tests/test-linked_list.c (ASSERT): Likewise.
36165         * tests/test-linkedhash_list.c (ASSERT): Likewise.
36166         * tests/test-localename.c (ASSERT): Likewise.
36167         * tests/test-lseek.c (ASSERT): Likewise.
36168         * tests/test-mbscasecmp.c (ASSERT): Likewise.
36169         * tests/test-mbscasestr1.c (ASSERT): Likewise.
36170         * tests/test-mbscasestr2.c (ASSERT): Likewise.
36171         * tests/test-mbscasestr3.c (ASSERT): Likewise.
36172         * tests/test-mbscasestr4.c (ASSERT): Likewise.
36173         * tests/test-mbschr.c (ASSERT): Likewise.
36174         * tests/test-mbscspn.c (ASSERT): Likewise.
36175         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
36176         * tests/test-mbspbrk.c (ASSERT): Likewise.
36177         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
36178         * tests/test-mbsrchr.c (ASSERT): Likewise.
36179         * tests/test-mbsspn.c (ASSERT): Likewise.
36180         * tests/test-mbsstr1.c (ASSERT): Likewise.
36181         * tests/test-mbsstr2.c (ASSERT): Likewise.
36182         * tests/test-mbsstr3.c (ASSERT): Likewise.
36183         * tests/test-memchr2.c (ASSERT): Likewise.
36184         * tests/test-memmem.c (ASSERT): Likewise.
36185         * tests/test-open.c (ASSERT): Likewise.
36186         * tests/test-printf-frexp.c (ASSERT): Likewise.
36187         * tests/test-printf-frexpl.c (ASSERT): Likewise.
36188         * tests/test-printf-posix.c (ASSERT): Likewise.
36189         * tests/test-quotearg.c (ASSERT): Likewise.
36190         * tests/test-rbtree_list.c (ASSERT): Likewise.
36191         * tests/test-rbtree_oset.c (ASSERT): Likewise.
36192         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
36193         * tests/test-round1.c (ASSERT): Likewise.
36194         * tests/test-roundf1.c (ASSERT): Likewise.
36195         * tests/test-roundl.c (ASSERT): Likewise.
36196         * tests/test-signbit.c (ASSERT): Likewise.
36197         * tests/test-sleep.c (ASSERT): Likewise.
36198         * tests/test-snprintf-posix.c (ASSERT): Likewise.
36199         * tests/test-snprintf.c (ASSERT): Likewise.
36200         * tests/test-sprintf-posix.c (ASSERT): Likewise.
36201         * tests/test-stat-time.c (ASSERT): Likewise.
36202         * tests/test-strcasestr.c (ASSERT): Likewise.
36203         * tests/test-strerror.c (ASSERT): Likewise.
36204         * tests/test-striconv.c (ASSERT): Likewise.
36205         * tests/test-striconveh.c (ASSERT): Likewise.
36206         * tests/test-striconveha.c (ASSERT): Likewise.
36207         * tests/test-strsignal.c (ASSERT): Likewise.
36208         * tests/test-strstr.c (ASSERT): Likewise.
36209         * tests/test-strtod.c (ASSERT): Likewise.
36210         * tests/test-trunc1.c (ASSERT): Likewise.
36211         * tests/test-trunc2.c (ASSERT): Likewise.
36212         * tests/test-truncf1.c (ASSERT): Likewise.
36213         * tests/test-truncf2.c (ASSERT): Likewise.
36214         * tests/test-truncl.c (ASSERT): Likewise.
36215         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
36216         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
36217         * tests/test-vasnprintf.c (ASSERT): Likewise.
36218         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
36219         * tests/test-vasprintf.c (ASSERT): Likewise.
36220         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
36221         * tests/test-vprintf-posix.c (ASSERT): Likewise.
36222         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
36223         * tests/test-vsnprintf.c (ASSERT): Likewise.
36224         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
36225         * tests/test-wcwidth.c (ASSERT): Likewise.
36226         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
36227         * tests/test-xprintf-posix.c (ASSERT): Likewise.
36228         * tests/test-xvasprintf.c (ASSERT): Likewise.
36229         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
36230         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
36231         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
36232         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
36233         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
36234         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
36235         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
36236         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
36237         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
36238         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
36239         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
36240         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
36241         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
36242         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
36243         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
36244         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
36245         * tests/unictype/test-block_list.c (ASSERT): Likewise.
36246         * tests/unictype/test-block_of.c (ASSERT): Likewise.
36247         * tests/unictype/test-block_test.c (ASSERT): Likewise.
36248         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
36249         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
36250         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
36251         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
36252         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
36253         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
36254         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
36255         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
36256         * tests/unictype/test-combining.c (ASSERT): Likewise.
36257         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
36258         * tests/unictype/test-digit.c (ASSERT): Likewise.
36259         * tests/unictype/test-mirror.c (ASSERT): Likewise.
36260         * tests/unictype/test-numeric.c (ASSERT): Likewise.
36261         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
36262         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
36263         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
36264         * tests/unictype/test-scripts.c (ASSERT): Likewise.
36265         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
36266         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
36267         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
36268         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
36269         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
36270         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
36271         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
36272         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
36273         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
36274         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
36275         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
36276         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
36277         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
36278         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
36279         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
36280         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
36281         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
36282         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
36283         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
36284         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
36285         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
36286         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
36287         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
36288         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
36289         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
36290         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
36291         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
36292         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
36293         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
36294         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
36295         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
36296         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
36297         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
36298         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
36299         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
36300         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
36301         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
36302         Reported by Eric Blake.
36303
36304 2008-04-11  Bruno Haible  <bruno@clisp.org>
36305
36306         * lib/wchar.in.h: Tweak comment.
36307
36308 2008-04-11  Bruno Haible  <bruno@clisp.org>
36309
36310         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
36311         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
36312         gl_COMMON.
36313         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
36314
36315 2008-04-11  Bruno Haible  <bruno@clisp.org>
36316
36317         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
36318
36319 2008-04-11  Simon Josefsson  <simon@josefsson.org>
36320
36321         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
36322         of attempting to use non-existing /dev/*random.  Based on patch
36323         from Adam Strzelecki <ono@java.pl> in
36324         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
36325
36326 2008-04-08  Bruno Haible  <bruno@clisp.org>
36327
36328         Add tentative support for emx+gcc.
36329         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
36330         * lib/fpurge.c (fpurge): Likewise.
36331         * lib/freadable.c (freadable): Likewise.
36332         * lib/freadahead.c (freadahead): Likewise.
36333         * lib/freading.c (freading): Likewise.
36334         * lib/freadptr.c (freadptr): Likewise.
36335         * lib/freadseek.c (freadptrinc): Likewise.
36336         * lib/fseeko.c (rpl_fseeko): Likewise.
36337         * lib/fseterr.c (fseterr): Likewise.
36338         * lib/fwritable.c (fwritable): Likewise.
36339         * lib/fwriting.c (fwriting): Likewise.
36340         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
36341
36342 2008-04-09  Eric Blake  <ebb9@byu.net>
36343
36344         Avoid some autoconf warnings.
36345         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
36346         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
36347         * m4/afs.m4 (gl_AFS): Likewise.
36348         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
36349         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
36350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36351         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
36352         (gl_INTEGER_TYPE_SUFFIX): Likewise.
36353         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
36354         (AC_CHECK_DECLS_ONCE): Likewise.
36355         Rename file...
36356         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
36357         gnulib-tool requires autoconf 2.59 or better.
36358         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
36359
36360 2008-04-08  Eric Blake  <ebb9@byu.net>
36361
36362         Use 'git describe --match' if present (added in git 1.5.5).
36363         * build-aux/git-version-gen: Limit result to tags that match 'v*'
36364         if possible.
36365
36366 2008-04-08  Bruno Haible  <bruno@clisp.org>
36367
36368         Add tentative support for OpenServer.
36369         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
36370         _ptr, _cnt.
36371         * lib/fpurge.c (fpurge): Likewise.
36372         * lib/freadable.c (freadable): Likewise.
36373         * lib/freadahead.c (freadahead): Likewise.
36374         * lib/freading.c (freading): Likewise.
36375         * lib/freadptr.c (freadptr): Likewise.
36376         * lib/freadseek.c (freadptrinc): Likewise.
36377         * lib/fseeko.c (rpl_fseeko): Likewise.
36378         * lib/fseterr.c (fseterr): Likewise.
36379         * lib/fwritable.c (fwritable): Likewise.
36380         * lib/fwriting.c (fwriting): Likewise.
36381         Reported by Roger Cornelius <rac@tenzing.org> and
36382         Brian K. White <brian@aljex.com>.
36383
36384 2008-04-06  Jim Meyering  <meyering@redhat.com>
36385
36386         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
36387
36388 2008-04-06  Bruno Haible  <bruno@clisp.org>
36389
36390         Avoid possible error with non-ASCII bytes in UTF-8 locales.
36391         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
36392         * tests/test-printf-posix.sh: Likewise.
36393         * tests/test-vfprintf-posix.sh: Likewise.
36394         * tests/test-vprintf-posix.sh: Likewise.
36395         * tests/test-xprintf-posix.sh: Likewise.
36396
36397 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36398
36399         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
36400         hide error from 'ls', needed on OS/2.
36401         Report by Elbert Pol <elbert.pol@gmail.com>.
36402
36403 2008-04-04  Eric Blake  <ebb9@byu.net>
36404
36405         Make test-fseeko.c failures meaningful.
36406         * tests/test-fseeko.c: Print line number on failure.
36407         * tests/test-fseek.c: Likewise.
36408         Reported by Nelson H. F. Beebe.
36409
36410         Improve strtod bug detection check.
36411         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
36412         required for Solaris 10.
36413         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
36414
36415 2008-04-04  Bruno Haible  <bruno@clisp.org>
36416
36417         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
36418         by m4/setenv.m4.
36419
36420 2008-04-03  Eric Blake  <ebb9@byu.net>
36421
36422         Ensure sane .version contents.
36423         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
36424         version string.
36425         * build-aux/git-version-gen: Improve documentation.
36426
36427         Make GNU make output nicer.
36428         * top/GNUmakefile [!_have-Makefile]: Add dependency on
36429         MAKECMDGOALS to enforce message for all command line targets.  Set
36430         srcdir for use in maint.mk.
36431
36432         Another maintainer tweak.
36433         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
36434         a target that regenerates version.
36435
36436 2008-04-03  Jim Meyering  <meyering@redhat.com>
36437
36438         vc-list-files: don't cause coreutils "make po-check" failure
36439         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
36440
36441 2008-04-03  Eric Blake  <ebb9@byu.net>
36442
36443         Allow VPATH usage of vc-list-files.
36444         * build-aux/vc-list-files (scriptversion): Add timestamp.
36445         (options): Add --help, --version, -C.
36446         (CVS): Support installed cvsu.
36447
36448 2008-04-02  Bruno Haible  <bruno@clisp.org>
36449
36450         Avoid some "statement with no effect" warnings from gcc.
36451         * tests/test-wctype.c (main): Explicitly ignore unused values.
36452         Reported by Jim Meyering.
36453
36454 2008-04-02  Jim Meyering  <meyering@redhat.com>
36455
36456         Avoid some warnings from "gcc -Wshadow".
36457         * tests/test-frexp.c (exp): Define to a different identifier.
36458         * tests/test-frexpl.c (exp): Likewise.
36459
36460 2008-04-03  Jim Meyering  <meyering@redhat.com>
36461
36462         bootstrap: remove dangling *.[ch] symlinks from lib
36463         * build-aux/bootstrap [dangling symlink removal]: Move find's
36464         -depth option to precede all others, to avoid a warning.
36465         Remove *.[ch] files too, and from "$source_base" (usually lib/).
36466
36467 2008-04-02  Bruno Haible  <bruno@clisp.org>
36468
36469         Avoid some warnings from "gcc -Wshadow".
36470         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
36471         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
36472         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
36473         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
36474         Reported by Jim Meyering.
36475
36476 2008-04-01  Bruno Haible  <bruno@clisp.org>
36477
36478         Fix test to work on IRIX 6.5 with cc.
36479         * tests/test-math.c (numeric_equal): New function.
36480         (main): Use it.
36481
36482 2008-04-01  Bruno Haible  <bruno@clisp.org>
36483
36484         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
36485
36486 2008-04-01  Bruno Haible  <bruno@clisp.org>
36487
36488         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
36489         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36490         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
36491         (Depends-on): Remove math.
36492
36493         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
36494         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36495         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
36496         (Depends-on): Remove math.
36497
36498         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
36499         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36500         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
36501         (Depends-on): Remove math.
36502         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
36503         (Depends-on): Remove math.
36504
36505         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
36506         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36507         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
36508         (Depends-on): Remove math.
36509         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
36510         (Depends-on): Remove math.
36511
36512         * tests/test-round1.c: Include nan.h.
36513         (main): Use NaNd instead of NAN.
36514         * modules/round-tests (Files): Add tests/nan.h.
36515
36516         * tests/test-trunc1.c: Include nan.h.
36517         (main): Use NaNd instead of NAN.
36518         * modules/trunc-tests (Files): Add tests/nan.h.
36519
36520         * tests/test-roundf1.c: Include nan.h.
36521         (main): Use NaNf instead of NAN.
36522         * modules/roundf-tests (Files): Add tests/nan.h.
36523
36524         * tests/test-truncf1.c: Include nan.h.
36525         (main): Use NaNf instead of NAN.
36526         * modules/truncf-tests (Files): Add tests/nan.h.
36527
36528         * tests/test-ceilf1.c: Include nan.h.
36529         (main): Use NaNf instead of NAN.
36530         * modules/ceilf-tests (Files): Add tests/nan.h.
36531
36532         * tests/test-floorf1.c: Include nan.h.
36533         (main): Use NaNf instead of NAN.
36534         * modules/floorf-tests (Files): Add tests/nan.h.
36535
36536         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
36537         (main): Use NaNf instead of NAN.
36538         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
36539
36540         * tests/test-isnand.c: Include nan.h instead of <math.h>.
36541         (main): Use NaNd instead of NAN.
36542         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
36543
36544         * tests/test-frexp.c: Include nan.h.
36545         (main): Use NaNd instead of NAN.
36546         * modules/frexp-tests (Files): Add tests/nan.h.
36547
36548         * lib/isnan.c: Don't include <math.h>.
36549         (FUNC): Don't use NAN macro.
36550         * modules/isnand-nolibm (Depends-on): Remove math.
36551         * modules/isnanf-nolibm (Depends-on): Remove math.
36552         * modules/isnanl (Depends-on): Remove math.
36553         * modules/isnanl-nolibm (Depends-on): Remove math.
36554
36555         * tests/nan.h: New file.
36556
36557 2008-04-01  Eric Blake  <ebb9@byu.net>
36558
36559         Fix typos.
36560         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
36561         values to be the right type.
36562
36563         For now, cater to gnulib strtod inaccuracies.
36564         * tests/test-strtod.c (main): Allow 1-ulp error on expected
36565         fractional results.  While not as nice from a QoI perspective, it
36566         is a quicker patch than correctly implementing decimal to binary
36567         rounding.
36568
36569 2008-03-31  Eric Blake  <ebb9@byu.net>
36570
36571         Guarantee a definition of NAN.
36572         * lib/math.in.h (NAN): Define if missing.
36573         * tests/test-math.c (main): Test it.
36574         * doc/posix-headers/math.texi (math.h): Document this.
36575         * lib/isnan.c (rpl_isnand): Use it.
36576         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36577         * tests/test-floorf1.c (NaN): Likewise.
36578         * tests/test-frexp.c (NaN): Likewise.
36579         * tests/test-isnand.c (NaN): Likewise.
36580         * tests/test-isnanf.c (NaN): Likewise.
36581         * tests/test-round1.c (NaN): Likewise.
36582         * tests/test-roundf1.c (NaN): Likewise.
36583         * tests/test-snprintf-posix.h (NaN): Likewise.
36584         * tests/test-sprintf-posix.h (NaN): Likewise.
36585         * tests/test-trunc1.c (NaN): Likewise.
36586         * tests/test-truncf1.c (NaN): Likewise.
36587         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36588         * tests/test-vasprintf-posix.c (NaN): Likewise.
36589         * modules/isnand-nolibm (Depends-on): Add math.
36590         * modules/isnanf-nolibm (Depends-on): Likewise.
36591         * modules/isnanl (Depends-on): Likewise.
36592         * modules/isnanl-nolibm (Depends-on): Likewise.
36593         * modules/snprintf-posix-tests (Depends-on): Likewise.
36594         * modules/sprintf-posix-tests (Depends-on): Likewise.
36595         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36596         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36597         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36598         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36599
36600 2008-03-31  Bruno Haible  <bruno@clisp.org>
36601
36602         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36603         * doc/posix-functions/strtod.texi: Likewise.
36604
36605 2008-03-31  Bruno Haible  <bruno@clisp.org>
36606
36607         * tests/test-strtod.c (main): Don't use C99 syntax.
36608
36609 2008-03-31  Bruno Haible  <bruno@clisp.org>
36610
36611         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
36612         Reported by Eric Blake.
36613
36614 2008-03-31  Jim Meyering  <meyering@redhat.com>
36615
36616         Don't compare actual signbit return values.
36617         * tests/test-strtod.c (main): Rather, compare only their
36618         zero/non-zero nature.
36619
36620 2008-03-31  Eric Blake  <ebb9@byu.net>
36621
36622         More strtod documentation.
36623         * doc/posix-functions/strtod.texi (strtod): Interpret more test
36624         failures as distinct bugs.
36625
36626 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36627
36628         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
36629         Problem reported by Erik Benada in
36630         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
36631
36632 2008-03-30  Bruno Haible  <bruno@clisp.org>
36633
36634         * tests/test-strtod.c: Add comments about which assertion fails on which
36635         platform.
36636         * doc/posix-functions/strtod.texi: Add info about many more platforms.
36637
36638 2008-03-30  Eric Blake  <ebb9@byu.net>
36639
36640         Test signbit behavior on zeros.
36641         * tests/test-signbit.c (test_signbitf): Add tests for zero.
36642         (test_signbitd, test_signbitl): Likewise.
36643
36644         More strtod touchups.
36645         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
36646         sign of negative underflow, for now.  Use .5, not .1.
36647         * doc/posix-functions/strtod.texi (strtod): Mention these
36648         limitations.
36649         Reported by Jim Meyering.
36650
36651 2008-03-30  Bruno Haible  <bruno@clisp.org>
36652
36653         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
36654         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
36655
36656 2008-03-30  Bruno Haible  <bruno@clisp.org>
36657
36658         Avoid failure when attempting to return empty iconv results on some
36659         platforms.
36660         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
36661         allocation, don't report ENOMEM when the resulting string is empty.
36662
36663 2008-03-30  Bruno Haible  <bruno@clisp.org>
36664
36665         Fix buffer overrun.
36666         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
36667         Don't consider the width for tmp_length. Check count against tmp_length
36668         before doing the padding. Ensure enough allocation during padding.
36669
36670 2008-03-30  Eric Blake  <ebb9@byu.net>
36671
36672         strtod touchups.
36673         * lib/strtod.c (strtod): Avoid compiler warnings.
36674         Reported by Jim Meyering.
36675
36676 2008-03-30  Bruno Haible  <bruno@clisp.org>
36677
36678         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
36679         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
36680         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
36681         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
36682         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
36683         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
36684         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
36685         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36686
36687         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
36688         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
36689         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
36690         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
36691         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
36692         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
36693         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
36694         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
36695
36696         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
36697         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
36698         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
36699         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
36700         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
36701         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
36702         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
36703         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
36704
36705         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
36706         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
36707
36708         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
36709         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
36710
36711         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
36712         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
36713
36714         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
36715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
36716         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
36717
36718         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
36719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
36720         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
36721
36722         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
36723         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
36724         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
36725
36726         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
36727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
36728         * modules/vasprintf (Depends-on): Add EOVERFLOW.
36729
36730         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36731         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36733         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36734         (Depends-on): Add EOVERFLOW.
36735         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36736         (Depends-on): Add EOVERFLOW.
36737         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36738         (Depends-on): Add EOVERFLOW.
36739         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36740         (Depends-on): Add EOVERFLOW.
36741         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36742         (Depends-on): Add EOVERFLOW.
36743         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36744         (Depends-on): Add EOVERFLOW.
36745         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36746         (Depends-on): Add EOVERFLOW.
36747         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36748         (Depends-on): Add EOVERFLOW.
36749
36750         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36752         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36753
36754         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36756         * modules/snprintf (Depends-on): Add EOVERFLOW.
36757
36758         * lib/poll.c (EOVERFLOW): Remove fallback.
36759         * modules/poll (Depends-on): Add EOVERFLOW.
36760
36761         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36762         * modules/getugroups (Depends-on): Add EOVERFLOW.
36763
36764         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36765         * modules/getdelim (Depends-on): Add EOVERFLOW.
36766
36767         * lib/ftell.c (EOVERFLOW): Remove fallback.
36768         * modules/ftell (Depends-on): Add EOVERFLOW.
36769
36770         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36772         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36773
36774         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36775
36776         * modules/EOVERFLOW-tests: New file.
36777         * tests/test-EOVERFLOW.c: New file.
36778
36779         * modules/EOVERFLOW: New file.
36780         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36781
36782 2008-03-30  Bruno Haible  <bruno@clisp.org>
36783
36784         Fix bug introduced on 2007-06-10.
36785         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36786         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36787
36788 2008-03-30  Bruno Haible  <bruno@clisp.org>
36789
36790         Improve freadseek's efficiency after ungetc.
36791         * lib/freadseek.c: Include freadahead.h.
36792         (freadptrinc): New function, extracted from freadseek.
36793         (freadseek): Use it in a loop. Use freadahead to determine the number
36794         of loop iterations.
36795         * modules/freadseek (Depends-on): Add freadahead.
36796         (configure.ac): Require AC_C_INLINE.
36797
36798 2008-03-30  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/freadseek.c (freadseek): Don't ignore the return value of
36801         freadptr.
36802
36803 2008-03-29  Eric Blake  <ebb9@byu.net>
36804
36805         Add hex float support.
36806         * modules/strtod (Depends-on): Add c-ctype.
36807         (Link): Mention POW_LIB.
36808         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36809         whitespace between 'e' and exponent.
36810         * tests/test-strtod.c (main): Enable hex float tests.
36811         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36812         now provides.
36813
36814         Document various strtod bugs, with some fixes.
36815         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36816         "-0x", "inf", "nan", and hex constants.
36817         * doc/posix-functions/atof.texi (atof): Likewise.
36818         * modules/stdlib (Makefile.am): Support strtod.
36819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36820         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36821         detect additional strtod bugs.
36822         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36823         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36824         bool where appropriate.  Parse 'inf' and 'nan'.
36825         * tests/test-strtod.c: New file.
36826         * modules/strtod (Depends-on): Add stdbool, stdlib.
36827         (configure.ac): Turn on module indicator.
36828         * modules/strtod-tests: New module.
36829
36830 2008-03-29  Eric Blake  <ebb9@byu.net>
36831
36832         Fix ftell on mingw.
36833         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36834         * modules/ftell-tests (Depends-on): Add binary-io.
36835         * modules/ftello-tests (Depends-on): Likewise.
36836         * tests/test-ftell.c (main): Enhance test to cover behavior after
36837         ungetc.  Enforce binary mode.
36838         * tests/test-ftello.c (main): Likewise.
36839
36840         Pass test-freadseek on cygwin.
36841         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36842         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36843         ungetc buffer.
36844
36845         * tests/test-fflush2.c (main): Fix typo.
36846
36847 2008-03-29  Bruno Haible  <bruno@clisp.org>
36848
36849         * tests/test-fflush2.c (main): Temporarily disable the contents of
36850         this test.
36851         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36852         Reported by Eric Blake.
36853
36854 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36855
36856         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36857         (GC_SHA224_DIGEST_SIZE): Add.
36858
36859         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36860         (gc_hash_digest_length): Likewise.
36861         (gc_hash_buffer): Likewise.
36862
36863 2008-03-25  Bruno Haible  <bruno@clisp.org>
36864
36865         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36866         detail which gettext release to use.
36867         Reported by Simon Josefsson.
36868
36869 2008-03-26  Jim Meyering  <meyering@redhat.com>
36870
36871         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36872         * modules/gnumakefile (clean-GNUmakefile): Also, use
36873         test ... && ... || : syntax rather than if-then ... fi.
36874
36875         gnumakefile: Don't double-quote-expand $(VPATH) value.
36876         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36877
36878 2008-03-24  Eric Blake  <ebb9@byu.net>
36879
36880         Alter GNUmakefile to install into top directory.
36881         * modules/maintainer-makefile: Split, and add dependency...
36882         * modules/gnumakefile: to this new module.
36883         * build-aux/GNUmakefile: Move...
36884         * top/GNUmakefile: ...here.
36885         * build-aux/maint.mk: Move...
36886         * top/maint.mk: ...here.
36887         * MODULES.html.sh (Support for maintaining...): Document new
36888         module.
36889
36890 2008-03-23  Bruno Haible  <bruno@clisp.org>
36891
36892         * gnulib-tool: New options --vc-files, --no-vc-files.
36893         (func_usage): Document them.
36894         (vc_files): New variable.
36895         (func_import): Consider vc_files.
36896         (func_create_testdir): Set vc_files to empty.
36897         Suggested by Jim Meyering and Karl Berry.
36898
36899 2008-03-23  Bruno Haible  <bruno@clisp.org>
36900
36901         Fix regex compilation error on HP-UX 11.
36902         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36903         * modules/regex (Files): Add m4/mbstate_t.m4.
36904         Reported by Ton Voon <ton.voon@altinity.com>.
36905
36906 2008-03-23  Bruno Haible  <bruno@clisp.org>
36907
36908         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36909
36910 2008-03-23  Eric Blake  <ebb9@byu.net>
36911             Bruno Haible  <bruno@clisp.org>
36912
36913         Install files from top/ in the destination directory.
36914         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36915         augmentation also for the files from top/.
36916         (func_import, func_create_testdir): Rewrite file names:
36917         top/filename -> filename.
36918
36919 2008-03-23  Bruno Haible  <bruno@clisp.org>
36920
36921         Tweak "gnulib --version" output.
36922         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36923
36924 2008-03-23  Bruno Haible  <bruno@clisp.org>
36925
36926         Tweak "gnulib --version" output.
36927         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36928         rather than contents of ChangeLog, when possible.
36929
36930 2008-03-21  Eric Blake  <ebb9@byu.net>
36931
36932         More --version tweaks.
36933         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36934         date of last ChangeLog entry.
36935
36936 2008-03-21  Jim Meyering  <meyering@redhat.com>
36937
36938         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36939
36940 2008-03-20  Eric Blake  <ebb9@byu.net>
36941
36942         VPATH fix.
36943         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36944
36945 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36946
36947         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36948         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36949
36950 2008-03-20  Eric Blake  <ebb9@byu.net>
36951
36952         Sync GNUmakefile with coreutils.
36953         * build-aux/GNUmakefile (have-Makefile): Rename...
36954         (_have-Makefile): ...to this, for namespace consideration.
36955         (GNUmakefile.cfg): Include, if present.
36956         (_autoreconf): Define a default.
36957         (_is-dist-target): New rule for rebuilds to pick up intra-release
36958         version.
36959         (maint-cfg.mk): Rename...
36960         (cfg.mk): ...to this.
36961
36962 2008-03-18  Jim Meyering  <meyering@redhat.com>
36963
36964         New script and module: mktempd
36965         * MODULES.html.sh (maint+release support): Add mktempd.
36966         * build-aux/mktempd: New file.
36967         * modules/mktempd: New file.
36968
36969 2008-03-15  Jim Meyering  <meyering@redhat.com>
36970
36971         Undo last change.
36972         * lib/sha1.c, lib/md5.c: 63 != ~63.
36973         Reported by Andreas Schwab.
36974
36975         sha1.c, md5.c: Hoist a redundant expression.
36976         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36977         "ctx->buflen" only once, before calling *_process_block.
36978         * lib/md5.c (md5_process_bytes): Likewise.
36979
36980 2008-03-14  Eric Blake  <ebb9@byu.net>
36981
36982         Bump copyright year in files generated by gnulib-tool.
36983         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36984         gnulib-tool, rather than hard-coding it.
36985
36986         Fix 'gnulib-tool --version' output to work with git.
36987         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36988         (startup): ...here.
36989         (func_version): Use it to invoke git-version-gen, rather than
36990         relying on CVS keyword expansion.  Modernize wording.
36991         (cvsdatestamp, last_checkin_date, version): Kill unused
36992         variables.
36993
36994 2008-03-12  Jim Meyering  <meyering@redhat.com>
36995
36996         Recognize optional cast of the argument to free.
36997         * build-aux/useless-if-before-free: Update regexps.
36998
36999         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
37000
37001 2008-03-11  Bruno Haible  <bruno@clisp.org>
37002
37003         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
37004         by a single package.
37005         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
37006         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
37007         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
37008         Reported by Sam Steingold <sds@gnu.org>.
37009
37010 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37011
37012         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
37013         repositories.
37014
37015 2008-03-11  Bruno Haible  <bruno@clisp.org>
37016
37017         Avoid conflicts between local macro definitions.
37018         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37019         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
37020
37021 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
37022             Bruno Haible  <bruno@clisp.org>
37023
37024         Make va_copy work with some version of xlc on AIX 5.1.
37025         * lib/stdarg.in.h: New file.
37026         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
37027         On AIX, use a <stdarg.h> file substitute.
37028         * modules/stdarg (Files): Add lib/stdarg.in.h.
37029         (Depends-on): Add include_next.
37030         (Makefile.am): Build a stdarg.h substitute if requested.
37031         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
37032
37033 2008-03-10  Bruno Haible  <bruno@clisp.org>
37034
37035         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
37036         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37037         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37038
37039 2008-03-10  Bruno Haible  <bruno@clisp.org>
37040
37041         * modules/stdlib (Depends-on): Add include_next, remove
37042         absolute-header.
37043
37044 2008-03-09  Bruno Haible  <bruno@clisp.org>
37045
37046         * lib/freadahead.h (freadahead): Document more precisely.
37047         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
37048         the sum of both buffer sizes.
37049         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
37050         * NEWS: Document the change.
37051
37052 2008-03-09  Bruno Haible  <bruno@clisp.org>
37053
37054         Extend freadptr to return also the buffer size.
37055         * lib/freadptr.h (freadptr): Add sizep argument.
37056         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
37057         (freadptr): Add sizep argument. Determine buffer size like freadahead
37058         does.
37059         * tests/test-freadptr.c: Don't include freadahead.h.
37060         (main): Adapt for new calling convention of freadptr.
37061         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
37062         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
37063         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
37064         tests/test-freadptr2.sh.
37065         (Depends): Remove freadahead.
37066         (TESTS): Add test-freadptr2.sh.
37067         (check_PROGRAMS): Add test-freadptr2.
37068
37069 2008-03-09  Bruno Haible  <bruno@clisp.org>
37070
37071         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
37072         Report and solution by Simon Josefsson.
37073
37074 2008-03-06  Bruno Haible  <bruno@clisp.org>
37075
37076         Make fflush after ungetc work on BSD platforms.
37077         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
37078         * tests/test-fflush2.c: New file.
37079         * tests/test-fflush2.sh: New file.
37080         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
37081         tests/test-fflush2.c.
37082         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
37083         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
37084
37085 2008-03-06  Eric Blake  <ebb9@byu.net>
37086
37087         Likewise for ftello.
37088         * modules/ftello (Dependencies): Add extensions.
37089         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
37090
37091 2008-03-06  Bruno Haible  <bruno@clisp.org>
37092
37093         * modules/fseeko (Dependencies): Add extensions.
37094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
37095         Needed on glibc systems.
37096
37097 2008-03-06  Bruno Haible  <bruno@clisp.org>
37098
37099         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
37100         email address.
37101         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37102
37103 2008-03-06  Bruno Haible  <bruno@clisp.org>
37104
37105         * users.txt: Add libgnupdf.
37106
37107 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37108
37109         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
37110         (Header File Substitutes, Function Substitutes,
37111         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
37112         (Build robot for gnulib): Fix typo.
37113
37114 2008-03-06  Bruno Haible  <bruno@clisp.org>
37115
37116         * doc/gnulib-tool.texi (VCS Issues): Small updates.
37117         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37118
37119 2008-03-06  Bruno Haible  <bruno@clisp.org>
37120
37121         * doc/func.texi: New file, extracted from doc/gnulib.texi.
37122         * doc/gnulib.texi: Include it.
37123
37124 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37125
37126         * modules/func (License): Change license to unlimited; there was
37127         no LGPL parts in the module anyway.
37128
37129 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37130
37131         * modules/__func__: Renamed to modules/func.
37132         * modules/__func__-tests: Renamed to modules/func-tests.
37133         * tests/test-__func__.c: Renamed to tests/test-func.c.
37134         * m4/__func__.m4: Renamed to m4/func.m4.
37135         * doc/gnulib.texi (__func__): Section renamed to func.
37136         Suggested by Eric Blake <ebb9@byu.net>.
37137
37138 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37139
37140         * doc/gnulib.texi (__func__): Use C99 terminology when talking
37141         about __func__.  Make example self-contained.  Suggested by Eric
37142         Blake <ebb9@byu.net>.
37143
37144         * tests/test-__func__.c (main): Avoid extraneous () around __func.
37145         Suggested by Eric Blake <ebb9@byu.net>.
37146
37147 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37148
37149         * modules/__func__: New file.
37150         * modules/__func__-tests: New file.
37151         * tests/test-__func__.c: New file.
37152         * m4/__func__.m4: New file.
37153         * doc/gnulib.texi (__func__): Document __func__ module.
37154
37155 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37156
37157         * modules/byteswap (License): Re-license as LGPLv2+.
37158
37159 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37160
37161         * doc/Makefile: Add pdf target.
37162
37163 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37164
37165         * modules/inline (License): Use 'unlimited', since there are only
37166         *.m4 files in this module.
37167
37168 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37169             Bruno Haible  <bruno@clisp.org>
37170
37171         Add support for HP C 7.1 on OpenVMS 8.3.
37172         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
37173
37174 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37175
37176         Update VMS specifics.
37177         * lib/getopt.c [VMS]: Remove include of unixlib.h.
37178
37179 2008-03-02  Jim Meyering  <meyering@redhat.com>
37180
37181         Remove the last dependency on the "free" module.
37182         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
37183         Reported by Bob Proulx.
37184
37185         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
37186
37187         Remove useless "if" tests before free.  Deprecate "free" module.
37188         * doc/posix-functions/free.texi: Mention that this
37189         module is no longer useful.
37190         * modules/free (Notice): Say this module is obsolete.
37191         * modules/readutmp (Depends-on): Remove free.
37192         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
37193         * lib/putenv.c (putenv): Likewise.
37194         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
37195         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
37196         * tests/test-c-strcasestr.c (main): Likewise.
37197         * tests/test-c-strstr.c (main): Likewise.
37198         * tests/test-mbscasestr1.c (main): Likewise.
37199         * tests/test-mbscasestr2.c (main): Likewise.
37200         * tests/test-mbsstr1.c (main): Likewise.
37201         * tests/test-mbsstr2.c (main): Likewise.
37202         * tests/test-memmem.c (main): Likewise.
37203         * tests/test-strcasestr.c (main): Likewise.
37204         * tests/test-striconv.c (main): Likewise.
37205         * tests/test-striconveh.c (main): Likewise.
37206         * tests/test-striconveha.c (main): Likewise.
37207         * tests/test-strstr.c (main): Likewise.
37208
37209         * build-aux/git-version-gen: Adjust a comment and the Usage string.
37210
37211         bootstrap: sync from coreutils again
37212         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
37213
37214 2008-03-01  Jim Meyering  <meyering@redhat.com>
37215
37216         bootstrap: sync from coreutils
37217         * build-aux/bootstrap (update_po_files): Copy a .po file into place
37218         also when the target doesn't exist.
37219
37220 2008-03-01  Eric Blake  <ebb9@byu.net>
37221
37222         Fix bugs in last patch.
37223         * lib/memchr2.c (memchr2): Fix typo.
37224         * tests/test-memchr2.c: Test previous bug, and don't use GNU
37225         extension.
37226         Reported by Bruce Korb.
37227
37228         New module 'memchr2'.
37229         * modules/memchr2: New file.
37230         * modules/memchr2-tests: Likewise.
37231         * lib/memchr2.h: Likewise.
37232         * lib/memchr2.c: Likewise, based on memchr.c.
37233         * tests/test-memchr2.c: New test.
37234         * MODULES.html.sh (String handling): Add memchr2.
37235
37236 2008-02-29  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/freadseek-tests: New file.
37239         * tests/test-freadseek.sh: New file.
37240         * tests/test-freadseek.c: New file.
37241
37242         New module 'freadseek'.
37243         * modules/freadseek: New file.
37244         * lib/freadseek.h: New file.
37245         * lib/freadseek.c: New file.
37246         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
37247
37248 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37249
37250         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
37251         wydawca.
37252
37253         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
37254         program_invocation_name and program_invocation_short_name are
37255         present.
37256
37257 2008-02-28  Bruno Haible  <bruno@clisp.org>
37258
37259         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
37260         * tests/test-freadptr.sh: Also test non-seekable stdin.
37261
37262 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
37263
37264         * build-aux/bootstrap (source_base, m4_base)
37265         (doc_base, tests_base): New variables.
37266         (gnulib_tool_options): Do not hardcode base directories, use
37267         the above variables instead.
37268
37269 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
37270
37271         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
37272
37273 2008-02-28  Bruno Haible  <bruno@clisp.org>
37274
37275         * modules/freadptr-tests: New file.
37276         * tests/test-freadptr.sh: New file.
37277         * tests/test-freadptr.c: New file.
37278
37279         New module 'freadptr'.
37280         * modules/freadptr: New file.
37281         * lib/freadptr.h: New file.
37282         * lib/freadptr.c: New file.
37283         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
37284
37285 2008-02-26  Karl Berry  <karl@freefriends.org>
37286
37287         Sync from Libtool:
37288         * libltdl/argz.c (argz_add, argz_count): New functions.
37289         * libltdl/argz.in.h: Declare them.
37290         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
37291
37292 2008-02-22  Bruno Haible  <bruno@clisp.org>
37293
37294         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
37295         is a pointer type.  Needed for HP-UX 10.
37296         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
37297         * doc/posix-functions/gmtime_r.texi: Likewise.
37298         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37299
37300 2008-02-24  Bruno Haible  <bruno@clisp.org>
37301
37302         * modules/environ-tests: New file.
37303         * tests/test-environ.c: New file.
37304
37305         New module 'environ'.
37306         * modules/environ: New file.
37307         * lib/unistd.in.h (environ): New declaration.
37308         * m4/environ.m4: New file.
37309         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
37310         after use.
37311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
37312         HAVE_DECL_ENVIRON.
37313         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
37314         HAVE_DECL_ENVIRON.
37315         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
37316         wrong claim that 'environ' is missing on some systems.
37317         * modules/execute (Depends-on): Add environ.
37318         * lib/execute.c (environ): Remove fallback declaration.
37319         * modules/pipe (Depends-on): Add environ.
37320         * lib/pipe.c (environ): Remove fallback declaration.
37321         * modules/setenv (Depends-on): Add environ.
37322         * lib/setenv.c (environ): Remove fallback declaration.
37323         * modules/unsetenv (Depends-on): Add environ.
37324         * lib/unsetenv.c (environ): Remove fallback declaration.
37325         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
37326         m4/environ.m4.
37327         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
37328         (gl_PREREQ_UNSETENV): Likewise.
37329
37330 2008-02-24  Bruno Haible  <bruno@clisp.org>
37331
37332         * doc/posix-functions/environ.texi: Document the MacOS X problem.
37333
37334 2008-02-20  Bob Proulx  <bob@proulx.com>
37335
37336         Enable use of older two part flavor 'git describe'.
37337         * build-aux/git-version-gen: If using the older two part flavor of
37338         git version then recreate the third part now present in the
37339         newer three part flavor of git describe.
37340
37341 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
37342
37343         * lib/fts.c (fts_build): Typo correction to comment.
37344
37345 2008-02-17  Bruno Haible  <bruno@clisp.org>
37346
37347         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
37348         generating no-op conflicts.
37349
37350 2008-02-17  Bruno Haible  <bruno@clisp.org>
37351
37352         Speed up by 10%.
37353         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
37354         result_entries, rather than an index-based loop.
37355
37356 2008-02-17  Bruno Haible  <bruno@clisp.org>
37357
37358         Speed up by 25%.
37359         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
37360         'hashcode_cached'.
37361         (entry_create): New function.
37362         (entry_hashcode): Use the cached hashcode if possible.
37363         (read_changelog_file, try_split_merged_entry): Use entry_create.
37364
37365 2008-02-17  Bruno Haible  <bruno@clisp.org>
37366
37367         Speed up from O(n^2) to O(n) for long ChangeLog files.
37368         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
37369         (read_changelog_file): Change implementation of entries_reversed list
37370         to rbtreehash.
37371         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
37372
37373 2008-02-17  Bruno Haible  <bruno@clisp.org>
37374
37375         New option --split-merged-entry.
37376         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
37377         (find_paragraph_end, try_split_merged_entry): New functions.
37378         (long_options): Add option --split-merged-entry.
37379         (usage): Document option --split-merged-entry.
37380         (main): Implement option --split-merged-entry.
37381         Reported by Eric Blake.
37382
37383 2008-02-17  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/git-merge-changelog.c: Include c-strstr.h.
37386         (main): Support the "git pull --rebase" situation.
37387         * modules/git-merge-changelog (Depends-on): Add c-strstr.
37388         Reported by Eric Blake.
37389
37390 2008-02-16  Eric Blake  <ebb9@byu.net>
37391
37392         Avoid doubling \ in common case of "c-maybe" quoting style.
37393         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
37394         eliding outer quotes.
37395         * lib/quotearg.h: Document this.
37396         * tests/test-quotearg.c (result_strings, inputs, results_g)
37397         (flag_results, locale_results): Test it by adding a new string to
37398         each test group.
37399         (compare_strings): Test new string.
37400
37401 2008-02-13  Eric Blake  <ebb9@byu.net>
37402
37403         Avoid trigraph quoting in default output.
37404         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
37405         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
37406         unless explicitly requested.
37407         * tests/test-quotearg.c (flag_results, main): Add additional tests.
37408
37409 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
37410
37411         Don't rely on signed integer overflowing to negative value.
37412         * lib/getugroups.c (getugroups): Include <limits.h>.
37413         Instead, compare against INT_MAX, and increment only if the test passes.
37414
37415 2008-02-13  Jim Meyering  <meyering@redhat.com>
37416         and Eric Blake  <ebb9@byu.net>
37417
37418         Avoid shadowing warning and compile errors on Linux.
37419         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
37420         forwarding macros on Linux.
37421         (dcgettext): Define a stub, for Linux.
37422         (results_g, main): Avoid warnings.
37423
37424 2008-02-12  Eric Blake  <ebb9@byu.net>
37425
37426         Silence warning in last patch.
37427         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
37428
37429         Quotearg part 4: add tests, fix c-maybe colon quoting.
37430         * lib/quotearg.h: Improve documentation.
37431         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
37432         escapes when adding outer quotes.  When quoting trigraphs, use
37433         valid C notation.  When quoting NUL, omit extra characters if next
37434         character is not digit.  Alter prototype.
37435         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
37436         callers.
37437         * modules/quotearg-tests: New module.
37438         * tests/test-quotearg.c: New test.
37439
37440 2008-02-07  Eric Blake  <ebb9@byu.net>
37441
37442         Quotearg part 3: add flag to control outer quote elision.
37443         * lib/quotearg.h (c_maybe_quoting_style): New style.
37444         (enum quoting_flags): Better documentation of flags.
37445         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
37446         c-maybe style.
37447         (quotearg_buffer_restyled): Handle new flag to elide outer
37448         quotes.
37449
37450         Quotearg part 2: add flag that can control NUL elision.
37451         * lib/quotearg.h (set_quoting_flags): New prototype.
37452         * lib/quotearg.c (struct quoting_options): Add flag field.
37453         (set_quoting_flags): New function.
37454         (quotearg_buffer_restyled): Add flags parameter.
37455         (quotearg_alloc_mem): Set the flag if length cannot be returned.
37456         (quotearg_n_options): Set the flag, since length cannot be
37457         returned.
37458         (quoting_options_from_style): Default flags correctly.
37459
37460         Quotearg part 1: more wrappers, restore quotearg_char state.
37461         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
37462         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
37463         (quotearg_colon_mem): New wrappers.
37464         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
37465         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
37466         functions.
37467         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
37468         (quotearg_colon_mem): New functions.
37469
37470 2008-02-11  Bruno Haible  <bruno@clisp.org>
37471
37472         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
37473         library in the current directory: it does not work with parallel make.
37474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37475
37476 2008-02-11  Bruno Haible  <bruno@clisp.org>
37477
37478         * .gitattributes: New file.
37479
37480 2008-02-11  Jim Meyering  <meyering@redhat.com>
37481
37482         useless-if-before-free: Fix reversed exit values.
37483         * build-aux/useless-if-before-free: Use correct values
37484         for EXIT_MATCH and EXIT_NO_MATCH.
37485
37486         * build-aux/useless-if-before-free: Close stdout carefully.
37487
37488 2008-02-10  Bruno Haible  <bruno@clisp.org>
37489
37490         New module 'git-merge-changelog'.
37491         * modules/git-merge-changelog: New file.
37492         * lib/git-merge-changelog.c: New file.
37493
37494 2008-02-10  Jim Meyering  <meyering@redhat.com>
37495
37496         useless-if-before-free: New option: --list (-l).
37497
37498         useless-if-before-free: Don't exit immediately upon open failure.
37499         * build-aux/useless-if-before-free: Exit 2 for errors.
37500         Upon failure to open a file, don't exit immediately.
37501         Rather, just warn and continue with any remaining files.
37502
37503 2008-02-10  Bruno Haible  <bruno@clisp.org>
37504
37505         New abstract list operation 'node_set_value'.
37506         * lib/gl_list.h (gl_list_node_set_value): New function.
37507         (struct gl_list_implementation): New field node_set_value.
37508         * lib/gl_list.c (gl_list_node_set_value): New function.
37509         * lib/gl_array_list.c (gl_array_node_set_value): New function.
37510         (gl_array_list_implementation): Update.
37511         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
37512         (gl_carray_list_implementation): Update.
37513         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
37514         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37515         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37516         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
37517         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37518         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37519         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37520         Update.
37521         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
37522         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
37523         (gl_sublist_list_implementation): Update.
37524
37525 2008-02-10  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
37528         Needed when ELEMENT is #defined to 'some_type *'.
37529
37530 2008-02-10  Jim Meyering  <meyering@redhat.com>
37531
37532         New script and module: useless-if-before-free
37533         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
37534         * build-aux/useless-if-before-free: New file.
37535         * modules/useless-if-before-free: New file.
37536
37537         * build-aux/gitlog-to-changelog: Use committer date, not author date.
37538
37539         xstrtol_error: Fix typo.
37540         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
37541         s/exit_failure/exit_status/.
37542
37543 2008-02-09  Jim Meyering  <meyering@redhat.com>
37544
37545         New script and module: gitlog-to-changelog
37546         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
37547         * modules/gitlog-to-changelog: New file.
37548         * build-aux/gitlog-to-changelog: New file.
37549
37550 2008-02-08  Jim Meyering  <meyering@redhat.com>
37551
37552         Avoid two "parameter unused" warnings.
37553         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
37554         Mark "st" as used.
37555
37556         Use "git COMMAND", not "git-COMMAND".
37557         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
37558         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
37559         * build-aux/git-version-gen: Use "git status", not "git-status".
37560
37561 2008-02-07  Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
37564         Avoids a crash on Windows Vista.
37565         Reported by Adam Strzelecki <ono@java.pl> via
37566         Simon Josefsson <simon@josefsson.org>.
37567
37568 2008-02-06  Bruno Haible  <bruno@clisp.org>
37569
37570         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
37571         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37572         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37574         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37576         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37577         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37584         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37585         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37586         left-adjust flag.
37587         * tests/test-snprintf-posix.h (test_function): Likewise.
37588         * tests/test-sprintf-posix.h (test_function): Likewise.
37589         * tests/test-vasprintf-posix.c (test_function): Likewise.
37590         * doc/posix-functions/fprintf.texi: Update.
37591         * doc/posix-functions/printf.texi: Update.
37592         * doc/posix-functions/snprintf.texi: Update.
37593         * doc/posix-functions/sprintf.texi: Update.
37594         * doc/posix-functions/vfprintf.texi: Update.
37595         * doc/posix-functions/vprintf.texi: Update.
37596         * doc/posix-functions/vsnprintf.texi: Update.
37597         * doc/posix-functions/vsprintf.texi: Update.
37598         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37599
37600 2008-02-06  Bruno Haible  <bruno@clisp.org>
37601
37602         Fix bug introduced on 2008-01-26.
37603         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37604
37605 2008-02-06  Bruno Haible  <bruno@clisp.org>
37606
37607         Fix bug introduced on 2007-06-10.
37608         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
37609         !NEED_PRINTF_FLAG_ZERO.
37610
37611 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
37612
37613         getloadavg: use libperfstat on AIX5
37614         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
37615
37616 2008-02-03  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/diffseq.h: Add comments about required #includes.
37619         Reported by Michael Biggs <gnulib@doubleplum.net>.
37620
37621 2008-02-01  Bruno Haible  <bruno@clisp.org>
37622
37623         * users.txt: Add gnuit.
37624
37625 2008-01-31  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/md4.c (set_uint32): Mark as inline.
37628         * lib/md5.c (set_uint32): Likewise.
37629         * lib/sha1.c (set_uint32): Likewise.
37630         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
37631         * m4/md5.m4 (gl_MD5): Likewise.
37632         * m4/sha1.m4 (gl_SHA1): Likewise.
37633
37634 2008-01-31  Jim Meyering  <meyering@redhat.com>
37635
37636         Use "sizeof VAR", rather than a literal "4".
37637         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
37638         * lib/md4.c (md4_read_ctx): Likewise.
37639         * lib/sha1.c (sha1_read_ctx): Likewise.
37640
37641 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37642
37643         * tests/test-sha1.c: New file, based on test-md5.c.
37644
37645         * modules/crypto/sha1-tests: New file.
37646
37647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37648
37649         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
37650
37651 2008-01-31  Jim Meyering  <meyering@redhat.com>
37652
37653         Prefer "sizeof v" over the equivalent "4".
37654         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
37655         * lib/md5.c (set_uint32): Likewise.
37656         * lib/sha1.c (set_uint32): Likewise.
37657
37658 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37659
37660         * lib/sha1.c (set_uint32): Mark function as static.
37661
37662 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37663
37664         md2: clarify comments to say that alignment is not required.
37665         * lib/md2.h: Remove warning about alignment in comment.
37666         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
37667         never been required.
37668
37669 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37670
37671         md4: adapt alignment constraint fix from sha1.
37672         * lib/md4.c (set_uint32): New function, from sha1.c
37673         (md4_read_ctx): Use it.
37674         (md4_finish_ctx): Doc fix.
37675         * lib/md4.h: Doc fix.
37676
37677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37678
37679         md5: adapt alignment constraint fix from sha1.
37680         * lib/md5.c (set_uint32): New function, from sha1.c
37681         (md5_read_ctx): Use it.
37682         (md5_finish_ctx): Doc fix.
37683         * lib/md5.h: Doc fix.
37684
37685 2008-01-30  Peter Palfrader  <weasel@debian.org>
37686
37687         sha1: remove the result buffer alignment constraint
37688         * lib/sha1.c (set_uint32): New function.
37689         (sha1_read_ctx): Rewrite to remove the result buffer alignment
37690         constraint.
37691         (sha1_finish_ctx): Remove comment warning about alignment constraint.
37692         * lib/sha1.h: Likewise.
37693
37694 2008-01-30  Andreas Schwab  <schwab@suse.de>
37695             Bruno Haible  <bruno@clisp.org>
37696
37697         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
37698         correct definition of LDBL_MIN_EXP.
37699
37700 2008-01-30  Karl Berry  <karl@gnu.org>
37701
37702         * config/srclist-update: try to preserve x bit on updates.
37703         * config/srclistvars.sh: update for karl.
37704
37705 2008-01-29  Jim Meyering  <meyering@redhat.com>
37706
37707         vasnprintf.c: Avoid warning about unused label
37708         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
37709         "overflow" label definition and associated code with the
37710         same cpp condition that guards the sole use of that label.
37711
37712 2008-01-26  Bruno Haible  <bruno@clisp.org>
37713
37714         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
37715         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
37716         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
37717         * lib/isnanl-nolibm.h (isnanl): Likewise.
37718         Reported by Paul Eggert <eggert@cs.ucla.edu>.
37719
37720 2008-01-26  Bruno Haible  <bruno@clisp.org>
37721
37722         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
37723         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
37724
37725 2008-01-26  Bruno Haible  <bruno@clisp.org>
37726
37727         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
37728         GCC >= 4.0 built-in.
37729         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37730
37731 2008-01-26  Bruno Haible  <bruno@clisp.org>
37732
37733         Rename isnan, applicable to 'double' only, to isnand.
37734         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37735         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37736         (configure.ac): Update.
37737         (Include): Replace "isnan.h" with "isnand.h".
37738         * m4/isnand.m4: Renamed from m4/isnan.m4.
37739         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37740         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37741         instead of isnan.c.
37742         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37743         instead of HAVE_ISNAN_IN_LIBC.
37744         (isnand): Renamed from isnan.
37745         * lib/isnand.c: New file.
37746         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37747         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37748         (Makefile.am): Update.
37749         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37750         Include isnand.h instead of isnan.h.
37751         (main): Test isnand instead of isnan.
37752         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37753         isnan-nolibm.
37754         * modules/frexp (Depends-on): Likewise.
37755         * modules/frexp-tests (Depends-on): Likewise.
37756         * modules/frexp-nolibm (Depends-on): Likewise.
37757         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37758         * modules/isfinite (Depends-on): Likewise.
37759         * modules/round-tests (Depends-on): Likewise.
37760         * modules/signbit (Depends-on): Likewise.
37761         * modules/signbit-tests (Depends-on): Likewise.
37762         * modules/snprintf-posix (Depends-on): Likewise.
37763         * modules/sprintf-posix (Depends-on): Likewise.
37764         * modules/trunc-tests (Depends-on): Likewise.
37765         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37766         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37767         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37768         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37769         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37770         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37771         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37772         * modules/vasnprintf-posix (Depends-on): Likewise.
37773         * modules/vasprintf-posix (Depends-on): Likewise.
37774         * modules/vfprintf-posix (Depends-on): Likewise.
37775         * modules/vsnprintf-posix (Depends-on): Likewise.
37776         * modules/vsprintf-posix (Depends-on): Likewise.
37777         * lib/frexp.c: Include isnand.h instead of isnan.h.
37778         (ISNAN): Set to isnand instead of isnan.
37779         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37780         (gl_isfinited): Use isnand instead of isnan.
37781         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37782         (gl_signbitd): Use isnand instead of isnan.
37783         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37784         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37785         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37786         (main): Use isnand instead of isnan.
37787         * tests/test-round1.c: Include isnand.h.
37788         (main): Use isnand instead of isnan.
37789         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37790         (ISNAN): Set to isnand instead of isnan.
37791         * tests/test-trunc1.c: Include isnand.h.
37792         (main): Use isnand instead of isnan.
37793         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37794         (equal): Use isnand instead of isnan.
37795         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37796         isnand-nolibm.
37797         * NEWS: Mention the change.
37798
37799 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37800             Bruno Haible  <bruno@clisp.org>
37801
37802         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37803         the GCC builtins for signbits are present and set
37804         REPLACE_SIGNBIT_USING_GCC if so.
37805         * lib/math.in.h (signbit): Define using GCC builtins if
37806         REPLACE_SIGNBIT_USING_GCC is set.
37807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37808         REPLACE_SIGNBIT_USING_GCC.
37809         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37810
37811 2008-01-25  Jim Meyering  <meyering@redhat.com>
37812
37813         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37814         * lib/poll.c: Include <config.h>, not "config.h".
37815         * tests/test-getaddrinfo.c: Likewise.
37816
37817 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37818
37819         * modules/sockets-tests: New file.
37820
37821 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37822
37823         * modules/sockets: New module, can be used to call WSA_Startup and
37824         WSA_Cleanup when needed.
37825
37826         * lib/sockets.h, lib/sockets.c: New files.
37827
37828         * m4/sockets.m4: New file.
37829
37830         * tests/test-sockets.c: New file.
37831
37832 2008-01-19  Bruno Haible  <bruno@clisp.org>
37833
37834         * doc/posix-headers: Renamed from doc/headers.
37835         * doc/posix-functions: Renamed from doc/functions.
37836         * doc/gnulib.texi: Update.
37837
37838 2008-01-19  Bruno Haible  <bruno@clisp.org>
37839
37840         * doc/glibc-functions/strcasestr.texi: Include contents of
37841         doc/functions/strcasestr.texi, fixing the list of platforms.
37842         * doc/functions/strcasestr.texi: Remove file.
37843
37844 2008-01-19  Bruno Haible  <bruno@clisp.org>
37845
37846         * doc/glibc-functions/memmem.texi: Include contents of
37847         doc/functions/memmem.texi.
37848         * doc/functions/memmem.texi: Remove file.
37849
37850 2008-01-18  Bruno Haible  <bruno@clisp.org>
37851
37852         * doc/glibc-functions/*.texi: New files.
37853         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37854         to use the new files.
37855
37856 2008-01-17  Bruno Haible  <bruno@clisp.org>
37857
37858         * tests/test-gethostname.c (main): Fix printf statement.
37859
37860 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37861
37862         * modules/gethostname-tests: New file.
37863
37864         * tests/test-gethostname.c: New file.
37865
37866 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37867
37868         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37869         used by the UNAME case.  Reported by Bruno Haible
37870         <bruno@clisp.org>.
37871
37872 2008-01-17  Eric Blake  <ebb9@byu.net>
37873
37874         Convert c-strcasestr to be more efficient.
37875         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37876         (Depends-on): Add c-strcase, remove malloca, strnlen.
37877         * tests/test-c-strcasestr.c (main): Enhance test.
37878         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37879
37880 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37881
37882         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37883         Use it in creating po/Makevars.
37884
37885 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37886
37887         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37888         Applications that requires it should initialize libgcrypt
37889         manually.
37890
37891 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37892
37893         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37894
37895 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37896
37897         Fix problem with getdate on mingw32 reported by Simon Josefsson
37898         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37899         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37900         tzname", when deciding whether to declare tzname.
37901         * lib/strftime.c (tzname): Likewise.
37902
37903 2008-01-15  Bruno Haible  <bruno@clisp.org>
37904
37905         Work around a MacOS X 10.5 bug in frexpl().
37906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37907         * doc/functions/frexpl.texi: Document the bug.
37908         Reported by Elias Pipping <pipping@gentoo.org>.
37909
37910 2008-01-14  Eric Blake  <ebb9@byu.net>
37911
37912         Touch up previous patch.
37913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37914         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37915
37916         Convert strcasestr module to use Two-Way algorithm.
37917         * modules/strcasestr-simple: New module, based on the old
37918         strcasestr, but with Two-Way rather than KMP.
37919         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37920         * lib/string.in.h (rpl_strcasestr): Declare.
37921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37922         performance.
37923         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37924         * modules/string (Makefile.am): Support strcasestr.
37925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37926         * modules/strcasestr-tests (Depends-on): Check for alarm.
37927         * tests/test-strcasestr.c: Augment test.
37928         * lib/str-two-way.h: Clean up stray macro.
37929         * NEWS: Document new module.
37930         * MODULES.html.sh (string handling): Likewise.
37931         * doc/functions/strcasestr.texi: New file.
37932         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37933         here, since it is not a POSIX function.
37934
37935 2008-01-14  Colin Watson  <cjwatson@debian.org>
37936             Bruno Haible  <bruno@clisp.org>
37937
37938         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37939         works fine; if not, set REPLACE_STRSIGNAL.
37940         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37942         REPLACE_STRSIGNAL.
37943         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37944         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37945         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37946
37947 2008-01-14  Bruno Haible  <bruno@clisp.org>
37948
37949         * modules/strsignal (Include): Change to <string.h>.
37950
37951 2008-01-14  Colin Watson  <cjwatson@debian.org>
37952
37953         * modules/argp (Notice): Add a notice recommending to change
37954         XGETTEXT_OPTIONS.
37955         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37956
37957 2008-01-13  Colin Watson  <cjwatson@debian.org>
37958
37959         * modules/strsignal-tests: New file.
37960         * tests/test-strsignal.c: New file.
37961
37962         * lib/strsignal.c: New file, from glibc with modifications.
37963         * lib/siglist.h: New file, from glibc with modifications.
37964         * lib/string.in.h (strsignal): New declaration.
37965         * m4/strsignal.m4: New file.
37966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37967         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37968         * modules/strsignal: New file.
37969         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37970         HAVE_DECL_STRSIGNAL.
37971
37972 2008-01-13  Bruno Haible  <bruno@clisp.org>
37973
37974         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37975         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37976         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37977         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37978
37979 2008-01-13  Bruno Haible  <bruno@clisp.org>
37980
37981         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37982         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37983         * lib/argp.h (__attribute__): Likewise.
37984         * lib/c-stack.c (__attribute__): Likewise.
37985         * lib/error.h (__attribute__): Likewise.
37986         * lib/fts.c (__attribute__): Likewise.
37987         * lib/openat.h (__attribute__): Likewise.
37988         * lib/stdio.in.h (__attribute__): Likewise.
37989         * lib/string.in.h (__attribute__): Likewise.
37990         * lib/utimens.c (__attribute__): Likewise.
37991         * lib/vasnprintf.h (__attribute__): Likewise.
37992         * lib/xalloc.h (__attribute__): Likewise.
37993         * lib/xprintf.h (__attribute__): Likewise.
37994         * lib/xstrtol.h (__attribute__): Likewise.
37995         * lib/xvasprintf.h (__attribute__): Likewise.
37996
37997 2008-01-12  Bruno Haible  <bruno@clisp.org>
37998
37999         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
38000         * doc/glibc-headers/a.out.texi: New file.
38001         * doc/glibc-headers/aliases.texi: New file.
38002         * doc/glibc-headers/alloca.texi: New file.
38003         * doc/glibc-headers/ar.texi: New file.
38004         * doc/glibc-headers/argp.texi: New file.
38005         * doc/glibc-headers/argz.texi: New file.
38006         * doc/glibc-headers/byteswap.texi: New file.
38007         * doc/glibc-headers/crypt.texi: New file.
38008         * doc/glibc-headers/endian.texi: New file.
38009         * doc/glibc-headers/envz.texi: New file.
38010         * doc/glibc-headers/err.texi: New file.
38011         * doc/glibc-headers/error.texi: New file.
38012         * doc/glibc-headers/execinfo.texi: New file.
38013         * doc/glibc-headers/fpu_control.texi: New file.
38014         * doc/glibc-headers/fstab.texi: New file.
38015         * doc/glibc-headers/fts.texi: New file.
38016         * doc/glibc-headers/getopt.texi: New file.
38017         * doc/glibc-headers/ieee754.texi: New file.
38018         * doc/glibc-headers/ifaddrs.texi: New file.
38019         * doc/glibc-headers/libintl.texi: New file.
38020         * doc/glibc-headers/mcheck.texi: New file.
38021         * doc/glibc-headers/mntent.texi: New file.
38022         * doc/glibc-headers/obstack.texi: New file.
38023         * doc/glibc-headers/paths.texi: New file.
38024         * doc/glibc-headers/printf.texi: New file.
38025         * doc/glibc-headers/pty.texi: New file.
38026         * doc/glibc-headers/resolv.texi: New file.
38027         * doc/glibc-headers/shadow.texi: New file.
38028         * doc/glibc-headers/sysexits.texi: New file.
38029         * doc/glibc-headers/ttyent.texi: New file.
38030
38031 2008-01-12  Jim Meyering  <meyering@redhat.com>
38032
38033         announce-gen: emit Gnulib's git-based version string.
38034         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
38035         New option --gnulib-version=V, where V is expected to be
38036         the output of running git describe in the gnulib directory.
38037         (get_tool_versions): Request feedback on xdelta.  I suspect it's
38038         not useful, and plan to stop publishing an xdelta file with each
38039         coreutils release.
38040
38041         * build-aux/announce-gen: Also check for lzma-compressed files.
38042
38043 2008-01-11  Bruno Haible  <bruno@clisp.org>
38044
38045         * tests/test-memmem.c (main): Increase maximum allowed time.
38046         * tests/test-strstr.c (main): Likewise.
38047
38048 2008-01-11  Bruno Haible  <bruno@clisp.org>
38049
38050         * doc/functions/memmem.texi: Add more precisions about platforms.
38051         * doc/functions/strstr.texi: Likewise.
38052
38053 2008-01-10  Eric Blake  <ebb9@byu.net>
38054
38055         * m4/strstr.m4: Delete cruft from copy-n-paste.
38056         Reported by Bruno Haible.
38057
38058 2008-01-10  Bruno Haible  <bruno@clisp.org>
38059
38060         Make c-strstr rely on strstr.
38061         * lib/c-strstr.c: Don't include str-kmp.h.
38062         (c_strstr): Define in terms of strstr.
38063         * modules/c-strstr (Files): Remove lib/str-kmp.h.
38064         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
38065
38066 2008-01-10  Bruno Haible  <bruno@clisp.org>
38067
38068         * doc/gnulib.texi (String Functions in C Locale): New section.
38069         * doc/c-ctype.texi: New file.
38070         * doc/c-strcase.texi: New file.
38071         * doc/c-strcaseeq.texi: New file.
38072         * doc/c-strcasestr.texi: New file.
38073         * doc/c-strstr.texi: New file.
38074         * doc/c-strtod.texi: New file.
38075         * doc/c-strtold.texi: New file.
38076
38077 2008-01-10  Eric Blake  <ebb9@byu.net>
38078
38079         * lib/relocatable.h: Fix a comment.
38080
38081 2008-01-10  Eric Blake  <ebb9@byu.net>
38082
38083         Share two-way algorithm.
38084         * lib/str-two-way.h: New file, merged from...
38085         * lib/memmem.c: ...here...
38086         * lib/strstr.c: ...and here.
38087         * modules/memmem (Files): Use it.
38088         * modules/strstr (Files): Likewise.
38089
38090         Avoid quadratic strstr implementations.
38091         * lib/strstr.c: New file.
38092         * m4/strstr.m4: Likewise.
38093         * modules/strstr: Likewise.
38094         * modules/strstr-tests: Likewise.
38095         * tests/test-strstr.c: Likewise.
38096         * lib/string.in.h (rpl_strstr): Declare.
38097         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
38098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
38099         * modules/string (Makefile.am): Likewise.
38100         * MODULES.html.sh (string handling): Mention new module.
38101         * doc/functions/strstr.texi (strstr): Document the bug.
38102
38103 2008-01-10  Bruno Haible  <bruno@clisp.org>
38104
38105         * lib/relocatable.h (relocate): State whether result is freshly
38106         allocated or not.
38107         * lib/relocatable.c (relocate): Return a freshly allocated string
38108         instead of a pointer to a privately held string.
38109         Reported by Sylvain Beucler <beuc@gnu.org>.
38110
38111 2008-01-10  Colin Watson  <cjwatson@debian.org>
38112
38113         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
38114         s/S_ISNLK/S_ISLNK/.
38115
38116 2008-01-09  Bruno Haible  <bruno@clisp.org>
38117
38118         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
38119         and other files.
38120         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
38121         if it's only a guess.
38122         * modules/memmem: Simplify by depending on memmem-simple.
38123
38124 2008-01-09  Bruno Haible  <bruno@clisp.org>
38125
38126         Work around OpenBSD 4.0 tdelete() bug.
38127         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
38128         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
38129         macros and don't redefine the enum values.
38130         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
38131         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
38132         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
38133
38134 2008-01-09  Bruno Haible  <bruno@clisp.org>
38135
38136         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
38137         (main): Don't perform the tests if setlocale did not install a UTF-8
38138         locale. Needed on OpenBSD 4.0.
38139         * modules/wcwidth-tests (Depends-on): Add localcharset.
38140
38141 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38142
38143         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
38144         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
38145         * NEWS: announce this.
38146         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
38147
38148 2008-01-09  Simon Josefsson  <simon@josefsson.org>
38149         and Eric Blake  <ebb9@byu.net>
38150
38151         Add memmem-simple module.
38152         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
38153         (gl_FUNC_MEMMEM): Separate performance from presence checks.
38154         * modules/memmem-simple: New file.
38155         * modules/memmem (Description): Tweak.
38156         * MODULES.html.sh (string handling): Mention new module.
38157         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
38158         addressed by memmem-simple.
38159         * NEWS: Document the difference.
38160
38161 2008-01-09  Eric Blake  <ebb9@byu.net>
38162
38163         Give gcc some memmem optimization hints.
38164         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
38165         (strcasestr): Declare as pure.
38166         * modules/memmem (Maintainer): Claim my implementation.
38167
38168 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38169
38170         Support AIX 6.1 and higher.
38171         * build-aux/config.libpath: Likewise.
38172         * build-aux/config.rpath: Likewise.
38173
38174 2008-01-08  Jim Meyering  <meyering@redhat.com>
38175             Bruno Haible  <bruno@clisp.org>
38176
38177         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
38178         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
38179         Reported by Peter Fales in
38180         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
38181
38182 2008-01-08  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/unictype/category-of (Depends-on): Add
38185         unictype/category-none.
38186         * modules/unictype/category-and-tests (Depends-on): Add
38187         unictype/category-{L,N,Lu,Nd}.
38188         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
38189         * modules/unictype/category-or-tests (Depends-on): Add
38190         unictype/category-{L,N}.
38191         * modules/unictype/category-name-tests (Depends-on): Add
38192         unictype/category-{Z,Nl}.
38193         Reported by Simon Josefsson.
38194
38195 2008-01-08  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
38198         convention better.
38199         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
38200         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
38201         Reported by Peter Miller <millerp@canb.auug.org.au>.
38202
38203 2008-01-08  Eric Blake  <ebb9@byu.net>
38204
38205         Rewrite memmem to guarantee linear complexity without malloc.
38206         * lib/memmem.c (memmem): Use Two-Way rather than
38207         Knuth-Morris-Pratt, to allow O(1) space usage.
38208         (critical_factorization, two_way_short_needle)
38209         (two_way_long_needle): New functions.
38210         (knuth_morris_pratt): Delete.
38211         * modules/memmem (Depends-on): No longer need malloca or stdbool.
38212         Add stdint.
38213         * tests/test-memmem.c (main): Add tests for periodic needle and
38214         sublinear performance.
38215         * doc/functions/memmem.texi (memmem): Document other deficiencies
38216         in cygwin and older glibc.
38217
38218 2008-01-08  Bruno Haible  <bruno@clisp.org>
38219
38220         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
38221         augmentation.
38222
38223 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
38224
38225         Add a configure time option: --disable-acl.
38226         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
38227         AC_ARG_ENABLE(acl).
38228
38229 2008-01-06  Simon Josefsson  <simon@josefsson.org>
38230
38231         * tests/test-localename.c: Don't include obsolete "setenv.h".
38232
38233         * modules/localename-tests (Depends-on): Need unsetenv.
38234
38235 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38236
38237         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
38238
38239 2008-01-06  Colin Watson  <cjwatson@debian.org>
38240
38241         * users.txt: Add man-db.
38242
38243 2008-01-07  Bruno Haible  <bruno@clisp.org>
38244
38245         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
38246         previous section name.
38247
38248 2008-01-07  Bruno Haible  <bruno@clisp.org>
38249
38250         * lib/progname.c (set_program_name): Don't strip off a leading
38251         "lt-" prefix outside a .libs directory.
38252         Suggested by Paul Eggert.
38253
38254 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
38255             Bruno Haible  <bruno@clisp.org>
38256
38257         Improve memory cleanup in 'relocatable' module.
38258         * lib/relocatable.h (compute_curr_prefix): Change return type to
38259         'char *'.
38260         * lib/relocatable.c (compute_curr_prefix): Change return type to
38261         'char *'. Free curr_installdir after use.
38262         (relocate): Free curr_prefix_better after use.
38263         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
38264
38265 2008-01-01  Bruno Haible  <bruno@clisp.org>
38266
38267         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
38268         failure on older glibc systems.
38269         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38270
38271 2008-01-05  Eric Blake  <ebb9@byu.net>
38272
38273         Avoid quadratic system memmem.
38274         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
38275         Reported by Ralf Wildenhues.
38276
38277         Fix memmem test for mingw.
38278         * modules/memmem-tests (configure.ac): Check for alarm.
38279         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
38280         it.
38281         * doc/functions/memmem.texi: New file.
38282         * doc/gnulib.texi (Function Substitutes): Add memmem.
38283         Reported by Bruno Haible.
38284
38285 2008-01-04  Bruno Haible  <bruno@clisp.org>
38286
38287         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
38288         Require gl_HEADER_STRINGS_H_DEFAULTS, not
38289         gl_HEADER_STRING_H_DEFAULTS.
38290
38291 2008-01-04  Eric Blake  <ebb9@byu.net>
38292
38293         Shorten duration of memmem test.
38294         * tests/test-memmem.c (main): Use alarm to declare failure if test
38295         is taking too long.
38296         Reported by Ralf Wildenhues.
38297
38298 2007-12-21  Simon Josefsson  <simon@josefsson.org>
38299
38300         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
38301         string, needed by strerror.
38302
38303 2008-01-03  Colin Watson  <cjwatson@debian.org>
38304             Bruno Haible  <bruno@clisp.org>
38305
38306         * doc/gnulib-tool.texi (Localization): New section.
38307
38308 2008-01-02  Bruno Haible  <bruno@clisp.org>
38309
38310         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
38311         variables to 'unsigned char *' type.
38312         Reported by Paul Eggert.
38313
38314 2008-01-02  Jim Meyering  <jim@meyering.net>
38315
38316         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
38317
38318 2007-12-31  Jim Meyering  <jim@meyering.net>
38319
38320         Avoid use of private FTS type name.
38321         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
38322
38323 2007-12-30  Karl Berry  <karl@gnu.org>
38324
38325         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
38326         work around defect in Texinfo and/or the standalone Info browser.
38327
38328 2007-12-30  Bruno Haible  <bruno@clisp.org>
38329
38330         Unify 5 copies of the KMP code.
38331         * lib/str-kmp.h: New file.
38332         * lib/c-strcasestr.c: Include str-kmp.h.
38333         (knuth_morris_pratt): Remove function.
38334         (c_strcasestr): Update.
38335         * lib/c-strstr.c: Include str-kmp.h.
38336         (knuth_morris_pratt): Remove function.
38337         (c_strcasestr): Update.
38338         * lib/mbscasestr.c: Include str-kmp.h.
38339         (knuth_morris_pratt_unibyte): Remove function.
38340         * lib/mbsstr.c: Include str-kmp.h.
38341         (knuth_morris_pratt_unibyte): Remove function.
38342         * lib/strcasestr.c: Include str-kmp.h.
38343         (knuth_morris_pratt): Remove function.
38344         (strcasestr): Update.
38345         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
38346         * modules/c-strstr (Files): Likewise.
38347         * modules/mbscasestr (Files): Likewise.
38348         * modules/mbsstr (Files): Likewise.
38349         * modules/strcasestr (Files): Likewise.
38350         Suggested by Paul Eggert.
38351
38352 2007-12-30  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
38355         defined.
38356
38357 2007-12-30  Bruno Haible  <bruno@clisp.org>
38358
38359         * lib/xmalloca.h: Include xalloc.h.
38360         (xnmalloca): New macro.
38361
38362 2007-12-30  Bruno Haible  <bruno@clisp.org>
38363
38364         * lib/malloca.h (nmalloca): New macro.
38365         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
38366         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
38367         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
38368         knuth_morris_pratt_multibyte): Likewise.
38369         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
38370         knuth_morris_pratt_multibyte): Likewise.
38371         * lib/memmem.c (knuth_morris_pratt): Likewise.
38372         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
38373
38374 2007-12-25  Bruno Haible  <bruno@clisp.org>
38375
38376         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
38377         * lib/glob.c: Don't include openat.h.
38378         (link_exists2_p): Add back the code that deals with the
38379         !GLOB_ALTDIRFUNC case.
38380         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
38381         let it do the filename concatenation.
38382         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
38383         * modules/glob (Depends-on): Remove openat.
38384
38385 2007-12-31  Bruno Haible  <bruno@clisp.org>
38386
38387         * modules/dirfd (License): Change to LGPLv2+.
38388         Approved by Jim Meyering.
38389
38390 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38391
38392         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
38393         when multiplying M by sizeof (size_t).
38394
38395 2007-12-10  Martin Lambers  <marlam@marlam.de>
38396
38397         Override getpagesize on mingw.
38398         * lib/getpagesize.c: New file.
38399         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
38400         * modules/getpagesize (Files): Add lib/getpagesize.c.
38401         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
38402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38403         REPLACE_GETPAGESIZE.
38404         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
38405
38406 2007-12-25  Bruno Haible  <bruno@clisp.org>
38407
38408         * modules/localcharset (Notice): New field.
38409         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
38410         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38411
38412 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38413             Bruno Haible  <bruno@clisp.org>
38414
38415         Avoid using the syntax symbol() in formatted documentation.
38416         * MODULES.html.sh (func_module): When replacing symbol() with a
38417         hyperlink, remove the parentheses. Show an error if some remain.
38418         Recognize and render the '...' syntax.
38419         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
38420         Rework. Add paragraph about GCC's inlining.
38421         * doc/alloca.texi: Likewise.
38422         * doc/error.texi: Remove parentheses from symbol reference.
38423         * doc/gnulib-intro.texi: Likewise.
38424         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
38425         * modules/fnmatch (Description): Reword to say "the ... function".
38426         * modules/full-read (Description): Likewise.
38427         * modules/full-write (Description): Likewise.
38428         * modules/safe-read (Description): Likewise.
38429         * modules/safe-write (Description): Likewise.
38430         * modules/strchrnul (Description): Likewise.
38431         * modules/trim (Description): Likewise.
38432         * modules/error (Description): Remove parentheses from symbol
38433         references.
38434         * modules/verror (Description): Likewise.
38435         Reported by Karl Berry.
38436
38437 2007-12-25  Bruno Haible  <bruno@clisp.org>
38438
38439         Fixup after 2007-10-16 commit.
38440         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
38441
38442 2007-12-24  Bruno Haible  <bruno@clisp.org>
38443
38444         Make --enable-relocatable work with DESTDIR.
38445         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
38446         to compute installdir from destprog.
38447         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
38448         also set the RELOC_DESTDIR variable.
38449         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38450
38451 2007-12-24  Bruno Haible  <bruno@clisp.org>
38452
38453         Fix link error due to xalloc_die().
38454         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
38455         of xreadlink.
38456         * lib/relocwrapper.c: Update comments.
38457         * build-aux/install-reloc: Remove xreadlink.c from file list.
38458         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
38459         xreadlink.c.
38460         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38461
38462 2007-12-24  Bruno Haible  <bruno@clisp.org>
38463
38464         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
38465         * lib/setenv.h: Remove file.
38466         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
38467         lib/setenv.h.
38468         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
38469         (Depends-on): Add stdlib.
38470         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
38471         gl_FUNC_UNSETENV.
38472         (Include): Replace setenv.h with <stdlib.h>.
38473         * modules/unsetenv: New file.
38474         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
38475         * lib/unsetenv.c: Include <stdlib.h> first.
38476         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
38477         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
38478         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
38479         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
38480         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
38481         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
38483         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38484         * doc/functions/unsetenv.texi: Update.
38485         * modules/xsetenv (Depends-on): Add unsetenv.
38486         * modules/getdate (Depends-on): Likewise.
38487         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
38488         * lib/xsetenv.c: Don't include setenv.h.
38489         * lib/getdate.y: Likewise.
38490         * lib/relocwrapper.c: Likewise.
38491         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
38492         (Depends-on): Add stdlib.
38493         * NEWS: Mention the changes.
38494         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38495
38496 2007-12-23  Bruno Haible  <bruno@clisp.org>
38497
38498         * lib/memmem.c (memmem): Use lowercase variable names. Tab
38499         indentation.
38500
38501 2007-12-23  Bruno Haible  <bruno@clisp.org>
38502
38503         * lib/c-strcasestr.c: Add more comments.
38504         * lib/c-strstr.c: Likewise.
38505         * lib/mbscasestr.c: Likewise.
38506         * lib/mbsstr.c: Likewise.
38507         * lib/strcasestr.c: Likewise.
38508         * lib/memmem.c: Likewise.
38509
38510 2007-12-23  Bruno Haible  <bruno@clisp.org>
38511
38512         * tests/test-memmem.c: Include <string.h> first.
38513
38514 2007-12-22  Bruno Haible  <bruno@clisp.org>
38515
38516         * gnulib-tool (func_create_testdir): Change $auxdir while generating
38517         the contents of $testsbase.
38518         Reported by Ralf Wildenhues.
38519
38520 2007-12-22  Bruno Haible  <bruno@clisp.org>
38521
38522         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
38523         two variables local_ldadd_before, local_ldadd_last.
38524
38525 2007-12-20  Eric Blake  <ebb9@byu.net>
38526
38527         Work around circular library issue when cross-compiling.
38528         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
38529         that progname.o does not need to pull in rpl_memcmp.
38530
38531 2007-12-19  Eric Blake  <ebb9@byu.net>
38532
38533         Fix memmem to avoid O(n^2) worst-case complexity.
38534         * lib/memmem.c (knuth_morris_pratt): New function.
38535         (memmem): Use it if first few naive iterations fail.
38536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
38537         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
38538         * modules/memchr (License): Likewise.
38539         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
38540         malloca.
38541         * tests/test-memmem.c: Rewrite, borrowing ideas from
38542         test-mbsstr1.c; the old version wouldn't even compile!
38543         * modules/memmem-tests: New file.
38544         * lib/string.in.h (rpl_memmem): Add declaration.
38545         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
38546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
38547         REPLACE_MEMMEM.
38548
38549 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38550
38551         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
38552         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
38553         before any system include files, and undef after them all.  This
38554         should fix a problem on VMS reported by John E. Malmberg in
38555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
38556
38557 2007-12-17  Eric Blake  <ebb9@byu.net>
38558
38559         Revert addition of verify, for BSD/OS.
38560         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
38561         can't handle large files, for the sake of obsolete platforms.
38562         * modules/fseeko (Depends-on): Remove verify.
38563         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
38564         * doc/functions/ftello.texi (ftello): Likewise.
38565         * doc/functions/fgetpos.texi (fgetpos): Likewise.
38566         Reported by Larry Jones.
38567
38568 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
38569
38570         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
38571         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38572
38573 2007-12-17  Jim Meyering  <meyering@redhat.com>
38574
38575         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38576         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38577         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38578         * modules/getcwd (Depends-on): Add openat.
38579         Reported by Petr Salinger.
38580
38581 2007-12-17  Bruno Haible  <bruno@clisp.org>
38582
38583         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38584         avoid a segmentation fault of the configure test on x86_64 systems.
38585
38586 2007-12-15  Jim Meyering  <meyering@redhat.com>
38587
38588         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38589
38590 2007-12-13  Eric Blake  <ebb9@byu.net>
38591
38592         Another fseek test.
38593         * tests/test-fseek.c (main): Also test ungetc handling.
38594         * tests/test-fseeko.c (main): Likewise.
38595         * modules/fseeko (Depends-on): Add verify.
38596         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38597         large.
38598         Reported by Larry Jones.
38599
38600         Fix fseeko on mingw.
38601         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38602         seek.
38603
38604         Beef up fseek tests.
38605         * tests/test-fseek.c (main): Also test eof handling.
38606         * tests/test-fseeko.c (main): Likewise.
38607         Reported by Larry Jones.
38608
38609 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
38610
38611         Fix fseeko on BSD-based platforms.
38612         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
38613         successful seek.
38614
38615 2007-12-12  Eric Blake  <ebb9@byu.net>
38616
38617         Allow circular dependency of separate libtests.a
38618         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
38619         when use_libtests.
38620
38621 2007-12-11  Eric Blake  <ebb9@byu.net>
38622
38623         Fix bug with -0.0L in previous patch.
38624         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
38625         * tests/test-isnan.c (main): Also test on zeroes.
38626         * tests/test-isnanf.c (main): Likewise.
38627         * tests/test-isnanl.h (main): Likewise.
38628
38629         Detect pseudo-denormals on x86 even when cross-compiling.
38630         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
38631         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
38632         invalid bit patterns that happen to satisfy ==.
38633
38634         Avoid link failures with separate libtests.a.
38635         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
38636         last, to satisfy circular dependencies.
38637
38638 2007-12-11  Eric Blake  <ebb9@byu.net>
38639         and Bruno Haible  <bruno@clisp.org>
38640
38641         Fix OpenBSD 4.0 <float.h> handling of long double.
38642         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
38643         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
38644         * doc/headers/float.texi (float.h): Document OpenBSD bug.
38645
38646 2007-12-11  Jim Meyering  <meyering@redhat.com>
38647
38648         * users.txt: Add libvirt.
38649
38650         Support versions of autoconf prior to 2.59c.
38651         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
38652         if it is not already defined.
38653
38654 2007-12-09  Bruno Haible  <bruno@clisp.org>
38655
38656         Let 'gnulib-tool --import' collect sources needed for the tests in
38657         tests/ rather than in lib/.
38658         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
38659         argument. If true, add rules to generate libtests.a, and put libtests.a
38660         into $(LDADD). Consider source files in subdirectories and set
38661         uses_subdirs.
38662         (func_emit_initmacro_start, func_emit_initmacro_end,
38663         func_emit_initmacro_done): Pass all arguments explicitly.
38664         (func_import): Determine two module lists main_modules,
38665         testsrelated_modules. Determine use_libtests. Determine two variables
38666         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
38667         instead of just sed_transform_lib_file. Determine two variables
38668         main_files and testsrelated_files. Compute 'files' as the union of
38669         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
38670         func_add_or_update. In the generated gnulib-comp.m4, collect the
38671         object files for tests/ in different variables than those for lib/.
38672         Substitute LIBTESTS_LIBDEPS.
38673         (func_create_testdir): Combine the uses_subdirs results from
38674         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
38675
38676 2007-12-09  Bruno Haible  <bruno@clisp.org>
38677
38678         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
38679         the build-aux directory.
38680
38681 2007-12-09  Bruno Haible  <bruno@clisp.org>
38682
38683         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
38684         introduced on 2006-09-09.
38685
38686 2007-12-07  Jim Meyering  <meyering@redhat.com>
38687
38688         Let these macros work also with autoconf-2.59.
38689         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
38690         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
38691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38692
38693 2007-12-06  Jim Meyering  <meyering@redhat.com>
38694
38695         Avoid a configure-time syntax error in gl_FUNC_ACL.
38696         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
38697         function in each branch, before testing the cache variable.
38698
38699 2007-12-04  Eric Blake  <ebb9@byu.net>
38700
38701         Make scripts executable.
38702         * build-aux/config.guess: Add execute permissions.
38703         * build-aux/config.sub: Likewise.
38704         * build-aux/gendocs.sh: Likewise.
38705
38706         Fix frexp on mingw.
38707         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
38708         cross-compiling.
38709         * doc/functions/frexp.texi (frexp): Document the bug.
38710
38711         Make cygwin fseeko check more reliable.
38712         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
38713         version numbers, rather than unrelated feature check.
38714         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
38715         * doc/functions/ftello.texi (ftello): Likewise.
38716         Reported by Bruno Haible.
38717
38718         * m4/strerror.m4: Bump version number.
38719
38720 2007-12-03  Bruno Haible  <bruno@clisp.org>
38721
38722         * doc/functions/mprotect.texi: Mention the mingw problem.
38723
38724 2007-12-03  Eric Blake  <ebb9@byu.net>
38725
38726         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
38727         REPLACE_STRERROR is initialized before this macro.
38728
38729 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38730
38731         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38732         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38733         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38734         put -lsec in even for programs other than 'ls'.  This fixes a problem
38735         for gettext reported by Bruno Haible in
38736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38737         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38738         Add support for Solaris 10.  This isn't efficient, but should get the
38739         job done for now.
38740
38741 2007-12-03  James Youngman  <jay@gnu.org>
38742
38743         * doc/regexprops-generic.texi: change "an close-group" to "a
38744         close-group" and "illegal" to "not allowed".
38745
38746 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38747
38748         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38749         pr_byname.h. Needed for the rare case when the maintainer has done
38750         "make maintainer-clean" in the source directory and then attempts a
38751         build outside the source directory.
38752         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38753         scripts_byname.h.
38754
38755 2007-12-02  Martin Lambers <marlam@marlam.de>
38756             Bruno Haible  <bruno@clisp.org>
38757
38758         * lib/getpagesize.h: Remove file.
38759         * lib/unistd.in.h: Include declaration of getpagesize here.
38760         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38761         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38762         HAVE_SYS_PARAM_H.
38763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38764         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38765         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38766         (Depends-on): Add unistd.
38767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38768         (Include): Use <unistd.h> instead of getpagesize.h.
38769         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38770         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38771         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38772         gl_GETPAGESIZE invocation, already handled by module dependency.
38773         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38774
38775 2007-12-02  Bruno Haible  <bruno@clisp.org>
38776
38777         * modules/strings-tests: New file.
38778         * tests/test-strings.c: New file.
38779
38780         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38781         * lib/strings.in.h: New file.
38782         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38783         * m4/strings_h.m4: New file.
38784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38785         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38786         * modules/strings: New file.
38787         * modules/string (Makefile.am): Update.
38788         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38789         Reported by Karl Berry.
38790
38791 2007-12-01  Eric Blake  <ebb9@byu.net>
38792
38793         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38794         accomodate fix in cygwin 1.5.25.
38795
38796 2007-12-01  Jim Meyering  <meyering@redhat.com>
38797
38798         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38799         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38800         that would inhibit utf8-optimization of a regexp containing line-
38801         or buffer-anchors, e.g., `^', `$'.
38802
38803 2007-11-30  Bruno Haible  <bruno@clisp.org>
38804
38805         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38806         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38807         glthread_recursive_lock_init.
38808         * lib/lock.c (glthread_recursive_lock_init)
38809         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38811
38812 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38813
38814         New function qset_acl, like set_acl but with syscall semantics.
38815         * lib/acl.h (qset_acl): New decl.
38816         * lib/acl.c (qset_acl): New function.
38817         (set_acl): Use new function.  Use more-consistent diagnostics.
38818
38819 2007-11-28  Jim Meyering  <meyering@redhat.com>
38820
38821         * modules/physmem (License): Change from GPL to LGPLv2+.
38822
38823 2007-11-26  Bruno Haible  <bruno@clisp.org>
38824
38825         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38826         'long double' type has excess precision.
38827         Reported by Jim Meyering in
38828         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38829
38830 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38831
38832         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38833         Sync from <http://gnu.org/licenses>.
38834         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38835         with license text from same location.
38836         * doc/maintain.texi, doc/standards.texi:  Sync from
38837         <http://savannah.gnu.org/projects/gnustandards>.
38838
38839 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
38840         and Jim Meyering  <meyering@redhat.com>
38841
38842         Adjust getdate' grammar to accept a slightly more regular language.
38843         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38844         Before, the former was rejected.
38845         * lib/getdate.y (digits_to_date_time): New function, factored
38846         out of ...
38847         (number): ...here.  Just call digits_to_date_time.
38848         (hybrid): New non-terminal to handle an <unsigned number,
38849         signed relative offset> sequence consistently.
38850
38851 2007-11-18  Jim Meyering  <meyering@redhat.com>
38852
38853         Pull my changes from coreutils:
38854         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38855         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38856         use of $gnulib_tool_option_extras, so that it's separated from the
38857         preceding argument.
38858
38859         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38860         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38861         parent destination directories before copying a file into place.
38862
38863 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38864
38865         bootstrap: work also with 4-argument variant of AC_INIT
38866         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38867
38868 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38869
38870         Port test-getaddrinfo to Solaris.
38871         Problem reported by Bruno Haible in
38872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38873         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38874         explanation of setting 'hints'.
38875         Don't reject an implementation merely because it returns EAI_SERVICE.
38876         (EAI_SERVICE): Define to 0 if not defined.
38877
38878 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38879
38880         The license of gnu-make and posix-shell is now "GPLed build tool".
38881         * modules/gnu-make (License): Likewise.
38882         * modules/posix-shell (License): Likewise.
38883
38884         New module posix-shell, for determining a POSIX shell
38885         or perhaps something that is close enough to a POSIX shell.
38886         * m4/posix-shell.m4: New file.
38887         * modules/posix-shell: New file.
38888
38889         * MODULES.html.sh: Mention new module.
38890
38891         New module gnu-make, for determining whether we're using GNU Make.
38892         * m4/gnu-make.m4: New file.
38893         * modules/gnu-make: New file.
38894         * MODULES.html.sh: Mention new module.
38895
38896 2007-11-14  Jim Meyering  <meyering@redhat.com>
38897
38898         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38899         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38900         use this macro to create a function _definition_.
38901         Remove useless "#undef ARGMATCH_DIE".
38902
38903 2007-11-14  Bruno Haible  <bruno@clisp.org>
38904
38905         * lib/config.charset: Update for OpenBSD 4.1.
38906         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38907
38908 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38909
38910         Document 64-bit #if problems in stdint.texi.
38911         * doc/headers/stdint.texi (stdint.h): Mention problems with
38912         64-bit-#if, and how to work around them.
38913
38914         Don't insist on 'long long int' support in the preprocessor.  It
38915         breaks too many things.  For example, PRIdMAX still uses a 'long
38916         long int' format with the latest Sun compiler, even though
38917         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38918         preprocessor problem.  This causes the latest coreutils to dump
38919         core on Solaris 10 sparc with the Sun C compiler.
38920         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38921         the troublesome expressions at configure-time, not at #if-time.
38922         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38923         preprocessor.
38924         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38925         compile-time C checks, done at 'configure'-time.
38926         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38927         * modules/inttypes (Makefile): Substitute the new symbols that
38928         gl_INTTYPES_H now generates.
38929         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38930
38931 2007-11-12  Bruno Haible  <bruno@clisp.org>
38932
38933         Tests for Unicode character classification functions.
38934
38935         * modules/unictype/bidicategory-byname-tests: New file.
38936         * modules/unictype/bidicategory-name-tests: New file.
38937         * modules/unictype/bidicategory-of-tests: New file.
38938         * modules/unictype/bidicategory-test-tests: New file.
38939         * modules/unictype/block-list-tests: New file.
38940         * modules/unictype/block-of-tests: New file.
38941         * modules/unictype/block-test-tests: New file.
38942         * modules/unictype/category-C-tests: New file.
38943         * modules/unictype/category-Cc-tests: New file.
38944         * modules/unictype/category-Cf-tests: New file.
38945         * modules/unictype/category-Cn-tests: New file.
38946         * modules/unictype/category-Co-tests: New file.
38947         * modules/unictype/category-Cs-tests: New file.
38948         * modules/unictype/category-L-tests: New file.
38949         * modules/unictype/category-Ll-tests: New file.
38950         * modules/unictype/category-Lm-tests: New file.
38951         * modules/unictype/category-Lo-tests: New file.
38952         * modules/unictype/category-Lt-tests: New file.
38953         * modules/unictype/category-Lu-tests: New file.
38954         * modules/unictype/category-M-tests: New file.
38955         * modules/unictype/category-Mc-tests: New file.
38956         * modules/unictype/category-Me-tests: New file.
38957         * modules/unictype/category-Mn-tests: New file.
38958         * modules/unictype/category-N-tests: New file.
38959         * modules/unictype/category-Nd-tests: New file.
38960         * modules/unictype/category-Nl-tests: New file.
38961         * modules/unictype/category-No-tests: New file.
38962         * modules/unictype/category-P-tests: New file.
38963         * modules/unictype/category-Pc-tests: New file.
38964         * modules/unictype/category-Pd-tests: New file.
38965         * modules/unictype/category-Pe-tests: New file.
38966         * modules/unictype/category-Pf-tests: New file.
38967         * modules/unictype/category-Pi-tests: New file.
38968         * modules/unictype/category-Po-tests: New file.
38969         * modules/unictype/category-Ps-tests: New file.
38970         * modules/unictype/category-S-tests: New file.
38971         * modules/unictype/category-Sc-tests: New file.
38972         * modules/unictype/category-Sk-tests: New file.
38973         * modules/unictype/category-Sm-tests: New file.
38974         * modules/unictype/category-So-tests: New file.
38975         * modules/unictype/category-Z-tests: New file.
38976         * modules/unictype/category-Zl-tests: New file.
38977         * modules/unictype/category-Zp-tests: New file.
38978         * modules/unictype/category-Zs-tests: New file.
38979         * modules/unictype/category-and-not-tests: New file.
38980         * modules/unictype/category-and-tests: New file.
38981         * modules/unictype/category-byname-tests: New file.
38982         * modules/unictype/category-name-tests: New file.
38983         * modules/unictype/category-none-tests: New file.
38984         * modules/unictype/category-of-tests: New file.
38985         * modules/unictype/category-or-tests: New file.
38986         * modules/unictype/category-test-withtable-tests: New file.
38987         * modules/unictype/combining-class-tests: New file.
38988         * modules/unictype/ctype-alnum-tests: New file.
38989         * modules/unictype/ctype-alpha-tests: New file.
38990         * modules/unictype/ctype-blank-tests: New file.
38991         * modules/unictype/ctype-cntrl-tests: New file.
38992         * modules/unictype/ctype-digit-tests: New file.
38993         * modules/unictype/ctype-graph-tests: New file.
38994         * modules/unictype/ctype-lower-tests: New file.
38995         * modules/unictype/ctype-print-tests: New file.
38996         * modules/unictype/ctype-punct-tests: New file.
38997         * modules/unictype/ctype-space-tests: New file.
38998         * modules/unictype/ctype-upper-tests: New file.
38999         * modules/unictype/ctype-xdigit-tests: New file.
39000         * modules/unictype/decimal-digit-tests: New file.
39001         * modules/unictype/digit-tests: New file.
39002         * modules/unictype/mirror-tests: New file.
39003         * modules/unictype/numeric-tests: New file.
39004         * modules/unictype/property-alphabetic-tests: New file.
39005         * modules/unictype/property-ascii-hex-digit-tests: New file.
39006         * modules/unictype/property-bidi-arabic-digit-tests: New file.
39007         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
39008         * modules/unictype/property-bidi-block-separator-tests: New file.
39009         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
39010         * modules/unictype/property-bidi-common-separator-tests: New file.
39011         * modules/unictype/property-bidi-control-tests: New file.
39012         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
39013         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
39014         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
39015         * modules/unictype/property-bidi-european-digit-tests: New file.
39016         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
39017         * modules/unictype/property-bidi-left-to-right-tests: New file.
39018         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
39019         * modules/unictype/property-bidi-other-neutral-tests: New file.
39020         * modules/unictype/property-bidi-pdf-tests: New file.
39021         * modules/unictype/property-bidi-segment-separator-tests: New file.
39022         * modules/unictype/property-bidi-whitespace-tests: New file.
39023         * modules/unictype/property-byname-tests: New file.
39024         * modules/unictype/property-combining-tests: New file.
39025         * modules/unictype/property-composite-tests: New file.
39026         * modules/unictype/property-currency-symbol-tests: New file.
39027         * modules/unictype/property-dash-tests: New file.
39028         * modules/unictype/property-decimal-digit-tests: New file.
39029         * modules/unictype/property-default-ignorable-code-point-tests: New file.
39030         * modules/unictype/property-deprecated-tests: New file.
39031         * modules/unictype/property-diacritic-tests: New file.
39032         * modules/unictype/property-extender-tests: New file.
39033         * modules/unictype/property-format-control-tests: New file.
39034         * modules/unictype/property-grapheme-base-tests: New file.
39035         * modules/unictype/property-grapheme-extend-tests: New file.
39036         * modules/unictype/property-grapheme-link-tests: New file.
39037         * modules/unictype/property-hex-digit-tests: New file.
39038         * modules/unictype/property-hyphen-tests: New file.
39039         * modules/unictype/property-id-continue-tests: New file.
39040         * modules/unictype/property-id-start-tests: New file.
39041         * modules/unictype/property-ideographic-tests: New file.
39042         * modules/unictype/property-ids-binary-operator-tests: New file.
39043         * modules/unictype/property-ids-trinary-operator-tests: New file.
39044         * modules/unictype/property-ignorable-control-tests: New file.
39045         * modules/unictype/property-iso-control-tests: New file.
39046         * modules/unictype/property-join-control-tests: New file.
39047         * modules/unictype/property-left-of-pair-tests: New file.
39048         * modules/unictype/property-line-separator-tests: New file.
39049         * modules/unictype/property-logical-order-exception-tests: New file.
39050         * modules/unictype/property-lowercase-tests: New file.
39051         * modules/unictype/property-math-tests: New file.
39052         * modules/unictype/property-non-break-tests: New file.
39053         * modules/unictype/property-not-a-character-tests: New file.
39054         * modules/unictype/property-numeric-tests: New file.
39055         * modules/unictype/property-other-alphabetic-tests: New file.
39056         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
39057         * modules/unictype/property-other-grapheme-extend-tests: New file.
39058         * modules/unictype/property-other-id-continue-tests: New file.
39059         * modules/unictype/property-other-id-start-tests: New file.
39060         * modules/unictype/property-other-lowercase-tests: New file.
39061         * modules/unictype/property-other-math-tests: New file.
39062         * modules/unictype/property-other-uppercase-tests: New file.
39063         * modules/unictype/property-paired-punctuation-tests: New file.
39064         * modules/unictype/property-paragraph-separator-tests: New file.
39065         * modules/unictype/property-pattern-syntax-tests: New file.
39066         * modules/unictype/property-pattern-white-space-tests: New file.
39067         * modules/unictype/property-private-use-tests: New file.
39068         * modules/unictype/property-punctuation-tests: New file.
39069         * modules/unictype/property-quotation-mark-tests: New file.
39070         * modules/unictype/property-radical-tests: New file.
39071         * modules/unictype/property-sentence-terminal-tests: New file.
39072         * modules/unictype/property-soft-dotted-tests: New file.
39073         * modules/unictype/property-space-tests: New file.
39074         * modules/unictype/property-terminal-punctuation-tests: New file.
39075         * modules/unictype/property-test-tests: New file.
39076         * modules/unictype/property-titlecase-tests: New file.
39077         * modules/unictype/property-unassigned-code-value-tests: New file.
39078         * modules/unictype/property-unified-ideograph-tests: New file.
39079         * modules/unictype/property-uppercase-tests: New file.
39080         * modules/unictype/property-variation-selector-tests: New file.
39081         * modules/unictype/property-white-space-tests: New file.
39082         * modules/unictype/property-xid-continue-tests: New file.
39083         * modules/unictype/property-xid-start-tests: New file.
39084         * modules/unictype/property-zero-width-tests: New file.
39085         * modules/unictype/scripts-tests: New file.
39086         * modules/unictype/syntax-c-ident-tests: New file.
39087         * modules/unictype/syntax-c-whitespace-tests: New file.
39088         * modules/unictype/syntax-java-ident-tests: New file.
39089         * modules/unictype/syntax-java-whitespace-tests: New file.
39090         * tests/unictype/test-bidi_byname.c: New file.
39091         * tests/unictype/test-bidi_name.c: New file.
39092         * tests/unictype/test-bidi_of.c: New file.
39093         * tests/unictype/test-bidi_test.c: New file.
39094         * tests/unictype/test-block_list.c: New file.
39095         * tests/unictype/test-block_of.c: New file.
39096         * tests/unictype/test-block_test.c: New file.
39097         * tests/unictype/test-categ_and.c: New file.
39098         * tests/unictype/test-categ_and_not.c: New file.
39099         * tests/unictype/test-categ_byname.c: New file.
39100         * tests/unictype/test-categ_name.c: New file.
39101         * tests/unictype/test-categ_none.c: New file.
39102         * tests/unictype/test-categ_of.c: New file.
39103         * tests/unictype/test-categ_or.c: New file.
39104         * tests/unictype/test-categ_test_withtable.c: New file.
39105         * tests/unictype/test-combining.c: New file.
39106         * tests/unictype/test-decdigit.c: New file.
39107         * tests/unictype/test-digit.c: New file.
39108         * tests/unictype/test-mirror.c: New file.
39109         * tests/unictype/test-numeric.c: New file.
39110         * tests/unictype/test-pr_byname.c: New file.
39111         * tests/unictype/test-pr_test.c: New file.
39112         * tests/unictype/test-predicate-part1.h: New file.
39113         * tests/unictype/test-predicate-part2.h: New file.
39114         * tests/unictype/test-scripts.c: New file.
39115         * tests/unictype/test-sy_c_ident.c: New file.
39116         * tests/unictype/test-sy_java_ident.c: New file.
39117
39118         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
39119         for Unicode 5.0.0.
39120         * tests/unictype/test-categ_Cc.c: Likewise.
39121         * tests/unictype/test-categ_Cf.c: Likewise.
39122         * tests/unictype/test-categ_Cn.c: Likewise.
39123         * tests/unictype/test-categ_Co.c: Likewise.
39124         * tests/unictype/test-categ_Cs.c: Likewise.
39125         * tests/unictype/test-categ_L.c: Likewise.
39126         * tests/unictype/test-categ_Ll.c: Likewise.
39127         * tests/unictype/test-categ_Lm.c: Likewise.
39128         * tests/unictype/test-categ_Lo.c: Likewise.
39129         * tests/unictype/test-categ_Lt.c: Likewise.
39130         * tests/unictype/test-categ_Lu.c: Likewise.
39131         * tests/unictype/test-categ_M.c: Likewise.
39132         * tests/unictype/test-categ_Mc.c: Likewise.
39133         * tests/unictype/test-categ_Me.c: Likewise.
39134         * tests/unictype/test-categ_Mn.c: Likewise.
39135         * tests/unictype/test-categ_N.c: Likewise.
39136         * tests/unictype/test-categ_Nd.c: Likewise.
39137         * tests/unictype/test-categ_Nl.c: Likewise.
39138         * tests/unictype/test-categ_No.c: Likewise.
39139         * tests/unictype/test-categ_P.c: Likewise.
39140         * tests/unictype/test-categ_Pc.c: Likewise.
39141         * tests/unictype/test-categ_Pd.c: Likewise.
39142         * tests/unictype/test-categ_Pe.c: Likewise.
39143         * tests/unictype/test-categ_Pf.c: Likewise.
39144         * tests/unictype/test-categ_Pi.c: Likewise.
39145         * tests/unictype/test-categ_Po.c: Likewise.
39146         * tests/unictype/test-categ_Ps.c: Likewise.
39147         * tests/unictype/test-categ_S.c: Likewise.
39148         * tests/unictype/test-categ_Sc.c: Likewise.
39149         * tests/unictype/test-categ_Sk.c: Likewise.
39150         * tests/unictype/test-categ_Sm.c: Likewise.
39151         * tests/unictype/test-categ_So.c: Likewise.
39152         * tests/unictype/test-categ_Z.c: Likewise.
39153         * tests/unictype/test-categ_Zl.c: Likewise.
39154         * tests/unictype/test-categ_Zp.c: Likewise.
39155         * tests/unictype/test-categ_Zs.c: Likewise.
39156         * tests/unictype/test-ctype_alnum.c: Likewise.
39157         * tests/unictype/test-ctype_alpha.c: Likewise.
39158         * tests/unictype/test-ctype_blank.c: Likewise.
39159         * tests/unictype/test-ctype_cntrl.c: Likewise.
39160         * tests/unictype/test-ctype_digit.c: Likewise.
39161         * tests/unictype/test-ctype_graph.c: Likewise.
39162         * tests/unictype/test-ctype_lower.c: Likewise.
39163         * tests/unictype/test-ctype_print.c: Likewise.
39164         * tests/unictype/test-ctype_punct.c: Likewise.
39165         * tests/unictype/test-ctype_space.c: Likewise.
39166         * tests/unictype/test-ctype_upper.c: Likewise.
39167         * tests/unictype/test-ctype_xdigit.c: Likewise.
39168         * tests/unictype/test-decdigit.h: Likewise.
39169         * tests/unictype/test-digit.h: Likewise.
39170         * tests/unictype/test-numeric.h: Likewise.
39171         * tests/unictype/test-pr_alphabetic.c: Likewise.
39172         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
39173         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39174         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39175         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
39176         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39177         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
39178         * tests/unictype/test-pr_bidi_control.c: Likewise.
39179         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
39180         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
39181         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39182         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39183         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39184         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39185         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39186         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39187         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
39188         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
39189         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
39190         * tests/unictype/test-pr_combining.c: Likewise.
39191         * tests/unictype/test-pr_composite.c: Likewise.
39192         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39193         * tests/unictype/test-pr_dash.c: Likewise.
39194         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39195         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
39196         * tests/unictype/test-pr_deprecated.c: Likewise.
39197         * tests/unictype/test-pr_diacritic.c: Likewise.
39198         * tests/unictype/test-pr_extender.c: Likewise.
39199         * tests/unictype/test-pr_format_control.c: Likewise.
39200         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39201         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39202         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39203         * tests/unictype/test-pr_hex_digit.c: Likewise.
39204         * tests/unictype/test-pr_hyphen.c: Likewise.
39205         * tests/unictype/test-pr_id_continue.c: Likewise.
39206         * tests/unictype/test-pr_id_start.c: Likewise.
39207         * tests/unictype/test-pr_ideographic.c: Likewise.
39208         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
39209         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
39210         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39211         * tests/unictype/test-pr_iso_control.c: Likewise.
39212         * tests/unictype/test-pr_join_control.c: Likewise.
39213         * tests/unictype/test-pr_left_of_pair.c: Likewise.
39214         * tests/unictype/test-pr_line_separator.c: Likewise.
39215         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39216         * tests/unictype/test-pr_lowercase.c: Likewise.
39217         * tests/unictype/test-pr_math.c: Likewise.
39218         * tests/unictype/test-pr_non_break.c: Likewise.
39219         * tests/unictype/test-pr_not_a_character.c: Likewise.
39220         * tests/unictype/test-pr_numeric.c: Likewise.
39221         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39222         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
39223         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
39224         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39225         * tests/unictype/test-pr_other_id_start.c: Likewise.
39226         * tests/unictype/test-pr_other_lowercase.c: Likewise.
39227         * tests/unictype/test-pr_other_math.c: Likewise.
39228         * tests/unictype/test-pr_other_uppercase.c: Likewise.
39229         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
39230         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
39231         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
39232         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
39233         * tests/unictype/test-pr_private_use.c: Likewise.
39234         * tests/unictype/test-pr_punctuation.c: Likewise.
39235         * tests/unictype/test-pr_quotation_mark.c: Likewise.
39236         * tests/unictype/test-pr_radical.c: Likewise.
39237         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39238         * tests/unictype/test-pr_soft_dotted.c: Likewise.
39239         * tests/unictype/test-pr_space.c: Likewise.
39240         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39241         * tests/unictype/test-pr_titlecase.c: Likewise.
39242         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39243         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39244         * tests/unictype/test-pr_uppercase.c: Likewise.
39245         * tests/unictype/test-pr_variation_selector.c: Likewise.
39246         * tests/unictype/test-pr_white_space.c: Likewise.
39247         * tests/unictype/test-pr_xid_continue.c: Likewise.
39248         * tests/unictype/test-pr_xid_start.c: Likewise.
39249         * tests/unictype/test-pr_zero_width.c: Likewise.
39250         * tests/unictype/test-sy_c_whitespace.c: Likewise.
39251         * tests/unictype/test-sy_java_whitespace.c: Likewise.
39252
39253 2007-11-12  Bruno Haible  <bruno@clisp.org>
39254
39255         Unicode character classification functions.
39256         * lib/unictype.h: New file.
39257         * modules/unictype/base: New file.
39258         * modules/unictype/category-L: New file.
39259         * modules/unictype/category-Lu: New file.
39260         * modules/unictype/category-Ll: New file.
39261         * modules/unictype/category-Lt: New file.
39262         * modules/unictype/category-Lm: New file.
39263         * modules/unictype/category-Lo: New file.
39264         * modules/unictype/category-M: New file.
39265         * modules/unictype/category-Mn: New file.
39266         * modules/unictype/category-Mc: New file.
39267         * modules/unictype/category-Me: New file.
39268         * modules/unictype/category-N: New file.
39269         * modules/unictype/category-Nd: New file.
39270         * modules/unictype/category-Nl: New file.
39271         * modules/unictype/category-No: New file.
39272         * modules/unictype/category-P: New file.
39273         * modules/unictype/category-Pc: New file.
39274         * modules/unictype/category-Pd: New file.
39275         * modules/unictype/category-Ps: New file.
39276         * modules/unictype/category-Pe: New file.
39277         * modules/unictype/category-Pi: New file.
39278         * modules/unictype/category-Pf: New file.
39279         * modules/unictype/category-Po: New file.
39280         * modules/unictype/category-S: New file.
39281         * modules/unictype/category-Sm: New file.
39282         * modules/unictype/category-Sc: New file.
39283         * modules/unictype/category-Sk: New file.
39284         * modules/unictype/category-So: New file.
39285         * modules/unictype/category-Z: New file.
39286         * modules/unictype/category-Zs: New file.
39287         * modules/unictype/category-Zl: New file.
39288         * modules/unictype/category-Zp: New file.
39289         * modules/unictype/category-C: New file.
39290         * modules/unictype/category-Cc: New file.
39291         * modules/unictype/category-Cf: New file.
39292         * modules/unictype/category-Cs: New file.
39293         * modules/unictype/category-Co: New file.
39294         * modules/unictype/category-Cn: New file.
39295         * modules/unictype/category-or: New file.
39296         * modules/unictype/category-of: New file.
39297         * modules/unictype/category-test: New file.
39298         * modules/unictype/category-test-withtable: New file.
39299         * modules/unictype/category-byname: New file.
39300         * modules/unictype/category-none: New file.
39301         * modules/unictype/category-and: New file.
39302         * modules/unictype/category-and-not: New file.
39303         * modules/unictype/category-name: New file.
39304         * modules/unictype/combining-class: New file.
39305         * modules/unictype/category-all: New file.
39306         * modules/unictype/bidicategory-all: New file.
39307         * modules/unictype/bidicategory-byname: New file.
39308         * modules/unictype/bidicategory-name: New file.
39309         * modules/unictype/bidicategory-of: New file.
39310         * modules/unictype/bidicategory-test: New file.
39311         * modules/unictype/decimal-digit: New file.
39312         * modules/unictype/digit: New file.
39313         * modules/unictype/numeric: New file.
39314         * modules/unictype/mirror: New file.
39315         * modules/unictype/property-white-space: New file.
39316         * modules/unictype/property-alphabetic: New file.
39317         * modules/unictype/property-other-alphabetic: New file.
39318         * modules/unictype/property-not-a-character: New file.
39319         * modules/unictype/property-default-ignorable-code-point: New file.
39320         * modules/unictype/property-other-default-ignorable-code-point: New
39321         file.
39322         * modules/unictype/property-deprecated: New file.
39323         * modules/unictype/property-logical-order-exception: New file.
39324         * modules/unictype/property-variation-selector: New file.
39325         * modules/unictype/property-private-use: New file.
39326         * modules/unictype/property-unassigned-code-value: New file.
39327         * modules/unictype/property-uppercase: New file.
39328         * modules/unictype/property-other-uppercase: New file.
39329         * modules/unictype/property-lowercase: New file.
39330         * modules/unictype/property-other-lowercase: New file.
39331         * modules/unictype/property-titlecase: New file.
39332         * modules/unictype/property-soft-dotted: New file.
39333         * modules/unictype/property-id-start: New file.
39334         * modules/unictype/property-other-id-start: New file.
39335         * modules/unictype/property-id-continue: New file.
39336         * modules/unictype/property-other-id-continue: New file.
39337         * modules/unictype/property-xid-start: New file.
39338         * modules/unictype/property-xid-continue: New file.
39339         * modules/unictype/property-pattern-white-space: New file.
39340         * modules/unictype/property-pattern-syntax: New file.
39341         * modules/unictype/property-join-control: New file.
39342         * modules/unictype/property-grapheme-base: New file.
39343         * modules/unictype/property-grapheme-extend: New file.
39344         * modules/unictype/property-other-grapheme-extend: New file.
39345         * modules/unictype/property-grapheme-link: New file.
39346         * modules/unictype/property-bidi-control: New file.
39347         * modules/unictype/property-bidi-left-to-right: New file.
39348         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
39349         * modules/unictype/property-bidi-arabic-right-to-left: New file.
39350         * modules/unictype/property-bidi-european-digit: New file.
39351         * modules/unictype/property-bidi-eur-num-separator: New file.
39352         * modules/unictype/property-bidi-eur-num-terminator: New file.
39353         * modules/unictype/property-bidi-arabic-digit: New file.
39354         * modules/unictype/property-bidi-common-separator: New file.
39355         * modules/unictype/property-bidi-block-separator: New file.
39356         * modules/unictype/property-bidi-segment-separator: New file.
39357         * modules/unictype/property-bidi-whitespace: New file.
39358         * modules/unictype/property-bidi-non-spacing-mark: New file.
39359         * modules/unictype/property-bidi-boundary-neutral: New file.
39360         * modules/unictype/property-bidi-pdf: New file.
39361         * modules/unictype/property-bidi-embedding-or-override: New file.
39362         * modules/unictype/property-bidi-other-neutral: New file.
39363         * modules/unictype/property-hex-digit: New file.
39364         * modules/unictype/property-ascii-hex-digit: New file.
39365         * modules/unictype/property-ideographic: New file.
39366         * modules/unictype/property-unified-ideograph: New file.
39367         * modules/unictype/property-radical: New file.
39368         * modules/unictype/property-ids-binary-operator: New file.
39369         * modules/unictype/property-ids-trinary-operator: New file.
39370         * modules/unictype/property-zero-width: New file.
39371         * modules/unictype/property-space: New file.
39372         * modules/unictype/property-non-break: New file.
39373         * modules/unictype/property-iso-control: New file.
39374         * modules/unictype/property-format-control: New file.
39375         * modules/unictype/property-dash: New file.
39376         * modules/unictype/property-hyphen: New file.
39377         * modules/unictype/property-punctuation: New file.
39378         * modules/unictype/property-line-separator: New file.
39379         * modules/unictype/property-paragraph-separator: New file.
39380         * modules/unictype/property-quotation-mark: New file.
39381         * modules/unictype/property-sentence-terminal: New file.
39382         * modules/unictype/property-terminal-punctuation: New file.
39383         * modules/unictype/property-currency-symbol: New file.
39384         * modules/unictype/property-math: New file.
39385         * modules/unictype/property-other-math: New file.
39386         * modules/unictype/property-paired-punctuation: New file.
39387         * modules/unictype/property-left-of-pair: New file.
39388         * modules/unictype/property-combining: New file.
39389         * modules/unictype/property-composite: New file.
39390         * modules/unictype/property-decimal-digit: New file.
39391         * modules/unictype/property-numeric: New file.
39392         * modules/unictype/property-diacritic: New file.
39393         * modules/unictype/property-extender: New file.
39394         * modules/unictype/property-ignorable-control: New file.
39395         * modules/unictype/property-test: New file.
39396         * modules/unictype/property-byname: New file.
39397         * modules/unictype/property-all: New file.
39398         * modules/unictype/scripts: New file.
39399         * modules/unictype/scripts-all: New file.
39400         * modules/unictype/block-of: New file.
39401         * modules/unictype/block-test: New file.
39402         * modules/unictype/block-list: New file.
39403         * modules/unictype/block-all: New file.
39404         * modules/unictype/syntax-c-whitespace: New file.
39405         * modules/unictype/syntax-java-whitespace: New file.
39406         * modules/unictype/syntax-c-ident: New file.
39407         * modules/unictype/syntax-java-ident: New file.
39408         * modules/unictype/ctype-alnum: New file.
39409         * modules/unictype/ctype-alpha: New file.
39410         * modules/unictype/ctype-cntrl: New file.
39411         * modules/unictype/ctype-digit: New file.
39412         * modules/unictype/ctype-graph: New file.
39413         * modules/unictype/ctype-lower: New file.
39414         * modules/unictype/ctype-print: New file.
39415         * modules/unictype/ctype-punct: New file.
39416         * modules/unictype/ctype-space: New file.
39417         * modules/unictype/ctype-upper: New file.
39418         * modules/unictype/ctype-xdigit: New file.
39419         * modules/unictype/ctype-blank: New file.
39420         * lib/unictype/bidi_byname.c: New file.
39421         * lib/unictype/bidi_name.c: New file.
39422         * lib/unictype/bidi_of.c: New file.
39423         * lib/unictype/bidi_test.c: New file.
39424         * lib/unictype/bitmap.h: New file.
39425         * lib/unictype/block_test.c: New file.
39426         * lib/unictype/blocks.c: New file.
39427         * lib/unictype/categ_C.c: New file.
39428         * lib/unictype/categ_Cc.c: New file.
39429         * lib/unictype/categ_Cf.c: New file.
39430         * lib/unictype/categ_Cn.c: New file.
39431         * lib/unictype/categ_Co.c: New file.
39432         * lib/unictype/categ_Cs.c: New file.
39433         * lib/unictype/categ_L.c: New file.
39434         * lib/unictype/categ_Ll.c: New file.
39435         * lib/unictype/categ_Lm.c: New file.
39436         * lib/unictype/categ_Lo.c: New file.
39437         * lib/unictype/categ_Lt.c: New file.
39438         * lib/unictype/categ_Lu.c: New file.
39439         * lib/unictype/categ_M.c: New file.
39440         * lib/unictype/categ_Mc.c: New file.
39441         * lib/unictype/categ_Me.c: New file.
39442         * lib/unictype/categ_Mn.c: New file.
39443         * lib/unictype/categ_N.c: New file.
39444         * lib/unictype/categ_Nd.c: New file.
39445         * lib/unictype/categ_Nl.c: New file.
39446         * lib/unictype/categ_No.c: New file.
39447         * lib/unictype/categ_P.c: New file.
39448         * lib/unictype/categ_Pc.c: New file.
39449         * lib/unictype/categ_Pd.c: New file.
39450         * lib/unictype/categ_Pe.c: New file.
39451         * lib/unictype/categ_Pf.c: New file.
39452         * lib/unictype/categ_Pi.c: New file.
39453         * lib/unictype/categ_Po.c: New file.
39454         * lib/unictype/categ_Ps.c: New file.
39455         * lib/unictype/categ_S.c: New file.
39456         * lib/unictype/categ_Sc.c: New file.
39457         * lib/unictype/categ_Sk.c: New file.
39458         * lib/unictype/categ_Sm.c: New file.
39459         * lib/unictype/categ_So.c: New file.
39460         * lib/unictype/categ_Z.c: New file.
39461         * lib/unictype/categ_Zl.c: New file.
39462         * lib/unictype/categ_Zp.c: New file.
39463         * lib/unictype/categ_Zs.c: New file.
39464         * lib/unictype/categ_and.c: New file.
39465         * lib/unictype/categ_and_not.c: New file.
39466         * lib/unictype/categ_byname.c: New file.
39467         * lib/unictype/categ_name.c: New file.
39468         * lib/unictype/categ_none.c: New file.
39469         * lib/unictype/categ_of.c: New file.
39470         * lib/unictype/categ_or.c: New file.
39471         * lib/unictype/categ_test.c: New file.
39472         * lib/unictype/combining.c: New file.
39473         * lib/unictype/ctype_alnum.c: New file.
39474         * lib/unictype/ctype_alpha.c: New file.
39475         * lib/unictype/ctype_blank.c: New file.
39476         * lib/unictype/ctype_cntrl.c: New file.
39477         * lib/unictype/ctype_digit.c: New file.
39478         * lib/unictype/ctype_graph.c: New file.
39479         * lib/unictype/ctype_lower.c: New file.
39480         * lib/unictype/ctype_print.c: New file.
39481         * lib/unictype/ctype_punct.c: New file.
39482         * lib/unictype/ctype_space.c: New file.
39483         * lib/unictype/ctype_upper.c: New file.
39484         * lib/unictype/ctype_xdigit.c: New file.
39485         * lib/unictype/decdigit.c: New file.
39486         * lib/unictype/digit.c: New file.
39487         * lib/unictype/identsyntaxmap.h: New file.
39488         * lib/unictype/mirror.c: New file.
39489         * lib/unictype/numeric.c: New file.
39490         * lib/unictype/pr_alphabetic.c: New file.
39491         * lib/unictype/pr_ascii_hex_digit.c: New file.
39492         * lib/unictype/pr_bidi_arabic_digit.c: New file.
39493         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
39494         * lib/unictype/pr_bidi_block_separator.c: New file.
39495         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
39496         * lib/unictype/pr_bidi_common_separator.c: New file.
39497         * lib/unictype/pr_bidi_control.c: New file.
39498         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
39499         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
39500         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
39501         * lib/unictype/pr_bidi_european_digit.c: New file.
39502         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
39503         * lib/unictype/pr_bidi_left_to_right.c: New file.
39504         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
39505         * lib/unictype/pr_bidi_other_neutral.c: New file.
39506         * lib/unictype/pr_bidi_pdf.c: New file.
39507         * lib/unictype/pr_bidi_segment_separator.c: New file.
39508         * lib/unictype/pr_bidi_whitespace.c: New file.
39509         * lib/unictype/pr_byname.c: New file.
39510         * lib/unictype/pr_byname.gperf: New file.
39511         * lib/unictype/pr_combining.c: New file.
39512         * lib/unictype/pr_composite.c: New file.
39513         * lib/unictype/pr_currency_symbol.c: New file.
39514         * lib/unictype/pr_dash.c: New file.
39515         * lib/unictype/pr_decimal_digit.c: New file.
39516         * lib/unictype/pr_default_ignorable_code_point.c: New file.
39517         * lib/unictype/pr_deprecated.c: New file.
39518         * lib/unictype/pr_diacritic.c: New file.
39519         * lib/unictype/pr_extender.c: New file.
39520         * lib/unictype/pr_format_control.c: New file.
39521         * lib/unictype/pr_grapheme_base.c: New file.
39522         * lib/unictype/pr_grapheme_extend.c: New file.
39523         * lib/unictype/pr_grapheme_link.c: New file.
39524         * lib/unictype/pr_hex_digit.c: New file.
39525         * lib/unictype/pr_hyphen.c: New file.
39526         * lib/unictype/pr_id_continue.c: New file.
39527         * lib/unictype/pr_id_start.c: New file.
39528         * lib/unictype/pr_ideographic.c: New file.
39529         * lib/unictype/pr_ids_binary_operator.c: New file.
39530         * lib/unictype/pr_ids_trinary_operator.c: New file.
39531         * lib/unictype/pr_ignorable_control.c: New file.
39532         * lib/unictype/pr_iso_control.c: New file.
39533         * lib/unictype/pr_join_control.c: New file.
39534         * lib/unictype/pr_left_of_pair.c: New file.
39535         * lib/unictype/pr_line_separator.c: New file.
39536         * lib/unictype/pr_logical_order_exception.c: New file.
39537         * lib/unictype/pr_lowercase.c: New file.
39538         * lib/unictype/pr_math.c: New file.
39539         * lib/unictype/pr_non_break.c: New file.
39540         * lib/unictype/pr_not_a_character.c: New file.
39541         * lib/unictype/pr_numeric.c: New file.
39542         * lib/unictype/pr_other_alphabetic.c: New file.
39543         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
39544         * lib/unictype/pr_other_grapheme_extend.c: New file.
39545         * lib/unictype/pr_other_id_continue.c: New file.
39546         * lib/unictype/pr_other_id_start.c: New file.
39547         * lib/unictype/pr_other_lowercase.c: New file.
39548         * lib/unictype/pr_other_math.c: New file.
39549         * lib/unictype/pr_other_uppercase.c: New file.
39550         * lib/unictype/pr_paired_punctuation.c: New file.
39551         * lib/unictype/pr_paragraph_separator.c: New file.
39552         * lib/unictype/pr_pattern_syntax.c: New file.
39553         * lib/unictype/pr_pattern_white_space.c: New file.
39554         * lib/unictype/pr_private_use.c: New file.
39555         * lib/unictype/pr_punctuation.c: New file.
39556         * lib/unictype/pr_quotation_mark.c: New file.
39557         * lib/unictype/pr_radical.c: New file.
39558         * lib/unictype/pr_sentence_terminal.c: New file.
39559         * lib/unictype/pr_soft_dotted.c: New file.
39560         * lib/unictype/pr_space.c: New file.
39561         * lib/unictype/pr_terminal_punctuation.c: New file.
39562         * lib/unictype/pr_test.c: New file.
39563         * lib/unictype/pr_titlecase.c: New file.
39564         * lib/unictype/pr_unassigned_code_value.c: New file.
39565         * lib/unictype/pr_unified_ideograph.c: New file.
39566         * lib/unictype/pr_uppercase.c: New file.
39567         * lib/unictype/pr_variation_selector.c: New file.
39568         * lib/unictype/pr_white_space.c: New file.
39569         * lib/unictype/pr_xid_continue.c: New file.
39570         * lib/unictype/pr_xid_start.c: New file.
39571         * lib/unictype/pr_zero_width.c: New file.
39572         * lib/unictype/scripts.c: New file.
39573         * lib/unictype/sy_c_ident.c: New file.
39574         * lib/unictype/sy_c_whitespace.c: New file.
39575         * lib/unictype/sy_java_ident.c: New file.
39576         * lib/unictype/sy_java_whitespace.c: New file.
39577
39578         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39579         Unicode 5.0.0.
39580         * lib/unictype/blocks.h: Likewise.
39581         * lib/unictype/categ_C.h: Likewise.
39582         * lib/unictype/categ_Cc.h: Likewise.
39583         * lib/unictype/categ_Cf.h: Likewise.
39584         * lib/unictype/categ_Cn.h: Likewise.
39585         * lib/unictype/categ_Co.h: Likewise.
39586         * lib/unictype/categ_Cs.h: Likewise.
39587         * lib/unictype/categ_L.h: Likewise.
39588         * lib/unictype/categ_Ll.h: Likewise.
39589         * lib/unictype/categ_Lm.h: Likewise.
39590         * lib/unictype/categ_Lo.h: Likewise.
39591         * lib/unictype/categ_Lt.h: Likewise.
39592         * lib/unictype/categ_Lu.h: Likewise.
39593         * lib/unictype/categ_M.h: Likewise.
39594         * lib/unictype/categ_Mc.h: Likewise.
39595         * lib/unictype/categ_Me.h: Likewise.
39596         * lib/unictype/categ_Mn.h: Likewise.
39597         * lib/unictype/categ_N.h: Likewise.
39598         * lib/unictype/categ_Nd.h: Likewise.
39599         * lib/unictype/categ_Nl.h: Likewise.
39600         * lib/unictype/categ_No.h: Likewise.
39601         * lib/unictype/categ_P.h: Likewise.
39602         * lib/unictype/categ_Pc.h: Likewise.
39603         * lib/unictype/categ_Pd.h: Likewise.
39604         * lib/unictype/categ_Pe.h: Likewise.
39605         * lib/unictype/categ_Pf.h: Likewise.
39606         * lib/unictype/categ_Pi.h: Likewise.
39607         * lib/unictype/categ_Po.h: Likewise.
39608         * lib/unictype/categ_Ps.h: Likewise.
39609         * lib/unictype/categ_S.h: Likewise.
39610         * lib/unictype/categ_Sc.h: Likewise.
39611         * lib/unictype/categ_Sk.h: Likewise.
39612         * lib/unictype/categ_Sm.h: Likewise.
39613         * lib/unictype/categ_So.h: Likewise.
39614         * lib/unictype/categ_Z.h: Likewise.
39615         * lib/unictype/categ_Zl.h: Likewise.
39616         * lib/unictype/categ_Zp.h: Likewise.
39617         * lib/unictype/categ_Zs.h: Likewise.
39618         * lib/unictype/categ_of.h: Likewise.
39619         * lib/unictype/combining.h: Likewise.
39620         * lib/unictype/ctype_alnum.h: Likewise.
39621         * lib/unictype/ctype_alpha.h: Likewise.
39622         * lib/unictype/ctype_blank.h: Likewise.
39623         * lib/unictype/ctype_cntrl.h: Likewise.
39624         * lib/unictype/ctype_digit.h: Likewise.
39625         * lib/unictype/ctype_graph.h: Likewise.
39626         * lib/unictype/ctype_lower.h: Likewise.
39627         * lib/unictype/ctype_print.h: Likewise.
39628         * lib/unictype/ctype_punct.h: Likewise.
39629         * lib/unictype/ctype_space.h: Likewise.
39630         * lib/unictype/ctype_upper.h: Likewise.
39631         * lib/unictype/ctype_xdigit.h: Likewise.
39632         * lib/unictype/decdigit.h: Likewise.
39633         * lib/unictype/digit.h: Likewise.
39634         * lib/unictype/mirror.h: Likewise.
39635         * lib/unictype/numeric.h: Likewise.
39636         * lib/unictype/pr_alphabetic.h: Likewise.
39637         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39638         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39639         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39640         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39641         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39642         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39643         * lib/unictype/pr_bidi_control.h: Likewise.
39644         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39645         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39646         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39647         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39648         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39649         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39650         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39651         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39652         * lib/unictype/pr_bidi_pdf.h: Likewise.
39653         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39654         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39655         * lib/unictype/pr_combining.h: Likewise.
39656         * lib/unictype/pr_composite.h: Likewise.
39657         * lib/unictype/pr_currency_symbol.h: Likewise.
39658         * lib/unictype/pr_dash.h: Likewise.
39659         * lib/unictype/pr_decimal_digit.h: Likewise.
39660         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39661         * lib/unictype/pr_deprecated.h: Likewise.
39662         * lib/unictype/pr_diacritic.h: Likewise.
39663         * lib/unictype/pr_extender.h: Likewise.
39664         * lib/unictype/pr_format_control.h: Likewise.
39665         * lib/unictype/pr_grapheme_base.h: Likewise.
39666         * lib/unictype/pr_grapheme_extend.h: Likewise.
39667         * lib/unictype/pr_grapheme_link.h: Likewise.
39668         * lib/unictype/pr_hex_digit.h: Likewise.
39669         * lib/unictype/pr_hyphen.h: Likewise.
39670         * lib/unictype/pr_id_continue.h: Likewise.
39671         * lib/unictype/pr_id_start.h: Likewise.
39672         * lib/unictype/pr_ideographic.h: Likewise.
39673         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39674         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39675         * lib/unictype/pr_ignorable_control.h: Likewise.
39676         * lib/unictype/pr_iso_control.h: Likewise.
39677         * lib/unictype/pr_join_control.h: Likewise.
39678         * lib/unictype/pr_left_of_pair.h: Likewise.
39679         * lib/unictype/pr_line_separator.h: Likewise.
39680         * lib/unictype/pr_logical_order_exception.h: Likewise.
39681         * lib/unictype/pr_lowercase.h: Likewise.
39682         * lib/unictype/pr_math.h: Likewise.
39683         * lib/unictype/pr_non_break.h: Likewise.
39684         * lib/unictype/pr_not_a_character.h: Likewise.
39685         * lib/unictype/pr_numeric.h: Likewise.
39686         * lib/unictype/pr_other_alphabetic.h: Likewise.
39687         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39688         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39689         * lib/unictype/pr_other_id_continue.h: Likewise.
39690         * lib/unictype/pr_other_id_start.h: Likewise.
39691         * lib/unictype/pr_other_lowercase.h: Likewise.
39692         * lib/unictype/pr_other_math.h: Likewise.
39693         * lib/unictype/pr_other_uppercase.h: Likewise.
39694         * lib/unictype/pr_paired_punctuation.h: Likewise.
39695         * lib/unictype/pr_paragraph_separator.h: Likewise.
39696         * lib/unictype/pr_pattern_syntax.h: Likewise.
39697         * lib/unictype/pr_pattern_white_space.h: Likewise.
39698         * lib/unictype/pr_private_use.h: Likewise.
39699         * lib/unictype/pr_punctuation.h: Likewise.
39700         * lib/unictype/pr_quotation_mark.h: Likewise.
39701         * lib/unictype/pr_radical.h: Likewise.
39702         * lib/unictype/pr_sentence_terminal.h: Likewise.
39703         * lib/unictype/pr_soft_dotted.h: Likewise.
39704         * lib/unictype/pr_space.h: Likewise.
39705         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39706         * lib/unictype/pr_titlecase.h: Likewise.
39707         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39708         * lib/unictype/pr_unified_ideograph.h: Likewise.
39709         * lib/unictype/pr_uppercase.h: Likewise.
39710         * lib/unictype/pr_variation_selector.h: Likewise.
39711         * lib/unictype/pr_white_space.h: Likewise.
39712         * lib/unictype/pr_xid_continue.h: Likewise.
39713         * lib/unictype/pr_xid_start.h: Likewise.
39714         * lib/unictype/pr_zero_width.h: Likewise.
39715         * lib/unictype/scripts.h: Likewise.
39716         * lib/unictype/scripts_byname.gperf: Likewise.
39717         * lib/unictype/sy_c_ident.h: Likewise.
39718         * lib/unictype/sy_c_whitespace.h: Likewise.
39719         * lib/unictype/sy_java_ident.h: Likewise.
39720         * lib/unictype/sy_java_whitespace.h: Likewise.
39721
39722         * lib/unictype/Makefile: New file.
39723         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
39724         glibc.
39725         * lib/unictype/3level.h: New file, copied from glibc.
39726         * lib/unictype/3levelbit.h: New file.
39727
39728 2007-11-11  Bruno Haible  <bruno@clisp.org>
39729
39730         * modules/gperf: New file.
39731         * modules/iconv_open (Depends-on): Add it.
39732         (Makefile.am): Remove the GPERF definition.
39733
39734 2007-11-11  Bruno Haible  <bruno@clisp.org>
39735
39736         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39737         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39738
39739 2007-11-11  Bruno Haible  <bruno@clisp.org>
39740
39741         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39742         (usage): Remove function.
39743
39744 2007-11-11  Bruno Haible  <bruno@clisp.org>
39745
39746         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39747         gl_FUNC_CEILF_LIBS.
39748         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39749         gl_FUNC_CEIL_LIBS.
39750         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39751         gl_FUNC_CEILL_LIBS.
39752         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39753         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39754         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39755
39756 2007-11-11  Bruno Haible  <bruno@clisp.org>
39757
39758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39759         roundf were declared but do not exist on functions.
39760         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39761         roundl were declared but do not exist on functions.
39762         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39763         HAVE_FLOORL_AND_CEILL, respectively.
39764         Needed for Sun C on Solaris 10.
39765
39766 2007-11-11  Bruno Haible  <bruno@clisp.org>
39767
39768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39769         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39770         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39771         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39772         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39773         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39774         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39775         HAVE_DECL_ROUNDF.
39776         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39777         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39779         of HAVE_DECL_ROUND*.
39780         * modules/math (Makefile.am): Update.
39781
39782 2007-11-10  Bruno Haible  <bruno@clisp.org>
39783
39784         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39785         ptrdiff_t as m4/intl.m4.
39786
39787 2007-11-10  Jim Meyering  <meyering@redhat.com>
39788
39789         Avoid link failure for the argmatch test.
39790         * tests/test-argmatch.c (usage): Define function to avoid a link
39791         failure: argmatch_die requires a usage function.
39792
39793 2007-11-09  Bruno Haible  <bruno@clisp.org>
39794
39795         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39796         * doc/functions/vsnprintf.texi: Likewise.
39797         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39798         with a size argument < 2.
39799
39800 2007-11-09  Bruno Haible  <bruno@clisp.org>
39801
39802         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39803         buffer. Fixes an inefficiency introduced on 2007-11-03.
39804
39805 2007-11-09  Bruno Haible  <bruno@clisp.org>
39806
39807         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39808         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39809
39810 2007-11-08  Jim Meyering  <meyering@redhat.com>
39811
39812         Change cache variable name prefix "jm_" to "gl_" everywhere.
39813         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39814         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39815         * m4/uptime.m4: s/gl_/jm_/
39816
39817 2007-11-07  Bruno Haible  <bruno@clisp.org>
39818
39819         Update to GNU gettext 0.17.
39820         * m4/intl.m4: Update to GNU gettext 0.17.
39821         * m4/po.m4: Likewise.
39822         * modules/gettext (Files): Remove m4/ulonglong.m4.
39823         (configure.ac): Require gettext infrastructure from version 0.17.
39824
39825 2007-11-06  Bruno Haible  <bruno@clisp.org>
39826
39827         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39828         symbolic values are not defined in a public header.
39829         * lib/freadable.c (freadable) [QNX]: Likewise.
39830         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39831         * lib/freading.c (freading) [QNX]: Likewise.
39832         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39833         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39834         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39835         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39836         Reported by Alain Magloire.
39837
39838         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39839
39840 2007-11-05  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39843         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39844         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39845         Reported by Eric Blake.
39846
39847 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39848             Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39851         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39852         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39853         (malloc): Undefine also before including <stdlib.h>.
39854         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39855         Needed on OSF/1 4.0.
39856
39857 2007-11-05  Jim Meyering  <meyering@redhat.com>
39858
39859         git-version-gen: sync from coreutils.
39860         * build-aux/git-version-gen: Add comments.
39861         Change the first '-' to '.' in the snapshot version string,
39862         e.g., 6.9-377-08144 -> 6.9.377-08144
39863         Remove first parameter.
39864         Don't declare a version "-dirty" merely because a time
39865         stamp has changed.
39866
39867 2007-11-04  Bruno Haible  <bruno@clisp.org>
39868
39869         * lib/lock.h: Protect all macro definitions containing an 'if'
39870         statement through a "do { ... } while (0)".
39871         * lib/tls.h: Likewise.
39872
39873 2007-11-04  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39876
39877 2007-11-04  Bruno Haible  <bruno@clisp.org>
39878
39879         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39880         * modules/fprintf-posix (Depends-on): Add nocrash.
39881         * modules/snprintf-posix (Depends-on): Likewise.
39882         * modules/sprintf-posix (Depends-on): Likewise.
39883         * modules/vasnprintf-posix (Depends-on): Likewise.
39884         * modules/vasprintf-posix (Depends-on): Likewise.
39885         * modules/vfprintf-posix (Depends-on): Likewise.
39886         * modules/vsnprintf-posix (Depends-on): Likewise.
39887         * modules/vsprintf-posix (Depends-on): Likewise.
39888         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39891         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39893         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39894         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39895
39896 2007-11-04  Bruno Haible  <bruno@clisp.org>
39897
39898         * modules/nocrash: New file.
39899         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39900         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39901
39902 2007-11-04  Bruno Haible  <bruno@clisp.org>
39903
39904         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39905         precision handling.
39906         * tests/test-vasprintf-posix.c (test_function): Likewise.
39907         * tests/test-snprintf-posix.h (test_function): Likewise.
39908         * tests/test-sprintf-posix.h (test_function): Likewise.
39909
39910         Fix *printf behaviour for large precisions on mingw and BeOS.
39911         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39912         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39914         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39916         gl_PRINTF_PRECISION and test its result. Invoke
39917         gl_PREREQ_VASNPRINTF_PRECISION.
39918         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39922         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39924         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39925         * doc/functions/fprintf.texi: Update.
39926         * doc/functions/printf.texi: Update.
39927         * doc/functions/snprintf.texi: Update.
39928         * doc/functions/sprintf.texi: Update.
39929         * doc/functions/vfprintf.texi: Update.
39930         * doc/functions/vprintf.texi: Update.
39931         * doc/functions/vsnprintf.texi: Update.
39932         * doc/functions/vsprintf.texi: Update.
39933
39934 2007-11-04  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39937
39938 2007-11-04  Bruno Haible  <bruno@clisp.org>
39939
39940         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39941         Reported by Sylvain Beucler <beuc@gnu.org>.
39942
39943 2007-11-03  Bruno Haible  <bruno@clisp.org>
39944
39945         * tests/test-fprintf-posix2.sh: New file.
39946         * tests/test-fprintf-posix2.c: New file.
39947         * modules/fprintf-posix-tests (Files): Add them.
39948         (TESTS): Add test-fprintf-posix2.sh.
39949         (configure.ac): Check for getrlimit and setrlimit.
39950         (check_PROGRAMS): Add test-fprintf-posix2.
39951
39952         * tests/test-printf-posix2.sh: New file.
39953         * tests/test-printf-posix2.c: New file.
39954         * modules/printf-posix-tests (Files): Add them.
39955         (TESTS): Add test-printf-posix2.sh.
39956         (configure.ac): Check for getrlimit and setrlimit.
39957         (check_PROGRAMS): Add test-printf-posix2.
39958
39959         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39960         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39961         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39962         (decode_double): New function, copied from decode_long_double.
39963         (scale10_round_decimal_decoded): New function, extracted from
39964         scale10_round_decimal_long_double.
39965         (scale10_round_decimal_long_double): Use it.
39966         (scale10_round_decimal_double): New function.
39967         (floorlog10): New function.
39968         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39970         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39971         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39972         gl_PRINTF_ENOMEM and test its result. Invoke
39973         gl_PREREQ_VASNPRINTF_ENOMEM.
39974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39975         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39976         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39978         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39981         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39982         * modules/snprintf-posix (Depends-on): Likewise.
39983         * modules/sprintf-posix (Depends-on): Likewise.
39984         * modules/vasnprintf-posix (Depends-on): Likewise.
39985         * modules/vasprintf-posix (Depends-on): Likewise.
39986         * modules/vfprintf-posix (Depends-on): Likewise.
39987         * modules/vsnprintf-posix (Depends-on): Likewise.
39988         * modules/vsprintf-posix (Depends-on): Likewise.
39989         * doc/functions/fprintf.texi: Update.
39990         * doc/functions/printf.texi: Update.
39991         * doc/functions/snprintf.texi: Update.
39992         * doc/functions/sprintf.texi: Update.
39993         * doc/functions/vfprintf.texi: Update.
39994         * doc/functions/vprintf.texi: Update.
39995         * doc/functions/vsnprintf.texi: Update.
39996         * doc/functions/vsprintf.texi: Update.
39997
39998 2007-11-03  Bruno Haible  <bruno@clisp.org>
39999
40000         * modules/frexp-nolibm-tests: New file.
40001
40002         * modules/frexp-nolibm: New file.
40003         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
40004
40005 2007-11-03  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
40008         value is C99 compliant.
40009         Needed for OSF/1 5.1.
40010
40011 2007-11-03  Bruno Haible  <bruno@clisp.org>
40012
40013         Fix out-of-memory handling of vasnprintf.
40014         * lib/printf-parse.c: Include <errno.h>.
40015         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
40016         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
40017         is already set.
40018
40019 2007-11-02  Eric Blake  <ebb9@byu.net>
40020
40021         Fix tests on cygwin.
40022         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
40023
40024 2007-11-01  Bruno Haible  <bruno@clisp.org>
40025
40026         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
40027         warning.
40028         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
40029         needed for POSIX compatibility.
40030
40031 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40032
40033         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
40034         for compatibility with GNU.
40035
40036 2007-11-01  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
40039         (putenv): Renamed from rpl_putenv. Change argument type from
40040         'const char *' to 'char *'.
40041         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
40042         of defining putenv in config.h, just set REPLACE_PUTENV.
40043         * modules/putenv (Depends-on): Add stdlib.
40044         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40045         (Include): Use <stdlib.h>.
40046         * lib/stdlib.in.h (putenv): New declaration.
40047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
40048         REPLACE_PUTENV.
40049         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
40050         REPLACE_PUTENV.
40051         Needed for MacOS X 10.5.0.
40052         Reported by Peter O'Gorman <peter@pogma.com>.
40053
40054 2007-11-01  Jim Meyering  <meyering@redhat.com>
40055
40056         Treat an empty date string exactly like "0".
40057         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
40058         if the remaining date string (to be parsed) is empty, use "0".
40059         Reported by Mischa Molhoek and discussed in this thread:
40060         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
40061
40062 2007-10-31  Bruno Haible  <bruno@clisp.org>
40063
40064         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
40065         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
40066         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
40067         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
40068         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
40069         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
40070
40071 2007-10-31  Bruno Haible  <bruno@clisp.org>
40072
40073         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
40074         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
40075         (AC_TYPE_LONG_LONG_INT): Use it.
40076         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
40077         it as well.
40078         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
40079         to m4/longlong.m4.
40080         * modules/stdint (Files): Remove m4/ulonglong.m4.
40081         * modules/strtoull (Files): Use m4/longlong.m4 instead of
40082         m4/ulonglong.m4.
40083         * modules/strtoumax (Files): Likewise.
40084
40085 2007-10-30  Bruno Haible  <bruno@clisp.org>
40086
40087         * modules/xvasprintf-posix: New file.
40088         Suggested by Eric Blake.
40089
40090 2007-10-30  Bruno Haible  <bruno@clisp.org>
40091
40092         * modules/xprintf-posix-tests: New file.
40093         * tests/test-xprintf-posix.sh: New file.
40094         * tests/test-xprintf-posix.c: New file.
40095         * tests/test-xfprintf-posix.c: New file.
40096
40097         * modules/xprintf-posix: New file.
40098
40099 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40100
40101         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
40102         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
40103         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
40104
40105 2007-10-29  Bruno Haible  <bruno@clisp.org>
40106
40107         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
40108         contain the special marker '_cv_'.
40109         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40110         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40111         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40112         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40113         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40114         Reported by Ralf Wildenhues.
40115
40116 2007-10-29  Bruno Haible  <bruno@clisp.org>
40117
40118         * gnulib-tool (func_import): When --lgpl is not specified, set
40119         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
40120         GPLv3.
40121         Reported by Simon Josefsson.
40122
40123 2007-10-28  Bruno Haible  <bruno@clisp.org>
40124
40125         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
40126         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
40127         HAVE_DECL_ISFINITE.
40128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40129         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
40130         HAVE_DECL_ISFINITE.
40131
40132 2007-10-28  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
40135         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
40136
40137 2007-10-28  Bruno Haible  <bruno@clisp.org>
40138
40139         Fix link errors with Sun C 5.0 on Solaris 10.
40140         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
40141         function is declared but not present in the compiler's libm.
40142         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40143         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40144         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
40145         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
40146         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
40147         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
40148         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
40149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40150         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
40151         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
40152         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
40153         HAVE_DECL_FLOORL.
40154
40155 2007-10-28  Bruno Haible  <bruno@clisp.org>
40156
40157         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
40158         gl_FUNC_FLOORL. Cache the result.
40159         (gl_FUNC_FLOORL): Use it.
40160         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
40161         gl_FUNC_CEILL. Cache the result.
40162         (gl_FUNC_CEILL): Use it.
40163
40164         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
40165         gl_FUNC_FLOOR. Cache the result.
40166         (gl_FUNC_FLOOR): Use it.
40167         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
40168         gl_FUNC_CEIL. Cache the result.
40169         (gl_FUNC_CEIL): Use it.
40170
40171         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
40172         gl_FUNC_FLOORF. Cache the result.
40173         (gl_FUNC_FLOORF): Use it.
40174         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
40175         gl_FUNC_CEILF. Cache the result.
40176         (gl_FUNC_CEILF): Use it.
40177
40178 2007-10-28  Bruno Haible  <bruno@clisp.org>
40179
40180         * gnulib-tool: Allow specifying the LGPL version number through
40181         --lgpl=2 or --lgpl=3.
40182         (func_usage): Document --lgpl with argument.
40183         Handle --lgpl=... arguments.
40184         (func_import): Recognize also gl_LGPL calls with an argument. When
40185         --lgpl=2 is used and the module's license is just LGPL, report an
40186         error. Set sed_transform_lib_file according to the lgpl variable. In
40187         the generated files, use --lgpl or gl_LGPL invocations with argument,
40188         if necessary.
40189         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
40190         an LGPv2+ license.
40191         * doc/gnulib-tool.texi (Modified imports): Update explanation of
40192         gl_LGPL macro.
40193
40194 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40195             Bruno Haible  <bruno@clisp.org>
40196
40197         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
40198         (u16_uctomb_aux): Likewise.
40199         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
40200         !HAVE_INLINE.
40201         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
40202
40203 2007-10-28  Bruno Haible  <bruno@clisp.org>
40204
40205         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
40206         Invoke AM_GETTEXT_OPTION if it exists.
40207         * modules/vasprintf: Likewise.
40208         * modules/verror: Likewise.
40209         * modules/xprintf: Likewise.
40210         * modules/xvasprintf: Likewise.
40211
40212 2007-10-27  Ben Pfaff  <blp@gnu.org>
40213
40214         * lib/math.in.h: Define isfinite macro and prototypes for
40215         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
40216         implementations.
40217         * m4/math_h.m4: New substitutions for isfinite module.
40218         * lib/isfinite.c: New file.
40219         * m4/isfinite.m4: New file.
40220         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
40221         * modules/isfinite: New file.
40222         * modules/isfinite-tests: New file.
40223         * tests/tests-isfinite.c: New file.
40224         * doc/functions/isfinite.texi: Mention isfinite module.
40225         * MODULES.html.sh: Mention new module.
40226
40227 2007-10-27  Ben Pfaff  <blp@gnu.org>
40228
40229         Ralf Wildenhues reported that Tru64 4.0D declares the round
40230         functions but does not have definitions.
40231         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
40232         cannot be found in any library, set the output variable to
40233         "missing" instead of "".
40234         * m4/round.m4: Also use our substitute if we cannot find round in
40235         any library, even if it is declared.
40236         * m4/roundf.m4: Likewise for roundf.
40237         * m4/roundl.m4: Likewise for roundl.
40238         * lib/math.in.h: Undefine roundf, round, roundl before defining
40239         their replacements, to allow for hypothetical systems where these
40240         may be defined as macros but not available in libraries.
40241
40242 2007-10-27  Bruno Haible  <bruno@clisp.org>
40243
40244         * doc/gnulib.texi: Invoke @firstparagraphindent.
40245         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
40246         changes in gnulib.
40247         (Source changes): New section.
40248
40249 2007-10-26  Bruno Haible  <bruno@clisp.org>
40250
40251         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
40252         borrowed from autoconf.
40253
40254 2007-10-26  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
40257         strerror returned the empty string. Needed on HP-UX 11.00.
40258
40259 2007-10-24  Micah Cowan  <micah@cowan.name>
40260
40261         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
40262         * build-aux/bootstrap: Remove support for now-unnecessary option,
40263         --cvs-user, and envvars CVS_USER, CVS_RSH.
40264
40265 2007-10-24  Jim Meyering  <meyering@redhat.com>
40266
40267         Avoid diagnostics from sha1sum when there is no cached checksum.
40268         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
40269         if the po.s1 file hasn't been created yet.
40270
40271         * build-aux/bootstrap: Sync from coreutils:
40272         2007-10-24  Jim Meyering  <meyering@redhat.com>
40273         Get gnulib from the git repository, not from an obsolete cvs one.
40274         * build-aux/bootstrap: Suggestion from Micah Cowan.
40275         2007-10-04  Jim Meyering  <jim@meyering.net>
40276         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
40277         (update_po_files): Work also when there are no .po files in po/.
40278
40279 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40280
40281         * README: Append ".git" to git and cg examples.
40282         Problem reported by Benoit Sigoure.
40283
40284 2007-10-23  Micah Cowan  <micah@cowan.name>
40285
40286         * users.txt: Add wget.
40287
40288 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40289
40290         Fix linking of some unistdio tests on FreeBSD.
40291         * modules/unistdio/u16-vsnprintf-tests
40292         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
40293         * modules/unistdio/u16-vsprintf-tests
40294         (test_u16_vsnprintf1_LDADD): Likewise.
40295         * modules/unistdio/u32-vsnprintf-tests
40296         (test_u32_vsnprintf1_LDADD): Likewise.
40297         * modules/unistdio/u32-vsprintf-tests
40298         (test_u32_vsprintf1_LDADD): Likewise.
40299         * modules/unistdio/u8-vsnprintf-tests
40300         (test_u8_vsnprintf1_LDADD): Likewise.
40301         * modules/unistdio/u8-vsprintf-tests
40302         (test_u8_vsprintf1_LDADD): Likewise.
40303         * modules/unistdio/ulc-vsnprintf-tests
40304         (test_ulc_vsnprintf1_LDADD): Likewise.
40305         * modules/unistdio/ulc-vsprintf-tests
40306         (test_ulc_vsprintf1_LDADD): Likewise.
40307
40308         Fix linking of some uniconv tests on FreeBSD.
40309         * modules/uniconv/u16-conv-from-enc-tests
40310         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
40311         * modules/uniconv/u16-conv-to-enc-tests
40312         (test_u16_conv_to_enc_LDADD): Likewise.
40313         * modules/uniconv/u16-strconv-from-enc-tests
40314         (test_u16_strconv_from_enc_LDADD): Likewise.
40315         * modules/uniconv/u16-strconv-to-enc-tests
40316         (test_u16_strconv_to_enc_LDADD): Likewise.
40317         * modules/uniconv/u32-conv-from-enc-tests
40318         (test_u32_conv_from_enc_LDADD): Likewise.
40319         * modules/uniconv/u32-conv-to-enc-tests
40320         (test_u32_conv_to_enc_LDADD): Likewise.
40321         * modules/uniconv/u32-strconv-from-enc-tests
40322         (test_u32_strconv_from_enc_LDADD): Likewise.
40323         * modules/uniconv/u32-strconv-to-enc-tests
40324         (test_u32_strconv_to_enc_LDADD): Likewise.
40325         * modules/uniconv/u8-conv-from-enc-tests
40326         (test_u8_conv_from_enc_LDADD): Likewise.
40327         * modules/uniconv/u8-conv-to-enc-tests
40328         (test_u8_conv_to_enc_LDADD): Likewise.
40329         * modules/uniconv/u8-strconv-from-enc-tests
40330         (test_u8_strconv_from_enc_LDADD): Likewise.
40331         * modules/uniconv/u8-strconv-to-enc-tests
40332         (test_u8_strconv_to_enc_LDADD): Likewise.
40333
40334 2007-10-22  Bruno Haible  <bruno@clisp.org>
40335
40336         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
40337         size.
40338
40339 2007-10-22  Eric Blake  <ebb9@byu.net>
40340
40341         Tweak x*printf documentation.
40342         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
40343         variable name and comments.
40344         Suggested by Bruno Haible.
40345
40346 2007-10-22  Bruno Haible  <bruno@clisp.org>
40347
40348         * lib/acl.c (copy_acl): Fix file name in comment.
40349
40350 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40351
40352         Fix Tru64 problem with stdbool.h.
40353         * lib/stdbool.in.h (false, true):
40354         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
40355         Don't declare as an enum in this situation; it runs afoul of Tru64.
40356         Problem reported by Steven M. Schweda in
40357         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
40358
40359 2007-10-22  Eric Blake  <ebb9@byu.net>
40360
40361         Also wrap vf?printf.
40362         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
40363         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
40364         (xvprintf, xvfprintf): New functions.
40365
40366 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40367
40368         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
40369         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
40370
40371         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
40372         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
40373
40374 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40375
40376         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
40377         by Bruno Haible.
40378
40379 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40380
40381         * lib/getloadavg.c
40382         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
40383         Undef `sys' after including sys/table.h, for Tru64 4.0D.
40384
40385         * tests/test-i-ring.c: Work for C89.
40386
40387 2007-10-22  Bruno Haible  <bruno@clisp.org>
40388
40389         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
40390         -1u, in preprocessor expression, so that we don't test for the bug
40391         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
40392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
40393
40394 2007-10-22  Eric Blake  <ebb9@byu.net>
40395
40396         * tests/test-yesno.sh: Silence stderr during test.
40397
40398 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40399
40400         * modules/crypto/gc-camellia: New file.
40401
40402         * m4/gc-camellia.m4: New file.
40403
40404         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
40405
40406         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
40407
40408 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40409
40410         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
40411         --help to stdout.  Reported by sms@antinode.org (Steven
40412         M. Schweda).
40413
40414 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40415
40416         * users.txt: Fix link to libksba.
40417
40418 2007-10-21  Ben Pfaff  <blp@gnu.org>
40419
40420         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
40421         round.c roundf implementation that depends on floorf and ceilf to
40422         be tested unconditionally.
40423
40424 2007-10-21  Ben Pfaff  <blp@gnu.org>
40425
40426         * m4/check-libm-func.m4: Removed.
40427         * m4/check-math-lib.m4: New file.
40428         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
40429         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
40430         definition and lack of AC_LIBOBJ([roundf]).
40431         * m4/roundl.m4: Ditto, and similarly for roundl.
40432         * modules/round: Reference new m4 file.
40433         * modules/roundf: Ditto.
40434         * modules/roundl: Ditto.
40435         * tests/test-round2.c (main): Use ROUND instead of round.
40436         Bug report from Bruno Haible.
40437
40438 2007-10-21  Bruno Haible  <bruno@clisp.org>
40439
40440         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
40441         context.
40442
40443 2007-10-21  Bruno Haible  <bruno@clisp.org>
40444
40445         * tests/test-wcwidth.c (main): Allow negative result for some control
40446         characters.
40447
40448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
40449         Needed on OSF/1 5.1.
40450
40451 2007-10-21  Bruno Haible  <bruno@clisp.org>
40452
40453         * tests/test-floorf1.c: Include isnanf.h.
40454         (main): Use isnanf() instead of isnan().
40455         * tests/test-ceilf1.c: Include isnanf.h.
40456         (main): Use isnanf() instead of isnan().
40457         * tests/test-truncf1.c: Include isnanf.h.
40458         (main): Use isnanf() instead of isnan().
40459         * tests/test-roundf1.c: Include isnanf.h.
40460         (main): Use isnanf() instead of isnan().
40461
40462 2007-10-21  Eric Blake  <ebb9@byu.net>
40463
40464         * users.txt: Update URL for m4.
40465
40466 2007-10-21  Bruno Haible  <bruno@clisp.org>
40467
40468         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
40469
40470 2007-10-21  Bruno Haible  <bruno@clisp.org>
40471
40472         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
40473         Git's management files if the CVS files are not present.
40474
40475 2007-10-20  Bruno Haible  <bruno@clisp.org>
40476
40477         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
40478         gcc-3.4.x.
40479
40480 2007-10-20  Ben Pfaff  <blp@gnu.org>
40481
40482         * lib/math.in.h: Declare round, roundf, roundl if we are providing
40483         implementations.
40484         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
40485         * lib/round.c: New file.
40486         * lib/roundf.c: New file.
40487         * lib/roundl.c: New file.
40488         * m4/round.m4: New file.
40489         * m4/roundf.m4: New file.
40490         * m4/roundl.m4: New file.
40491         * m4/check-libm-func-m4: New file.
40492         * modules/math: Replace round, roundf, roundl related @VARS@ in
40493         math.in.h.
40494         * modules/round: New file.
40495         * modules/round-tests: New file.
40496         * modules/roundf: New file.
40497         * modules/roundf-tests: New file.
40498         * modules/roundl: New file.
40499         * modules/roundl-tests: New file.
40500         * tests/test-round1.c: New file.
40501         * tests/test-round2.c: New file.
40502         * tests/test-roundf1.c: New file.
40503         * tests/test-roundf2.c: New file.
40504         * tests/test-roundl.c: New file.
40505         * doc/functions/round.texi: Mention round module.
40506         * doc/functions/roundf.texi: Mention roundf module.
40507         * doc/functions/roundl.texi: Mention roundl module.
40508         * MODULES.html.sh: Mention new modules.
40509         Thanks to Bruno Haible for suggestions.
40510
40511 2007-10-20  Jim Meyering  <meyering@redhat.com>
40512
40513         * lib/xprintf.c: Include <config.h> unconditionally.
40514
40515         Change xprintf's license to GPL.
40516         * modules/xprintf (License): s/LGPL/GPL/, since this module
40517         depends on modules (exit and exitfail) which are GPL.
40518         Suggestion from Bruno Haible.
40519
40520         xprintf fixes.
40521         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
40522         Use a clearer diagnostic.
40523         Patch from Bruno Haible.
40524
40525 2007-10-20  Bruno Haible  <bruno@clisp.org>
40526
40527         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
40528         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
40529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40530
40531 2007-10-20  Bruno Haible  <bruno@clisp.org>
40532
40533         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
40534         precision in the comparison result > x - 1 or similar.
40535         * tests/test-ceilf2.c (correct_result_p): Likewise.
40536         * tests/test-truncf2.c (correct_result_p): Likewise.
40537         * tests/test-trunc2.c (correct_result_p): Likewise.
40538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40539
40540 2007-10-20  Bruno Haible  <bruno@clisp.org>
40541
40542         * modules/ceil: New file.
40543         * m4/ceil.m4: New file.
40544         * doc/functions/ceil.texi: Mention the 'ceil' module.
40545
40546 2007-10-20  Bruno Haible  <bruno@clisp.org>
40547
40548         * modules/floor: New file.
40549         * m4/floor.m4: New file.
40550         * doc/functions/floor.texi: Mention the 'floor' module.
40551
40552 2007-10-20  Bruno Haible  <bruno@clisp.org>
40553
40554         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
40555         of %a.
40556         * modules/floorf-tests (Depends-on): Likewise.
40557         * modules/truncf-tests (Depends-on): Likewise.
40558         * modules/trunc-tests (Depends-on): Likewise.
40559         Reported by Ben Pfaff.
40560
40561 2007-10-19  Jim Meyering  <meyering@redhat.com>
40562
40563         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
40564         Don't bother testing specific errno values.  Just test ferror.
40565
40566         New module: xprintf
40567         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
40568
40569 2007-10-19  Bruno Haible  <bruno@clisp.org>
40570
40571         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40572         syntax.
40573         * modules/javaexec (Makefile.am): Likewise.
40574         * modules/relocatable-prog (Makefile.am): Likewise.
40575         Suggested by Jim Meyering.
40576
40577 2007-10-18  Bruno Haible  <bruno@clisp.org>
40578
40579         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40580         Reported by Jim Meyering.
40581
40582 2007-10-18  Eric Blake  <ebb9@byu.net>
40583
40584         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40585
40586 2007-10-18  Bruno Haible  <bruno@clisp.org>
40587
40588         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40589         the format string into writable memory. Needed in Fortify conditions.
40590
40591 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40592             Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40595         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40596         * modules/trim (Depends-on): Add mbchar.
40597         (configure.ac): Add gl_FUNC_MBRTOWC.
40598         (Makefile.am): Augment lib_SOURCES.
40599
40600 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40601
40602         Modify glob.c to use fstatat and dirfd, to simplify it.
40603         Suggested by Eric Blake.
40604         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40605         Don't include <stdbool.h>; not used.
40606         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
40607         (link_exists_p): Simplify implementation, since we can now assume
40608         dirfd and fstatat.
40609         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
40610
40611 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40612
40613         * gnulib-tool (func_get_dependencies): Fix sed script to
40614         match only tests.
40615
40616 2007-10-17  Bruno Haible  <bruno@clisp.org>
40617
40618         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
40619         allow locale names without encoding suffix.
40620         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40622
40623 2007-10-16  Bruno Haible  <bruno@clisp.org>
40624
40625         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
40626         * lib/getgroups.c (getgroups): Likewise.
40627         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
40628
40629 2007-10-16  Bruno Haible  <bruno@clisp.org>
40630
40631         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
40632         * modules/malloc-posix (License): Likewise.
40633         * modules/realloc-posix (License): Likewise.
40634         * modules/calloc-posix (License): Likewise.
40635         * modules/intprops (License): Change from GPL to LGPL, with
40636         Paul Eggert's approval.
40637
40638 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40639
40640         Merge glibc changes into lib/glob.c.
40641
40642         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
40643         2007-10-15 04:59:03 UTC.  Here are the changes:
40644
40645         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
40646
40647         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
40648
40649         * lib/glob.c: Add some branch prediction throughout.
40650
40651         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
40652
40653         [BZ #5103]
40654         * lib/glob.c (glob): Recognize patterns starting \/.
40655
40656         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
40657
40658         [BZ #3996]
40659         * lib/glob.c (attribute_hidden): Define if not defined.
40660         (glob): Unescape dirname, filename or username when needed and not
40661         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
40662         is NULL.  Handle unescaped [ in pattern without closing ].
40663         Don't pass GLOB_CHECK down to recursive glob for directories.
40664         (__glob_pattern_type): New function.
40665         (__glob_pattern_p): Implement using __glob_pattern_type.
40666         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
40667         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
40668         Remove unreachable code.
40669
40670         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
40671
40672         * lib/glob.c (glob_in_dir): Add some comments and asserts to
40673         explain why there are no leaks.
40674
40675         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
40676
40677         [BZ #3253]
40678         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
40679         time, rather allocate increasingly bigger arrays of pointers, if
40680         possible with alloca, if too large with malloc.
40681
40682 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40683
40684         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
40685         Problem reported by H.Merijn Brand in
40686         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
40687         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
40688         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40689
40690 2007-10-15  Bruno Haible  <bruno@clisp.org>
40691
40692         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
40693         with explicit rpl_ prefix.
40694         * lib/fopen.c (fopen): Likewise.
40695         * lib/freopen.c (freopen): Likewise.
40696         * lib/iconv.c (iconv): Likewise.
40697         * lib/iconv_close.c (iconv_close): Likewise.
40698
40699 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40700
40701         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
40702
40703 2007-10-15  Bruno Haible  <bruno@clisp.org>
40704
40705         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
40706         <stddef.h> instead of <stdlib.h> since we only need NULL.
40707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40708
40709 2007-10-15  Bruno Haible  <bruno@clisp.org>
40710
40711         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
40712         Replace paragraph talking about LIBOBJS.
40713         Reported by Colin Watson <cjwatson@debian.org>.
40714
40715 2007-10-15  Bruno Haible  <bruno@clisp.org>
40716
40717         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
40718         <stdlib.h> before using NULL.
40719
40720 2007-10-15  Simon Josefsson  <simon@josefsson.org>
40721
40722         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
40723         Reported by Albert Chin <china@thewrittenword.com>.
40724
40725 2007-10-14  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/iconv_open-utf-tests: New file.
40728         * tests/test-iconv-utf.c: New file.
40729
40730         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40731         * modules/iconv_open-utf: New file.
40732         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40733         (iconv, iconv_close): New declarations.
40734         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40735         be defined.
40736         (iconv_open): Add special handling of conversion between UTF-8 and
40737         UTF-{16,32}{BE,LE}.
40738         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40739         * lib/iconv_close.c: New file.
40740         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40741         gl_FUNC_ICONV_OPEN.
40742         (gl_FUNC_ICONV_OPEN): Use it.
40743         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40744         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40745         and REPLACE_ICONV_UTF.
40746         * modules/iconv_open (Depends-on): Add c-strcase.
40747         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40748         ICONV_CONST.
40749         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40750
40751 2007-10-13  Albert Chin  <china@thewrittenword.com>
40752             Bruno Haible  <bruno@clisp.org>
40753
40754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40755         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40756
40757 2007-10-13  Bruno Haible  <bruno@clisp.org>
40758
40759         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40760         defined, use the ISO C99 inline semantics.
40761         * lib/argp.h (ARGP_EI): Likewise.
40762
40763 2007-10-13  Bruno Haible  <bruno@clisp.org>
40764
40765         Handle 'inline' change in gcc 4.3.0.
40766         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40767         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40768         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40769         argp_fmtstream_point): Disable 'extern' declaration if the function
40770         definition is going to be provided inline.
40771         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40772         semantics, not the ISO C99 inline semantics.
40773         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40774         'extern' declaration if the function definition is going to be provided
40775         inline.
40776         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40777         the GNU C inline semantics, not the ISO C99 inline semantics. With
40778         GCC 4.2, avoid a warning.
40779
40780 2007-10-13  Bruno Haible  <bruno@clisp.org>
40781
40782         * lib/freading.h (freading): Enable the use of __freading for
40783         glibc >= 2.7.
40784         * lib/freading.c (freading): Likewise.
40785
40786 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40787
40788         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40789         "warning: C99 inline functions are not supported; using GNU89".
40790
40791 2007-10-12  Bruno Haible  <bruno@clisp.org>
40792
40793         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40794         of 2.
40795         * tests/test-ceilf2.c: New file.
40796         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40797
40798         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40799         * modules/ceilf-tests: Update.
40800
40801 2007-10-12  Bruno Haible  <bruno@clisp.org>
40802
40803         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40804         of 2.
40805         * tests/test-floorf2.c: New file.
40806         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40807
40808         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40809         * modules/floorf-tests: Update.
40810
40811 2007-10-12  Bruno Haible  <bruno@clisp.org>
40812
40813         * tests/test-trunc2.c: New file.
40814         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40815
40816         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40817         * modules/trunc-tests: Update.
40818
40819 2007-10-12  Bruno Haible  <bruno@clisp.org>
40820
40821         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40822         of 2.
40823         * tests/test-truncf2.c: New file.
40824         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40825
40826         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40827         * modules/truncf-tests: Update.
40828
40829 2007-10-11  Eric Blake  <ebb9@byu.net>
40830
40831         Don't claim strerror is broken on Interix.
40832         * doc/functions/strerror.texi (strerror): Known broken systems are
40833         now Solaris 8, and not Interix.
40834         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40835         Interix on cross-compile.
40836         Reported by Martin Koeppe in
40837         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40838
40839 2007-10-11  Bruno Haible  <bruno@clisp.org>
40840
40841         * modules/i-ring-tests: New file.
40842         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40843         instead of assert.
40844
40845 2007-10-11  Bruno Haible  <bruno@clisp.org>
40846
40847         * modules/filenamecat-tests: New file.
40848         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40849         * lib/filenamecat.c: Remove test code.
40850
40851 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40852
40853         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40854
40855         * lib/strerror.c: Include <string.h> always, to test interface,
40856         and to remove the need for the dummy.
40857         Include intprops.h to compute width instead of doing it ourselves
40858         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40859         (strerror): Define it to return NULL if there's no system strerror.
40860         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40861         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40862         ancient pre-strerror Unix systems well any more.  Saying "unknown
40863         system error" is enough.
40864         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40865         simpler strerror.c implementation.
40866         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40867         Simplify the tests to reflect the simpler strerror implementation.
40868         * modules/strerror (Depends-on): Add intprops.
40869
40870 2007-10-09  Eric Blake  <ebb9@byu.net>
40871
40872         Silence test-fpending.
40873         * modules/fpending-tests (Files): Add wrapper script.
40874         * tests/test-fpending.sh: New file.
40875
40876 2007-10-09  Bruno Haible  <bruno@clisp.org>
40877
40878         * MODULES.html.sh (func_module): Don't create a hyperlink for
40879         function names like 'printf_frexp'.
40880         (Misc): Add crc, memxor.
40881         (Characteristics of floating types): New section.
40882         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40883         isnanf-nolibm, signbit, trunc, truncf, truncl.
40884         (Enhancements for ISO C 99 functions): New subsection Input/output.
40885         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40886         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40887         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40888         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40889         (Enhancements for POSIX:2001 functions): Add chdir-long.
40890         (File system functions): Add areadlink, chdir-safer, read-file.
40891         Remove cycle-check.
40892         (File system as inode set): New section.
40893         (Date and time): Add gethrxtime.
40894         (Multithreading): Add openmp.
40895         (Internationalization functions): Add localename.
40896         (Unicode string functions): Add unistr/u*-mbsnlen.
40897         (Support for maintaining and releasing projects): Add git-version-gen.
40898         (Lone files): Remove directories.
40899
40900 2007-10-08  Ben Pfaff  <blp@gnu.org>
40901
40902         * lib/xmalloca.h: Fix typo in comment.
40903
40904 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40905
40906         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40907         when avoiding problems with integer overflow.  Use a portable test
40908         instead.
40909
40910 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40911
40912         * modules/dummy (License): Change to LGPLv2+.
40913         * modules/float (License): Likewise
40914         * modules/realloc (License): Likewise
40915         * modules/stdlib (License): Likewise
40916
40917 2007-10-07  Bruno Haible  <bruno@clisp.org>
40918
40919         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40920         * floor.c (TWO_MANT_DIG): Likewise.
40921         * ceil.c (TWO_MANT_DIG): Likewise.
40922         Reported by Ben Pfaff.
40923
40924 2007-10-07  Bruno Haible  <bruno@clisp.org>
40925
40926         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40927         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40928         * lib/frexp.c (FUNC): Likewise.
40929         * lib/printf-frexp.h (printf_frexp): Likewise.
40930         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40931         * lib/printf-frexp.c (FUNC): Likewise.
40932         Suggested by Jim Meyering.
40933
40934 2007-10-07  Jim Meyering  <meyering@redhat.com>
40935
40936         Make xnanosleep's integer overflow test more robust.
40937         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40938         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40939
40940 2007-10-07  Bruno Haible  <bruno@clisp.org>
40941
40942         * NEWS: Mention the license change.
40943
40944         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40945         abbreviations in the modules files.
40946
40947         Change copyright notice from GPLv2+ to GPLv3+.
40948         * README: Change copyright notice.
40949         * MODULES.html.sh: Likewise.
40950         * build-aux/bootstrap.conf: Likewise.
40951         * build-aux/config.libpath: Likewise.
40952         * build-aux/csharpcomp.sh.in: Likewise.
40953         * build-aux/csharpexec.sh.in: Likewise.
40954         * build-aux/install-reloc: Likewise.
40955         * build-aux/javacomp.sh.in: Likewise.
40956         * build-aux/javaexec.sh.in: Likewise.
40957         * build-aux/ldd.sh.in: Likewise.
40958         * build-aux/reloc-ldflags: Likewise.
40959         * build-aux/relocatable.sh.in: Likewise.
40960         * build-aux/x-to-1.in: Likewise.
40961         * check-module: Likewise.
40962         * config/srclistvars.sh: Likewise.
40963         * gnulib-tool: Likewise.
40964         * lib/acl-internal.h: Likewise.
40965         * lib/acl.c: Likewise.
40966         * lib/acl.h: Likewise.
40967         * lib/acl_entries.c: Likewise.
40968         * lib/areadlink-with-size.c: Likewise.
40969         * lib/areadlink.c: Likewise.
40970         * lib/areadlink.h: Likewise.
40971         * lib/argmatch.c: Likewise.
40972         * lib/argmatch.h: Likewise.
40973         * lib/argp-ba.c: Likewise.
40974         * lib/argp-eexst.c: Likewise.
40975         * lib/argp-fmtstream.c: Likewise.
40976         * lib/argp-fmtstream.h: Likewise.
40977         * lib/argp-fs-xinl.c: Likewise.
40978         * lib/argp-help.c: Likewise.
40979         * lib/argp-namefrob.h: Likewise.
40980         * lib/argp-parse.c: Likewise.
40981         * lib/argp-pin.c: Likewise.
40982         * lib/argp-pv.c: Likewise.
40983         * lib/argp-pvh.c: Likewise.
40984         * lib/argp-xinl.c: Likewise.
40985         * lib/argp.h: Likewise.
40986         * lib/at-func.c: Likewise.
40987         * lib/atanl.c: Likewise.
40988         * lib/backupfile.c: Likewise.
40989         * lib/backupfile.h: Likewise.
40990         * lib/basename.c: Likewise.
40991         * lib/binary-io.h: Likewise.
40992         * lib/byteswap.in.h: Likewise.
40993         * lib/c-stack.c: Likewise.
40994         * lib/c-stack.h: Likewise.
40995         * lib/c-strcasestr.c: Likewise.
40996         * lib/c-strcasestr.h: Likewise.
40997         * lib/c-strstr.c: Likewise.
40998         * lib/c-strstr.h: Likewise.
40999         * lib/c-strtod.c: Likewise.
41000         * lib/calloc.c: Likewise.
41001         * lib/canon-host.c: Likewise.
41002         * lib/canon-host.h: Likewise.
41003         * lib/canonicalize-lgpl.c: Likewise.
41004         * lib/canonicalize.c: Likewise.
41005         * lib/canonicalize.h: Likewise.
41006         * lib/ceil.c: Likewise.
41007         * lib/ceilf.c: Likewise.
41008         * lib/ceill.c: Likewise.
41009         * lib/chdir-long.c: Likewise.
41010         * lib/chdir-long.h: Likewise.
41011         * lib/chdir-safer.c: Likewise.
41012         * lib/chdir-safer.h: Likewise.
41013         * lib/chown.c: Likewise.
41014         * lib/classpath.c: Likewise.
41015         * lib/classpath.h: Likewise.
41016         * lib/clean-temp.c: Likewise.
41017         * lib/clean-temp.h: Likewise.
41018         * lib/cloexec.c: Likewise.
41019         * lib/close-stream.c: Likewise.
41020         * lib/closein.c: Likewise.
41021         * lib/closein.h: Likewise.
41022         * lib/closeout.c: Likewise.
41023         * lib/closeout.h: Likewise.
41024         * lib/concat-filename.c: Likewise.
41025         * lib/copy-file.c: Likewise.
41026         * lib/copy-file.h: Likewise.
41027         * lib/count-one-bits.h: Likewise.
41028         * lib/crc.c: Likewise.
41029         * lib/crc.h: Likewise.
41030         * lib/creat-safer.c: Likewise.
41031         * lib/csharpcomp.c: Likewise.
41032         * lib/csharpcomp.h: Likewise.
41033         * lib/csharpexec.c: Likewise.
41034         * lib/csharpexec.h: Likewise.
41035         * lib/cycle-check.c: Likewise.
41036         * lib/cycle-check.h: Likewise.
41037         * lib/diacrit.c: Likewise.
41038         * lib/diacrit.h: Likewise.
41039         * lib/diffseq.h: Likewise.
41040         * lib/dirchownmod.c: Likewise.
41041         * lib/dirent.in.h: Likewise.
41042         * lib/dirfd.c: Likewise.
41043         * lib/dirfd.h: Likewise.
41044         * lib/dirname.c: Likewise.
41045         * lib/dirname.h: Likewise.
41046         * lib/dummy.c: Likewise.
41047         * lib/dup-safer.c: Likewise.
41048         * lib/dup2.c: Likewise.
41049         * lib/eealloc.h: Likewise.
41050         * lib/error.c: Likewise.
41051         * lib/error.h: Likewise.
41052         * lib/euidaccess.c: Likewise.
41053         * lib/exclude.c: Likewise.
41054         * lib/exclude.h: Likewise.
41055         * lib/execute.c: Likewise.
41056         * lib/execute.h: Likewise.
41057         * lib/exitfail.c: Likewise.
41058         * lib/exitfail.h: Likewise.
41059         * lib/expl.c: Likewise.
41060         * lib/fatal-signal.c: Likewise.
41061         * lib/fatal-signal.h: Likewise.
41062         * lib/fbufmode.c: Likewise.
41063         * lib/fbufmode.h: Likewise.
41064         * lib/fchdir.c: Likewise.
41065         * lib/fchmodat.c: Likewise.
41066         * lib/fchownat.c: Likewise.
41067         * lib/fcntl--.h: Likewise.
41068         * lib/fcntl-safer.h: Likewise.
41069         * lib/fcntl.in.h: Likewise.
41070         * lib/fd-safer.c: Likewise.
41071         * lib/fflush.c: Likewise.
41072         * lib/file-has-acl.c: Likewise.
41073         * lib/file-set.c: Likewise.
41074         * lib/file-type.c: Likewise.
41075         * lib/file-type.h: Likewise.
41076         * lib/fileblocks.c: Likewise.
41077         * lib/filemode.c: Likewise.
41078         * lib/filemode.h: Likewise.
41079         * lib/filename.h: Likewise.
41080         * lib/filenamecat.c: Likewise.
41081         * lib/filenamecat.h: Likewise.
41082         * lib/findprog.c: Likewise.
41083         * lib/findprog.h: Likewise.
41084         * lib/float.in.h: Likewise.
41085         * lib/floor.c: Likewise.
41086         * lib/floorf.c: Likewise.
41087         * lib/floorl.c: Likewise.
41088         * lib/fopen-safer.c: Likewise.
41089         * lib/fopen.c: Likewise.
41090         * lib/fpending.c: Likewise.
41091         * lib/fpending.h: Likewise.
41092         * lib/fprintf.c: Likewise.
41093         * lib/fprintftime.h: Likewise.
41094         * lib/fpucw.h: Likewise.
41095         * lib/fpurge.c: Likewise.
41096         * lib/fpurge.h: Likewise.
41097         * lib/freadable.c: Likewise.
41098         * lib/freadable.h: Likewise.
41099         * lib/freadahead.c: Likewise.
41100         * lib/freadahead.h: Likewise.
41101         * lib/freading.c: Likewise.
41102         * lib/freading.h: Likewise.
41103         * lib/free.c: Likewise.
41104         * lib/freopen.c: Likewise.
41105         * lib/frexp.c: Likewise.
41106         * lib/frexpl.c: Likewise.
41107         * lib/fseek.c: Likewise.
41108         * lib/fseterr.c: Likewise.
41109         * lib/fseterr.h: Likewise.
41110         * lib/fstatat.c: Likewise.
41111         * lib/fstrcmp.c: Likewise.
41112         * lib/fstrcmp.h: Likewise.
41113         * lib/fsusage.c: Likewise.
41114         * lib/fsusage.h: Likewise.
41115         * lib/ftell.c: Likewise.
41116         * lib/ftello.c: Likewise.
41117         * lib/fts-cycle.c: Likewise.
41118         * lib/fts.c: Likewise.
41119         * lib/fts_.h: Likewise.
41120         * lib/full-read.c: Likewise.
41121         * lib/full-read.h: Likewise.
41122         * lib/full-write.c: Likewise.
41123         * lib/full-write.h: Likewise.
41124         * lib/fwritable.c: Likewise.
41125         * lib/fwritable.h: Likewise.
41126         * lib/fwriteerror.c: Likewise.
41127         * lib/fwriteerror.h: Likewise.
41128         * lib/fwriting.c: Likewise.
41129         * lib/fwriting.h: Likewise.
41130         * lib/gcd.c: Likewise.
41131         * lib/gcd.h: Likewise.
41132         * lib/getcwd.c: Likewise.
41133         * lib/getdate.h: Likewise.
41134         * lib/getdate.y: Likewise.
41135         * lib/getdomainname.c: Likewise.
41136         * lib/getdomainname.h: Likewise.
41137         * lib/getgroups.c: Likewise.
41138         * lib/gethostname.c: Likewise.
41139         * lib/gethrxtime.c: Likewise.
41140         * lib/gethrxtime.h: Likewise.
41141         * lib/getloadavg.c: Likewise.
41142         * lib/getndelim2.c: Likewise.
41143         * lib/getndelim2.h: Likewise.
41144         * lib/getnline.c: Likewise.
41145         * lib/getnline.h: Likewise.
41146         * lib/getopt.c: Likewise.
41147         * lib/getopt.in.h: Likewise.
41148         * lib/getopt1.c: Likewise.
41149         * lib/getopt_int.h: Likewise.
41150         * lib/getpagesize.h: Likewise.
41151         * lib/getsubopt.c: Likewise.
41152         * lib/gettime.c: Likewise.
41153         * lib/getugroups.c: Likewise.
41154         * lib/getugroups.h: Likewise.
41155         * lib/getusershell.c: Likewise.
41156         * lib/gl_anyavltree_list1.h: Likewise.
41157         * lib/gl_anyavltree_list2.h: Likewise.
41158         * lib/gl_anyhash_list1.h: Likewise.
41159         * lib/gl_anyhash_list2.h: Likewise.
41160         * lib/gl_anylinked_list1.h: Likewise.
41161         * lib/gl_anylinked_list2.h: Likewise.
41162         * lib/gl_anyrbtree_list1.h: Likewise.
41163         * lib/gl_anyrbtree_list2.h: Likewise.
41164         * lib/gl_anytree_list1.h: Likewise.
41165         * lib/gl_anytree_list2.h: Likewise.
41166         * lib/gl_anytree_oset.h: Likewise.
41167         * lib/gl_anytreehash_list1.h: Likewise.
41168         * lib/gl_anytreehash_list2.h: Likewise.
41169         * lib/gl_array_list.c: Likewise.
41170         * lib/gl_array_list.h: Likewise.
41171         * lib/gl_array_oset.c: Likewise.
41172         * lib/gl_array_oset.h: Likewise.
41173         * lib/gl_avltree_list.c: Likewise.
41174         * lib/gl_avltree_list.h: Likewise.
41175         * lib/gl_avltree_oset.c: Likewise.
41176         * lib/gl_avltree_oset.h: Likewise.
41177         * lib/gl_avltreehash_list.c: Likewise.
41178         * lib/gl_avltreehash_list.h: Likewise.
41179         * lib/gl_carray_list.c: Likewise.
41180         * lib/gl_carray_list.h: Likewise.
41181         * lib/gl_linked_list.c: Likewise.
41182         * lib/gl_linked_list.h: Likewise.
41183         * lib/gl_linkedhash_list.c: Likewise.
41184         * lib/gl_linkedhash_list.h: Likewise.
41185         * lib/gl_list.c: Likewise.
41186         * lib/gl_list.h: Likewise.
41187         * lib/gl_oset.c: Likewise.
41188         * lib/gl_oset.h: Likewise.
41189         * lib/gl_rbtree_list.c: Likewise.
41190         * lib/gl_rbtree_list.h: Likewise.
41191         * lib/gl_rbtree_oset.c: Likewise.
41192         * lib/gl_rbtree_oset.h: Likewise.
41193         * lib/gl_rbtreehash_list.c: Likewise.
41194         * lib/gl_rbtreehash_list.h: Likewise.
41195         * lib/gl_sublist.c: Likewise.
41196         * lib/gl_sublist.h: Likewise.
41197         * lib/group-member.c: Likewise.
41198         * lib/group-member.h: Likewise.
41199         * lib/hard-locale.c: Likewise.
41200         * lib/hard-locale.h: Likewise.
41201         * lib/hash-pjw.c: Likewise.
41202         * lib/hash-pjw.h: Likewise.
41203         * lib/hash-triple.c: Likewise.
41204         * lib/hash.c: Likewise.
41205         * lib/hash.h: Likewise.
41206         * lib/human.c: Likewise.
41207         * lib/human.h: Likewise.
41208         * lib/i-ring.c: Likewise.
41209         * lib/i-ring.h: Likewise.
41210         * lib/idcache.c: Likewise.
41211         * lib/imaxabs.c: Likewise.
41212         * lib/imaxdiv.c: Likewise.
41213         * lib/inet_pton.c: Likewise.
41214         * lib/inet_pton.h: Likewise.
41215         * lib/intprops.h: Likewise.
41216         * lib/inttostr.c: Likewise.
41217         * lib/inttostr.h: Likewise.
41218         * lib/inttypes.in.h: Likewise.
41219         * lib/isapipe.c: Likewise.
41220         * lib/isdir.c: Likewise.
41221         * lib/isnan.c: Likewise.
41222         * lib/isnan.h: Likewise.
41223         * lib/isnanf.c: Likewise.
41224         * lib/isnanf.h: Likewise.
41225         * lib/isnanl-nolibm.h: Likewise.
41226         * lib/isnanl.c: Likewise.
41227         * lib/isnanl.h: Likewise.
41228         * lib/javacomp.c: Likewise.
41229         * lib/javacomp.h: Likewise.
41230         * lib/javaexec.c: Likewise.
41231         * lib/javaexec.h: Likewise.
41232         * lib/javaversion.c: Likewise.
41233         * lib/javaversion.h: Likewise.
41234         * lib/javaversion.java: Likewise.
41235         * lib/lbrkprop.h: Likewise.
41236         * lib/lchmod.h: Likewise.
41237         * lib/lchown.c: Likewise.
41238         * lib/ldexpl.c: Likewise.
41239         * lib/linebreak.c: Likewise.
41240         * lib/linebreak.h: Likewise.
41241         * lib/linebuffer.c: Likewise.
41242         * lib/linebuffer.h: Likewise.
41243         * lib/locale.in.h: Likewise.
41244         * lib/logl.c: Likewise.
41245         * lib/long-options.c: Likewise.
41246         * lib/long-options.h: Likewise.
41247         * lib/lstat.c: Likewise.
41248         * lib/lstat.h: Likewise.
41249         * lib/math.in.h: Likewise.
41250         * lib/mbchar.c: Likewise.
41251         * lib/mbchar.h: Likewise.
41252         * lib/mbfile.h: Likewise.
41253         * lib/mbiter.h: Likewise.
41254         * lib/mbscasecmp.c: Likewise.
41255         * lib/mbscasestr.c: Likewise.
41256         * lib/mbschr.c: Likewise.
41257         * lib/mbscspn.c: Likewise.
41258         * lib/mbslen.c: Likewise.
41259         * lib/mbsncasecmp.c: Likewise.
41260         * lib/mbsnlen.c: Likewise.
41261         * lib/mbspbrk.c: Likewise.
41262         * lib/mbspcasecmp.c: Likewise.
41263         * lib/mbsrchr.c: Likewise.
41264         * lib/mbssep.c: Likewise.
41265         * lib/mbsspn.c: Likewise.
41266         * lib/mbsstr.c: Likewise.
41267         * lib/mbstok_r.c: Likewise.
41268         * lib/mbswidth.c: Likewise.
41269         * lib/mbswidth.h: Likewise.
41270         * lib/mbuiter.h: Likewise.
41271         * lib/memcasecmp.c: Likewise.
41272         * lib/memcasecmp.h: Likewise.
41273         * lib/memchr.c: Likewise.
41274         * lib/memcmp.c: Likewise.
41275         * lib/memcoll.c: Likewise.
41276         * lib/memcoll.h: Likewise.
41277         * lib/memcpy.c: Likewise.
41278         * lib/memrchr.c: Likewise.
41279         * lib/mkancesdirs.c: Likewise.
41280         * lib/mkdir-p.c: Likewise.
41281         * lib/mkdir-p.h: Likewise.
41282         * lib/mkdir.c: Likewise.
41283         * lib/mkdirat.c: Likewise.
41284         * lib/mkdtemp.c: Likewise.
41285         * lib/mkstemp-safer.c: Likewise.
41286         * lib/mkstemp.c: Likewise.
41287         * lib/modechange.c: Likewise.
41288         * lib/modechange.h: Likewise.
41289         * lib/mountlist.c: Likewise.
41290         * lib/mountlist.h: Likewise.
41291         * lib/mpsort.c: Likewise.
41292         * lib/nanosleep.c: Likewise.
41293         * lib/obstack.c: Likewise.
41294         * lib/obstack.h: Likewise.
41295         * lib/open-safer.c: Likewise.
41296         * lib/open.c: Likewise.
41297         * lib/openat-die.c: Likewise.
41298         * lib/openat-priv.h: Likewise.
41299         * lib/openat-proc.c: Likewise.
41300         * lib/openat.c: Likewise.
41301         * lib/openat.h: Likewise.
41302         * lib/pagealign_alloc.c: Likewise.
41303         * lib/pagealign_alloc.h: Likewise.
41304         * lib/physmem.c: Likewise.
41305         * lib/physmem.h: Likewise.
41306         * lib/pipe-safer.c: Likewise.
41307         * lib/pipe.c: Likewise.
41308         * lib/pipe.h: Likewise.
41309         * lib/posixtm.c: Likewise.
41310         * lib/posixtm.h: Likewise.
41311         * lib/posixver.c: Likewise.
41312         * lib/printf-frexp.c: Likewise.
41313         * lib/printf-frexp.h: Likewise.
41314         * lib/printf-frexpl.c: Likewise.
41315         * lib/printf-frexpl.h: Likewise.
41316         * lib/printf.c: Likewise.
41317         * lib/progname.c: Likewise.
41318         * lib/progname.h: Likewise.
41319         * lib/progreloc.c: Likewise.
41320         * lib/putenv.c: Likewise.
41321         * lib/quote.c: Likewise.
41322         * lib/quote.h: Likewise.
41323         * lib/quotearg.c: Likewise.
41324         * lib/quotearg.h: Likewise.
41325         * lib/raise.c: Likewise.
41326         * lib/readline.c: Likewise.
41327         * lib/readline.h: Likewise.
41328         * lib/readlink.c: Likewise.
41329         * lib/readtokens.c: Likewise.
41330         * lib/readtokens.h: Likewise.
41331         * lib/readtokens0.c: Likewise.
41332         * lib/readtokens0.h: Likewise.
41333         * lib/readutmp.c: Likewise.
41334         * lib/readutmp.h: Likewise.
41335         * lib/realloc.c: Likewise.
41336         * lib/relocwrapper.c: Likewise.
41337         * lib/rename-dest-slash.c: Likewise.
41338         * lib/rename.c: Likewise.
41339         * lib/rmdir.c: Likewise.
41340         * lib/rpmatch.c: Likewise.
41341         * lib/safe-read.c: Likewise.
41342         * lib/safe-read.h: Likewise.
41343         * lib/safe-write.c: Likewise.
41344         * lib/safe-write.h: Likewise.
41345         * lib/same-inode.h: Likewise.
41346         * lib/same.c: Likewise.
41347         * lib/same.h: Likewise.
41348         * lib/save-cwd.c: Likewise.
41349         * lib/save-cwd.h: Likewise.
41350         * lib/savedir.c: Likewise.
41351         * lib/savedir.h: Likewise.
41352         * lib/savewd.c: Likewise.
41353         * lib/savewd.h: Likewise.
41354         * lib/search.in.h: Likewise.
41355         * lib/setenv.c: Likewise.
41356         * lib/setenv.h: Likewise.
41357         * lib/settime.c: Likewise.
41358         * lib/sh-quote.c: Likewise.
41359         * lib/sh-quote.h: Likewise.
41360         * lib/sig2str.c: Likewise.
41361         * lib/sig2str.h: Likewise.
41362         * lib/signal.in.h: Likewise.
41363         * lib/signbitd.c: Likewise.
41364         * lib/signbitf.c: Likewise.
41365         * lib/signbitl.c: Likewise.
41366         * lib/sigprocmask.c: Likewise.
41367         * lib/sincosl.c: Likewise.
41368         * lib/sleep.c: Likewise.
41369         * lib/sprintf.c: Likewise.
41370         * lib/sqrtl.c: Likewise.
41371         * lib/stat-time.h: Likewise.
41372         * lib/stdio--.h: Likewise.
41373         * lib/stdio-safer.h: Likewise.
41374         * lib/stdlib--.h: Likewise.
41375         * lib/stdlib-safer.h: Likewise.
41376         * lib/stdlib.in.h: Likewise.
41377         * lib/stpcpy.c: Likewise.
41378         * lib/stpncpy.c: Likewise.
41379         * lib/strchrnul.c: Likewise.
41380         * lib/strcspn.c: Likewise.
41381         * lib/strerror.c: Likewise.
41382         * lib/strftime.c: Likewise.
41383         * lib/strftime.h: Likewise.
41384         * lib/striconveh.c: Likewise.
41385         * lib/striconveh.h: Likewise.
41386         * lib/striconveha.c: Likewise.
41387         * lib/striconveha.h: Likewise.
41388         * lib/stripslash.c: Likewise.
41389         * lib/strnlen1.c: Likewise.
41390         * lib/strnlen1.h: Likewise.
41391         * lib/strtod.c: Likewise.
41392         * lib/strtoimax.c: Likewise.
41393         * lib/strtok_r.c: Likewise.
41394         * lib/strtol.c: Likewise.
41395         * lib/strtoll.c: Likewise.
41396         * lib/strtoul.c: Likewise.
41397         * lib/strtoull.c: Likewise.
41398         * lib/sysexits.in.h: Likewise.
41399         * lib/tempname.c: Likewise.
41400         * lib/tempname.h: Likewise.
41401         * lib/timespec.h: Likewise.
41402         * lib/tls.c: Likewise.
41403         * lib/tls.h: Likewise.
41404         * lib/tmpdir.c: Likewise.
41405         * lib/tmpdir.h: Likewise.
41406         * lib/tmpfile-safer.c: Likewise.
41407         * lib/tmpfile.c: Likewise.
41408         * lib/trigl.c: Likewise.
41409         * lib/trigl.h: Likewise.
41410         * lib/trim.c: Likewise.
41411         * lib/trim.h: Likewise.
41412         * lib/trunc.c: Likewise.
41413         * lib/truncf.c: Likewise.
41414         * lib/truncl.c: Likewise.
41415         * lib/tsearch.c: Likewise.
41416         * lib/unicodeio.c: Likewise.
41417         * lib/unicodeio.h: Likewise.
41418         * lib/unistd--.h: Likewise.
41419         * lib/unistd-safer.h: Likewise.
41420         * lib/unistdio/ulc-fprintf.c: Likewise.
41421         * lib/unistdio/ulc-vfprintf.c: Likewise.
41422         * lib/unlinkdir.c: Likewise.
41423         * lib/unlinkdir.h: Likewise.
41424         * lib/unlocked-io.h: Likewise.
41425         * lib/unsetenv.c: Likewise.
41426         * lib/userspec.c: Likewise.
41427         * lib/utime.c: Likewise.
41428         * lib/utimecmp.c: Likewise.
41429         * lib/utimecmp.h: Likewise.
41430         * lib/utimens.c: Likewise.
41431         * lib/verify.h: Likewise.
41432         * lib/verror.c: Likewise.
41433         * lib/verror.h: Likewise.
41434         * lib/version-etc-fsf.c: Likewise.
41435         * lib/version-etc.c: Likewise.
41436         * lib/version-etc.h: Likewise.
41437         * lib/vfprintf.c: Likewise.
41438         * lib/vprintf.c: Likewise.
41439         * lib/vsprintf.c: Likewise.
41440         * lib/w32spawn.h: Likewise.
41441         * lib/wait-process.c: Likewise.
41442         * lib/wait-process.h: Likewise.
41443         * lib/wcwidth.c: Likewise.
41444         * lib/write-any-file.c: Likewise.
41445         * lib/xalloc-die.c: Likewise.
41446         * lib/xalloc.h: Likewise.
41447         * lib/xasprintf.c: Likewise.
41448         * lib/xgetcwd.c: Likewise.
41449         * lib/xgetcwd.h: Likewise.
41450         * lib/xgetdomainname.c: Likewise.
41451         * lib/xgetdomainname.h: Likewise.
41452         * lib/xgethostname.c: Likewise.
41453         * lib/xmalloc.c: Likewise.
41454         * lib/xmalloca.c: Likewise.
41455         * lib/xmalloca.h: Likewise.
41456         * lib/xmemcoll.c: Likewise.
41457         * lib/xnanosleep.c: Likewise.
41458         * lib/xreadlink.c: Likewise.
41459         * lib/xreadlink.h: Likewise.
41460         * lib/xsetenv.c: Likewise.
41461         * lib/xsetenv.h: Likewise.
41462         * lib/xstriconv.c: Likewise.
41463         * lib/xstriconv.h: Likewise.
41464         * lib/xstrndup.c: Likewise.
41465         * lib/xstrndup.h: Likewise.
41466         * lib/xstrtod.c: Likewise.
41467         * lib/xstrtod.h: Likewise.
41468         * lib/xstrtol-error.c: Likewise.
41469         * lib/xstrtol.c: Likewise.
41470         * lib/xstrtol.h: Likewise.
41471         * lib/xtime.h: Likewise.
41472         * lib/xvasprintf.c: Likewise.
41473         * lib/xvasprintf.h: Likewise.
41474         * lib/yesno.c: Likewise.
41475         * lib/yesno.h: Likewise.
41476         * posix-modules: Likewise.
41477         * tests/test-alloca-opt.c: Likewise.
41478         * tests/test-arcfour.c: Likewise.
41479         * tests/test-arctwo.c: Likewise.
41480         * tests/test-argmatch.c: Likewise.
41481         * tests/test-argp-2.sh: Likewise.
41482         * tests/test-argp.c: Likewise.
41483         * tests/test-arpa_inet.c: Likewise.
41484         * tests/test-array_list.c: Likewise.
41485         * tests/test-array_oset.c: Likewise.
41486         * tests/test-atexit.c: Likewise.
41487         * tests/test-avltree_list.c: Likewise.
41488         * tests/test-avltree_oset.c: Likewise.
41489         * tests/test-avltreehash_list.c: Likewise.
41490         * tests/test-base64.c: Likewise.
41491         * tests/test-binary-io.c: Likewise.
41492         * tests/test-byteswap.c: Likewise.
41493         * tests/test-c-ctype.c: Likewise.
41494         * tests/test-c-strcasecmp.c: Likewise.
41495         * tests/test-c-strcasestr.c: Likewise.
41496         * tests/test-c-strncasecmp.c: Likewise.
41497         * tests/test-c-strstr.c: Likewise.
41498         * tests/test-canonicalize-lgpl.c: Likewise.
41499         * tests/test-canonicalize.c: Likewise.
41500         * tests/test-carray_list.c: Likewise.
41501         * tests/test-ceilf.c: Likewise.
41502         * tests/test-ceill.c: Likewise.
41503         * tests/test-count-one-bits.c: Likewise.
41504         * tests/test-crc.c: Likewise.
41505         * tests/test-dirname.c: Likewise.
41506         * tests/test-fbufmode.c: Likewise.
41507         * tests/test-fcntl.c: Likewise.
41508         * tests/test-fflush.c: Likewise.
41509         * tests/test-floorf.c: Likewise.
41510         * tests/test-floorl.c: Likewise.
41511         * tests/test-fopen.c: Likewise.
41512         * tests/test-fprintf-posix.c: Likewise.
41513         * tests/test-fprintf-posix.h: Likewise.
41514         * tests/test-fpurge.c: Likewise.
41515         * tests/test-freadable.c: Likewise.
41516         * tests/test-freadahead.c: Likewise.
41517         * tests/test-freading.c: Likewise.
41518         * tests/test-freopen.c: Likewise.
41519         * tests/test-frexp.c: Likewise.
41520         * tests/test-frexpl.c: Likewise.
41521         * tests/test-fseek.c: Likewise.
41522         * tests/test-fseeko.c: Likewise.
41523         * tests/test-fseterr.c: Likewise.
41524         * tests/test-fstrcmp.c: Likewise.
41525         * tests/test-ftell.c: Likewise.
41526         * tests/test-ftello.c: Likewise.
41527         * tests/test-fwritable.c: Likewise.
41528         * tests/test-fwriting.c: Likewise.
41529         * tests/test-getaddrinfo.c: Likewise.
41530         * tests/test-getpass.c: Likewise.
41531         * tests/test-gettimeofday.c: Likewise.
41532         * tests/test-hmac-md5.c: Likewise.
41533         * tests/test-hmac-sha1.c: Likewise.
41534         * tests/test-iconv.c: Likewise.
41535         * tests/test-iconvme.c: Likewise.
41536         * tests/test-inttypes.c: Likewise.
41537         * tests/test-isnan.c: Likewise.
41538         * tests/test-isnanf.c: Likewise.
41539         * tests/test-isnanl-nolibm.c: Likewise.
41540         * tests/test-isnanl.c: Likewise.
41541         * tests/test-isnanl.h: Likewise.
41542         * tests/test-ldexpl.c: Likewise.
41543         * tests/test-linked_list.c: Likewise.
41544         * tests/test-linkedhash_list.c: Likewise.
41545         * tests/test-locale.c: Likewise.
41546         * tests/test-localename.c: Likewise.
41547         * tests/test-lock.c: Likewise.
41548         * tests/test-lseek.c: Likewise.
41549         * tests/test-malloca.c: Likewise.
41550         * tests/test-math.c: Likewise.
41551         * tests/test-mbscasecmp.c: Likewise.
41552         * tests/test-mbscasestr1.c: Likewise.
41553         * tests/test-mbscasestr2.c: Likewise.
41554         * tests/test-mbscasestr3.c: Likewise.
41555         * tests/test-mbscasestr4.c: Likewise.
41556         * tests/test-mbschr.c: Likewise.
41557         * tests/test-mbscspn.c: Likewise.
41558         * tests/test-mbsncasecmp.c: Likewise.
41559         * tests/test-mbspbrk.c: Likewise.
41560         * tests/test-mbspcasecmp.c: Likewise.
41561         * tests/test-mbsrchr.c: Likewise.
41562         * tests/test-mbsspn.c: Likewise.
41563         * tests/test-mbsstr1.c: Likewise.
41564         * tests/test-mbsstr2.c: Likewise.
41565         * tests/test-mbsstr3.c: Likewise.
41566         * tests/test-md5.c: Likewise.
41567         * tests/test-memmem.c: Likewise.
41568         * tests/test-netinet_in.c: Likewise.
41569         * tests/test-open.c: Likewise.
41570         * tests/test-printf-frexp.c: Likewise.
41571         * tests/test-printf-frexpl.c: Likewise.
41572         * tests/test-printf-posix.c: Likewise.
41573         * tests/test-printf-posix.h: Likewise.
41574         * tests/test-rbtree_list.c: Likewise.
41575         * tests/test-rbtree_oset.c: Likewise.
41576         * tests/test-rbtreehash_list.c: Likewise.
41577         * tests/test-read-file.c: Likewise.
41578         * tests/test-rijndael.c: Likewise.
41579         * tests/test-search.c: Likewise.
41580         * tests/test-signbit.c: Likewise.
41581         * tests/test-sleep.c: Likewise.
41582         * tests/test-snprintf-posix.c: Likewise.
41583         * tests/test-snprintf-posix.h: Likewise.
41584         * tests/test-snprintf.c: Likewise.
41585         * tests/test-sprintf-posix.c: Likewise.
41586         * tests/test-sprintf-posix.h: Likewise.
41587         * tests/test-stat-time.c: Likewise.
41588         * tests/test-stdbool.c: Likewise.
41589         * tests/test-stdint.c: Likewise.
41590         * tests/test-stdio.c: Likewise.
41591         * tests/test-stdlib.c: Likewise.
41592         * tests/test-stpncpy.c: Likewise.
41593         * tests/test-strcasestr.c: Likewise.
41594         * tests/test-striconv.c: Likewise.
41595         * tests/test-striconveh.c: Likewise.
41596         * tests/test-striconveha.c: Likewise.
41597         * tests/test-string.c: Likewise.
41598         * tests/test-sys_select.c: Likewise.
41599         * tests/test-sys_socket.c: Likewise.
41600         * tests/test-sys_stat.c: Likewise.
41601         * tests/test-sys_time.c: Likewise.
41602         * tests/test-sysexits.c: Likewise.
41603         * tests/test-time.c: Likewise.
41604         * tests/test-tls.c: Likewise.
41605         * tests/test-trunc.c: Likewise.
41606         * tests/test-truncf.c: Likewise.
41607         * tests/test-truncl.c: Likewise.
41608         * tests/test-unistd.c: Likewise.
41609         * tests/test-vasnprintf-posix.c: Likewise.
41610         * tests/test-vasnprintf-posix2.c: Likewise.
41611         * tests/test-vasnprintf.c: Likewise.
41612         * tests/test-vasprintf-posix.c: Likewise.
41613         * tests/test-vasprintf.c: Likewise.
41614         * tests/test-verify.c: Likewise.
41615         * tests/test-vfprintf-posix.c: Likewise.
41616         * tests/test-vprintf-posix.c: Likewise.
41617         * tests/test-vsnprintf-posix.c: Likewise.
41618         * tests/test-vsnprintf.c: Likewise.
41619         * tests/test-vsprintf-posix.c: Likewise.
41620         * tests/test-wchar.c: Likewise.
41621         * tests/test-wctype.c: Likewise.
41622         * tests/test-wcwidth.c: Likewise.
41623         * tests/test-xstrtol.c: Likewise.
41624         * tests/test-xvasprintf.c: Likewise.
41625         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41626         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41627         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41628         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41629         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41630         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41631         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41632         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41633         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41634         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41635         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41636         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41637         * tests/uniname/test-uninames.c: Likewise.
41638         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41639         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
41640         * tests/unistdio/test-u16-printf1.h: Likewise.
41641         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41642         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41643         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41644         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41645         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41646         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41647         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41648         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
41649         * tests/unistdio/test-u32-printf1.h: Likewise.
41650         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41651         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41652         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41653         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41654         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41655         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41656         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41657         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
41658         * tests/unistdio/test-u8-printf1.h: Likewise.
41659         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41660         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41661         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41662         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41663         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41664         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41665         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41666         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
41667         * tests/unistdio/test-ulc-printf1.h: Likewise.
41668         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41669         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41670         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41671         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41672         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41673         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41674         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41675         * tests/uniwidth/test-u16-width.c: Likewise.
41676         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41677         * tests/uniwidth/test-u32-width.c: Likewise.
41678         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41679         * tests/uniwidth/test-u8-width.c: Likewise.
41680         * tests/uniwidth/test-uc_width.c: Likewise.
41681         * config/srclist-update: Likewise.
41682         (fixlicense): Update to GPLv3+.
41683
41684         Change copyright notice from LGPLv2.1+ to LGPLv3+.
41685         * tests/test-tsearch.c: Change copyright notice.
41686
41687         Change copyright notice from LGPLv2.0+ to LGPLv3+.
41688         * lib/c-strcaseeq.h: Change copyright notice.
41689         * lib/streq.h: Likewise.
41690         * lib/uniconv.h: Likewise.
41691         * lib/uniconv/u-conv-from-enc.h: Likewise.
41692         * lib/uniconv/u-conv-to-enc.h: Likewise.
41693         * lib/uniconv/u-strconv-from-enc.h: Likewise.
41694         * lib/uniconv/u-strconv-to-enc.h: Likewise.
41695         * lib/uniconv/u16-conv-from-enc.c: Likewise.
41696         * lib/uniconv/u16-conv-to-enc.c: Likewise.
41697         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
41698         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
41699         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
41700         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
41701         * lib/uniconv/u32-conv-from-enc.c: Likewise.
41702         * lib/uniconv/u32-conv-to-enc.c: Likewise.
41703         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
41704         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
41705         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
41706         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
41707         * lib/uniconv/u8-conv-from-enc.c: Likewise.
41708         * lib/uniconv/u8-conv-to-enc.c: Likewise.
41709         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
41710         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
41711         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
41712         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
41713         * lib/uniname.h: Likewise.
41714         * lib/uniname/uniname.c: Likewise.
41715         * lib/unistdio.h: Likewise.
41716         * lib/unistdio/u-asnprintf.h: Likewise.
41717         * lib/unistdio/u-asprintf.h: Likewise.
41718         * lib/unistdio/u-printf-args.c: Likewise.
41719         * lib/unistdio/u-printf-args.h: Likewise.
41720         * lib/unistdio/u-printf-parse.h: Likewise.
41721         * lib/unistdio/u-snprintf.h: Likewise.
41722         * lib/unistdio/u-sprintf.h: Likewise.
41723         * lib/unistdio/u-vasprintf.h: Likewise.
41724         * lib/unistdio/u-vsnprintf.h: Likewise.
41725         * lib/unistdio/u-vsprintf.h: Likewise.
41726         * lib/unistdio/u16-asnprintf.c: Likewise.
41727         * lib/unistdio/u16-asprintf.c: Likewise.
41728         * lib/unistdio/u16-printf-parse.c: Likewise.
41729         * lib/unistdio/u16-snprintf.c: Likewise.
41730         * lib/unistdio/u16-sprintf.c: Likewise.
41731         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41732         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41733         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41734         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41735         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41736         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41737         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41738         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41739         * lib/unistdio/u16-vasnprintf.c: Likewise.
41740         * lib/unistdio/u16-vasprintf.c: Likewise.
41741         * lib/unistdio/u16-vsnprintf.c: Likewise.
41742         * lib/unistdio/u16-vsprintf.c: Likewise.
41743         * lib/unistdio/u32-asnprintf.c: Likewise.
41744         * lib/unistdio/u32-asprintf.c: Likewise.
41745         * lib/unistdio/u32-printf-parse.c: Likewise.
41746         * lib/unistdio/u32-snprintf.c: Likewise.
41747         * lib/unistdio/u32-sprintf.c: Likewise.
41748         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41749         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41750         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41751         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41752         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41753         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41754         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41755         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41756         * lib/unistdio/u32-vasnprintf.c: Likewise.
41757         * lib/unistdio/u32-vasprintf.c: Likewise.
41758         * lib/unistdio/u32-vsnprintf.c: Likewise.
41759         * lib/unistdio/u32-vsprintf.c: Likewise.
41760         * lib/unistdio/u8-asnprintf.c: Likewise.
41761         * lib/unistdio/u8-asprintf.c: Likewise.
41762         * lib/unistdio/u8-printf-parse.c: Likewise.
41763         * lib/unistdio/u8-snprintf.c: Likewise.
41764         * lib/unistdio/u8-sprintf.c: Likewise.
41765         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41766         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41767         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41768         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41769         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41770         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41771         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41772         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41773         * lib/unistdio/u8-vasnprintf.c: Likewise.
41774         * lib/unistdio/u8-vasprintf.c: Likewise.
41775         * lib/unistdio/u8-vsnprintf.c: Likewise.
41776         * lib/unistdio/u8-vsprintf.c: Likewise.
41777         * lib/unistdio/ulc-asnprintf.c: Likewise.
41778         * lib/unistdio/ulc-asprintf.c: Likewise.
41779         * lib/unistdio/ulc-printf-parse.c: Likewise.
41780         * lib/unistdio/ulc-snprintf.c: Likewise.
41781         * lib/unistdio/ulc-sprintf.c: Likewise.
41782         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41783         * lib/unistdio/ulc-vasprintf.c: Likewise.
41784         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41785         * lib/unistdio/ulc-vsprintf.c: Likewise.
41786         * lib/unistr.h: Likewise.
41787         * lib/unistr/u-cpy-alloc.h: Likewise.
41788         * lib/unistr/u-cpy.h: Likewise.
41789         * lib/unistr/u-endswith.h: Likewise.
41790         * lib/unistr/u-move.h: Likewise.
41791         * lib/unistr/u-set.h: Likewise.
41792         * lib/unistr/u-startswith.h: Likewise.
41793         * lib/unistr/u-stpcpy.h: Likewise.
41794         * lib/unistr/u-stpncpy.h: Likewise.
41795         * lib/unistr/u-strcat.h: Likewise.
41796         * lib/unistr/u-strcpy.h: Likewise.
41797         * lib/unistr/u-strcspn.h: Likewise.
41798         * lib/unistr/u-strdup.h: Likewise.
41799         * lib/unistr/u-strlen.h: Likewise.
41800         * lib/unistr/u-strncat.h: Likewise.
41801         * lib/unistr/u-strncpy.h: Likewise.
41802         * lib/unistr/u-strnlen.h: Likewise.
41803         * lib/unistr/u-strpbrk.h: Likewise.
41804         * lib/unistr/u-strspn.h: Likewise.
41805         * lib/unistr/u-strstr.h: Likewise.
41806         * lib/unistr/u-strtok.h: Likewise.
41807         * lib/unistr/u16-check.c: Likewise.
41808         * lib/unistr/u16-chr.c: Likewise.
41809         * lib/unistr/u16-cmp.c: Likewise.
41810         * lib/unistr/u16-cpy-alloc.c: Likewise.
41811         * lib/unistr/u16-cpy.c: Likewise.
41812         * lib/unistr/u16-endswith.c: Likewise.
41813         * lib/unistr/u16-mblen.c: Likewise.
41814         * lib/unistr/u16-mbsnlen.c: Likewise.
41815         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41816         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41817         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41818         * lib/unistr/u16-mbtouc.c: Likewise.
41819         * lib/unistr/u16-mbtoucr.c: Likewise.
41820         * lib/unistr/u16-move.c: Likewise.
41821         * lib/unistr/u16-next.c: Likewise.
41822         * lib/unistr/u16-prev.c: Likewise.
41823         * lib/unistr/u16-set.c: Likewise.
41824         * lib/unistr/u16-startswith.c: Likewise.
41825         * lib/unistr/u16-stpcpy.c: Likewise.
41826         * lib/unistr/u16-stpncpy.c: Likewise.
41827         * lib/unistr/u16-strcat.c: Likewise.
41828         * lib/unistr/u16-strchr.c: Likewise.
41829         * lib/unistr/u16-strcmp.c: Likewise.
41830         * lib/unistr/u16-strcpy.c: Likewise.
41831         * lib/unistr/u16-strcspn.c: Likewise.
41832         * lib/unistr/u16-strdup.c: Likewise.
41833         * lib/unistr/u16-strlen.c: Likewise.
41834         * lib/unistr/u16-strmblen.c: Likewise.
41835         * lib/unistr/u16-strmbtouc.c: Likewise.
41836         * lib/unistr/u16-strncat.c: Likewise.
41837         * lib/unistr/u16-strncmp.c: Likewise.
41838         * lib/unistr/u16-strncpy.c: Likewise.
41839         * lib/unistr/u16-strnlen.c: Likewise.
41840         * lib/unistr/u16-strpbrk.c: Likewise.
41841         * lib/unistr/u16-strrchr.c: Likewise.
41842         * lib/unistr/u16-strspn.c: Likewise.
41843         * lib/unistr/u16-strstr.c: Likewise.
41844         * lib/unistr/u16-strtok.c: Likewise.
41845         * lib/unistr/u16-to-u32.c: Likewise.
41846         * lib/unistr/u16-to-u8.c: Likewise.
41847         * lib/unistr/u16-uctomb-aux.c: Likewise.
41848         * lib/unistr/u16-uctomb.c: Likewise.
41849         * lib/unistr/u32-check.c: Likewise.
41850         * lib/unistr/u32-chr.c: Likewise.
41851         * lib/unistr/u32-cmp.c: Likewise.
41852         * lib/unistr/u32-cpy-alloc.c: Likewise.
41853         * lib/unistr/u32-cpy.c: Likewise.
41854         * lib/unistr/u32-endswith.c: Likewise.
41855         * lib/unistr/u32-mblen.c: Likewise.
41856         * lib/unistr/u32-mbsnlen.c: Likewise.
41857         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41858         * lib/unistr/u32-mbtouc.c: Likewise.
41859         * lib/unistr/u32-mbtoucr.c: Likewise.
41860         * lib/unistr/u32-move.c: Likewise.
41861         * lib/unistr/u32-next.c: Likewise.
41862         * lib/unistr/u32-prev.c: Likewise.
41863         * lib/unistr/u32-set.c: Likewise.
41864         * lib/unistr/u32-startswith.c: Likewise.
41865         * lib/unistr/u32-stpcpy.c: Likewise.
41866         * lib/unistr/u32-stpncpy.c: Likewise.
41867         * lib/unistr/u32-strcat.c: Likewise.
41868         * lib/unistr/u32-strchr.c: Likewise.
41869         * lib/unistr/u32-strcmp.c: Likewise.
41870         * lib/unistr/u32-strcpy.c: Likewise.
41871         * lib/unistr/u32-strcspn.c: Likewise.
41872         * lib/unistr/u32-strdup.c: Likewise.
41873         * lib/unistr/u32-strlen.c: Likewise.
41874         * lib/unistr/u32-strmblen.c: Likewise.
41875         * lib/unistr/u32-strmbtouc.c: Likewise.
41876         * lib/unistr/u32-strncat.c: Likewise.
41877         * lib/unistr/u32-strncmp.c: Likewise.
41878         * lib/unistr/u32-strncpy.c: Likewise.
41879         * lib/unistr/u32-strnlen.c: Likewise.
41880         * lib/unistr/u32-strpbrk.c: Likewise.
41881         * lib/unistr/u32-strrchr.c: Likewise.
41882         * lib/unistr/u32-strspn.c: Likewise.
41883         * lib/unistr/u32-strstr.c: Likewise.
41884         * lib/unistr/u32-strtok.c: Likewise.
41885         * lib/unistr/u32-to-u16.c: Likewise.
41886         * lib/unistr/u32-to-u8.c: Likewise.
41887         * lib/unistr/u32-uctomb.c: Likewise.
41888         * lib/unistr/u8-check.c: Likewise.
41889         * lib/unistr/u8-chr.c: Likewise.
41890         * lib/unistr/u8-cmp.c: Likewise.
41891         * lib/unistr/u8-cpy-alloc.c: Likewise.
41892         * lib/unistr/u8-cpy.c: Likewise.
41893         * lib/unistr/u8-endswith.c: Likewise.
41894         * lib/unistr/u8-mblen.c: Likewise.
41895         * lib/unistr/u8-mbsnlen.c: Likewise.
41896         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41897         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41898         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41899         * lib/unistr/u8-mbtouc.c: Likewise.
41900         * lib/unistr/u8-mbtoucr.c: Likewise.
41901         * lib/unistr/u8-move.c: Likewise.
41902         * lib/unistr/u8-next.c: Likewise.
41903         * lib/unistr/u8-prev.c: Likewise.
41904         * lib/unistr/u8-set.c: Likewise.
41905         * lib/unistr/u8-startswith.c: Likewise.
41906         * lib/unistr/u8-stpcpy.c: Likewise.
41907         * lib/unistr/u8-stpncpy.c: Likewise.
41908         * lib/unistr/u8-strcat.c: Likewise.
41909         * lib/unistr/u8-strchr.c: Likewise.
41910         * lib/unistr/u8-strcmp.c: Likewise.
41911         * lib/unistr/u8-strcpy.c: Likewise.
41912         * lib/unistr/u8-strcspn.c: Likewise.
41913         * lib/unistr/u8-strdup.c: Likewise.
41914         * lib/unistr/u8-strlen.c: Likewise.
41915         * lib/unistr/u8-strmblen.c: Likewise.
41916         * lib/unistr/u8-strmbtouc.c: Likewise.
41917         * lib/unistr/u8-strncat.c: Likewise.
41918         * lib/unistr/u8-strncmp.c: Likewise.
41919         * lib/unistr/u8-strncpy.c: Likewise.
41920         * lib/unistr/u8-strnlen.c: Likewise.
41921         * lib/unistr/u8-strpbrk.c: Likewise.
41922         * lib/unistr/u8-strrchr.c: Likewise.
41923         * lib/unistr/u8-strspn.c: Likewise.
41924         * lib/unistr/u8-strstr.c: Likewise.
41925         * lib/unistr/u8-strtok.c: Likewise.
41926         * lib/unistr/u8-to-u16.c: Likewise.
41927         * lib/unistr/u8-to-u32.c: Likewise.
41928         * lib/unistr/u8-uctomb-aux.c: Likewise.
41929         * lib/unistr/u8-uctomb.c: Likewise.
41930         * lib/unitypes.h: Likewise.
41931         * lib/uniwidth.h: Likewise.
41932         * lib/uniwidth/cjk.h: Likewise.
41933         * lib/uniwidth/u16-strwidth.c: Likewise.
41934         * lib/uniwidth/u16-width.c: Likewise.
41935         * lib/uniwidth/u32-strwidth.c: Likewise.
41936         * lib/uniwidth/u32-width.c: Likewise.
41937         * lib/uniwidth/u8-strwidth.c: Likewise.
41938         * lib/uniwidth/u8-width.c: Likewise.
41939         * lib/uniwidth/width.c: Likewise.
41940
41941 2007-10-07  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41944         The file is still under LGPL (see modules/inttypes).
41945
41946 2007-10-06  Bruno Haible  <bruno@clisp.org>
41947
41948         * modules/trunc (Dependencies): Add 'extensions'.
41949         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41950         Reported by Ben Pfaff <blp@gnu.org>.
41951
41952 2007-10-06  Bruno Haible  <bruno@clisp.org>
41953
41954         * modules/freopen-tests: New file.
41955         * tests/test-freopen.c: New file.
41956
41957         * modules/fopen-tests: New file.
41958         * tests/test-fopen.c: New file.
41959
41960         * modules/fopen: New file.
41961         * lib/fopen.c: New file.
41962         * m4/fopen.m4: New file.
41963         * modules/freopen: New file.
41964         * lib/freopen.c: New file.
41965         * m4/freopen.m4: New file.
41966         * lib/stdio.in.h (fopen, freopen): New declarations.
41967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41968         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41969         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41970         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41971         * doc/functions/fopen.texi: Mention the 'fopen' module.
41972         * doc/functions/freopen.texi: Mention the 'freopen' module.
41973
41974 2007-10-06  Bruno Haible  <bruno@clisp.org>
41975
41976         * modules/open-tests: New file.
41977         * tests/test-open.c: New file.
41978
41979         * modules/open: New file.
41980         * lib/open.c: New file.
41981         * m4/open.m4: New file.
41982         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41983         lib/open.c does.
41984         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41985         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41986         macros.
41987         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41988         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41989         REPLACE_OPEN.
41990         * doc/functions/open.texi: Mention the 'open' module.
41991
41992 2007-10-04  Bruno Haible  <bruno@clisp.org>
41993
41994         * modules/ceill-tests: New file.
41995         * tests/test-ceill.c: New file.
41996
41997         * modules/ceill: New file.
41998         * lib/ceill.c: Replace entire file.
41999         * m4/ceill.m4: New file.
42000         * lib/math.in.h (ceill): Replace declaration.
42001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
42002         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
42003         * doc/functions/ceill.texi: Mention the 'ceill' module.
42004         * modules/mathl (Files): Remove lib/ceill.c.
42005         (Depends-on): Add ceill.
42006
42007 2007-10-04  Bruno Haible  <bruno@clisp.org>
42008
42009         * modules/ceilf-tests: New file.
42010         * tests/test-ceilf.c: New file.
42011
42012         * modules/ceilf: New file.
42013         * lib/ceil.c: New file.
42014         * lib/ceilf.c: New file.
42015         * m4/ceilf.m4: New file.
42016         * lib/math.in.h (ceilf): New declaration.
42017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
42018         HAVE_DECL_CEILF.
42019         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
42020         HAVE_DECL_CEILF.
42021         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
42022
42023 2007-10-04  Bruno Haible  <bruno@clisp.org>
42024
42025         * modules/floorl-tests: New file.
42026         * tests/test-floorl.c: New file.
42027
42028         * modules/floorl: New file.
42029         * lib/floorl.c: Replace entire file.
42030         * m4/floorl.m4: New file.
42031         * lib/math.in.h (floorl): Replace declaration.
42032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
42033         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
42034         * doc/functions/floorl.texi: Mention the 'floorl' module.
42035         * modules/mathl (Files): Remove lib/floorl.c.
42036         (Depends-on): Add floorl.
42037
42038 2007-10-04  Bruno Haible  <bruno@clisp.org>
42039
42040         * modules/floorf-tests: New file.
42041         * tests/test-floorf.c: New file.
42042
42043         * modules/floorf: New file.
42044         * lib/floor.c: New file.
42045         * lib/floorf.c: New file.
42046         * m4/floorf.m4: New file.
42047         * lib/math.in.h (floorf): New declaration.
42048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
42049         HAVE_DECL_FLOORF.
42050         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
42051         HAVE_DECL_FLOORF.
42052         * doc/functions/floorf.texi: Mention the 'floorf' module.
42053
42054 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
42055             Bruno Haible  <bruno@clisp.org>
42056
42057         Advertise for the Git server instead of the CVS server.
42058         * doc/gnulib-intro.texi (Steady Development): Mention the Git
42059         repository instead of the CVS one.
42060         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
42061         about all VCS systems generically.
42062         * doc/gnulib.texi (Introduction): Capitalize `Git'.
42063
42064 2007-10-04  Bruno Haible  <bruno@clisp.org>
42065
42066         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
42067         means.
42068         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
42069
42070 2007-10-04  Bruno Haible  <bruno@clisp.org>
42071
42072         * modules/truncl-tests: New file.
42073         * tests/test-truncl.c: New file.
42074
42075         * modules/truncl: New file.
42076         * lib/truncl.c: New file.
42077         * m4/truncl.m4: New file.
42078         * lib/math.in.h (truncl): New declaration.
42079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
42080         HAVE_DECL_TRUNCL.
42081         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
42082         HAVE_DECL_TRUNCL.
42083         * doc/functions/truncl.texi: Mention the 'truncl' module.
42084
42085 2007-10-04  Bruno Haible  <bruno@clisp.org>
42086
42087         * modules/truncf-tests: New file.
42088         * tests/test-truncf.c: New file.
42089
42090         * modules/truncf: New file.
42091         * lib/trunc.c: Make paramerizable through USE_* macros.
42092         * lib/truncf.c: New file.
42093         * m4/truncf.m4: New file.
42094         * lib/math.in.h (truncf): New declaration.
42095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
42096         HAVE_DECL_TRUNCF.
42097         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
42098         HAVE_DECL_TRUNCF.
42099         * doc/functions/truncf.texi: Mention the 'truncf' module.
42100
42101 2007-10-03  Bruno Haible  <bruno@clisp.org>
42102
42103         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42104         augmentation also for tests modules.
42105         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
42106         * modules/atexit-tests (Makefile.am): Likewise.
42107         * modules/binary-io-tests (Makefile.am): Likewise.
42108         * modules/c-strcase-tests (Makefile.am): Likewise.
42109         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
42110         * modules/canonicalize-tests (Makefile.am): Likewise.
42111         * modules/closein-tests (Makefile.am): Likewise.
42112         * modules/fprintf-posix-tests (Makefile.am): Likewise.
42113         * modules/freadahead-tests (Makefile.am): Likewise.
42114         * modules/fseek-tests (Makefile.am): Likewise.
42115         * modules/fseeko-tests (Makefile.am): Likewise.
42116         * modules/ftell-tests (Makefile.am): Likewise.
42117         * modules/ftello-tests (Makefile.am): Likewise.
42118         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
42119         * modules/isnanl-tests (Makefile.am): Likewise.
42120         * modules/lseek-tests (Makefile.am): Likewise.
42121         * modules/mbscasecmp-tests (Makefile.am): Likewise.
42122         * modules/mbscasestr-tests (Makefile.am): Likewise.
42123         * modules/mbschr-tests (Makefile.am): Likewise.
42124         * modules/mbscspn-tests (Makefile.am): Likewise.
42125         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
42126         * modules/mbspbrk-tests (Makefile.am): Likewise.
42127         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
42128         * modules/mbsrchr-tests (Makefile.am): Likewise.
42129         * modules/mbsspn-tests (Makefile.am): Likewise.
42130         * modules/mbsstr-tests (Makefile.am): Likewise.
42131         * modules/printf-posix-tests (Makefile.am): Likewise.
42132         * modules/snprintf-posix-tests (Makefile.am): Likewise.
42133         * modules/sprintf-posix-tests (Makefile.am): Likewise.
42134         * modules/tsearch-tests (Makefile.am): Likewise.
42135         * modules/uniname/uniname-tests (Makefile.am): Likewise.
42136         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
42137         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
42138         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
42139         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
42140         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
42141         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
42142         * modules/vprintf-posix-tests (Makefile.am): Likewise.
42143         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
42144         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
42145         * modules/xstrtoimax-tests (Makefile.am): Likewise.
42146         * modules/xstrtol-tests (Makefile.am): Likewise.
42147         * modules/xstrtoumax-tests (Makefile.am): Likewise.
42148         * modules/yesno-tests (Makefile.am): Likewise.
42149
42150 2007-10-03  Bruno Haible  <bruno@clisp.org>
42151
42152         * modules/trunc-tests: New file.
42153         * tests/test-trunc.c: New file.
42154
42155         * modules/trunc: New file.
42156         * lib/trunc.c: New file.
42157         * m4/trunc.m4: New file.
42158         * lib/math.in.h (trunc): New declaration.
42159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
42160         HAVE_DECL_TRUNC.
42161         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
42162         HAVE_DECL_TRUNC.
42163         * doc/functions/trunc.texi: Mention the 'trunc' module.
42164
42165 2007-10-03  Bruno Haible  <bruno@clisp.org>
42166
42167         * tests/test-fpending.c: New file, mostly copied
42168         from coreutils/lib/t-fpending.c.
42169         * modules/fpending-tests: New file.
42170
42171 2007-10-03  Bruno Haible  <bruno@clisp.org>
42172
42173         Port the stdio extensions to QNX (untested).
42174         * lib/fseterr.c (fseterr): Add support for QNX.
42175         * lib/fbufmode.c (fbufmode): Likewise.
42176         * lib/freadable.c (freadable): Likewise.
42177         * lib/fwritable.c (fwritable): Likewise.
42178         * lib/freading.c (freading): Likewise.
42179         * lib/fwriting.c (fwriting): Likewise.
42180         * lib/freadahead.c (freadahed): Likewise.
42181         * lib/fpurge.c (fpurge): Likewise.
42182         * lib/fseeko.c (rpl_fseeko): Likewise.
42183
42184 2007-10-03  Bruno Haible  <bruno@clisp.org>
42185             Jim Meyering  <jim@meyering.net>
42186             Eric Blake  <ebb9@byu.net>
42187
42188         * doc/relocatable.texi: Use @command instead of @program.
42189
42190 2007-10-02  Jim Meyering  <jim@meyering.net>
42191
42192         Perform one more "_.h" -> ".in.h" substitution.
42193         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
42194         instead of unistd_.h here, too.
42195
42196 2007-10-01  Bruno Haible  <bruno@clisp.org>
42197
42198         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
42199         Needed for the alloca-opt module.
42200
42201 2007-09-30  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/alloca.in.h: Renamed from lib/alloca_.h.
42204         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
42205         alloca_.h.
42206         * lib/argz.in.h: Renamed from lib/argz_.h.
42207         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
42208         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
42209         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
42210         byteswap_.h.
42211         * lib/dirent.in.h: Renamed from lib/dirent_.h.
42212         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
42213         dirent_.h.
42214         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
42215         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
42216         fcntl_.h.
42217         * lib/float.in.h: Renamed from lib/float_.h.
42218         * modules/float (Files, Makefile.am): Use float.in.h instead of
42219         float_.h.
42220         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
42221         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
42222         fnmatch_.h.
42223         * lib/getopt.in.h: Renamed from lib/getopt_.h.
42224         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
42225         getopt_.h.
42226         * lib/glob.in.h: Renamed from lib/glob_.h.
42227         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
42228         * lib/iconv.in.h: Renamed from lib/iconv_.h.
42229         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
42230         iconv_.h.
42231         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
42232         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
42233         inttypes_.h.
42234         * lib/locale.in.h: Renamed from lib/locale_.h.
42235         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
42236         locale_.h.
42237         * lib/math.in.h: Renamed from lib/math_.h.
42238         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
42239         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
42240         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
42241         of netinet_in_.h. Add dependency.
42242         * lib/poll.in.h: Renamed from lib/poll_.h.
42243         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
42244         * lib/search.in.h: Renamed from lib/search_.h.
42245         * modules/search (Files, Makefile.am): Use search.in.h instead of
42246         search_.h.
42247         * lib/signal.in.h: Renamed from lib/signal_.h.
42248         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
42249         _signal.h.
42250         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
42251         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
42252         stdbool_.h.
42253         * lib/stdint.in.h: Renamed from lib/stdint_.h.
42254         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
42255         stdint_.h.
42256         * lib/stdio.in.h: Renamed from lib/stdio_.h.
42257         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
42258         stdio_.h.
42259         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
42260         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
42261         stdlib_.h.
42262         * lib/string.in.h: Renamed from lib/string_.h.
42263         * modules/string (Files, Makefile.am): Use string.in.h instead of
42264         string_.h.
42265         * doc/gnulib-tool.texi (Initial import): Update.
42266         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
42267         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
42268         of sys_select_.h. Add dependency.
42269         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
42270         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
42271         of sys_socket_.h.
42272         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
42273         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
42274         sys_stat_.h.
42275         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
42276         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
42277         sys_time_.h.
42278         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
42279         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
42280         sysexits_.h.
42281         * lib/time.in.h: Renamed from lib/time_.h.
42282         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
42283         * lib/unistd.in.h: Renamed from lib/unistd_.h.
42284         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
42285         unistd_.h.
42286         * lib/wchar.in.h: Renamed from lib/wchar_.h.
42287         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
42288         wchar_.h.
42289         * lib/wctype.in.h: Renamed from lib/wctype_.h.
42290         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
42291         wctype_.h.
42292         * build-aux/bootstrap (slurp): Update.
42293         * lib/.cppi-disable: Update.
42294
42295 2007-09-30  Bruno Haible  <bruno@clisp.org>
42296
42297         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
42298         Needed on BeOS.
42299
42300 2007-09-30  Bruno Haible  <bruno@clisp.org>
42301
42302         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
42303
42304 2007-09-29  Bruno Haible  <bruno@clisp.org>
42305
42306         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
42307
42308 2007-09-29  Bruno Haible  <bruno@clisp.org>
42309
42310         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
42311         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
42312         * build-aux/install-reloc: Compile also areadlink.c.
42313         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
42314
42315 2007-09-29  Bruno Haible  <bruno@clisp.org>
42316
42317         * gnulib-tool (func_emit_initmacro_done): Indentation.
42318
42319 2007-09-29  Bruno Haible  <bruno@clisp.org>
42320
42321         * README: Add CVS checkout update instructions.
42322         Info from Bob Proulx <bob@proulx.com>.
42323
42324 2007-09-28  Eric Blake  <ebb9@byu.net>
42325
42326         Provide move-if-change.
42327         * build-aux/move-if-change: New file, based on best practice
42328         rather than any canonical upstream location.
42329
42330 2007-09-28  Jim Meyering  <jim@meyering.net>
42331
42332         Fix canonicalize loop-detection corner case.
42333         Do not attempt to stat the symlink values stored via seen_triple.
42334         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
42335         on linux-2.6.18, (but not 2.6.22).
42336         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
42337         triple_compare.  The former compares dev,ino,filename, while the latter
42338         would actually stat dirname(filename) when dev and ino were equal.
42339         * lib/hash-triple.c: Install <string.h>.
42340         (STREQ): Define.
42341         (triple_compare_ino_str): New function.
42342         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
42343
42344 2007-09-28  Eric Blake  <ebb9@byu.net>
42345
42346         Enforce that AC_REPLACE_FUNCS files exist.
42347         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
42348         override check for typos.
42349
42350         Fix test-closein on Solaris 10.
42351         * tests/test-closein.c (main): Don't assume stdin can be inherited
42352         closed on all systems.
42353         * tests/test-closein.sh: Likewise.
42354         Reported by Piotr Tarnowski.
42355
42356 2007-09-28  Jim Meyering  <jim@meyering.net>
42357
42358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
42359
42360 2007-09-27  Jim Meyering  <jim@meyering.net>
42361
42362         canonicalize: Avoid a false-positive cycle failure.
42363         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
42364         Sort.  Remove cycle-check.
42365         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
42366         not cycle-check.h.
42367         (seen_triple): New function.
42368         (canonicalize_filename_mode): Use it instead of cycle-check.
42369         * tests/test-canonicalize.c: Add a test for this bug.
42370         * tests/test-canonicalize.sh: Set up and run the test.
42371
42372         New module, file-set, from coreutils.
42373         * modules/file-set: Define it.
42374         * lib/file-set.c, lib/file-set.h: Implement.
42375
42376         New module, hash-triple, from coreutils.
42377         * modules/hash-triple: Define it.
42378         * lib/hash-triple.c, lib/hash-triple.h: Implement.
42379
42380 2007-09-25  Eric Blake  <ebb9@byu.net>
42381
42382         Fix strerror on Interix.
42383         * lib/string_.h (strerror): Declare replacement.
42384         * doc/functions/strerror.texi (strerror): Document the Interix
42385         shortcoming.
42386         * modules/string (Makefile.am): Support new hooks.
42387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
42388         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
42389         gl_FUNC_STRERROR_SEPARATE.
42390         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
42391         * lib/strerror.c (rpl_strerror): Provide replacement.
42392         * modules/strerror (Depends-on): Add string.
42393         (configure.ac): Detect use of module.
42394         * tests/test-strerror.c: New file.
42395         * modules/strerror-tests: New test module.
42396         * modules/argp (Depends-on): Add strerror.
42397         * modules/error (Depends-on): Likewise.
42398         Reported by Martin Koeppe.
42399
42400 2007-09-24  Bruno Haible  <bruno@clisp.org>
42401
42402         * README: Update git instructions.
42403
42404 2007-09-24  Eric Blake  <ebb9@byu.net>
42405
42406         Revert fpending breakage from 2007-09-08.
42407         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
42408         __fpending.c.
42409
42410 2007-09-24  Jim Meyering  <jim@meyering.net>
42411
42412         filenamecat.c: Add a test.
42413         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
42414         showing how the function works when DIR is the empty string.
42415
42416 2007-09-21  Simon Josefsson  <simon@josefsson.org>
42417
42418         * tests/test-canonicalize.sh: Turn on executable bit.
42419
42420 2007-09-19  Eric Blake  <ebb9@byu.net>
42421
42422         * README: Update CVS instructions.
42423
42424 2007-09-18  Bruno Haible  <bruno@clisp.org>
42425
42426         * modules/areadlink: New file.
42427         * lib/areadlink.h (areadlink): New declaration.
42428         * lib/areadlink.c: New file, based on lib/xreadlink.c.
42429
42430 2007-09-17  Jim Meyering  <jim@meyering.net>
42431
42432         * lib/savewd.c (ESTALE) [!defined]: Define.
42433         Reported to be required on Interix by Martin Koeppe.
42434
42435 2007-09-17  Bruno Haible  <bruno@clisp.org>
42436
42437         * gnulib-tool (func_version): Use $version.
42438
42439 2007-09-16  Bruno Haible  <bruno@clisp.org>
42440
42441         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
42442         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
42443         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
42444         Reported by Greg Schafer <gschafer@zip.com.au>.
42445
42446 2007-09-15  Bruno Haible  <bruno@clisp.org>
42447
42448         * gnulib-tool (sed): Try a little harder to make bash understand the
42449         alias.
42450         Reported by Bruce Korb <bruce.korb@gmail.com>.
42451
42452 2007-09-13  Eric Blake  <ebb9@byu.net>
42453
42454         * ChangeLog: Remove conflict markers.
42455
42456 2007-09-13  Simon Josefsson  <simon@josefsson.org>
42457
42458         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
42459         Reported by Bruno Haible <bruno@clisp.org>.
42460
42461 2007-09-12  Bruno Haible  <bruno@clisp.org>
42462
42463         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
42464         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
42465         is not defined.
42466
42467 2007-09-12  Eric Blake  <ebb9@byu.net>
42468
42469         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
42470         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
42471         Autoconf definition.
42472         * modules/euidaccess (Depends-on): Add extensions, for
42473         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
42474         * modules/fnmatch (Depends-on): Likewise.
42475         * modules/getaddrinfo (Depends-on): Likewise.
42476         * modules/getdelim (Depends-on): Likewise.
42477         * modules/getline (Depends-on): Likewise.
42478         * modules/getsubopt (Depends-on): Likewise.
42479         * modules/gettext (Depends-on): Likewise.
42480         * modules/group-member (Depends-on): Likewise.
42481         * modules/mbchar (Depends-on): Likewise.
42482         * modules/memmem (Depends-on): Likewise.
42483         * modules/mempcpy (Depends-on): Likewise.
42484         * modules/memrchr (Depends-on): Likewise.
42485         * modules/pagealign_alloc (Depends-on): Likewise.
42486         * modules/readutmp (Depends-on): Likewise.
42487         * modules/stpcpy (Depends-on): Likewise.
42488         * modules/stpncpy (Depends-on): Likewise.
42489         * modules/strchrnul (Depends-on): Likewise.
42490         * modules/strndup (Depends-on): Likewise.
42491         * modules/strsep (Depends-on): Likewise.
42492         * modules/strverscmp (Depends-on): Likewise.
42493         * modules/vasprintf (Depends-on): Likewise.
42494         * modules/wcwidth (Depends-on): Likewise.
42495         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
42496         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
42497         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
42498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
42499         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42500         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42501         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
42502         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42503         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
42504         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
42505         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42506         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42507         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42508         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
42509         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
42510         * m4/readutmp.m4 (gl_READUTMP): Likewise.
42511         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42512         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42513         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42514         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42515         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42516         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42517         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42518         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
42519         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
42520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42521         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
42522         so that lock.m4 can be used in gettext without extensions module.
42523
42524 2007-09-11  Bruno Haible  <bruno@clisp.org>
42525
42526         * m4/isc-posix.m4: Remove file.
42527         Suggested by Eric Blake.
42528
42529 2007-09-11  Eric Blake  <ebb9@byu.net>
42530
42531         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
42532
42533 2007-09-10  Bruno Haible  <bruno@clisp.org>
42534
42535         * posix-modules: Fix typo in error message.
42536         Reported by Matt <mkraai@beckman.com>.
42537
42538 2007-09-09  Bruno Haible  <bruno@clisp.org>
42539
42540         * doc/functions/getdelim.texi: Update list of platforms lacking the
42541         function.
42542         * doc/functions/getline.texi: Likewise.
42543
42544 2007-09-09  Jim Meyering  <jim@meyering.net>
42545
42546         * lib/hash.c (hash_initialize): Detect calloc failure.
42547         Reported by Bruno Haible.
42548
42549 2007-09-09  Bruno Haible  <bruno@clisp.org>
42550
42551         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
42552         malloc or realloc fails.
42553
42554 2007-09-09  Bruno Haible  <bruno@clisp.org>
42555
42556         * modules/getcwd (Depends-on): Add malloc-posix.
42557         * modules/glob (Depends-on): Likewise.
42558         * modules/putenv (Depends-on): Likewise.
42559         * modules/strdup (Depends-on): Likewise.
42560         * modules/getdelim (Depends-on): Add realloc-posix.
42561         * modules/read-file (Depends-on): Likewise.
42562
42563 2007-09-09  Bruno Haible  <bruno@clisp.org>
42564
42565         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
42566         (gl_FUNC_MALLOC_POSIX): Require it.
42567         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
42568         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
42569         * modules/realloc (Files): Add m4/malloc.m4.
42570         * modules/calloc (Files): Likewise.
42571
42572 2007-09-09  Bruno Haible  <bruno@clisp.org>
42573
42574         * modules/malloc-posix: New file.
42575         * modules/malloc (Depends-on): Add malloc-posix.
42576         * lib/malloc.c: Include errno.h.
42577         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42578         and a POSIX-compatible malloc into a single function. Set ENOMEM
42579         when returning NULL.
42580         * m4/malloc.m4: New file.
42581         * doc/functions/malloc.texi: Mention the malloc-posix module.
42582         * lib/stdlib_.h (malloc): New declaration.
42583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42584         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42585         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42586         and HAVE_MALLOC_POSIX.
42587
42588 2007-09-09  Bruno Haible  <bruno@clisp.org>
42589
42590         * modules/realloc-posix: New file.
42591         * modules/realloc (Depends-on): Add realloc-posix.
42592         * lib/realloc.c: Include errno.h.
42593         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42594         and a POSIX-compatible realloc into a single function. Set ENOMEM
42595         when returning NULL.
42596         * m4/realloc.m4: New file.
42597         * doc/functions/realloc.texi: Mention the realloc-posix module.
42598         * lib/stdlib_.h (realloc): New declaration.
42599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42600         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42601         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42602         and HAVE_REALLOC_POSIX.
42603
42604 2007-09-09  Bruno Haible  <bruno@clisp.org>
42605
42606         * modules/calloc-posix: New file.
42607         * modules/calloc (Depends-on): Add calloc-posix.
42608         * lib/calloc.c: Include errno.h.
42609         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
42610         and a POSIX-compatible calloc into a single function. Set ENOMEM
42611         when returning NULL.
42612         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
42613         * doc/functions/calloc.texi: Mention the calloc-posix module.
42614         * lib/stdlib_.h (calloc): New declaration.
42615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42616         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
42617         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
42618         and HAVE_CALLOC_POSIX.
42619
42620 2007-09-09  Bruno Haible  <bruno@clisp.org>
42621
42622         Allow for modules to show an arbitrary notice.
42623         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
42624         * gnulib-tool: New option --extract-notice.
42625         (func_usage): Document it.
42626         (sed_extract_prog): Update.
42627         (func_get_notice): New function.
42628         (func_modules_notice): New function.
42629         (func_import, func_create_testdir): Invoke it.
42630         Suggested by Jim Meyering.
42631
42632 2007-09-09  Bruno Haible  <bruno@clisp.org>
42633
42634         * gnulib-tool: New options --verbose, --quiet.
42635         (func_usage): Document them.
42636         (verbose): New variable.
42637         (func_execute_command): New function.
42638         (func_import): Don't show the module list and the file list if
42639         $verbose < 0.
42640         (func_create_testdir): Likewise. Use func_execute_command.
42641         (func_create_megatestdir): Use func_execute_command.
42642
42643 2007-09-08  Bruno Haible  <bruno@clisp.org>
42644
42645         * gnulib-tool (func_import): Prefer rsync over wget when available,
42646         for fetching the PO files.
42647
42648 2007-09-08  Bruno Haible  <bruno@clisp.org>
42649
42650         * posix-modules: New file. Portions copied from gnulib-tool.
42651         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
42652
42653 2007-09-08  Jim Meyering  <jim@meyering.net>
42654
42655         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
42656         * lib/fpending.h: Rename from __fpending.h.
42657         * lib/fpending.c: Rename from __fpending.c.
42658         Include "fpending.h", not "__fpending.h".
42659         * lib/__fpending.h, lib/__fpending.c: Remove files.
42660         * modules/fpending (Files): Reflect new file names.
42661         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
42662
42663 2007-09-08  Bruno Haible  <bruno@clisp.org>
42664
42665         * m4/inttypes-h.m4: Remove stub file.
42666
42667 2007-09-07  Simon Josefsson  <simon@josefsson.org>
42668
42669         * doc/headers/stdint.texi: Discuss #include_next issue.
42670
42671 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42672
42673         * build-aux/bootstrap: Remove obsolete comment about wget --help.
42674
42675 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42676
42677         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
42678         in variable name.
42679
42680 2007-09-03  Jim Meyering  <jim@meyering.net>
42681
42682         New module: git-version-gen.
42683         * modules/git-version-gen: New file.
42684
42685         Import changes from coreutils for bootstrap script.
42686
42687         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
42688
42689         bootstrap: uses rsync to download the .po files
42690         * build-aux/bootstrap (po_download_command_format): New global.
42691         (download_po_files): Use rsync.
42692         (update_po_files): Don't remove .po files after download,
42693         so future rsync runs can take advantage of the copies.
42694
42695         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
42696
42697         Solve the unnecessary-.po-file-regeneration problem once and for all.
42698         * build-aux/bootstrap (download_po_files): New function, renamed from
42699         get_translations.  Now, downloads, but doesn't update LINGUAS.
42700         (update_po_files): New function.
42701
42702         bootstrap: Ignore more.
42703         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
42704         uniwidth to e.g., lib/.gitignore.
42705         (slurp): Handle the sys_stat_.h -> sys mapping, too.
42706
42707         * build-aux/bootstrap: New setting: vc_ignore.
42708         (insert_sorted_if_absent): Create $file if absent.
42709         Adapt to new, possibly empty, list: $vc_ignore.
42710
42711         bootstrap: generate more ignorable names
42712         * build-aux/bootstrap (slurp): When generating ignorable names,
42713         also map .sin to .sed, .gperf to .c, and .y to .c.
42714
42715 2007-09-03  Jim Meyering  <jim@meyering.net>
42716
42717         * build-aux/git-version-gen: New file, from coreutils.  For details, see
42718         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
42719
42720 2007-09-02  Bruno Haible  <bruno@clisp.org>
42721
42722         Fix mis-recognition of 'mcs' on QNX 6.
42723         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
42724         output contains the string "Mono".
42725         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
42726         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
42727
42728 2007-09-01  Bruno Haible  <bruno@clisp.org>
42729
42730         Fix collision between uniwidth/* and linebreak modules.
42731         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42732         u32_width): Remove declarations.
42733         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42734         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42735         streq3, streq2, streq1, streq0): Remove functions.
42736         (STREQ): Remove macro.
42737         (is_cjk_encoding): Remove function.
42738         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42739         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42740         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42741         * NEWS: Document the change.
42742
42743 2007-09-01  Bruno Haible  <bruno@clisp.org>
42744
42745         * lib/streq.h: Add double-inclusion guard.
42746
42747 2007-09-01  Karl Berry  <karl@gnu.org>
42748
42749         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42750
42751 2007-08-28  Jim Meyering  <jim@meyering.net>
42752
42753         Rename mreadlink_with_size to areadlink_with_size.
42754         * NEWS: Document the change.
42755         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42756         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42757         * lib/mreadlink.h: Rename this to...
42758         * lib/areadlink.h: ...this.
42759         * modules/mreadlink-with-size: Rename this to...
42760         * modules/areadlink-with-size: ...this.
42761         * lib/canonicalize.c: Reflect the renaming.
42762         * modules/canonicalize: Likewise.
42763
42764 2007-08-26  Bruno Haible  <bruno@clisp.org>
42765
42766         * gnulib-tool (func_import): When deciding which files to remove,
42767         consider also dangling symbolic links.
42768         Reported by Eric Blake.
42769
42770 2007-08-26  Bruno Haible  <bruno@clisp.org>
42771
42772         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42773
42774 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42775
42776         * lib/readline.c: Don't include getline.h, the prototype is now
42777         found in stdio.h.
42778
42779 2007-08-23  Jim Meyering  <jim@meyering.net>
42780
42781         Getdelim touchup.
42782         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42783         around the funlockfile call, since funlockfile never sets errno.
42784         Don't set errno upon failed realloc.
42785
42786 2007-08-22  Eric Blake  <ebb9@byu.net>
42787
42788         Getline touchups.
42789         * lib/getdelim.c (getdelim): Revert regression that required *n to
42790         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42791         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42792         getdelim, rather than whether implementation is missing.
42793         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42794         * lib/stdio_.h (getline): Also declare if replacement is
42795         required.
42796         * doc/functions/getdelim.texi: New file.
42797         * doc/functions/getline.texi: Likewise.
42798         * doc/gnulib.texi (Function Substitutes): Add new files.
42799         Reported by Bruno Haible.
42800
42801 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42802
42803         * users.txt: Add Guile.
42804
42805 2007-08-22  Eric Blake  <ebb9@byu.net>
42806
42807         * tests/test-getdelim.c (main): Use remove, not unlink.
42808         * tests/test-getline.c (main): Likewise.
42809
42810         Move getline and getdelim into stdio.h, per POSIX 200x.
42811         * modules/getline (Files): Remove getline.h.
42812         (Depends-on): Add stdio.
42813         (configure.ac): Add module indicator.
42814         * modules/getdelim (Files): Remove getdelim.h.
42815         (Depends-on): Add stdio.
42816         (configure.ac): Add module indicator.
42817         * modules/stdio (Makefile.am): Work with new indicators.
42818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42819         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42820         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42821         * lib/getdelim.h: Delete.
42822         * lib/getline.h: Delete.
42823         * lib/stdio_.h (getdelim, getline): Declare.
42824         * modules/getdelim-tests: New module.
42825         * modules/getline-tests: Likewise.
42826         * tests/test-getdelim.c: New file.
42827         * tests/test-getline.c: Likewise.
42828         * NEWS: Document the change.
42829         * lib/getline.c: Update choice of header.
42830         * lib/csharpcomp.c: Likewise.
42831         * lib/getpass.c: Likewise.
42832         * lib/javacomp.c: Likewise.
42833         * lib/javaversion.c: Likewise.
42834         * lib/yesno.c: Likewise.
42835         * lib/getdelim.c: Likewise.
42836         (getdelim): Set errno on failure, and avoid memory leak.
42837
42838 2007-08-19  Bruno Haible  <bruno@clisp.org>
42839
42840         * modules/closein (Depends-on): Add freadahead.
42841         * lib/closein.c: Include freadahead.h.
42842         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42843         is zero.
42844
42845 2007-08-19  Bruno Haible  <bruno@clisp.org>
42846
42847         * modules/freadahead-tests: New file.
42848         * tests/test-freadahead.sh: New file.
42849         * tests/test-freadahead.c: New file.
42850
42851         * modules/freadahead: New file.
42852         * lib/freadahead.h: New file.
42853         * lib/freadahead.c: New file.
42854         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42855         fbufmode, fpurge, freadable, fwritable.
42856
42857 2007-08-19  Eric Blake  <ebb9@byu.net>
42858
42859         Test yesno in combination with closein.
42860         * lib/yesno.c (yesno): Document use of stdin.
42861         * modules/yesno-tests (Files): New module.
42862         * tests/test-yesno.c (main): New file.
42863         * tests/test-yesno.sh: Likewise.
42864
42865 2007-08-19  Bruno Haible  <bruno@clisp.org>
42866
42867         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42868         * lib/fseeko.c (rpl_fseeko): Likewise.
42869         * lib/fseterr.c (fseterr): Likewise.
42870
42871 2007-08-19  Bruno Haible  <bruno@clisp.org>
42872
42873         * tests/test-lseek.c (main): Disable a test for BeOS.
42874         * doc/functions/lseek.texi: Document the BeOS bug.
42875
42876 2007-08-19  Bruno Haible  <bruno@clisp.org>
42877             Eric Blake  <ebb9@byu.net>
42878
42879         * lib/lseek.c: Include <sys/stat.h>.
42880         (rpl_lseek): Add workaround code also for Unix platforms.
42881         Needed for BeOS.
42882         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42883         * doc/functions/lseek.texi: Document BeOS definiency.
42884
42885 2007-08-18  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/fstrcmp-tests: New file.
42888         * tests/test-fstrcmp.c: New file.
42889
42890 2007-08-18  Bruno Haible  <bruno@clisp.org>
42891
42892         * modules/fstrcmp: New file, from GNU gettext with modifications.
42893         * lib/fstrcmp.h: New file, from GNU gettext.
42894         * lib/fstrcmp.c: New file, from GNU gettext.
42895         * MODULES.html.sh (String handling): Add fstrcmp.
42896
42897 2007-08-18  Bruno Haible  <bruno@clisp.org>
42898
42899         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42900         'bool'.
42901         (diag, compareseq): Remove const from the ctxt argument.
42902         (USE_HEURISTIC): Undefine at the end.
42903
42904 2007-08-18  Jim Meyering  <jim@meyering.net>
42905
42906         New file: lib/idcache.h
42907         * NEWS: Mention the addition.
42908         * modules/idcache (Files): Add lib/idcache.h
42909         * lib/idcache.c: Include "idcache.h".
42910         Don't include <sys/types.h>.
42911         Add a FIXME comment.
42912         Move file-scoped "static" declarations to the top.
42913         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42914
42915 2007-08-17  Bruno Haible  <bruno@clisp.org>
42916         and Paul Eggert  <eggert@cs.ucla.edu>
42917
42918         * MODULES.html.sh: Add diffseq.
42919         * modules/diffseq: New file.
42920         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42921         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42922
42923 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42924
42925         Import changes from coreutils for bootstrap script.
42926
42927         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42928
42929         * build-aux/bootstrap (slurp): Work even in environments where
42930         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42931         current code does not slurp files whose names start with ".", and
42932         this looks like it might be a troublesome area.
42933
42934         2007-07-11  Jim Meyering  <jim@meyering.net>
42935
42936         If there's a GPL vN copyright comment, require that N == 3.
42937
42938         2007-07-08  Jim Meyering  <jim@meyering.net>
42939
42940         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42941         * build-aux/bootstrap (mam_template): Move definition out of loop.
42942
42943         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42944
42945         * build-aux/bootstrap (symlink_to_dir): Rename function from
42946         symlink_to_gnulib.  Add a directory parameter.  Update all
42947         callers.
42948         (cp_mark_as_generated): Also check for -- and link to -- files in
42949         gl/.
42950
42951         2007-07-08  Jim Meyering  <jim@meyering.net>
42952
42953         Adapt to deeper hierarchy in gnulib.
42954         * build-aux/bootstrap (symlink_to_dir): If the destination
42955         directory doesn't exist, create it. This is required at least for
42956         "lib/uniwidth/cjk.h".
42957
42958         2007-05-15  Jim Meyering  <jim@meyering.net>
42959
42960         * build-aux/bootstrap: Now that generated Makefile.am files
42961         are no longer under version control, they must be created at
42962         bootstrap time.
42963
42964 2007-08-14  Ben Pfaff  <blp@gnu.org>
42965
42966         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42967
42968 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42969
42970         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42971         given the changes below.
42972         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42973         even on hosts that have padding bits beyond the supported 64.
42974
42975 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42976
42977         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42978         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42979         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42980         depends on it.
42981         (xstrtol_error): Remove.
42982         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42983         but with a different signature.
42984         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42985         * lib/xstrtol-error.c: Include exitfail.h.
42986         (xstrtol_fatal): New function, with a different signature from the
42987         old xstrtol_error, so that the caller need not worry about passing
42988         in an exit status, or about storage management of the option argument.
42989         (xstrtol_error): Now a static function.  Redo signature to
42990         implement xstrtol_fatal.  Output the correct number of hyphens in
42991         front of the option so that the caller need not worry about
42992         storage management.
42993         (N_): New macro.
42994         (_): Remove; not used now.
42995         * modules/xstrtol: Depend on getopt.
42996         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42997         of old STRTOL_FATAL_ERROR macro.
42998         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42999         of test program.
43000         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
43001         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
43002
43003 2007-08-08  Eric Blake  <ebb9@byu.net>
43004
43005         * lib/xstrtol-error.c: Add missing include.
43006
43007         Move xstrtol messages into gnulib domain, when --pobase is used.
43008         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
43009         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
43010         * modules/xstrtol (Files): Distribute new file.
43011         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
43012         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
43013         * tests/test-xstrtol.c: ...into new file.
43014         * tests/test-xstrtoul.c: Also test xstrtoul.
43015         * tests/test-xstrtoimax.c: Also test xstrtoimax.
43016         * tests/test-xstrtoumax.c: Also test xstrtoumax.
43017         * tests/test-xstrtol.sh: Drive the tests.
43018         * tests/test-xstrtoimax.sh: Likewise.
43019         * tests/test-xstrtoumax.sh: Likewise.
43020         * modules/xstrtol-tests: New module.
43021         * modules/xstrtoimax-tests: Likewise.
43022         * modules/xstrtoumax-tests: Likewise.
43023
43024 2007-08-08  Jim Meyering  <jim@meyering.net>
43025
43026         New function: mfile_name_concat.
43027         * lib/filenamecat.c (mfile_name_concat): New function, just like
43028         file_name_concat, but return NULL upon failure rather than exiting
43029         with a diagnostic.
43030         * lib/filenamecat.h: Declare it.
43031
43032 2007-08-07  Bruno Haible  <bruno@clisp.org>
43033
43034         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
43035         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
43036         warning from gcc.
43037         Reported by Eric Blake.
43038
43039 2007-08-07  Simon Josefsson  <simon@josefsson.org>
43040
43041         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
43042         * modules/crypto/arcfour (License): Likewise.
43043         * modules/crypto/des-tests (License): Likewise.
43044         * modules/crypto/gc-arctwo-tests (License): Likewise.
43045         * modules/crypto/gc-des-tests (License): Likewise.
43046         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
43047         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
43048         * modules/crypto/gc-md2-tests (License): Likewise.
43049         * modules/crypto/gc-md4-tests (License): Likewise.
43050         * modules/crypto/gc-md5-tests (License): Likewise.
43051         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
43052         * modules/crypto/gc-rijndael-tests (License): Likewise.
43053         * modules/crypto/gc-sha1-tests (License): Likewise.
43054         * modules/crypto/gc-tests (License): Likewise.
43055         * modules/crypto/hmac-md5 (License): Likewise.
43056         * modules/crypto/hmac-sha1 (License): Likewise.
43057         * modules/crypto/md2-tests (License): Likewise.
43058         * modules/crypto/md4-tests (License): Likewise.
43059         * modules/crypto/md5 (License): Likewise.
43060         * modules/crypto/rijndael (License): Likewise.
43061         * modules/crypto/sha1 (License): Likewise.
43062         * modules/memxor (License): Likewise.
43063
43064 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43065         and Bruno Haible  <bruno@clisp.org>
43066
43067         * NEWS: Describe interface changes to human, xstrtol.
43068         * lib/human.h: Include <xstrtol.h>.
43069         (human_options): Return enum strtol_error, not int.  Remove
43070         bool arg; take int * instead.
43071         * lib/human.c: Don't include "gettext.h".
43072         (_): Remove; no longer used.
43073         Don't include <xstrtol.h>, since human.h does it.
43074         (human_options): Adjust to abovementioned interface changes.
43075         Do not report error to stderr; that's now the caller's
43076         responsibility.
43077         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
43078         interface change.
43079         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
43080         Str, Argument_type_string.  All uses changed.  Put " argument"
43081         in diagnostics to make them clearer.  Change wording of suffix
43082         message for clarity.
43083         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
43084         Argument_type_string.
43085         (STRTOL_FATAL_WARN): Remove; no longer used.
43086         * modules/human (Depends-on): Remove gettext-h.
43087
43088 2007-08-06  Simon Josefsson  <simon@josefsson.org>
43089
43090         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
43091
43092 2007-07-31  Bruno Haible  <bruno@clisp.org>
43093
43094         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
43095         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
43096         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
43097
43098 2007-07-31  Bruno Haible  <bruno@clisp.org>
43099
43100         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
43101         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
43102
43103 2007-07-30  Bruno Haible  <bruno@clisp.org>
43104
43105         * modules/base64 (License): Use the synonymous term "LGPLv2+".
43106         * modules/c-ctype (License): Likewise.
43107         * modules/c-strcase (License): Likewise.
43108         * modules/check-version (License): Likewise.
43109         * modules/iconv (License): Likewise.
43110         * modules/iconv_open (License): Likewise.
43111         * modules/read-file (License): Likewise.
43112         * modules/striconv (License): Likewise.
43113         * modules/strverscmp (License): Likewise.
43114         * modules/vasprintf (License): Likewise.
43115         * modules/crypto/des (License): Likewise.
43116         * modules/crypto/gc (License): Likewise.
43117         * modules/crypto/gc-arcfour (License): Likewise.
43118         * modules/crypto/gc-arctwo (License): Likewise.
43119         * modules/crypto/gc-des (License): Likewise.
43120         * modules/crypto/gc-hmac-md5 (License): Likewise.
43121         * modules/crypto/gc-hmac-sha1 (License): Likewise.
43122         * modules/crypto/gc-md2 (License): Likewise.
43123         * modules/crypto/gc-md4 (License): Likewise.
43124         * modules/crypto/gc-md5 (License): Likewise.
43125         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
43126         * modules/crypto/gc-random (License): Likewise.
43127         * modules/crypto/gc-rijndael (License): Likewise.
43128         * modules/crypto/gc-sha1 (License): Likewise.
43129         * modules/crypto/md2 (License): Likewise.
43130         * modules/crypto/md4 (License): Likewise.
43131
43132 2007-07-30  Jim Meyering  <jim@meyering.net>
43133
43134         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
43135         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
43136         it has valid stat data.  This bug would cause du not to count the
43137         sizes of inaccessible directories.
43138         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
43139         in <http://bugzilla.redhat.com/250077>.
43140
43141 2007-07-25  Peter O'Gorman  <peter@pogma.com>
43142             Bruno Haible  <bruno@clisp.org>
43143
43144         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
43145         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
43146         #include_next, gives a diagnostic about it, but reports no error in
43147         the exit code.
43148         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43149
43150 2007-07-24  Ben Pfaff  <blp@gnu.org>
43151
43152         Improve name: "count-one-bits" is better than "popcount".
43153         * MODULES.html.sh: Update name.
43154         * lib/popcount.h: Renamed lib/count-one-bits.h.
43155         (popcount): Renamed count_one_bits.
43156         (popcountl): Renamed count_one_bits_l.
43157         (popcountll): Renamed count_one_bits_ll.
43158         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
43159         * modules/popcount: Renamed module/count-one-bits.
43160         * modules/popcount-tests: Renamed module/count-one-bits-tests.
43161         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
43162
43163 2007-07-23  Ben Pfaff  <blp@gnu.org>
43164
43165         * lib/popcount.h (popcount32): Reduce size of constants, to allow
43166         better code generation, and add U to large constants to avoid
43167         warnings, in non-GCC case.
43168         Suggested by Bruno Haible.
43169
43170 2007-07-23  Ben Pfaff  <blp@gnu.org>
43171
43172         * lib/popcount.h: Use verify_true instead of if...abort.
43173         * modules/popcount: Depend on verify module.
43174         Suggested by Jim Meyering.
43175
43176 2007-07-23  Bruno Haible  <bruno@clisp.org>
43177
43178         * gnulib-tool (func_import): Create a .cvsignore file also when the
43179         directory is not yet in CVS but the toplevel directory is. When
43180         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
43181         Reported by Karl Berry.
43182
43183 2007-07-22  Ben Pfaff  <blp@gnu.org>
43184
43185         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
43186         case.
43187         Suggested by Eric Blake.
43188
43189 2007-07-22  Ben Pfaff  <blp@gnu.org>
43190
43191         New module: popcount.
43192         * MODULES.html.sh: Add popcount.
43193         * modules/popcount: New file.
43194         * modules/popcount-tests: New file.
43195         * tests/test-popcount.c: New file.
43196         * lib/popcount.h: New file.
43197         * m4/popcount.m4: New file.
43198
43199 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43200
43201         * build-aux/announce-gen: Update to GPLv3.
43202
43203         * build-aux/config.guess: Update from config.
43204
43205 2007-07-21  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
43208         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
43209
43210 2007-07-20  Jim Meyering  <jim@meyering.net>
43211
43212         * check-module: Diagnose a self-dependency.
43213
43214 2007-07-19  Bruno Haible  <bruno@clisp.org>
43215
43216         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
43217         empty.
43218         Reported by Eric Blake.
43219
43220 2007-07-18  Bruno Haible  <bruno@clisp.org>
43221
43222         * gnulib-tool: New options --po-base, --po-domain.
43223         (func_usage): Document them.
43224         (pobase, po_domain): New variables.
43225         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
43226         DEFAULT_TEXT_DOMAIN.
43227         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
43228         (func_import): Consider pobase and po_domain. Create a po/ directory.
43229         (func_create_testdir): Set pobase and po_domain to empty.
43230         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
43231         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
43232
43233 2007-07-18  Bruno Haible  <bruno@clisp.org>
43234
43235         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43236         EXTRA_DIST augmentation for files in build-aux/.
43237
43238 2007-07-16  Bruno Haible  <bruno@clisp.org>
43239
43240         * modules/lseek (License): Use the synonymous term "LGPLv2+".
43241         * modules/getdelim (License): Likewise.
43242
43243 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43244
43245         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
43246         * modules/d-type (License): Likewise.
43247         * modules/extensions (License): Likewise.
43248         * modules/fnmatch (License): Likewise.
43249         * modules/fseeko (License): Likewise.
43250         * modules/getaddrinfo (License): Likewise.
43251         * modules/getline (License): Likewise.
43252         * modules/getlogin_r (License): Likewise.
43253         * modules/getpass (License): Likewise.
43254         * modules/gettimeofday (License): Likewise.
43255         * modules/glob (License): Likewise.
43256         * modules/inet_ntop (License): Likewise.
43257         * modules/malloc (License): Likewise.
43258         * modules/malloca (License): Likewise.
43259         * modules/memmem (License): Likewise.
43260         * modules/mempcpy (License): Likewise.
43261         * modules/memset (License): Likewise.
43262         * modules/minmax (License): Likewise.
43263         * modules/mktime (License): Likewise.
43264         * modules/netinet_in (License): Likewise.
43265         * modules/pathmax (License): Likewise.
43266         * modules/poll (License): Likewise.
43267         * modules/regex (License): Likewise.
43268         * modules/snprintf (License): Likewise.
43269         * modules/stdbool (License): Likewise.
43270         * modules/stdint (License): Likewise.
43271         * modules/stdio (License): Likewise.
43272         * modules/strcase (License): Likewise.
43273         * modules/strcasestr (License): Likewise.
43274         * modules/strdup (License): Likewise.
43275         * modules/string (License): Likewise.
43276         * modules/strndup (License): Likewise.
43277         * modules/strnlen (License): Likewise.
43278         * modules/strpbrk (License): Likewise.
43279         * modules/strptime (License): Likewise.
43280         * modules/strsep (License): Likewise.
43281         * modules/sys_select (License): Likewise.
43282         * modules/sys_socket (License): Likewise.
43283         * modules/sys_stat (License): Likewise.
43284         * modules/sys_time (License): Likewise.
43285         * modules/time (License): Likewise.
43286         * modules/time_r (License): Likewise.
43287         * modules/timegm (License): Likewise.
43288         * modules/unistd (License): Likewise.
43289         * modules/vsnprintf (License): Likewise.
43290         * modules/wctype (License): Likewise.
43291
43292 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43293
43294         * modules/argz (License): LGPLv2+.
43295
43296 2007-07-15  Karl Berry  <karl@gnu.org>
43297
43298         * doc/gnulib.texi: revise node structure per new fdl.texi.
43299
43300 2007-07-14  Bruno Haible  <bruno@clisp.org>
43301
43302         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
43303         the output file.
43304         * lib/uniname/uninames.h: Regenerated.
43305
43306 2007-07-14  Karl Berry  <karl@gnu.org>
43307
43308         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
43309         omitting sectioning and index commands.
43310
43311 2007-07-13  Bruno Haible  <bruno@clisp.org>
43312
43313         New gnulib-tool option --more-symlinks.
43314         * gnulib-tool (func_usage): Document --more-symlinks.
43315         (do_copyrights): New variable.
43316         Recognize option --more-symlinks.
43317         (func_import): Don't add a copyright notice transform to
43318         sed_transform_lib_file if do_copyrights is empty.
43319
43320 2007-07-13  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/vasnprintf.c (decimal_point_char): Define also if
43323         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
43324         && !NEED_PRINTF_DIRECTIVE_A.
43325         Reported by Clemens Koller <clemens.koller@anagramm.de> via
43326         Gary V. Vaughan <gary@gnu.org>.
43327
43328 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
43329
43330         * lib/inttypes_.h: Undo previous change, since it was fixed
43331         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
43332
43333 2007-07-13  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
43336         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
43337
43338 2007-07-13  Jim Meyering  <jim@meyering.net>
43339
43340         df: Don't fail for Tru64's "file-on-file mount".
43341         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43342         so we fall through and use statfs instead.  Details here:
43343         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
43344         Reported by Albert Chin.
43345
43346 2007-07-13  Bruno Haible  <bruno@clisp.org>
43347
43348         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
43349         * modules/configmake (License): Likewise.
43350         * modules/gettext (License): Likewise.
43351         * modules/gettext-h (License): Likewise.
43352         * modules/include_next (License): Likewise.
43353         * modules/link-warning (License): Likewise.
43354         * modules/localcharset (License): Likewise.
43355         * modules/localename (License): Likewise.
43356         * modules/lock (License): Likewise.
43357         * modules/relocatable-lib-lgpl (License): Likewise.
43358         * modules/size_max (License): Likewise.
43359         * modules/vasnprintf (License): Likewise.
43360         * modules/wchar (License): Likewise.
43361         * modules/xsize (License): Likewise.
43362
43363 2007-07-13  Bruno Haible  <bruno@clisp.org>
43364
43365         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
43366         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
43367
43368 2007-07-12  Bruno Haible  <bruno@clisp.org>
43369
43370         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
43371         in the modules files.
43372
43373 2007-07-11  Karl Berry  <karl@gnu.org>
43374
43375         * MODULES.html.sh (func_module): use
43376          sed -e '\|^'"${includefile}"'$|d'
43377          instead of /.../d, to avoid errors on $includefile's containing /.
43378
43379 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43380
43381         * gnulib-tool (func_import): Avoid duplication of --avoid
43382         statements
43383         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
43384         names to `_' in variable names.
43385
43386 2007-07-10  Eric Blake  <ebb9@byu.net>
43387
43388         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
43389         * NEWS: Document this change.
43390
43391 2007-07-08  Bruno Haible  <bruno@clisp.org>
43392
43393         Update to Unicode 5.0.
43394         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
43395         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
43396         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
43397         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
43398         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
43399         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
43400         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
43401         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
43402         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
43403         U+10A3F, U+1D242..U+1D244.
43404         (nonspacing_table_ind): Update.
43405         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
43406         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
43407
43408 2007-07-08  Bruno Haible  <bruno@clisp.org>
43409
43410         Update to Unicode 5.0.
43411         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
43412         code transform. Extend the name index field of unicode_name_to_code and
43413         unicode_code_to_name from 16 to 24 bits.
43414         * lib/uniname/uniname.c (unicode_character_name,
43415         unicode_name_character): Add the range 0x12xxx to the code transform.
43416         * lib/uniname/uninames.h: Regenerated.
43417         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
43418
43419 2007-07-07  Bruno Haible  <bruno@clisp.org>
43420
43421         * modules/wcwidth-tests: New file.
43422         * tests/test-wcwidth.c: New file.
43423
43424         Work around MacOS X wcwidth() bug.
43425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
43426         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
43427         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
43428         original wcwidth in non-UTF-8 locales.
43429         * modules/wcwidth (Depends-on): Add localcharset, streq,
43430         uniwidth/width.
43431         * doc/functions/wcwidth.texi: Update.
43432
43433 2007-07-07  Bruno Haible  <bruno@clisp.org>
43434
43435         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
43436         (wcwidth): New declaration.
43437         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
43438         macros.
43439         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
43440         here. Prepare for creating <wchar.h> unconditionally.
43441         * modules/wchar (Depends-on): Add link-warning.
43442         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
43443         REPLACE_WCWIDTH, and GL_LINK_WARNING.
43444         * lib/wcwidth.h: Remove file.
43445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
43446         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
43447         * modules/wcwidth (Files): Remove lib/wcwidth.h.
43448         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
43449         (Include): Replace wcwidth.h with <wchar.h>.
43450         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
43451         * lib/mbchar.h: Don't include wcwidth.h.
43452         * lib/mbswidth.c: Likewise.
43453         * NEWS: Mention the change.
43454
43455 2007-07-07  Bruno Haible  <bruno@clisp.org>
43456
43457         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
43458         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
43459         definition with an external declaration.
43460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
43461         defined as a function. Remove AC_C_INLINE requirement.
43462         * modules/wcwidth (Files): Add lib/wcwidth.c.
43463         (Makefile.am): Remove redundant statement.
43464
43465 2007-07-07  Bruno Haible  <bruno@clisp.org>
43466
43467         * MODULES.html.sh (Unicode string functions): Add the new modules.
43468
43469         * tests/uniwidth/test-u32-strwidth.c: New file.
43470         * modules/uniwidth/u32-strwidth-tests: New file.
43471
43472         * lib/uniwidth/u32-strwidth.c: New file.
43473         * modules/uniwidth/u32-strwidth: New file.
43474
43475         * tests/uniwidth/test-u16-strwidth.c: New file.
43476         * modules/uniwidth/u16-strwidth-tests: New file.
43477
43478         * lib/uniwidth/u16-strwidth.c: New file.
43479         * modules/uniwidth/u16-strwidth: New file.
43480
43481         * tests/uniwidth/test-u8-strwidth.c: New file.
43482         * modules/uniwidth/u8-strwidth-tests: New file.
43483
43484         * lib/uniwidth/u8-strwidth.c: New file.
43485         * modules/uniwidth/u8-strwidth: New file.
43486
43487         * tests/uniwidth/test-u32-width.c: New file.
43488         * modules/uniwidth/u32-width-tests: New file.
43489
43490         * lib/uniwidth/u32-width.c: New file.
43491         * modules/uniwidth/u32-width: New file.
43492
43493         * tests/uniwidth/test-u16-width.c: New file.
43494         * modules/uniwidth/u16-width-tests: New file.
43495
43496         * lib/uniwidth/u16-width.c: New file.
43497         * modules/uniwidth/u16-width: New file.
43498
43499         * tests/uniwidth/test-u8-width.c: New file.
43500         * modules/uniwidth/u8-width-tests: New file.
43501
43502         * lib/uniwidth/u8-width.c: New file.
43503         * modules/uniwidth/u8-width: New file.
43504
43505         * tests/uniwidth/test-uc_width.c: New file.
43506         * modules/uniwidth/width-tests: New file.
43507
43508         * lib/uniwidth/width.c: New file, from GNU libiconv.
43509         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
43510         * modules/uniwidth/width: New file.
43511
43512         * lib/uniwidth.h: New file, from GNU libiconv.
43513         * modules/uniwidth/base: New file.
43514
43515 2007-07-07  Bruno Haible  <bruno@clisp.org>
43516
43517         * lib/uniname.h: New file, from GNU gettext.
43518         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
43519         * lib/uniname/uninames.h: New file, from GNU gettext.
43520         * lib/uniname/uniname.c: New file, from GNU gettext.
43521         * tests/uniname/test-uninames.sh: New file.
43522         * tests/uniname/test-uninames.c: New file, from GNU gettext.
43523         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
43524         * modules/uniname/base: New file.
43525         * modules/uniname/uniname: New file.
43526         * modules/uniname/uniname-tests: New file.
43527         * MODULES.html.sh (Unicode string functions): Add the new modules.
43528
43529 2007-07-06  Bruno Haible  <bruno@clisp.org>
43530
43531         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
43532
43533 2007-07-06  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
43536         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
43537         includes <cygwin/sys_time.h> which includes <sys/select.h> which
43538         include <sys/time.h>.
43539         Reported by Eric Blake.
43540
43541 2007-07-06  Eric Blake  <ebb9@byu.net>
43542
43543         Fix testing canonicalize on cygwin.
43544         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43545         Revert patch from 2007-06-19.
43546         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
43547         canonicalize module is also in use.
43548         * tests/test-canonicalize.c: New file.
43549         * tests/test-canonicalize.sh: Likewise.
43550         * modules/canonicalize-tests: Likewise.
43551
43552 2007-07-06  Jim Meyering  <jim@meyering.net>
43553
43554         * lib/getugroups.c (getugroups): Detect getgrent failure.
43555         Adjust comment to reflect reality: this function may return -1.
43556
43557 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
43558
43559         * build-aux/bootstrap (TP_URL,get_translations): Update to use
43560         the new TP address.
43561         (usage): Fix typo
43562         (gnulib_mk): New variable.
43563
43564 2007-07-05  Jim Meyering  <jim@meyering.net>
43565
43566         Don't let endgrent clobber errno, no matter how improbable.
43567         * lib/getugroups.c (getugroups): Save and restore errno around
43568         endgrent call.
43569
43570         Close the group DB even when failing with 2^31 or more members.
43571         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43572
43573 2007-07-04  Jim Meyering  <jim@meyering.net>
43574
43575         * lib/getugroups.h: New file.
43576         * lib/getugroups.c: Include "getugroups.h".
43577         Remove uses of "register" keyword.
43578         Move local variable, "cp", down into scope where used.
43579         Give "username" parameter the "const" attribute.
43580         * modules/getugroups (Files): Add lib/getugroups.h
43581
43582 2007-07-04  Karl Berry  <karl@gnu.org>
43583
43584         * MODULES.html.sh (func_all_modules): Complete rename of
43585         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43586
43587 2007-07-02  Bruno Haible  <bruno@clisp.org>
43588
43589         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43590         mode, when inttypes.h comes from gnulib.
43591         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43592
43593 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43594
43595         * NEWS: Mention lgpl module name change.
43596
43597         * modules/lgpl-2.1: Renamed from lgpl.
43598
43599         * NEWS: Mention gpl module name change.
43600
43601         * modules/gpl-3.0: New file, based on gpl-2.0.
43602
43603         * modules/gpl-2.0: Renamed from gpl.
43604
43605         * modules/gpl: Fix filename, doc/gpl.texi is now found at
43606         doc/gpl-2.0.texi.
43607
43608 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43609
43610         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
43611         #define __STDC_LIMIT_MACROS temporarily while including
43612         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
43613         Problem reported by Joel E. Denny in
43614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
43615
43616 2007-07-01  Bruno Haible  <bruno@clisp.org>
43617
43618         * lib/unistdio.h: New file.
43619         * lib/unistdio/u-asnprintf.h: New file.
43620         * lib/unistdio/u-asprintf.h: New file.
43621         * lib/unistdio/u-printf-args.c: New file.
43622         * lib/unistdio/u-printf-args.h: New file.
43623         * lib/unistdio/u-printf-parse.h: New file.
43624         * lib/unistdio/u-snprintf.h: New file.
43625         * lib/unistdio/u-sprintf.h: New file.
43626         * lib/unistdio/u-vasprintf.h: New file.
43627         * lib/unistdio/u-vsnprintf.h: New file.
43628         * lib/unistdio/u-vsprintf.h: New file.
43629         * lib/unistdio/ulc-asnprintf.c: New file.
43630         * lib/unistdio/ulc-asprintf.c: New file.
43631         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
43632         * lib/unistdio/ulc-printf-parse.c: New file.
43633         * lib/unistdio/ulc-snprintf.c: New file.
43634         * lib/unistdio/ulc-sprintf.c: New file.
43635         * lib/unistdio/ulc-vasnprintf.c: New file.
43636         * lib/unistdio/ulc-vasprintf.c: New file.
43637         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
43638         * lib/unistdio/ulc-vsnprintf.c: New file.
43639         * lib/unistdio/ulc-vsprintf.c: New file.
43640         * lib/unistdio/u8-asnprintf.c: New file.
43641         * lib/unistdio/u8-asprintf.c: New file.
43642         * lib/unistdio/u8-printf-parse.c: New file.
43643         * lib/unistdio/u8-snprintf.c: New file.
43644         * lib/unistdio/u8-sprintf.c: New file.
43645         * lib/unistdio/u8-vasnprintf.c: New file.
43646         * lib/unistdio/u8-vasprintf.c: New file.
43647         * lib/unistdio/u8-vsnprintf.c: New file.
43648         * lib/unistdio/u8-vsprintf.c: New file.
43649         * lib/unistdio/u8-u8-asnprintf.c: New file.
43650         * lib/unistdio/u8-u8-asprintf.c: New file.
43651         * lib/unistdio/u8-u8-snprintf.c: New file.
43652         * lib/unistdio/u8-u8-sprintf.c: New file.
43653         * lib/unistdio/u8-u8-vasnprintf.c: New file.
43654         * lib/unistdio/u8-u8-vasprintf.c: New file.
43655         * lib/unistdio/u8-u8-vsnprintf.c: New file.
43656         * lib/unistdio/u8-u8-vsprintf.c: New file.
43657         * lib/unistdio/u16-asnprintf.c: New file.
43658         * lib/unistdio/u16-asprintf.c: New file.
43659         * lib/unistdio/u16-printf-parse.c: New file.
43660         * lib/unistdio/u16-snprintf.c: New file.
43661         * lib/unistdio/u16-sprintf.c: New file.
43662         * lib/unistdio/u16-vasnprintf.c: New file.
43663         * lib/unistdio/u16-vasprintf.c: New file.
43664         * lib/unistdio/u16-vsnprintf.c: New file.
43665         * lib/unistdio/u16-vsprintf.c: New file.
43666         * lib/unistdio/u16-u16-asnprintf.c: New file.
43667         * lib/unistdio/u16-u16-asprintf.c: New file.
43668         * lib/unistdio/u16-u16-snprintf.c: New file.
43669         * lib/unistdio/u16-u16-sprintf.c: New file.
43670         * lib/unistdio/u16-u16-vasnprintf.c: New file.
43671         * lib/unistdio/u16-u16-vasprintf.c: New file.
43672         * lib/unistdio/u16-u16-vsnprintf.c: New file.
43673         * lib/unistdio/u16-u16-vsprintf.c: New file.
43674         * lib/unistdio/u32-asnprintf.c: New file.
43675         * lib/unistdio/u32-asprintf.c: New file.
43676         * lib/unistdio/u32-printf-parse.c: New file.
43677         * lib/unistdio/u32-snprintf.c: New file.
43678         * lib/unistdio/u32-sprintf.c: New file.
43679         * lib/unistdio/u32-vasnprintf.c: New file.
43680         * lib/unistdio/u32-vasprintf.c: New file.
43681         * lib/unistdio/u32-vsnprintf.c: New file.
43682         * lib/unistdio/u32-vsprintf.c: New file.
43683         * lib/unistdio/u32-u32-asnprintf.c: New file.
43684         * lib/unistdio/u32-u32-asprintf.c: New file.
43685         * lib/unistdio/u32-u32-snprintf.c: New file.
43686         * lib/unistdio/u32-u32-sprintf.c: New file.
43687         * lib/unistdio/u32-u32-vasnprintf.c: New file.
43688         * lib/unistdio/u32-u32-vasprintf.c: New file.
43689         * lib/unistdio/u32-u32-vsnprintf.c: New file.
43690         * lib/unistdio/u32-u32-vsprintf.c: New file.
43691         * tests/unistdio/test-ulc-asnprintf1.c: New file.
43692         * tests/unistdio/test-ulc-asnprintf1.h: New file.
43693         * tests/unistdio/test-ulc-printf1.h: New file.
43694         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
43695         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
43696         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
43697         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
43698         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
43699         * tests/unistdio/test-ulc-vasprintf1.c: New file.
43700         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
43701         * tests/unistdio/test-ulc-vsprintf1.c: New file.
43702         * tests/unistdio/test-u8-asnprintf1.c: New file.
43703         * tests/unistdio/test-u8-asnprintf1.h: New file.
43704         * tests/unistdio/test-u8-printf1.h: New file.
43705         * tests/unistdio/test-u8-vasnprintf1.c: New file.
43706         * tests/unistdio/test-u8-vasnprintf2.c: New file.
43707         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
43708         * tests/unistdio/test-u8-vasnprintf3.c: New file.
43709         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
43710         * tests/unistdio/test-u8-vasprintf1.c: New file.
43711         * tests/unistdio/test-u8-vsnprintf1.c: New file.
43712         * tests/unistdio/test-u8-vsprintf1.c: New file.
43713         * tests/unistdio/test-u16-asnprintf1.c: New file.
43714         * tests/unistdio/test-u16-asnprintf1.h: New file.
43715         * tests/unistdio/test-u16-printf1.h: New file.
43716         * tests/unistdio/test-u16-vasnprintf1.c: New file.
43717         * tests/unistdio/test-u16-vasnprintf2.c: New file.
43718         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
43719         * tests/unistdio/test-u16-vasnprintf3.c: New file.
43720         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
43721         * tests/unistdio/test-u16-vasprintf1.c: New file.
43722         * tests/unistdio/test-u16-vsnprintf1.c: New file.
43723         * tests/unistdio/test-u16-vsprintf1.c: New file.
43724         * tests/unistdio/test-u32-asnprintf1.c: New file.
43725         * tests/unistdio/test-u32-asnprintf1.h: New file.
43726         * tests/unistdio/test-u32-printf1.h: New file.
43727         * tests/unistdio/test-u32-vasnprintf1.c: New file.
43728         * tests/unistdio/test-u32-vasnprintf2.c: New file.
43729         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43730         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43731         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43732         * tests/unistdio/test-u32-vasprintf1.c: New file.
43733         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43734         * tests/unistdio/test-u32-vsprintf1.c: New file.
43735         * modules/unistdio/base: New file.
43736         * modules/unistdio/u-printf-args: New file.
43737         * modules/unistdio/ulc-asnprintf: New file.
43738         * modules/unistdio/ulc-asprintf: New file.
43739         * modules/unistdio/ulc-fprintf: New file.
43740         * modules/unistdio/ulc-printf-parse: New file.
43741         * modules/unistdio/ulc-snprintf: New file.
43742         * modules/unistdio/ulc-sprintf: New file.
43743         * modules/unistdio/ulc-vasnprintf: New file.
43744         * modules/unistdio/ulc-vasprintf: New file.
43745         * modules/unistdio/ulc-vfprintf: New file.
43746         * modules/unistdio/ulc-vsnprintf: New file.
43747         * modules/unistdio/ulc-vsprintf: New file.
43748         * modules/unistdio/u8-asnprintf: New file.
43749         * modules/unistdio/u8-asprintf: New file.
43750         * modules/unistdio/u8-printf-parse: New file.
43751         * modules/unistdio/u8-snprintf: New file.
43752         * modules/unistdio/u8-sprintf: New file.
43753         * modules/unistdio/u8-vasnprintf: New file.
43754         * modules/unistdio/u8-vasprintf: New file.
43755         * modules/unistdio/u8-vsnprintf: New file.
43756         * modules/unistdio/u8-vsprintf: New file.
43757         * modules/unistdio/u8-u8-asnprintf: New file.
43758         * modules/unistdio/u8-u8-asprintf: New file.
43759         * modules/unistdio/u8-u8-snprintf: New file.
43760         * modules/unistdio/u8-u8-sprintf: New file.
43761         * modules/unistdio/u8-u8-vasnprintf: New file.
43762         * modules/unistdio/u8-u8-vasprintf: New file.
43763         * modules/unistdio/u8-u8-vsnprintf: New file.
43764         * modules/unistdio/u8-u8-vsprintf: New file.
43765         * modules/unistdio/u16-asnprintf: New file.
43766         * modules/unistdio/u16-asprintf: New file.
43767         * modules/unistdio/u16-printf-parse: New file.
43768         * modules/unistdio/u16-snprintf: New file.
43769         * modules/unistdio/u16-sprintf: New file.
43770         * modules/unistdio/u16-vasnprintf: New file.
43771         * modules/unistdio/u16-vasprintf: New file.
43772         * modules/unistdio/u16-vsnprintf: New file.
43773         * modules/unistdio/u16-vsprintf: New file.
43774         * modules/unistdio/u16-u16-asnprintf: New file.
43775         * modules/unistdio/u16-u16-asprintf: New file.
43776         * modules/unistdio/u16-u16-snprintf: New file.
43777         * modules/unistdio/u16-u16-sprintf: New file.
43778         * modules/unistdio/u16-u16-vasnprintf: New file.
43779         * modules/unistdio/u16-u16-vasprintf: New file.
43780         * modules/unistdio/u16-u16-vsnprintf: New file.
43781         * modules/unistdio/u16-u16-vsprintf: New file.
43782         * modules/unistdio/u32-asnprintf: New file.
43783         * modules/unistdio/u32-asprintf: New file.
43784         * modules/unistdio/u32-printf-parse: New file.
43785         * modules/unistdio/u32-snprintf: New file.
43786         * modules/unistdio/u32-sprintf: New file.
43787         * modules/unistdio/u32-vasnprintf: New file.
43788         * modules/unistdio/u32-vasprintf: New file.
43789         * modules/unistdio/u32-vsnprintf: New file.
43790         * modules/unistdio/u32-vsprintf: New file.
43791         * modules/unistdio/u32-u32-asnprintf: New file.
43792         * modules/unistdio/u32-u32-asprintf: New file.
43793         * modules/unistdio/u32-u32-snprintf: New file.
43794         * modules/unistdio/u32-u32-sprintf: New file.
43795         * modules/unistdio/u32-u32-vasnprintf: New file.
43796         * modules/unistdio/u32-u32-vasprintf: New file.
43797         * modules/unistdio/u32-u32-vsnprintf: New file.
43798         * modules/unistdio/u32-u32-vsprintf: New file.
43799         * modules/unistdio/ulc-asnprintf-tests: New file.
43800         * modules/unistdio/ulc-vasnprintf-tests: New file.
43801         * modules/unistdio/ulc-vasprintf-tests: New file.
43802         * modules/unistdio/ulc-vsnprintf-tests: New file.
43803         * modules/unistdio/ulc-vsprintf-tests: New file.
43804         * modules/unistdio/u8-asnprintf-tests: New file.
43805         * modules/unistdio/u8-vasnprintf-tests: New file.
43806         * modules/unistdio/u8-vasprintf-tests: New file.
43807         * modules/unistdio/u8-vsnprintf-tests: New file.
43808         * modules/unistdio/u8-vsprintf-tests: New file.
43809         * modules/unistdio/u16-asnprintf-tests: New file.
43810         * modules/unistdio/u16-vasnprintf-tests: New file.
43811         * modules/unistdio/u16-vasprintf-tests: New file.
43812         * modules/unistdio/u16-vsnprintf-tests: New file.
43813         * modules/unistdio/u16-vsprintf-tests: New file.
43814         * modules/unistdio/u32-asnprintf-tests: New file.
43815         * modules/unistdio/u32-vasnprintf-tests: New file.
43816         * modules/unistdio/u32-vasprintf-tests: New file.
43817         * modules/unistdio/u32-vsnprintf-tests: New file.
43818         * modules/unistdio/u32-vsprintf-tests: New file.
43819         * MODULES.html.sh (Unicode string functions): Add the new modules.
43820
43821 2007-07-01  Bruno Haible  <bruno@clisp.org>
43822
43823         * lib/sprintf.c (sprintf): Limit the available length estimation,
43824         to avoid address wraparound.
43825         * lib/vsprintf.c (vsprintf): Likewise.
43826         * modules/sprintf-posix (Dependencies): Add stdint.
43827         * modules/vsprintf-posix (Dependencies): Likewise.
43828
43829 2007-07-01  Bruno Haible  <bruno@clisp.org>
43830
43831         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43832         Windows PATH as well. Conservative double-quoting. Comments.
43833
43834 2007-07-01  Bruno Haible  <bruno@clisp.org>
43835             Eric Blake  <ebb9@byu.net>
43836             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43837
43838         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43839         empty components in $PATH, denoting '.'.
43840
43841 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43842
43843         * gnulib-tool: Fix indentation.
43844         (func_create_megatestdir): Likewise.
43845         Report by Bruno Haible.
43846
43847 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43848
43849         Sync from Automake.
43850         * build-aux/gnupload: Fix shell portability issues with for loops.
43851         Report by Karl Berry.
43852
43853 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43854
43855         * build-aux/maint.mk (POURL): Use translationproject.org.
43856
43857 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43858             Bruno Haible  <bruno@clisp.org>
43859
43860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43861         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43862         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43863         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43864         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43865
43866 2007-06-27  Bruno Haible  <bruno@clisp.org>
43867
43868         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43869         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43870
43871 2007-06-26  Karl Berry  <karl@gnu.org>
43872
43873         * MODULES.html.sh: remove xreadlink-with-size.
43874
43875 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43876
43877         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43878         method that I hope also handles the double-include problem noted
43879         by Bruno Haible in
43880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43881
43882 2007-06-23  Bruno Haible  <bruno@clisp.org>
43883
43884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43885         Don't let the 'mostlyclean' target fail if the last subdirectory could
43886         not be removed.
43887         Reported by Karl Berry.
43888
43889 2007-06-23  Bruno Haible  <bruno@clisp.org>
43890
43891         * gnulib-tool (echo): Add a speedier workaround for ksh.
43892         * tests/test-echo.sh: Likewise.
43893
43894 2007-06-23  Bruno Haible  <bruno@clisp.org>
43895
43896         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43897         * tests/test-echo.sh: Likewise.
43898
43899 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43900
43901         * gnulib-tool (IFS): Initialize early, so we don't set it to
43902         empty later.
43903         (self_abspathname): Rewrite algorithm to set it, reindent.
43904         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43905         (func_create_megatestdir): Merge some sed scripts.
43906
43907 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43908
43909         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43910         exposed by Sun Studio 11 cc on Solaris 8.
43911
43912 2007-06-22  Bruno Haible  <bruno@clisp.org>
43913
43914         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43915         backslashes.
43916         * tests/test-echo.sh: New file.
43917
43918 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43919
43920         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43921         simplify `sed_replace_build_aux' scripts, they are portable but
43922         echoing them with `echo' is not.
43923         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43924
43925 2007-06-21  Karl Berry  <karl@gnu.org>
43926
43927         * config/srclist.txt: guess we can't handle the licenses via
43928         srclist at the moment.
43929
43930 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43931
43932         * MODULES.html.sh: Add include_next.
43933         * modules/include_next: New file.
43934
43935 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43936
43937         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43938         INCLUDE_NEXT.
43939         (gl_CHECK_NEXT_HEADERS): New macro.
43940         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43941         the obsolescent gl_ABSOLUTE_HEADER.
43942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43943         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43944         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43945         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43946         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43947         * m4/math_h.m4 (gl_MATH_H): Likewise.
43948         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43949         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43950         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43951         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43952         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43953         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43954         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43955         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43958         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43959         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43960         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43961         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43962         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43963         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43964         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43965         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43966         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43967         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43968         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43969         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43970         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43971         * lib/float_.h: Likewise.
43972         * lib/inttypes_.h: Likewise.
43973         * lib/math_.h: Likewise.
43974         * lib/search_.h: Likewise.
43975         * lib/signal_.h: Likewise.
43976         * lib/stdint_.h: Likewise.
43977         * lib/stdio_.h: Likewise.
43978         * lib/stdlib_.h: Likewise.
43979         * lib/string_.h: Likewise.
43980         * lib/sys_stat_.h: Likewise.
43981         * lib/sys_time_.h: Likewise.
43982         * lib/time_.h: Likewise.
43983         * lib/unistd_.h: Likewise.
43984         * lib/wchar_.h: Likewise.
43985         * lib/wctype_.h: Likewise.
43986         * lib/dirent_.h: Likewise.
43987         * lib/iconv_.h: Likewise.
43988         * lib/locale_.h: Likewise.
43989         * lib/netinet_in_.h: Likewise.
43990         * lib/sys_select_.h: Likewise.
43991         * lib/sys_socket_.h: Likewise.
43992         * lib/sysexits_.h: Likewise.
43993         * modules/fcntl (Depends-on): Depend on include_next, not
43994         absolute_header.
43995         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43996         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43997         * modules/fchdir: Likewise.
43998         * modules/float: Likewise.
43999         * modules/iconv_open: Likewise.
44000         * modules/inttypes: Likewise.
44001         * modules/locale: Likewise.
44002         * modules/math: Likewise.
44003         * modules/netinet_in: Likewise.
44004         * modules/search: Likewise.
44005         * modules/signal: Likewise.
44006         * modules/stdint: Likewise.
44007         * modules/stdio: Likewise.
44008         * modules/stdlib: Likewise.
44009         * modules/string: Likewise.
44010         * modules/sys_select: Likewise.
44011         * modules/sys_socket: Likewise.
44012         * modules/sys_stat: Likewise.
44013         * modules/sys_time: Likewise.
44014         * modules/sysexits: Likewise.
44015         * modules/time: Likewise.
44016         * modules/unistd: Likewise.
44017         * modules/wchar: Likewise.
44018         * modules/wctype: Likewise.
44019         * modules/sys_stat: Change maintainer to "all".
44020         * modules/unistd: Likewise.
44021
44022 2007-06-20  Karl Berry  <karl@gnu.org>
44023
44024         * config/srclist.txt: track www changes in license files.
44025
44026 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
44027
44028         * build-aux/bootstrap: Remove stray dot.
44029         Make sure build_aux settings are honored when linking
44030         gnulib_extra_files.
44031
44032 2007-06-19  Eric Blake  <ebb9@byu.net>
44033
44034         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44035         Allow compilation on cygwin.
44036
44037 2007-06-19  Jim Meyering  <jim@meyering.net>
44038
44039         xreadlink-with-size: Remove module.  No longer used.
44040         Ex-callers now use xreadlink or mreadlink-with-size.
44041         * modules/xreadlink-with-size: Remove module.
44042         * lib/xreadlink-with-size.c: Remove file.
44043         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
44044         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
44045         just before the function definition *is* accurate.
44046
44047         Eliminate one way canonicalize_filename_mode could exit.
44048         * lib/canonicalize.c (canonicalize_filename_mode):
44049         Use mreadlink_with_size, not xreadlink_with_size.
44050
44051 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
44052
44053         Detect porting problems to FreeBSD/arm, which has time_t wider than
44054         long int.  Original problem reported for GNU diff by Xin Li in
44055         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
44056         * modules/getdate (Depends-on): Add intprops, verify.
44057         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
44058         is an integer type no wider than long int.
44059
44060 2007-06-18  Jim Meyering  <jim@meyering.net>
44061
44062         New module: mreadlink-with-size.
44063         * MODULES.html.sh: Add mreadlink-with-size.
44064         * modules/mreadlink-with-size: New module
44065         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
44066         not xreadlink-with-size.
44067         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
44068
44069 2007-06-16  Bruno Haible  <bruno@clisp.org>
44070
44071         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
44072         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
44073         Reported by Gary V. Vaughan <gary@gnu.org>.
44074
44075 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
44076
44077         Revamp lchown so that it lives in unistd.h where it belongs.
44078         * lib/lchown.h: Remove.
44079         * lib/dirchownmod.c: Don't include lib/lchown.h.
44080         * lib/fchownat.c: Likewise.
44081         * lib/openat.c: Likewise.
44082         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
44083         does not follow symlinks.
44084         (EOPNOTSUPP): Define if not defined.
44085         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
44086         is defined to 0.
44087         (lchown): New decl.
44088         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
44089         Do not check for lchown decl.
44090         Set REPLACE_LCHOWN.
44091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
44092         REPLACE_LCHOWN.
44093         * modules/chown: Make it clear it follows symlinks.
44094         * modules/lchown: Make it clear it doesn't follow symlinks.
44095         (Files): Remove lib/lchown.h
44096         (Depends-on): Add unistd.
44097         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
44098         (Include): Include <unistd.h>, not "lchown.h".
44099         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
44100         REPLACE_LCHOWN.
44101
44102 2007-06-15  Jim Meyering  <jim@meyering.net>
44103
44104         Change license (GPL to LGPL) of fsusage and dependents.
44105         * modules/fsusage (License): Change to LGPL.
44106         * modules/full-read (License): Likewise.
44107         * modules/full-write (License): Likewise.
44108         * modules/safe-read (License): Likewise.
44109         * modules/safe-write (License): Likewise.
44110
44111 2007-06-14  Ben Pfaff  <blp@gnu.org>
44112
44113         Missing part of allocsa -> malloca transition.
44114         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
44115         gl_MALLOCA.
44116
44117 2007-06-12  Bruno Haible  <bruno@clisp.org>
44118
44119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
44120         to ia64, x86_64, i386.
44121         Reported by Eric Blake.
44122
44123 2007-06-12  Bruno Haible  <bruno@clisp.org>
44124
44125         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
44126         cross-compiling to x86_64.
44127
44128 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
44129
44130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
44131         glitch reported by Ralf Wildenhues in
44132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
44133
44134         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
44135         Vin Shelton.
44136
44137 2007-06-11  Bruno Haible  <bruno@clisp.org>
44138
44139         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
44140         replacement string.
44141         Reported by Eric Blake.
44142
44143 2007-06-10  Bruno Haible  <bruno@clisp.org>
44144
44145         Prepare vasnprintf code for use with Unicode strings.
44146         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
44147         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
44148         TYPE_U32_STRING.
44149         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
44150         a_u32_string variants.
44151         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44152         * lib/printf-args.c: Don't include config.h and the specification
44153         header if PRINTF_FETCHARGS is already defined.
44154         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44155         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
44156         TYPE_U16_STRING, TYPE_U32_STRING.
44157         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
44158         u16_directive, u16_directives, u32_directive, u32_directives): New
44159         types.
44160         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
44161         New declarations.
44162         * lib/printf-parse.c: Don't include config.h and the specification
44163         header if PRINTF_PARSE is already defined. Eliminate the set of
44164         parameters for WIDE_CHAR_VERSION; the user of this file must provide
44165         them now. Include c-ctype.h.
44166         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
44167         directive and CHAR_T_ONLY_ASCII.
44168         * lib/vasnprintf.c: Don't include config.h and the specification header
44169         if VASNPRINTF is already defined.
44170         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
44171         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
44172         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
44173         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
44174         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44175         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
44176         code accordingly.
44177         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
44178         pad_ourselves also in this case, with the 'c' and 's' directives, and
44179         with a different notion of "width".
44180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
44181
44182 2007-06-10  Bruno Haible  <bruno@clisp.org>
44183
44184         * modules/unistr/u32-mbsnlen: New file.
44185         * lib/unistr/u32-mbsnlen.c: New file.
44186
44187         * modules/unistr/u16-mbsnlen: New file.
44188         * lib/unistr/u16-mbsnlen.c: New file.
44189
44190         * modules/unistr/u8-mbsnlen: New file.
44191         * lib/unistr/u8-mbsnlen.c: New file.
44192
44193         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
44194         declarations.
44195
44196 2007-06-10  Bruno Haible  <bruno@clisp.org>
44197
44198         * lib/string_.h (mbsnlen): New declaration.
44199         * lib/mbsnlen.c: New file.
44200         * m4/mbsnlen.m4: New file.
44201         * modules/mbsnlen: New file.
44202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
44203         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
44204         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
44205
44206 2007-06-10  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
44209
44210 2007-06-10  Bruno Haible  <bruno@clisp.org>
44211
44212         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
44213         * lib/mbuiter.h: Likewise.
44214
44215 2007-06-10  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
44218         declaration.
44219
44220 2007-06-10  Karl Berry  <karl@gnu.org>
44221
44222         * config/srclist.txt: remove gettext entries, Bruno prefers
44223         to update individually.
44224
44225 2007-06-10  Bruno Haible  <bruno@clisp.org>
44226
44227         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
44228         'maxlen'. Ensure only length + width bytes are allocated, not
44229         length + 1 + width.
44230
44231 2007-06-09  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
44234         (CHAR_T): Remove macro.
44235         (VASNPRINTF): Update.
44236
44237 2007-06-09  Bruno Haible  <bruno@clisp.org>
44238
44239         * MODULES.html.sh (Unicode string functions): Add the new modules.
44240
44241         * modules/uniconv/u32-conv-to-enc: New file.
44242         * lib/uniconv/u32-conv-to-enc.c: New file.
44243         * modules/uniconv/u32-conv-to-enc-tests: New file.
44244         * tests/uniconv/test-u32-conv-to-enc.c: New file.
44245
44246         * modules/uniconv/u16-conv-to-enc: New file.
44247         * lib/uniconv/u16-conv-to-enc.c: New file.
44248         * lib/uniconv/u-conv-to-enc.h: New file.
44249         * modules/uniconv/u16-conv-to-enc-tests: New file.
44250         * tests/uniconv/test-u16-conv-to-enc.c: New file.
44251
44252         * modules/uniconv/u8-conv-to-enc: New file.
44253         * lib/uniconv/u8-conv-to-enc.c: New file.
44254         * modules/uniconv/u8-conv-to-enc-tests: New file.
44255         * tests/uniconv/test-u8-conv-to-enc.c: New file.
44256
44257         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44258         u32_conv_to_encoding): New declarations.
44259
44260 2007-06-09  Bruno Haible  <bruno@clisp.org>
44261
44262         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
44263
44264 2007-06-09  Bruno Haible  <bruno@clisp.org>
44265
44266         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
44267         * modules/malloca: Renamed from modules/allocsa, updated.
44268         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
44269         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
44270         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
44271         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
44272         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
44273         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
44274         * modules/xmalloca: Renamed from modules/xallocsa, updated.
44275         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
44276         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
44277         * modules/c-strcasestr (Depends-on): Update.
44278         * lib/c-strcasestr.c: Update.
44279         * modules/c-strstr (Depends-on): Update.
44280         * lib/c-strstr.c: Update.
44281         * modules/canonicalize-lgpl (Depends-on): Update.
44282         * lib/canonicalize-lgpl.c: Update.
44283         * modules/clean-temp (Depends-on): Update.
44284         * lib/clean-temp.c: Update.
44285         * modules/csharpcomp (Depends-on): Update.
44286         * lib/csharpcomp.c: Update.
44287         * modules/csharpexec (Depends-on): Update.
44288         * lib/csharpexec.c: Update.
44289         * modules/javacomp (Depends-on): Update.
44290         * lib/javacomp.c: Update.
44291         * modules/javaexec (Depends-on): Update.
44292         * lib/javaexec.c: Update.
44293         * modules/mbscasestr (Depends-on): Update.
44294         * lib/mbscasestr.c: Update.
44295         * modules/mbsstr (Depends-on): Update.
44296         * lib/mbsstr.c: Update.
44297         * modules/setenv (Depends-on): Update.
44298         * lib/setenv.c: Update.
44299         * modules/strcasestr (Depends-on): Update.
44300         * lib/strcasestr.c: Update.
44301         * modules/striconveha (Depends-on): Update.
44302         * lib/striconveha.c: Update.
44303         * modules/relocatable-prog-wrapper (Files): Update.
44304         * lib/relocwrapper.c: Update.
44305         * build-aux/install-reloc: Update.
44306         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
44307
44308 2007-06-08  Bruno Haible  <bruno@clisp.org>
44309
44310         Port to uClibc.
44311         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
44312         * lib/fpurge.c (fpurge): Likewise.
44313         * lib/freading.c (freading): Likewise.
44314         * lib/fseeko.c (rpl_fseeko): Likewise.
44315         * lib/fseterr.c (fseterr): Likewise.
44316         * lib/fwriting.c (fwriting): Likewise.
44317         * tests/test-fflush.c (main): Avoid a failure on uClibc.
44318
44319 2007-06-08  Bruno Haible  <bruno@clisp.org>
44320
44321         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
44322         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
44323         * modules/gettext (Files): Add m4/intlmacosx.m4.
44324
44325 2007-06-07  Bruno Haible  <bruno@clisp.org>
44326
44327         * modules/localename-tests: New file.
44328         * tests/test-localename.c: New file.
44329
44330         New module 'localename'.
44331         * lib/localename.h: New file.
44332         * lib/localename.c: New file, from GNU gettext.
44333         * m4/localename.m4: New file.
44334         * modules/localename: New file.
44335
44336 2007-06-07  Bruno Haible  <bruno@clisp.org>
44337
44338         Work around the lack of <wchar.h> on some builds of uClibc.
44339         * doc/headers/wchar.texi: Update.
44340         * lib/wchar_.h: Include <wchar.h> only if it exists.
44341         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
44342         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
44343         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
44344         doesn't exist.
44345         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
44346         * modules/mbfile (Depends-on): Add wchar.
44347         * modules/mbiter (Depends-on): Likewise.
44348         * modules/mbuiter (Depends-on): Likewise.
44349         Reported by Simon Josefsson.
44350
44351 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44352
44353         Work around problem reported by Steven M. Schweda in
44354         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
44355         Tru64 5.1B with the Compaq compiler environment installed declares
44356         an 'isblank' function but does not define it in the C library.
44357         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
44358         * lib/regex_internal.h (isblank): Likewise.
44359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
44360         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44361
44362 2007-06-05  Bruno Haible  <bruno@clisp.org>
44363
44364         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
44365         ia64.
44366         * modules/printf-safe: New file.
44367         * modules/fprintf-posix (Depends-on): Add printf-safe.
44368         * modules/printf-posix (Depends-on): Likewise.
44369         * modules/snprintf-posix (Depends-on): Likewise.
44370         * modules/sprintf-posix (Depends-on): Likewise.
44371         * modules/vasnprintf-posix (Depends-on): Likewise.
44372         * modules/vasprintf-posix (Depends-on): Likewise.
44373         * modules/vfprintf-posix (Depends-on): Likewise.
44374         * modules/vprintf-posix (Depends-on): Likewise.
44375         * modules/vsnprintf-posix (Depends-on): Likewise.
44376         * modules/vsprintf-posix (Depends-on): Likewise.
44377         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44378         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
44379         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
44380         "no" on i386, x86_64, ia64.
44381         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
44382         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44383         on i386, x86_64, ia64.
44384         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
44385         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44386         on i386, x86_64, ia64.
44387         * tests/test-vasnprintf-posix.c: Include float.h.
44388         (LDBL80_WORDS): New macro.
44389         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44390         on i386, x86_64, ia64.
44391         * tests/test-vasprintf-posix.c: Include float.h.
44392         (LDBL80_WORDS): New macro.
44393         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44394         on i386, x86_64, ia64.
44395         * tests/test-snprintf-posix.c: Include float.h.
44396         * tests/test-sprintf-posix.c: Likewise.
44397         * tests/test-vsnprintf-posix.c: Likewise.
44398         * tests/test-vsprintf-posix.c: Likewise.
44399
44400 2007-06-05  Bruno Haible  <bruno@clisp.org>
44401
44402         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
44403         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
44404         non-IEEE numbers on i386, x86_64, ia64.
44405         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
44406         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
44407         * tests/test-isnanl.h: Include float.h.
44408         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
44409
44410 2007-06-05  Bruno Haible  <bruno@clisp.org>
44411
44412         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
44413         also the %a / %A. Handle the %a / %A code before this extra handling.
44414
44415 2007-06-05  Bruno Haible  <bruno@clisp.org>
44416
44417         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
44418         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
44419
44420 2007-06-05  Bruno Haible  <bruno@clisp.org>
44421
44422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
44423         typo in variable name.
44424
44425 2007-06-05  Eric Blake  <ebb9@byu.net>
44426
44427         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
44428         Reported by Simon Josefsson.
44429
44430 2007-06-04  Bruno Haible  <bruno@clisp.org>
44431
44432         Avoid test failures on some PowerPC platforms.
44433         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
44434         Define differently for PowerPC.
44435         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
44436         Reported by Gary V. Vaughan <gary@gnu.org>.
44437
44438 2007-06-02  Bruno Haible  <bruno@clisp.org>
44439
44440         Fix test-stdint failure on FreeBSD/ia64.
44441         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
44442         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
44443         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
44444         * doc/headers/stdint.texi: Update.
44445
44446 2007-06-01  Bruno Haible  <bruno@clisp.org>
44447
44448         * tests/test-binary-io.c (main): Pass a third argument to open().
44449         Reported by Gary V. Vaughan <gary@gnu.org>.
44450
44451 2007-06-01  Bruno Haible  <bruno@clisp.org>
44452
44453         * doc/functions/frexpl.texi: Update for mingw.
44454
44455 2007-06-01  Bruno Haible  <bruno@clisp.org>
44456
44457         * tests/test-lseek.c (main): Disable test of errno for invalid third
44458         argument.
44459         * doc/functions/lseek.texi: Update.
44460         Reported by Gary V. Vaughan <gary@gnu.org>.
44461
44462 2007-05-28  Bruno Haible  <bruno@clisp.org>
44463
44464         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
44465
44466 2007-05-31  Eric Blake  <ebb9@byu.net>
44467
44468         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
44469         cross compiling.
44470
44471 2007-05-30  Eric Blake  <ebb9@byu.net>
44472         and Bruno Haible  <bruno@clisp.org>
44473
44474         Work around mingw test failures exposed by m4-1.4.9b.
44475         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
44476         * tests/test-unistd.c: Disable uid_t and git_t tests for the
44477         moment.
44478
44479 2007-05-30  Bruno Haible  <bruno@clisp.org>
44480
44481         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
44482         assuming that they are closed. Needed on HP-UX 11.
44483
44484 2007-05-29  Bruno Haible  <bruno@clisp.org>
44485
44486         Fix a problem with #include_next.
44487         * lib/dirent_.h: Split the double-inclusion guard.
44488         * lib/fcntl_.h: Likewise.
44489         * lib/float_.h: Likewise.
44490         * lib/iconv_.h: Likewise.
44491         * lib/inttypes_.h: Likewise.
44492         * lib/locale_.h: Likewise.
44493         * lib/math_.h: Likewise.
44494         * lib/netinet_in_.h: Likewise.
44495         * lib/search_.h: Likewise.
44496         * lib/signal_.h: Likewise.
44497         * lib/stdint_.h: Likewise.
44498         * lib/stdio_.h: Likewise.
44499         * lib/stdlib_.h: Likewise.
44500         * lib/string_.h: Likewise.
44501         * lib/sys_select_.h: Likewise.
44502         * lib/sys_socket_.h: Likewise.
44503         * lib/sys_stat_.h: Likewise.
44504         * lib/sys_time_.h: Likewise.
44505         * lib/sysexits_.h: Likewise.
44506         * lib/time_.h: Likewise.
44507         * lib/unistd_.h: Likewise.
44508         * lib/wchar_.h: Likewise.
44509         * lib/wctype_.h: Likewise.
44510
44511 2007-05-29  Bruno Haible  <bruno@clisp.org>
44512
44513         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
44514         for the moment.
44515
44516 2007-05-29  Bruno Haible  <bruno@clisp.org>
44517
44518         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
44519         invocation.
44520         Reported by Eric Blake.
44521
44522 2007-05-29  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
44525         compiling case.
44526
44527 2007-05-29  Eric Blake  <ebb9@byu.net>
44528             Bruno Haible  <bruno@clisp.org>
44529
44530         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
44531         cross compiles.
44532
44533 2007-05-28  Eric Blake  <ebb9@byu.net>
44534
44535         * modules/closein-tests (test_closein_LDADD): Support test on
44536         cygwin with libtool.
44537
44538 2007-05-28  Bruno Haible  <bruno@clisp.org>
44539
44540         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
44541         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44542         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44543         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44544         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44545         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44546         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44547         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44548         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44549
44550 2007-05-28  Eric Blake  <ebb9@byu.net>
44551
44552         Unconditionally include <config.h> in unit tests.
44553         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
44554         * tests/test-allocsa.c, tests/test-arcfour.c,
44555         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
44556         tests/test-array_list.c, tests/test-array_oset.c,
44557         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
44558         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
44559         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
44560         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
44561         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
44562         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
44563         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
44564         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
44565         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
44566         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
44567         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
44568         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
44569         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
44570         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
44571         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44572         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44573         test-md5.c, test-memmem.c, test-printf-posix.c,
44574         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44575         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44576         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44577         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44578         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44579         test-vasnprintf-posix2.c, test-vasnprintf.c,
44580         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44581         test-vfprintf-posix.c, test-vprintf-posix.c,
44582         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44583         test-xvasprintf.c: Likewise.
44584
44585 2007-05-28  Bruno Haible  <bruno@clisp.org>
44586
44587         * gnulib-tool (func_import): Remember the --with-tests command-line
44588         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44589         Reported by Eric Blake.
44590
44591 2007-05-28  Bruno Haible  <bruno@clisp.org>
44592
44593         * modules/ftell-tests: New file.
44594         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44595         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44596
44597         * lib/ftell.c: New file.
44598         * modules/ftell: New file.
44599         * m4/ftell.m4: New file.
44600         * doc/functions/ftell.texi: Update.
44601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44602         REPLACE_FTELL.
44603         * lib/stdio_.h (rpl_ftell): New declaration.
44604         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44605         REPLACE_FTELL.
44606
44607 2007-05-28  Eric Blake  <ebb9@byu.net>
44608
44609         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
44610
44611 2007-05-28  Bruno Haible  <bruno@clisp.org>
44612
44613         * modules/fseek-tests: New file.
44614         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
44615         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
44616
44617         * lib/fseek.c: New file.
44618         * modules/fseek: New file.
44619         * m4/fseek.m4: New file.
44620         * doc/functions/fseek.texi: Update.
44621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
44622         REPLACE_FSEEK.
44623         * lib/stdio_.h (rpl_fseek): New declaration.
44624         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
44625         REPLACE_FSEEK.
44626
44627 2007-05-28  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/stdio_.h (fflush): More comments.
44630
44631 2007-05-28  Bruno Haible  <bruno@clisp.org>
44632
44633         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
44634         runtime test.
44635
44636 2007-05-28  Eric Blake  <ebb9@byu.net>
44637
44638         Improve lseek module.
44639         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
44640         * lib/unistd_.h (lseek): Scale back link warning message.
44641         * tests/test-lseek.c: Beef up test.
44642         * tests/test-lseek.sh: Exercise more facets of lseek.
44643         Reported by Bruno Haible.
44644
44645 2007-05-28  Bruno Haible  <bruno@clisp.org>
44646
44647         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
44648         to define.
44649
44650 2007-05-27  Bruno Haible  <bruno@clisp.org>
44651
44652         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
44653
44654 2007-05-27  Bruno Haible  <bruno@clisp.org>
44655
44656         * modules/openmp: New file.
44657         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
44658         Noah Misch.
44659
44660 2007-05-26  Bruno Haible  <bruno@clisp.org>
44661
44662         * modules/chdir-long (Depends-on): Add fchdir.
44663         * modules/chdir-safer (Depends-on): Likewise.
44664         * modules/fts (Depends-on): Likewise.
44665         * modules/fts-lgpl (Depends-on): Likewise.
44666         * modules/openat (Depends-on): Likewise.
44667         * modules/savewd (Depends-on): Likewise.
44668
44669 2007-05-24  Eric Blake  <ebb9@byu.net>
44670
44671         Fix lseek on mingw.
44672         * modules/lseek: New module.
44673         * m4/lseek.m4: New file.
44674         * lib/lseek.c: New file.
44675         * modules/lseek-tests: New file.
44676         * tests/test-lseek.c: New file.
44677         * tests/test-lseek.sh: New file.
44678         * MODULES.html.sh: Document lseek module.
44679         * modules/fflush (Depends-on): Add lseek, fseeko.
44680         * modules/fseeko (Depends-on): Likewise.
44681         * modules/ftello (Depends-on): Likewise.
44682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
44683         broken.
44684         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
44685         broken.
44686         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
44687         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
44688         * lib/ftello.c (rpl_ftello): Likewise.
44689         * tests/test-fseeko.c (main): Test this.
44690         * tests/test-fseeko.sh: Likewise.
44691         * tests/test-ftello.c (main): Likewise.
44692         * tests/test-ftello.sh: Likewise.
44693         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
44694         implies replacing fseek.
44695         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
44696         HAVE_FTELLO.
44697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
44698         * modules/unistd (Makefile.am): Likewise.
44699         * lib/unistd_.h (lseek): Declare a replacement.
44700         * doc/functions/lseek.texi (lseek): Document this fix.
44701         * doc/functions/fseek.texi (fseek): Likewise.
44702         * doc/functions/ftell.texi (ftell): Likewise.
44703
44704 2007-05-24  Bruno Haible  <bruno@clisp.org>
44705
44706         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
44707         in the printed representation of a NaN.
44708         * tests/test-vasprintf-posix.c (test_function): Likewise.
44709         * tests/test-snprintf-posix.h (test_function): Likewise.
44710         * tests/test-sprintf-posix.h (test_function): Likewise.
44711         Reported by Eric Blake.
44712
44713 2007-05-23  Eric Blake  <ebb9@byu.net>
44714
44715         Fix fseeko/ftello on cygwin 1.5.24.
44716         * doc/functions/fseeko.texi (fseeko): Document the fix.
44717         * doc/functions/ftello.texi (ftello): Document the fix.
44718         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
44719         * doc/functions/stdout.text (stdout): New file.
44720         * doc/functions/stderr.text (stderr): New file.
44721         * doc/gnulib.texi (Function Substitutes): Use new files.
44722         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
44723         prior to 1.7.0.
44724         * tests/test-ftello.c (main): Likewise for ftello.
44725         * tests/test-fseeko.sh: New file.
44726         * tests/test-ftello.sh: New file.
44727         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
44728         with seekable stdin.
44729         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44730         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44731         (gl_REPLACE_FSEEKO): New macro.
44732         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44733         * modules/fseeko (Files): Distribute fseeko.c.
44734         * modules/ftello (Files): Distribute ftello.c.
44735         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44736         mode.
44737         * lib/ftello.c (rpl_ftello): New file.
44738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44739         fseeko, ftello.
44740         (gl_STDIN_LARGE_OFFSET): New macro.
44741         * modules/stdio (Makefile.am): Perform the replacement.
44742         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44743
44744 2007-05-23  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44747         GNULIB_POSIXCHECK is defined.
44748
44749 2007-05-21  Bruno Haible  <bruno@clisp.org>
44750
44751         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44752         Check also the output for NaN arguments. When cross-compiling, guess
44753         no on IRIX.
44754         * lib/vasnprintf.c: Update comments.
44755         * tests/test-vasnprintf-posix.c (strisnan): New function.
44756         (test_function): Use it.
44757         * tests/test-vasprintf-posix.c (strisnan): New function.
44758         (test_function): Use it.
44759         * tests/test-snprintf-posix.h (strisnan): New function.
44760         (test_function): Use it.
44761         * tests/test-sprintf-posix.h (strisnan): New function.
44762         (test_function): Use it.
44763         Reported by Eric Blake.
44764
44765 2007-05-20  Bruno Haible  <bruno@clisp.org>
44766
44767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44768         numbers that fails on BeOS.
44769         * doc/functions/frexpl.texi: Update.
44770
44771 2007-05-20  Jim Meyering  <jim@meyering.net>
44772
44773         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44774         forced upon us by glibc-2.6.
44775
44776 2007-05-20  Bruno Haible  <bruno@clisp.org>
44777
44778         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44779         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44780         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44781         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44782         NEED_PRINTF_INFINITE.
44783         (is_infinitel): New function.
44784         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44786         gl_PREREQ_VASNPRINTF_INFINITE.
44787         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44789         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44790         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44791         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44792         gl_PREREQ_VASNPRINTF_INFINITE.
44793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44797         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44800         * doc/functions/fprintf.texi: Update.
44801         * doc/functions/printf.texi: Update.
44802         * doc/functions/snprintf.texi: Update.
44803         * doc/functions/sprintf.texi: Update.
44804         * doc/functions/vfprintf.texi: Update.
44805         * doc/functions/vprintf.texi: Update.
44806         * doc/functions/vsnprintf.texi: Update.
44807         * doc/functions/vsprintf.texi: Update.
44808
44809 2007-05-20  Bruno Haible  <bruno@clisp.org>
44810
44811         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44812         was not found in libc.
44813         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44814
44815 2007-05-20  Bruno Haible  <bruno@clisp.org>
44816
44817         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44818         printed as "-nan" instead of "nan".
44819         * tests/test-vasprintf-posix.c (test_function): Likewise.
44820         * tests/test-snprintf-posix.h (test_function): Likewise.
44821         * tests/test-sprintf-posix.h (test_function): Likewise.
44822         Needed for HP-UX 11.
44823
44824 2007-05-20  Jim Meyering  <jim@meyering.net>
44825
44826         Fix buggy test for the fchownat-deref bug.
44827         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44828         symlink required for the run-test.  Without it, this test would
44829         always declare that fchownat doesn't work, and client code would
44830         unnecessarily use the replacement function with fixed libc.
44831         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44832         Reported by Greg Schafer.
44833
44834 2007-05-19  Bruno Haible  <bruno@clisp.org>
44835
44836         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44837         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44838         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44839         Needed for IRIX 6.5 and Solaris 2.5.1.
44840
44841 2007-05-19  Bruno Haible  <bruno@clisp.org>
44842
44843         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44844         (test_function): Skip tests involving -0.0 on platforms where
44845         -0.0 = 0.0.
44846         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44847         (test_function): Skip tests involving -0.0 on platforms where
44848         -0.0 = 0.0.
44849         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44850         (test_function): Skip tests involving -0.0 on platforms where
44851         -0.0 = 0.0.
44852         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44853         (test_function): Skip tests involving -0.0 on platforms where
44854         -0.0 = 0.0.
44855         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44856         tests.
44857         * tests/test-printf-posix.h (test_function): Likewise.
44858         * tests/test-printf-posix.output: Remove all -0.0 related results.
44859         Needed for IRIX 6.5.
44860
44861 2007-05-19  Bruno Haible  <bruno@clisp.org>
44862
44863         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44864         printed as "nan0x7fffffff" instead of "nan".
44865         * tests/test-vasprintf-posix.c (test_function): Likewise.
44866         * tests/test-snprintf-posix.h (test_function): Likewise.
44867         * tests/test-sprintf-posix.h (test_function): Likewise.
44868         * tests/test-fprintf-posix.h (NaN): Remove macro.
44869         (test_function): Remove all NaN related tests.
44870         * tests/test-printf-posix.h (NaN): Remove macro.
44871         (test_function): Remove all NaN related tests.
44872         * tests/test-printf-posix.output: Remove all NaN related results.
44873         Needed for IRIX 6.5.
44874
44875 2007-05-19  Bruno Haible  <bruno@clisp.org>
44876
44877         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44879
44880 2007-05-19  Bruno Haible  <bruno@clisp.org>
44881
44882         * lib/float_.h: New file.
44883         * m4/float_h.m4: New file.
44884         * modules/float: New file.
44885         * modules/isnanl (Dependencies): Add float.
44886         * modules/isnanl-nolibm (Dependencies): Likewise.
44887         * modules/mathl (Dependencies): Likewise.
44888         * modules/printf-frexpl (Dependencies): Likewise.
44889         * modules/signbit (Dependencies): Likewise.
44890         * modules/vasnprintf (Dependencies): Likewise.
44891         * doc/headers/float.texi: Update.
44892
44893 2007-05-19  Jim Meyering  <jim@meyering.net>
44894
44895         * lib/utimens.c (gl_futimens): Rename from futimens,
44896         now that glibc-2.6 declares futimens.
44897         * lib/utimens.h: Likewise.
44898
44899 2007-05-19  Bruno Haible  <bruno@clisp.org>
44900
44901         Avoid test failures on mingw.
44902         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44903         * tests/test-printf-posix.sh: Likewise.
44904         * tests/test-vfprintf-posix.sh: Likewise.
44905         * tests/test-vprintf-posix.sh: Likewise.
44906
44907 2007-05-19  Bruno Haible  <bruno@clisp.org>
44908
44909         Fix *printf result for NaN, Inf, -0.0 on mingw.
44910         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44911         * lib/vasnprintf.c: Include math.h and isnan.h.
44912         (is_infinite_or_zero): New function.
44913         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44914         values in the %f, %F, %e, %E, %g, %G directives.
44915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44917         gl_PRINTF_INFINITE and test its result. Invoke
44918         gl_PREREQ_VASNPRINTF_INFINITE.
44919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44920         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44922         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44923         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44925         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44926         * doc/functions/fprintf.texi: Update.
44927         * doc/functions/printf.texi: Update.
44928         * doc/functions/snprintf.texi: Update.
44929         * doc/functions/sprintf.texi: Update.
44930         * doc/functions/vfprintf.texi: Update.
44931         * doc/functions/vprintf.texi: Update.
44932         * doc/functions/vsnprintf.texi: Update.
44933         * doc/functions/vsprintf.texi: Update.
44934
44935 2007-05-19  Bruno Haible  <bruno@clisp.org>
44936
44937         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44938         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44939         Instead of multiplying with 10^k, set extra_zeroes to k.
44940         (scale10_round_long_double): Remove function.
44941
44942 2007-05-18  Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44945         introduced on 2007-05-06.
44946
44947 2007-05-18  Bruno Haible  <bruno@clisp.org>
44948
44949         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44950         %g directives.
44951         * tests/test-vasprintf-posix.c (test_function): Likewise.
44952         * tests/test-snprintf-posix.h (test_function): Likewise.
44953         * tests/test-sprintf-posix.h (test_function): Likewise.
44954
44955 2007-05-18  Bruno Haible  <bruno@clisp.org>
44956
44957         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44958         (strmatch): New function.
44959         (test_function): Test the %f directive on numbers of various exponents.
44960         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44961         (strmatch): New function.
44962         (test_function): Test the %f directive on numbers of various exponents.
44963         * tests/test-snprintf-posix.h (strmatch): New function.
44964         (test_function): Test the %f directive on numbers of various exponents.
44965         * tests/test-sprintf-posix.h (strmatch): New function.
44966         (test_function): Test the %f directive on numbers of various exponents.
44967         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44968         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44969         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44970         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44971
44972 2007-05-18  Bruno Haible  <bruno@clisp.org>
44973
44974         Add support for 'long double' number output.
44975         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44976         * lib/vasnprintf.c: Include math.h and float+.h.
44977         (mp_limb_t): New type.
44978         (GMP_LIMB_BITS): New macro.
44979         (mp_twolimb_t): New type.
44980         (GMP_TWOLIMB_BITS): New macro.
44981         (mpn_t): New type.
44982         (multiply, divide, convert_to_decimal, decode_long_double,
44983         scale10_round_long_double, scale10_round_decimal_long_double,
44984         floorlog10l): New functions.
44985         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44986         for the %f, %F, %e, %E, %g, %G directives.
44987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44988         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44989         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44990         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44995         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44996         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44997         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44998         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44999         * modules/snprintf-posix (Depends-on): Likewise.
45000         * modules/sprintf-posix (Depends-on): Likewise.
45001         * modules/vasnprintf-posix (Depends-on): Likewise.
45002         * modules/vasprintf-posix (Depends-on): Likewise.
45003         * modules/vfprintf-posix (Depends-on): Likewise.
45004         * modules/vsnprintf-posix (Depends-on): Likewise.
45005         * modules/vsprintf-posix (Depends-on): Likewise.
45006         * modules/vasnprintf (Files): Add lib/float+.h.
45007         * doc/functions/fprintf.texi: Update.
45008         * doc/functions/printf.texi: Update.
45009         * doc/functions/snprintf.texi: Update.
45010         * doc/functions/sprintf.texi: Update.
45011         * doc/functions/vfprintf.texi: Update.
45012         * doc/functions/vprintf.texi: Update.
45013         * doc/functions/vsnprintf.texi: Update.
45014         * doc/functions/vsprintf.texi: Update.
45015
45016 2007-05-18  Bruno Haible  <bruno@clisp.org>
45017
45018         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
45019
45020 2007-05-18  Bruno Haible  <bruno@clisp.org>
45021
45022         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
45023         for printing 64-bit integers. Needed for mingw.
45024
45025 2007-05-18  Bruno Haible  <bruno@clisp.org>
45026
45027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45028         gl_FUNC_FREXPL_WORKS.
45029         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
45030
45031 2007-05-18  Bruno Haible  <bruno@clisp.org>
45032
45033         * modules/frexpl-nolibm-tests: New file.
45034
45035         * modules/frexpl-nolibm: New file.
45036         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
45037
45038 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45039
45040         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
45041         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45042         GCC 4.2, which otherwise issues a lot of warnings.
45043         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
45044         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
45045         Likewise.
45046         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
45047         * modules/iconv_open (iconv.h): Likewise.
45048         * modules/locale (locale.h): Likewise.
45049         * modules/netinet_in (netinet/in.h): Likewise.
45050         * modules/sys_select (sys_select.h): Likewise.
45051         * modules/sys_socket (sys/socket.h): Likewise.
45052         * modules/sys_stat (sys/stat.h): Likewise.
45053         * modules/sysexits (sysexits.h): Likewise.
45054         * modules/unistd (unistd.h): Likewise.
45055
45056 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45057
45058         * modules/closein-tests (Makefile.am): Distribute
45059         `test-closein.sh'.
45060
45061 2007-05-17  Bruno Haible  <bruno@clisp.org>
45062
45063         * tests/test-printf-posix.output: Renamed from
45064         tests/test-fprintf-posix.out.
45065         * modules/fprintf-posix-tests: Update.
45066         * modules/printf-posix-tests: Update.
45067         * modules/vfprintf-posix-tests: Update.
45068         * modules/vprintf-posix-tests: Update.
45069         * tests/test-fprintf-posix.sh: Update.
45070         * tests/test-printf-posix.sh: Update.
45071         * tests/test-vfprintf-posix.sh: Update.
45072         * tests/test-vprintf-posix.sh: Update.
45073         Reported by Ralf Wildenhues.
45074
45075 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45076
45077         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
45078         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45079         GCC 4.2, which otherwise issues a lot of warnings.
45080         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
45081         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
45082         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
45083         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
45084         it should no longer be needed.
45085         * lib/string_.h: Likewise.
45086         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
45087         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
45088         * modules/inttypes (inttypes.h): Likewise.
45089         * modules/math (math.h): Likewise.
45090         * modules/search (search.h): Likewise.
45091         * modules/signal (signal.h): Likewise.
45092         * modules/stdint (stdint.h): Likewise.
45093         * modules/stdio (stdio.h): Likewise.
45094         * modules/stdlib (stdlib.h): Likewise.
45095         * modules/string (string.h): Likewise.
45096         * modules/sys_time (sys/time.h): Likewise.
45097         * modules/time (time.h): Likewise.
45098         * modules/wchar (wchar.h): Likewise.
45099         * modules/wctype (wtype.h): Likewise.
45100
45101 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45102
45103         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
45104
45105 2007-05-13  Bruno Haible  <bruno@clisp.org>
45106
45107         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
45108         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45109         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
45110         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45111         (gl_PREREQ_STRTOK_R): Don't require it here.
45112
45113 2007-05-13  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
45116         when used in C++ mode.
45117
45118 2007-05-12  Bruno Haible  <bruno@clisp.org>
45119
45120         * lib/linebuffer.h: Tweak doc.
45121         * lib/linebuffer.c: Likewise.
45122
45123 2007-05-12  James Youngman  <jay@gnu.org>
45124
45125         * lib/linebuffer.c (readlinebuffer_delim): New function,
45126         like readlinebuffer, but use a caller-specified delimiter.
45127         (readlinebuffer): Just call readlinebuffer_delim with '\n'
45128         as the delimiter.
45129         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
45130
45131 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45132
45133         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
45134         * modules/openat (Files): Remove openat-die.c.
45135         (Depends-on): Add openat-die.
45136         * modules/openat-die: New module.
45137
45138 2007-05-06  Bruno Haible  <bruno@clisp.org>
45139
45140         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
45141         Update with info about Cygwin.
45142         * doc/functions/fprintf.texi: Update.
45143         * doc/functions/printf.texi: Update.
45144         * doc/functions/snprintf.texi: Update.
45145         * doc/functions/sprintf.texi: Update.
45146         * doc/functions/vfprintf.texi: Update.
45147         * doc/functions/vprintf.texi: Update.
45148         * doc/functions/vsnprintf.texi: Update.
45149         * doc/functions/vsprintf.texi: Update.
45150         Reported by Eric Blake.
45151
45152 2007-05-06  Bruno Haible  <bruno@clisp.org>
45153
45154         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
45155         padding ourselves for the floating-point directives.
45156         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
45157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
45158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45159         gl_PRINTF_FLAG_ZERO and test its result. Invoke
45160         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
45161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45162         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45168         * tests/test-snprintf-posix.h (test_function): Also check the width
45169         and some flags in the %f directive.
45170         * tests/test-sprintf-posix.h (test_function): Likewise.
45171         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45172         * tests/test-vasprintf-posix.c (test_function): Likewise.
45173         * doc/functions/fprintf.texi: Update.
45174         * doc/functions/printf.texi: Update.
45175         * doc/functions/snprintf.texi: Update.
45176         * doc/functions/sprintf.texi: Update.
45177         * doc/functions/vfprintf.texi: Update.
45178         * doc/functions/vprintf.texi: Update.
45179         * doc/functions/vsnprintf.texi: Update.
45180         * doc/functions/vsprintf.texi: Update.
45181
45182 2007-05-06  Bruno Haible  <bruno@clisp.org>
45183
45184         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
45185         pass the ' flag character to sprintf or snprintf.
45186         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
45187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
45188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45189         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
45190         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
45191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45195         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45198         * tests/test-snprintf-posix.h (test_function): Also check the grouping
45199         flag.
45200         * tests/test-sprintf-posix.h (test_function): Likewise.
45201         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45202         * tests/test-vasprintf-posix.c (test_function): Likewise.
45203         * doc/functions/fprintf.texi: Update.
45204         * doc/functions/printf.texi: Update.
45205         * doc/functions/snprintf.texi: Update.
45206         * doc/functions/sprintf.texi: Update.
45207         * doc/functions/vfprintf.texi: Update.
45208         * doc/functions/vprintf.texi: Update.
45209         * doc/functions/vsnprintf.texi: Update.
45210         * doc/functions/vsprintf.texi: Update.
45211
45212 2007-05-01  Bruno Haible  <bruno@clisp.org>
45213
45214         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
45215
45216 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
45217
45218         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
45219         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
45220
45221 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45222
45223         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
45224         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
45225         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
45226
45227 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
45228
45229         * lib/argp-help.c (struct hol_entry): New member `ord'.
45230         (HOL_ENTRY_PTRCMP): Use ord for comparison
45231         (hol_sort): Initialize ord.
45232
45233 2007-05-01  Bruno Haible  <bruno@clisp.org>
45234
45235         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
45236         Reported by Eric Blake.
45237         * doc/gnulib.texi (Function Substitutes): Update.
45238
45239 2007-05-01  Bruno Haible  <bruno@clisp.org>
45240
45241         * doc/functions.texi: Remove file, now redundant through
45242         doc/functions/*.texi.
45243
45244 2007-05-01  Bruno Haible  <bruno@clisp.org>
45245
45246         * modules/argp (Depends-on): Add sleep.
45247
45248 2007-05-01  Bruno Haible  <bruno@clisp.org>
45249
45250         * modules/sleep-tests: New file.
45251         * tests/test-sleep.c: New file.
45252
45253         * modules/sleep: New file.
45254         * lib/sleep.c: New file.
45255         * m4/sleep.m4: New file.
45256         * lib/unistd_.h (sleep): New declaration.
45257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
45258         HAVE_SLEEP.
45259         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
45260         * doc/functions/sleep.texi: Document the sleep module.
45261
45262 2007-05-01  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/sigprocmask.h: Remove file.
45265         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
45266         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
45267         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
45268         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
45269         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45270         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
45271         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
45272         HAVE_SIGSET_T as a shell variable.
45273         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
45274         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
45275         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
45276         (Depends-on): Add signal. Remove verify.
45277         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
45278         (Include): Mention <signal.h> instead of sigprocmask.h.
45279         * NEWS: Mention the change.
45280         * lib/fatal-signal.c: Don't include sigprocmask.h.
45281
45282 2007-05-01  Bruno Haible  <bruno@clisp.org>
45283
45284         * modules/signal: New file.
45285         * lib/signal_.h: New file.
45286         * m4/signal_h.m4: New file.
45287
45288 2007-05-01  Bruno Haible  <bruno@clisp.org>
45289
45290         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
45291         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
45292         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
45293         HAVE_WCTYPE_CTMP_BUG into wctype.h.
45294
45295 2007-05-01  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
45298         configure time.
45299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
45300         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
45301         * modules/sys_stat (Makefile.am): Substitute their values into
45302         sys/stat.h.
45303
45304 2007-05-01  Bruno Haible  <bruno@clisp.org>
45305
45306         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
45307         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
45308         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
45309
45310 2007-05-01  Bruno Haible  <bruno@clisp.org>
45311
45312         * doc/header/assert.texi: Undo last change: don't mention the gnulib
45313         'assert' module here.
45314
45315 2007-05-01  Bruno Haible  <bruno@clisp.org>
45316
45317         * doc/functions/*.texi: New files.
45318         * doc/functions/google-ranking.txt: New file.
45319         * doc/gnulib.texi (Function Substitutes): New chapter.
45320         (ctime, inet_ntoa): Remove sections.
45321         * doc/ctime.texi: Remove file.
45322         * doc/inet_ntoa.texi: Remove file.
45323         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
45324         dependencies.
45325         (%.info): New rule, specifying a --reference-limit.
45326
45327 2007-05-01  Bruno Haible  <bruno@clisp.org>
45328
45329         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
45330
45331 2007-05-01  Bruno Haible  <bruno@clisp.org>
45332
45333         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
45334         the portability of 'mkdir' to mingw systems.
45335
45336 2007-05-01  Bruno Haible  <bruno@clisp.org>
45337
45338         * doc/headers/google-ranking.txt: New file.
45339
45340 2007-04-30  Eric Blake  <ebb9@byu.net>
45341
45342         Prefer fseeko to fseek.
45343         * modules/getpass (Depends-on): Add fseeko.
45344         * lib/getpass.c (getpass): Use fseeko, not fseek.
45345
45346 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
45347
45348         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
45349         assumes the sorting is stable, while most qsort implementations
45350         are not.  Use argument addresses to ensure they never compare as
45351         equal.
45352
45353         * tests/test-argp-2.sh (usage-indent test): Fix output
45354         (func_compare): Restore diff options
45355         * tests/test-argp.c: Restore #include "progname.h"
45356
45357 2007-04-29  Bruno Haible  <bruno@clisp.org>
45358
45359         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
45360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45361         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
45362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45363         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
45364         (configure.ac): Define CHECK_SNPRINTF_POSIX.
45365         (TESTS, check_PROGRAMS): Add test-snprintf.
45366         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
45367         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
45368         (TESTS, check_PROGRAMS): Add test-vsnprintf.
45369         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
45370         assertions that fail on HP-UX, OSF/1, or IRIX.
45371         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
45372
45373 2007-04-29  Bruno Haible  <bruno@clisp.org>
45374
45375         * MODULES.html.sh (posix_functions): Remove 'contents'.
45376
45377 2007-04-29  Karl Berry  <karl@gnu.org>
45378
45379         * config/srclist.txt (gendocs_template_min): new entry.
45380
45381 2007-04-29  Bruno Haible  <bruno@clisp.org>
45382
45383         Work around fpurge bug on BSD systems.
45384         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
45385         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
45386         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
45387         fpurge to rpl_fpurge if the system already has this function.
45388         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
45389         the case where the system already has this function. Correct invariants
45390         on BSD systems.
45391         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
45392         BSD systems.
45393
45394 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45395
45396         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
45397         proposed by Sven Verdoolaege.
45398
45399         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
45400         options.
45401         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
45402         (usage and help tests): Update
45403
45404 2007-04-29  Bruno Haible  <bruno@clisp.org>
45405
45406         * tests/test-fflush.c (main): Use a file of size 17, not 10.
45407         Print more information in case of failure. Disable a test on BeOS.
45408
45409 2007-04-29  Bruno Haible  <bruno@clisp.org>
45410
45411         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
45412         This helps debugging on systems on which no gdb is available.
45413
45414 2007-04-29  Bruno Haible  <bruno@clisp.org>
45415
45416         * lib/freading.h: Improve comments.
45417         * lib/fwriting.h: Likewise.
45418         * tests/test-freading.c (main): Don't check freading immediately after
45419         repositioning. Needed for glibc.
45420
45421 2007-04-29  Bruno Haible  <bruno@clisp.org>
45422
45423         * lib/freading.c (freading): Trivial simplification.
45424
45425 2007-04-28  Bruno Haible  <bruno@clisp.org>
45426
45427         * tests/test-fwriting.c (main): Also test the interaction between
45428         fflush and fwriting.
45429         * modules/fwriting-tests (Depends-on): Add fflush.
45430
45431         * tests/test-freading.c (main): Also test the interaction between
45432         fflush and freading.
45433         * modules/freading-tests (Depends-on): Add fflush.
45434
45435 2007-04-28  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
45438         fseeko and ftello.
45439         Suggested by Eric Blake.
45440
45441 2007-04-28  Jim Meyering  <jim@meyering.net>
45442
45443         Avoid false-negative in gl_STDINT_H's C99 conformance test.
45444         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
45445         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
45446
45447 2007-04-27  Eric Blake  <ebb9@byu.net>
45448
45449         * doc/headers/assert.texi (assert.h): Document assert module use.
45450
45451 2007-04-27  Bruno Haible  <bruno@clisp.org>
45452
45453         * doc/headers/*.texi: New files.
45454         * doc/gnulib.texi (Header File Substitutes): New chapter.
45455         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
45456         dependencies.
45457         (standards.info ,standards.html, standards.dvi): Update dependencies.
45458         (mostlyclean, clean): New targets.
45459
45460 2007-04-27  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
45463         * modules/sysexits (Files, Makefile.am): Update.
45464
45465         * lib/sys_socket_.h: Renamed from lib/socket_.h.
45466         * modules/sys_socket (Files, Makefile.am): Update.
45467
45468         * lib/sys_stat_.h: Renamed from lib/stat_.h.
45469         * modules/sys_stat (Files, Makefile.am): Update.
45470
45471 2007-04-27  Eric Blake  <ebb9@byu.net>
45472
45473         * lib/freading.h: Improve comments.
45474         * lib/fwriting.h: Likewise.
45475         * lib/fflush.c: Likewise.
45476
45477         Fix closein for mingw.
45478         * modules/closein-tests: Add tests for closein.
45479         * tests/test-closein.c: New file.
45480         * tests/test-closein.sh: Likewise.
45481         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
45482         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
45483
45484 2007-04-27  Bruno Haible  <bruno@clisp.org>
45485
45486         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
45487         version is < 6.
45488         * lib/math_.h [__DECC]: Likewise.
45489         * lib/stdio_.h [__DECC]: Likewise.
45490         * lib/stdlib_.h [__DECC]: Likewise.
45491         * lib/string_.h [__DECC]: Likewise.
45492         * lib/time_.h [__DECC]: Likewise.
45493         * lib/wchar_.h [__DECC]: Likewise.
45494         * lib/wctype_.h [__DECC]: Likewise.
45495
45496 2007-04-27  Bruno Haible  <bruno@clisp.org>
45497
45498         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
45499
45500 2007-04-27  Bruno Haible  <bruno@clisp.org>
45501
45502         * lib/fflush.c: Add comments.
45503         * modules/fpurge-tests (Depends-on): Add fflush.
45504         * modules/freadable-tests (Depends-on): Likewise.
45505         * modules/fwritable-tests (Depends-on): Likewise.
45506
45507 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
45508
45509         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
45510         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
45511         Report by Bruno Haible <bruno@clisp.org>.
45512
45513 2007-04-26  Eric Blake  <ebb9@byu.net>
45514
45515         Fix fflush on mingw.
45516         * modules/fflush (Depends-on): Add freading.
45517         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
45518         but unread data.
45519
45520 2007-04-26  Eric Blake  <ebb9@byu.net>
45521         and Bruno Haible  <bruno@clisp.org>
45522
45523         Implement freading and fwriting.
45524         * lib/freading.c: New file.
45525         * lib/freading.h: Likewise.
45526         * m4/freading.m4: Likewise.
45527         * modules/freading: Likewise.
45528         * modules/freading-tests: Likewise.
45529         * tests/test-freading.c: Likewise.
45530         * lib/fwriting.c: New file.
45531         * lib/fwriting.h: Likewise.
45532         * m4/fwriting.m4: Likewise.
45533         * modules/fwriting: Likewise.
45534         * modules/fwriting-tests: Likewise.
45535         * tests/test-fwriting.c: Likewise.
45536         * MODULES.html.sh (File stream based Input/Output): Mention them.
45537
45538 2007-04-26  Bruno Haible  <bruno@clisp.org>
45539
45540         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
45541         'long' when we assume it.
45542         Suggested by Eric Blake.
45543
45544 2007-04-26  Bruno Haible  <bruno@clisp.org>
45545
45546         Ensure fseeko, ftello are declared on glibc systems.
45547         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
45548         * modules/fseeko (configure.ac-early): Likewise.
45549         * modules/ftello (configure.ac-early): Likewise.
45550         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
45551         AC_FUNC_FSEEKO for this.
45552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
45553         (gl_CHECK_FSEEKO): Remove macro.
45554
45555 2007-04-26  Bruno Haible  <bruno@clisp.org>
45556
45557         * tests/test-fflush.c (main): Also check the ftell result after
45558         fflush and fseek/fseeko.
45559         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
45560         file descriptor position cache in the stream.
45561         * lib/fseeko.c (rpl_fseeko): Likewise.
45562
45563 2007-04-26  Bruno Haible  <bruno@clisp.org>
45564
45565         * modules/fflush-tests (Depends-on): Add fseeko.
45566
45567 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
45568             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45569
45570         * lib/argz_.h: ensure error_t definition is obtained in same
45571         mechanism system argz.h would have.
45572         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45573         argz facilities are known bad.  Err on the side of caution if
45574         cross-compiling.
45575
45576 2007-04-25  Eric Blake  <ebb9@byu.net>
45577
45578         * lib/fpurge.c (includes): Use stdlib.h for free.
45579         * tests/test-fflush.c (main): Also test fflush-fseeko.
45580
45581 2007-04-25  Bruno Haible  <bruno@clisp.org>
45582
45583         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45584         * lib/fseeko.c: New file.
45585         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45586         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45587         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45588         gl_FUNC_FSEEKO.
45589         (gl_FUNC_FSEEKO): Invoke it.
45590         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45591         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45592         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45593
45594 2007-04-25  Bruno Haible  <bruno@clisp.org>
45595
45596         * modules/fflush (Depends-on): Add ftello.
45597
45598 2007-04-25  Bruno Haible  <bruno@clisp.org>
45599
45600         * modules/ftello-tests: New file.
45601         * tests/test-ftello.c: New file.
45602
45603         * modules/ftello: New file.
45604         * m4/ftello.m4: New file.
45605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
45606         HAVE_FTELLO.
45607         * lib/stdio_.h (ftello): New declaration.
45608         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
45609         HAVE_FTELLO.
45610
45611 2007-04-25  Bruno Haible  <bruno@clisp.org>
45612
45613         * modules/fseeko-tests: New file.
45614         * tests/test-fseeko.c: New file.
45615
45616         * modules/fseeko: New file.
45617         * m4/fseeko.m4: New file.
45618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
45619         HAVE_FSEEKO.
45620         * lib/stdio_.h (fseeko): New declaration.
45621         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
45622         HAVE_FSEEKO.
45623
45624 2007-04-25  Bruno Haible  <bruno@clisp.org>
45625
45626         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
45627
45628 2007-04-25  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
45631         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
45632         * tests/test-unistd.c: Likewise.
45633         * tests/test-fcntl.c: Likewise.
45634
45635 2007-04-23  Eric Blake  <ebb9@byu.net>
45636
45637         * lib/fflush.c: Fix missing include.
45638         Reported by Bruno Haible.
45639
45640 2007-04-23  Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
45643         Reported by Eric Blake.
45644
45645 2007-04-23  Bruno Haible  <bruno@clisp.org>
45646
45647         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
45648
45649 2007-04-23  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
45652
45653 2007-04-23  Bruno Haible  <bruno@clisp.org>
45654
45655         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
45656         Needed on HP-UX 11.
45657
45658 2007-04-16  Eric Blake  <ebb9@byu.net>
45659
45660         Make fflush rely on fpurge.
45661         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
45662         open coding all variants.
45663         * modules/fflush (Depends-on): Add fpurge and unistd.
45664         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
45665         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
45666
45667         Fix --with-tests compilation on cygwin.
45668         * modules/argmatch-tests (Makefile.am): List gnulib library first
45669         in LDADD.
45670         * modules/argp-tests (Makefile.am): Likewise.
45671         * modules/array-list-tests (Makefile.am): Likewise.
45672         * modules/array-oset-tests (Makefile.am): Likewise.
45673         * modules/avltree-list-tests (Makefile.am): Likewise.
45674         * modules/avltree-oset-tests (Makefile.am): Likewise.
45675         * modules/avltreehash-list-tests (Makefile.am): Likewise.
45676         * modules/carray-list-tests (Makefile.am): Likewise.
45677         * modules/dirname-tests (Makefile.am): Likewise.
45678         * modules/frexp-tests (Makefile.am): Likewise.
45679         * modules/isnanl-tests (Makefile.am): Likewise.
45680         * modules/linked-list-tests (Makefile.am): Likewise.
45681         * modules/linkedhash-list-tests (Makefile.am): Likewise.
45682         * modules/lock-tests (Makefile.am): Likewise.
45683         * modules/rbtree-list-tests (Makefile.am): Likewise.
45684         * modules/rbtree-oset-tests (Makefile.am): Likewise.
45685         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
45686         * modules/tls-tests (Makefile.am): Likewise.
45687         * modules/tsearch-tests (Makefile.am): Likewise.
45688         * modules/xvasprintf-tests (Makefile.am): Likewise.
45689
45690         Fix fpurge for cygwin.
45691         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
45692         value.
45693         * modules/fpurge-tests (Depends-on): Clean up trash.
45694
45695 2007-04-16  Simon Josefsson  <simon@josefsson.org>
45696
45697         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
45698
45699         * m4/autobuild.m4: Re-indent.
45700
45701 2007-04-13  Bruno Haible  <bruno@clisp.org>
45702
45703         * modules/fpurge-tests: New file.
45704         * tests/test-fpurge.c: New file.
45705
45706         * modules/fpurge: New file.
45707         * lib/fpurge.h: New file.
45708         * lib/fpurge.c: New file.
45709         * m4/fpurge.m4: New file.
45710
45711 2007-04-13  Bruno Haible  <bruno@clisp.org>
45712
45713         * modules/fbufmode-tests: New file.
45714         * tests/test-fbufmode.c: New file.
45715
45716         * modules/fbufmode: New file.
45717         * lib/fbufmode.h: New file.
45718         * lib/fbufmode.c: New file.
45719         * m4/fbufmode.m4: New file.
45720
45721 2007-04-13  Bruno Haible  <bruno@clisp.org>
45722
45723         * modules/fwritable-tests: New file.
45724         * tests/test-fwritable.c: New file.
45725
45726         * modules/fwritable: New file.
45727         * lib/fwritable.h: New file.
45728         * lib/fwritable.c: New file.
45729         * m4/fwritable.m4: New file.
45730
45731 2007-04-13  Bruno Haible  <bruno@clisp.org>
45732
45733         * modules/freadable-tests: New file.
45734         * tests/test-freadable.c: New file.
45735
45736         * modules/freadable: New file.
45737         * lib/freadable.h: New file.
45738         * lib/freadable.c: New file.
45739         * m4/freadable.m4: New file.
45740
45741 2007-04-13  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45744         MOSTLYCLEANFILES.
45745
45746 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45747
45748         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45749         gzip bootstrap.conf to avoid dragging in i18n machinery.
45750         (gnulib_tool_option): Use it.
45751
45752 2007-04-13  Bruno Haible  <bruno@clisp.org>
45753
45754         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45755         %F directives.
45756         * tests/test-vasprintf-posix.c (test_function): Likewise.
45757         * tests/test-snprintf-posix.h (test_function): Likewise.
45758         * tests/test-sprintf-posix.h (test_function): Likewise.
45759         * tests/test-fprintf-posix.h (test_function): Likewise.
45760         * tests/test-printf-posix.h (test_function): Likewise.
45761         * tests/test-fprintf-posix.out: Likewise.
45762
45763 2007-04-13  Bruno Haible  <bruno@clisp.org>
45764
45765         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45766         * modules/tls-tests (configure.ac): Likewise.
45767         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45768
45769 2007-04-13  Bruno Haible  <bruno@clisp.org>
45770
45771         * lib/tls.c (glthread_tls_get): Fix return type.
45772         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45773
45774 2007-04-12  Eric Blake  <ebb9@byu.net>
45775
45776         * modules/gettime (Depends-on): Remove gettime.
45777         Reported by Dmitry V. Levin.
45778
45779 2007-04-12  Bruno Haible  <bruno@clisp.org>
45780
45781         * modules/fflush (Include): Mention <stdio.h>.
45782         * modules/strtoimax (Include): Mention <inttypes.h>.
45783         * modules/strtoumax (Include): Likewise.
45784
45785 2007-04-12  Eric Blake  <ebb9@byu.net>
45786
45787         * .cvsignore: New file.
45788         * .gitignore: Likewise.
45789
45790 2007-04-12  Bruno Haible  <bruno@clisp.org>
45791
45792         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45793         not before, since $(LDADD) often contains libgnu.a.
45794         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45795         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45796         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45797         Needed on Cygwin.
45798
45799 2007-04-12  Eric Blake  <ebb9@byu.net>
45800
45801         Work around glibc's failure to flush stdin on fclose.
45802         * lib/closein.c (close_stdin): Flush stdin before closing.
45803
45804         Work around glibc's failure to reset seekable stdin on exit.
45805         * modules/closein: New module.
45806         * lib/closein.c: New file.
45807         * lib/closein.h: Likewise.
45808         * m4/closein.m4: Likewise.
45809         * MODULES.html.sh (File stream based Input/Output): Document it.
45810
45811 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45812
45813         * gnulib-tool: Rename generated 'autobuild' script to
45814         'do-autobuild' in --create-megatestdir output.
45815
45816         * doc/gnulib.texi (Build robot for gnulib): Fix.
45817
45818 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45819
45820         * modules/sysexits (Depends-on): Add absolute-header.
45821
45822 2007-04-12  Eric Blake  <ebb9@byu.net>
45823
45824         No need to preserve errno on success.
45825         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45826         Reported by Bruno Haible.
45827
45828 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45829
45830         * MODULES.html.sh (Support for maintaining and releasing
45831         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45832
45833 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45834
45835         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45836
45837 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45838
45839         * modules/autobuild: New module.
45840
45841         * m4/autobuild.m4: New file.
45842
45843 2007-04-11  Bruno Haible  <bruno@clisp.org>
45844
45845         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45846         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45849         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45850         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45851         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45853         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45854         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45855         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45856         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45857         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45859         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45860         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45862         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45863         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45865         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45866         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45868         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45869         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
45871         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45872         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45873         Reported by Eric Blake.
45874
45875 2007-04-11  Bruno Haible  <bruno@clisp.org>
45876
45877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45878
45879 2007-04-10  Bruno Haible  <bruno@clisp.org>
45880
45881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45882         for NaN and Infinity. Needed on FreeBSD 6.1.
45883         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45884         regarding results for "%010a" of Infinity and NaN.
45885         * tests/test-vasprintf-posix.c (test_function): Likewise.
45886         * tests/test-snprintf-posix.h (test_function): Likewise.
45887         * tests/test-sprintf-posix.h (test_function): Likewise.
45888         * tests/test-fprintf-posix.h (test_function): Likewise.
45889         * tests/test-printf-posix.h (test_function): Likewise.
45890         * tests/test-fprintf-posix.out: Likewise.
45891
45892 2007-04-10  Bruno Haible  <bruno@clisp.org>
45893
45894         * modules/locale-tests: New file.
45895         * tests/test-locale.c: New file.
45896
45897         * modules/locale: New file.
45898         * lib/locale_.h: New file.
45899         * m4/locale_h.m4: New file.
45900
45901 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45902             Bruno Haible  <bruno@clisp.org>
45903
45904         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45905         be determined, test for availability of the copysignf, copysign,
45906         copysignl functions.
45907         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45908         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45909         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45910
45911 2007-04-09  Eric Blake  <ebb9@byu.net>
45912
45913         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45914         * modules/stdio (Makefile.am): Support fflush.
45915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45916         * modules/fflush: New file.
45917         * lib/fflush.c: Likewise.
45918         * m4/fflush.m4: Likewise.
45919         * modules/fflush-tests: New test.
45920         * tests/test-fflush.c: Likewise.
45921         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45922
45923 2007-04-06  Bruno Haible  <bruno@clisp.org>
45924
45925         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45926         (VASNPRINTF): Use signbit for faster determination whether to print a
45927         minus sign.
45928         * modules/vasnprintf (Files): Remove lib/float+.h.
45929         * modules/fprintf-posix (Depends-on): Add signbit.
45930         * modules/snprintf-posix (Depends-on): Likewise.
45931         * modules/sprintf-posix (Depends-on): Likewise.
45932         * modules/vasnprintf-posix (Depends-on): Likewise.
45933         * modules/vasprintf-posix (Depends-on): Likewise.
45934         * modules/vfprintf-posix (Depends-on): Likewise.
45935         * modules/vsnprintf-posix (Depends-on): Likewise.
45936         * modules/vsprintf-posix (Depends-on): Likewise.
45937
45938 2007-04-06  Bruno Haible  <bruno@clisp.org>
45939
45940         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45941         * tests/test-frexpl.c (main): Likewise.
45942         * tests/test-ldexpl.c (main): Likewise.
45943         * modules/frexp-tests (Depends-on): Add signbit.
45944         * modules/frexpl-tests (Depdends-on): Likewise.
45945         * modules/ldexpl-tests (Depdends-on): Likewise.
45946
45947 2007-04-06  Bruno Haible  <bruno@clisp.org>
45948
45949         * modules/signbit-tests: New file.
45950         * tests/test-signbit.c: New file.
45951
45952         * modules/signbit: New file.
45953         * lib/signbitf.c: New file.
45954         * lib/signbitd.c: New file.
45955         * lib/signbitl.c: New file.
45956         * m4/signbit.m4: New file.
45957         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45958         (signbit): New macro.
45959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45960         REPLACE_SIGNBIT.
45961         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45962         REPLACE_FREXPL into math.h.
45963
45964 2007-04-06  Bruno Haible  <bruno@clisp.org>
45965
45966         * modules/isnanf-nolibm-tests: New file.
45967         * tests/test-isnanf.c: New file.
45968
45969         * modules/isnanf-nolibm: New file.
45970         * lib/isnanf.h: New file.
45971         * lib/isnanf.c: New file.
45972         * lib/isnan.c: Consider the USE_FLOAT macro.
45973         * m4/isnanf.m4: New file.
45974
45975 2007-04-06  Bruno Haible  <bruno@clisp.org>
45976
45977         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45978         (Link): New section.
45979
45980         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45981
45982 2007-04-06  Bruno Haible  <bruno@clisp.org>
45983
45984         Assume the 'long double' type.
45985         * m4/longdouble.m4: Remove file.
45986         * config/srclist.txt: Don't mention longdouble.m4.
45987         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45988         * lib/float+.h: Likewise.
45989         * lib/frexp.c: Likewise.
45990         * lib/printf-args.h: Likewise.
45991         * lib/printf-args.c: Likewise.
45992         * lib/printf-frexp.c: Likewise.
45993         * lib/printf-parse.c: Likewise.
45994         * lib/vasnprintf.c: Likewise.
45995         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45996         * m4/intl.m4: Likewise.
45997         * m4/isnanl.m4: Likewise.
45998         * m4/printf.m4: Likewise.
45999         * m4/printf-frexpl.m4: Likewise.
46000         * m4/vasnprintf.m4: Likewise.
46001         * modules/allocsa (Files): Remove m4/longdouble.m4.
46002         * modules/gettext (Files): Likewise.
46003         * modules/relocatable-prog-wrapper (Files): Likewise.
46004         * modules/vasnprintf (Files): Likewise.
46005         * modules/isnanl (Files): Likewise.
46006         (Include): Simplify.
46007         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
46008         (Include): Simplify.
46009         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
46010         (Include): Simplify.
46011         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
46012         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46013         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
46014         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46015         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46016         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46017         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
46018         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46019         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46020         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46021         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
46022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46023         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
46024         * tests/test-isnanl.c: Likewise.
46025         * tests/test-snprintf-posix.h: Likewise.
46026         * tests/test-sprintf-posix.h: Likewise.
46027         * tests/test-vasnprintf-posix.c: Likewise.
46028         * tests/test-vasnprintf-posix2.c: Likewise.
46029         * tests/test-vasprintf-posix.c: Likewise.
46030
46031 2007-04-06  Bruno Haible  <bruno@clisp.org>
46032
46033         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
46034         * lib/math_.h [__DECC]: Include the overridden include file through
46035         #include_next, outside the double-inclusion guard.
46036         * lib/stdio_.h [__DECC]: Likewise.
46037         * lib/stdlib_.h [__DECC]: Likewise.
46038         * lib/string_.h [__DECC]: Likewise.
46039         * lib/time_.h [__DECC]: Likewise.
46040         * lib/wchar_.h [__DECC]: Likewise.
46041         * lib/wctype_.h [__DECC]: Likewise.
46042         * lib/inttypes_.h [__DECC]: Likewise.
46043         Reported by Albert Chin <china@thewrittenword.com> in
46044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
46045
46046 2007-04-04  Eric Blake  <ebb9@byu.net>
46047
46048         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
46049         1.5.x.
46050
46051 2007-04-04  Bruno Haible  <bruno@clisp.org>
46052
46053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
46054         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
46055
46056 2007-04-04  Bruno Haible  <bruno@clisp.org>
46057
46058         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
46059         results for "%010a" of Infinity and NaN.
46060         * tests/test-vasprintf-posix.c (test_function): Likewise.
46061         * tests/test-snprintf-posix.h (test_function): Likewise.
46062         * tests/test-sprintf-posix.h (test_function): Likewise.
46063         * tests/test-fprintf-posix.h (test_function): Remove these tests.
46064         * tests/test-printf-posix.h (test_function): Likewise.
46065         * tests/test-fprintf-posix.out: Update.
46066         Needed for FreeBSD 6.1.
46067
46068 2007-04-04  Bruno Haible  <bruno@clisp.org>
46069
46070         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
46071         directly used by the gnulib modules nor by gnulib-tool.
46072
46073 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46074
46075         * DEPENDENCIES: Give overall description of version dependency
46076         desirability.  Use more-typical names for apps.
46077         Add shell, coreutils, diffutils, grep, tar, gzip.
46078
46079 2007-04-04  Simon Josefsson  <simon@josefsson.org>
46080
46081         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
46082
46083 2007-04-04  Karl Berry  <karl@gnu.org>
46084
46085         * MODULES.html.sh (func_module): missing '.
46086
46087 2007-04-03  Bruno Haible  <bruno@clisp.org>
46088
46089         * modules/argmatch-tests (Makefile.am): New variable
46090         test_argmatch_LDADD.
46091         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
46092         * modules/array-list-tests (Makefile.am): New variable
46093         test_array_list_LDADD.
46094         * modules/array-oset-tests (Makefile.am): New variable
46095         test_array_oset_LDADD.
46096         * modules/avltree-list-tests (Makefile.am): New variable
46097         test_avltree_list_LDADD.
46098         * modules/avltree-oset-tests (Makefile.am): New variable
46099         test_avltree_oset_LDADD.
46100         * modules/avltreehash-list-tests (Makefile.am): New variable
46101         test_avltreehash_list_LDADD.
46102         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
46103         test_canonicalize_lgpl_LDADD.
46104         * modules/carray-list-tests (Makefile.am): New variable
46105         test_carray_list_LDADD.
46106         * modules/dirname-tests (Makefile.am): New variable
46107         test_dirname_LDADD.
46108         * modules/linked-list-tests (Makefile.am): New variable
46109         test_linked_list_LDADD.
46110         * modules/linkedhash-list-tests (Makefile.am): New variable
46111         test_linkedhash_list_LDADD.
46112         * modules/rbtree-list-tests (Makefile.am): New variable
46113         test_rbtree_list_LDADD.
46114         * modules/rbtree-oset-tests (Makefile.am): New variable
46115         test_rbtree_oset_LDADD.
46116         * modules/rbtreehash-list-tests (Makefile.am): New variable
46117         test_rbtreehash_list_LDADD.
46118         * modules/xvasprintf-tests (Makefile.am): New variable
46119         test_xvasprintf_LDADD.
46120         Reported by Eric Blake.
46121
46122 2007-04-03  Eric Blake  <ebb9@byu.net>
46123
46124         * DEPENDENCIES: Weaken m4 requirements.
46125
46126 2007-04-03  Bruno Haible  <bruno@clisp.org>
46127
46128         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
46129         * modules/isnanl-tests (configure.ac): Likewise.
46130
46131 2007-04-03  Ben Pfaff  <blp@gnu.org>
46132
46133         * modules/iconv_open: Add $(srcdir)/ to source directory
46134         references in Makefile fragments that call gperf, to fix VPATH
46135         builds.
46136
46137 2007-04-03  Bruno Haible  <bruno@clisp.org>
46138
46139         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
46140         * lib/ldexpl.c: Undo last change.
46141
46142 2007-04-03  Bruno Haible  <bruno@clisp.org>
46143
46144         * modules/printf-frexpl (Depends-on): Undo last change.
46145         (Files): Add m4/ldexpl.m4.
46146
46147 2007-04-03  Bruno Haible  <bruno@clisp.org>
46148
46149         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
46150         * modules/isnanl (Link): New section.
46151
46152         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
46153         * modules/frexp (Link): New section.
46154
46155         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
46156         * modules/frexpl (Link): New section.
46157
46158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
46159         * modules/ldexpl (Link): New section.
46160
46161 2007-04-03  Bruno Haible  <bruno@clisp.org>
46162
46163         * modules/TEMPLATE-EXTENDED: New file.
46164         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
46165
46166 2007-04-03  Bruno Haible  <bruno@clisp.org>
46167
46168         * DEPENDENCIES: New file.
46169         Suggested by Simon Josefsson.
46170
46171 2007-04-03  Bruno Haible  <bruno@clisp.org>
46172
46173         * doc/gnulib.texi: Escape @.
46174
46175 2007-04-03  James Youngman  <jay@gnu.org>
46176         and Paul Eggert  <eggert@cs.ucla.edu>
46177
46178         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
46179         birthtime on all systems that have birthtime, not just those which
46180         use st_birthtimensec rather than st_birthtim.  Putting zero in
46181         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
46182         that the birth time is not available for files on an NFS mount.
46183
46184 2007-04-03  Simon Josefsson  <simon@josefsson.org>
46185
46186         * modules/memxor: Move back from crypto/, suggested by Bruno.
46187         * modules/crypto/hmac-sha1: Fix memxor dependency.
46188
46189         * modules/crypto/gc: Moved from ../.
46190
46191 2007-04-02  Eric Blake  <ebb9@byu.net>
46192
46193         * lib/ldexpl.c (includes): Avoid libm.
46194
46195         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
46196
46197 2007-04-02  Bruno Haible  <bruno@clisp.org>
46198
46199         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
46200         on IRIX.
46201
46202 2007-04-02  Bruno Haible  <bruno@clisp.org>
46203
46204         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
46205         x86 or x86_64 platforms running MacOS X.
46206         Reported by Ryan Schmidt <@ryandesign.com>.
46207
46208 2007-04-02  Bruno Haible  <bruno@clisp.org>
46209
46210         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
46211         i386.
46212
46213 2007-04-01  Simon Josefsson  <simon@josefsson.org>
46214
46215         * modules/crypto/arcfour: Moved from ../.
46216         * modules/crypto/arcfour-tests: Moved from ../.
46217         * modules/crypto/arctwo: Moved from ../.
46218         * modules/crypto/arctwo-tests: Moved from ../.
46219         * modules/crypto/des: Moved from ../.
46220         * modules/crypto/des-tests: Moved from ../.
46221         * modules/crypto/gc-arcfour: Moved from ../.
46222         * modules/crypto/gc-arcfour-tests: Moved from ../.
46223         * modules/crypto/gc-arctwo: Moved from ../.
46224         * modules/crypto/gc-arctwo-tests: Moved from ../.
46225         * modules/crypto/gc-des: Moved from ../.
46226         * modules/crypto/gc-des-tests: Moved from ../.
46227         * modules/crypto/gc-hmac-md5: Moved from ../.
46228         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
46229         * modules/crypto/gc-hmac-sha1: Moved from ../.
46230         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
46231         * modules/crypto/gc-md2: Moved from ../.
46232         * modules/crypto/gc-md2-tests: Moved from ../.
46233         * modules/crypto/gc-md4: Moved from ../.
46234         * modules/crypto/gc-md4-tests: Moved from ../.
46235         * modules/crypto/gc-md5: Moved from ../.
46236         * modules/crypto/gc-md5-tests: Moved from ../.
46237         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
46238         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
46239         * modules/crypto/gc-random: Moved from ../.
46240         * modules/crypto/gc-rijndael: Moved from ../.
46241         * modules/crypto/gc-rijndael-tests: Moved from ../.
46242         * modules/crypto/gc-sha1: Moved from ../.
46243         * modules/crypto/gc-sha1-tests: Moved from ../.
46244         * modules/crypto/gc-tests: Moved from ../.
46245         * modules/crypto/hmac-md5: Moved from ../.
46246         * modules/crypto/hmac-md5-tests: Moved from ../.
46247         * modules/crypto/hmac-sha1: Moved from ../.
46248         * modules/crypto/hmac-sha1-tests: Moved from ../.
46249         * modules/crypto/md2: Moved from ../.
46250         * modules/crypto/md2-tests: Moved from ../.
46251         * modules/crypto/md4: Moved from ../.
46252         * modules/crypto/md4-tests: Moved from ../.
46253         * modules/crypto/md5: Moved from ../.
46254         * modules/crypto/md5-tests: Moved from ../.
46255         * modules/crypto/memxor: Moved from ../.
46256         * modules/crypto/rijndael: Moved from ../.
46257         * modules/crypto/rijndael-tests: Moved from ../.
46258         * modules/crypto/sha1: Moved from ../.
46259
46260 2007-03-30  James Youngman  <jay@gnu.org>
46261
46262         * tests/test-stat-time.c (prepare_test): use chmod() rather than
46263         rename() to change the ctime of a file (because ctime is unaffected
46264         by rename on jfs2 on AIX 5.1).
46265         (main): Start by doing cleanup, in case a previous run failed leaving
46266         test files behind.
46267
46268 2007-03-31  Bruno Haible  <bruno@clisp.org>
46269
46270         Support old proprietary implementations of iconv.
46271         * modules/iconv_open: New file.
46272         * lib/iconv_.h: New file.
46273         * m4/iconv_h.m4: New file.
46274         * lib/iconv_open.c: New file.
46275         * lib/iconv_open-aix.gperf: New file.
46276         * lib/iconv_open-hpux.gperf: New file.
46277         * lib/iconv_open-irix.gperf: New file.
46278         * lib/iconv_open-osf.gperf: New file.
46279         * m4/iconv_open.m4: New file.
46280         * modules/linebreak (Depends-on): Add iconv_open.
46281         * modules/striconv (Depends-on): Likewise.
46282         * modules/striconveh (Depends-on): Likewise.
46283         * modules/unicodeio (Depends-on): Likewise.
46284         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
46285         (iconv_t)(-1).
46286         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
46287         conversion if cd is (iconv_t)(-1).
46288         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
46289         is not possible.
46290
46291 2007-03-31  Bruno Haible  <bruno@clisp.org>
46292
46293         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46294         work on Solaris either. Protect also second use of "autodetect_jp".
46295
46296 2007-03-31  Bruno Haible  <bruno@clisp.org>
46297
46298         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
46299         the function is not present.
46300
46301 2007-03-31  Bruno Haible  <bruno@clisp.org>
46302
46303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
46304         the function is not present.
46305
46306 2007-03-31  Bruno Haible  <bruno@clisp.org>
46307
46308         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
46309         a bug in HP-UX iconv_open().
46310
46311 2007-03-31  Bruno Haible  <bruno@clisp.org>
46312
46313         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
46314         (Mathematics <math.h>): New section, add fpieee.
46315         (Input/output <stdio.h>): Add fseterr.
46316         (Mathematics <math.h>): New section, add printf-frexp.
46317         (Container data structures): Add sublist.
46318         (Core language properties): Add fpucw, inline.
46319         (Functions for greatest-width integer types <inttypes.h>): Add
46320         imaxabs, imaxdiv, inttypes.
46321         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
46322         isnanl-nolibm, ldexp.
46323         (Mathematics <math.h>): New section, add printf-frexpl.
46324         (Support for systems lacking POSIX:2001): Add fprintf-posix,
46325         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
46326         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
46327         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
46328         (Unicode string functions): Add unistr/u*-mbtoucr.
46329         (Java): Add javacomp-script, javaexec-script.
46330         (C#): Add csharpcomp-script, csharpexec-script.
46331         (Support for building libraries and executables): Add havelib,
46332         relocatable-*.
46333         (Support for maintaining and releasing projects): Renamed from
46334         'Support for maintaining and release projects'. Add announce-gen.
46335
46336 2007-03-31  Bruno Haible  <bruno@clisp.org>
46337
46338         * README: Talk primarily about git.
46339         (git and CVS): Renamed from CVS.
46340         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
46341         gnulib is available through git.
46342         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
46343
46344 2007-03-30  Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
46347         * lib/poll_.h: Likewise.
46348         * lib/stat_.h: Likewise.
46349         * lib/sys_time_.h: Likewise.
46350         * lib/sysexit_.h: Likewise.
46351         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
46352         * lib/stdbool_.h: Likewise.
46353         * lib/byteswap_.h: Add double-inclusion guard.
46354
46355 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
46356
46357         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
46358
46359 2007-03-30  Karl Berry  <karl@gnu.org>
46360
46361         * config/srclist-update: double space after USA in the license
46362         substitution, since that's how it's usually (?) written.
46363
46364 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
46367         reported by Bruno Haible.
46368
46369 2007-03-29  Bruno Haible  <bruno@clisp.org>
46370
46371         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
46372         a bug in AIX iconv().
46373
46374 2007-03-29  Bruno Haible  <bruno@clisp.org>
46375
46376         * modules/ldexpl-tests: New file.
46377         * tests/test-ldexpl.c: New file.
46378
46379 2007-03-29  Bruno Haible  <bruno@clisp.org>
46380
46381         * lib/ldexpl.c: Include fpucw.h.
46382         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
46383         multiplication.
46384         * modules/ldexpl (Depends-on): Add fpucw.
46385
46386 2007-03-29  Bruno Haible  <bruno@clisp.org>
46387
46388         * modules/ldexpl: New file.
46389         * m4/ldexpl.m4: New file.
46390         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
46391         set.
46392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
46393         REPLACE_LDEXPL.
46394         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
46395         REPLACE_LDEXPL.
46396         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46397         gl_FUNC_LDEXPL_WORKS.
46398         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
46399         * modules/mathl (Files): Remove lib/ldexpl.c.
46400         (Depends-on): Add ldexpl.
46401
46402 2007-03-29  Bruno Haible  <bruno@clisp.org>
46403
46404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
46405
46406 2007-03-29  Bruno Haible  <bruno@clisp.org>
46407
46408         * tests/test-striconveh.c (main): Don't assume that a direct conversion
46409         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
46410         and possibly also HP-UX.
46411         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46412         work on AIX, IRIX, HP-UX, OSF/1.
46413         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46414         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46415         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46416         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46417         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
46418         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46419
46420 2007-03-29  Bruno Haible  <bruno@clisp.org>
46421
46422         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
46423
46424 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46425
46426         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
46427         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
46428
46429 2007-03-29  Eric Blake  <ebb9@byu.net>
46430
46431         * lib/acl-internal.h: Remove redundant include.
46432         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
46433         Cygwin when a file is locked.
46434
46435 2007-03-29  Bruno Haible  <bruno@clisp.org>
46436
46437         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
46438         file.
46439         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
46440
46441 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46442
46443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
46444         try to remove a parent directory if the child couldn't be removed
46445         (except for the first rmdir, which could fail because the child
46446         doesn't exist).  Problem reported by Jeff Blaine in
46447         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
46448
46449 2007-03-28  Bruno Haible  <bruno@clisp.org>
46450
46451         * lib/striconveh.c (utf8conv_carefully): New function.
46452         (mem_cd_iconveh_internal): Invoke it.
46453
46454 2007-03-28  Bruno Haible  <bruno@clisp.org>
46455
46456         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
46457         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
46458         input.
46459         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
46460         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
46461         unistr/u8-uctomb.
46462
46463 2007-03-28  Bruno Haible  <bruno@clisp.org>
46464
46465         * modules/unistr/u8-mbtoucr: New file.
46466         * lib/unistr/u8-mbtoucr.c: New file.
46467         * modules/unistr/u16-mbtoucr: New file.
46468         * lib/unistr/u16-mbtoucr.c: New file.
46469         * modules/unistr/u16-mbtoucr: New file.
46470         * lib/unistr/u16-mbtoucr.c: New file.
46471         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
46472
46473 2007-03-27  Simon Josefsson  <simon@josefsson.org>
46474             Bruno Haible  <bruno@clisp.org>
46475
46476         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
46477         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
46478         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
46479
46480         * m4/stdio_h.m4: Add stubs for vasprintf too.
46481
46482         * modules/stdio: Support vasprintf in sed command.
46483
46484         * modules/vasprintf: Depend on stdio for prototypes.  Remove
46485         vasprintf.h.  Add stdio module indicator.
46486
46487         * lib/stdio_.h: Declare asprintf and vasprintf, based on
46488         vasprintf.h.
46489
46490         * lib/vasprintf.h: File removed.
46491
46492         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
46493         * lib/vasprintf.c: Ditto.
46494         * lib/xvasprintf.c: Ditto.
46495         * tests/test-vasprintf-posix.c: Ditto.
46496         * tests/test-vasprintf.c: Ditto.
46497
46498 2007-03-27  Bruno Haible  <bruno@clisp.org>
46499
46500         Make vasnprintf multithread-safe.
46501         * lib/vasnprintf.c (decimal_point_char): New function.
46502         (VASNPRINTF): Use it.
46503         Suggested by Simon Josefsson.
46504
46505 2007-03-27  Eric Blake  <ebb9@byu.net>
46506
46507         Support sub-second birthtime on cygwin.
46508         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
46509         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
46510         (get_stat_birthtime): Also work with st_birthtim.
46511
46512 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
46513
46514         * lib/stat-time.h (USE_BIRTHTIME): Remove.
46515         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
46516         (get_stat_birthtime_ns): Do not try to use "spare" fields.
46517         (get_stat_birthtime_ns): Simplify compile-time tests.
46518         (get_stat_birthtime): Change the API to look like
46519         get_stat_mtime etc., except return a negative tv_nsec on error.
46520         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
46521         Don't check for "spare" fields.
46522         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
46523         or for struct stat.st_birthtime, as these tests aren't used.
46524         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
46525
46526 2007-03-27  Bruno Haible  <bruno@clisp.org>
46527
46528         * lib/stat-time.h: Include <sys/stat.h>.
46529
46530 2007-03-27  James Youngman  <jay@gnu.org>
46531
46532         * lib/stat-time.h (get_stat_birthtime): New function for
46533           retrieving st_birthtime as provided by UFS2 (hence *BSD).
46534         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
46535           and its variants.
46536         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
46537         * modules/stat-time-test: New file.
46538         * tests/test-stat-time.c: New test, devised by Bruno Haible.
46539
46540 2007-03-26  Bruno Haible  <bruno@clisp.org>
46541
46542         Better support of signalling NaNs.
46543         * lib/atanl.c: Include isnanl.h.
46544         (atanl): Perform test for NaN at the beginning of the function and
46545         through a call to isnanl.
46546         * lib/cosl.c: Include isnanl.h.
46547         (cosl): Perform test for NaN at the beginning of the function and
46548         through a call to isnanl.
46549         * lib/ldexpl.c: Include isnanl.h.
46550         (ldexpl): Perform test for NaN through a call to isnanl.
46551         * lib/logl.c: Include isnanl.h.
46552         (logl): Perform test for NaN at the beginning of the function and
46553         through a call to isnanl.
46554         * lib/sinl.c: Include isnanl.h.
46555         (sinl): Perform test for NaN at the beginning of the function and
46556         through a call to isnanl.
46557         * lib/sqrtl.c: Include isnanl.h.
46558         (sqrtl): Perform test for NaN at the beginning of the function and
46559         through a call to isnanl.
46560         * lib/tanl.c: Include isnanl.h.
46561         (tanl): Perform test for NaN at the beginning of the function and
46562         through a call to isnanl.
46563         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
46564         * modules/mathl (Depends-on): Add isnanl.
46565
46566 2007-03-26  Eric Blake  <ebb9@byu.net>
46567
46568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
46569         regression in logic sense of previous patch.
46570
46571 2007-03-26  Bruno Haible  <bruno@clisp.org>
46572
46573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46574         unportable shell command "if ! ...".
46575         Reported by Ralf Wildenhues.
46576
46577 2007-03-25  Bruno Haible  <bruno@clisp.org>
46578
46579         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46580         <sysexits.h> file, and only add EX_CONFIG.
46581         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46582         absolute file name and whether it is sufficient. Substitute also
46583         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46584         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46585         ABSOLUTE_SYSEXITS_H into sysexits.h.
46586
46587 2007-03-25  Bruno Haible  <bruno@clisp.org>
46588
46589         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46590         hints is NULL.
46591
46592 2007-03-25  Bruno Haible  <bruno@clisp.org>
46593
46594         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46595         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46596
46597 2007-03-25  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/vasnprintf.c: Include langinfo.h.
46600         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46601         multithread-safe.
46602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
46610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46611         Reported by Simon Josefsson.
46612
46613 2007-03-25  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
46616         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
46617         * modules/vasnprintf (Depends-on): Add stdint.
46618
46619 2007-03-25  Bruno Haible  <bruno@clisp.org>
46620
46621         * modules/fpieee: New file.
46622         * m4/fpieee.m4: New file.
46623         * modules/isnan-nolibm (Depends-on): Add fpieee.
46624         * modules/isnanl-nolibm (Depends-on): Add fpieee.
46625         * modules/isnanl (Depends-on): Add fpieee.
46626
46627 2007-03-25  Bruno Haible  <bruno@clisp.org>
46628
46629         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
46630
46631 2007-03-25  Bruno Haible  <bruno@clisp.org>
46632
46633         Avoid test failures on IRIX 6.5.
46634         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
46635         (main): Use it.
46636         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
46637         macros.
46638         (main): Use them.
46639
46640 2007-03-25  Bruno Haible  <bruno@clisp.org>
46641
46642         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
46643         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
46644         exists but doesn't work.
46645         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
46646         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
46647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
46648         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
46649
46650 2007-03-25  Bruno Haible  <bruno@clisp.org>
46651
46652         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
46653         returns inf. Needed on IRIX 6.5.
46654
46655 2007-03-25  Bruno Haible  <bruno@clisp.org>
46656
46657         * tests/test-frexpl.c: Include isnanl-nolibm.h.
46658         (main): Use isnanl instead of x != x idiom.
46659         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
46660
46661         * tests/test-frexp.c: Include isnan.h.
46662         (main): Use isnan instead of x != x idiom.
46663         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
46664
46665 2007-03-25  Bruno Haible  <bruno@clisp.org>
46666
46667         * tests/test-frexp.c (NaN): New function/macro.
46668         (main): Use it instead of 0.0 / 0.0.
46669         * tests/test-isnan.c (NaN): New function/macro.
46670         (main): Use it instead of 0.0 / 0.0.
46671         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
46672         (test_function): Use it instead of 0.0 / 0.0.
46673         * tests/test-vasprintf-posix.c (NaN): New function/macro.
46674         (test_function): Use it instead of 0.0 / 0.0.
46675         * tests/test-snprintf-posix.h (NaN): New function/macro.
46676         (test_function): Use it instead of 0.0 / 0.0.
46677         * tests/test-sprintf-posix.h (NaN): New function/macro.
46678         (test_function): Use it instead of 0.0 / 0.0.
46679         * tests/test-fprintf-posix.h (NaN): New function/macro.
46680         (test_function): Use it instead of 0.0 / 0.0.
46681         * tests/test-printf-posix.h (NaN): New function/macro.
46682         (test_function): Use it instead of 0.0 / 0.0.
46683
46684         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
46685
46686 2007-03-25  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
46689
46690 2007-03-25  Bruno Haible  <bruno@clisp.org>
46691
46692         * lib/regexec.c (merge_state_with_log): Make static.
46693
46694 2007-03-25  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/trigl.c (kernel_rem_pio2): Make static.
46697
46698 2007-03-25  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/sincosl.c (sincosl_table): Make static.
46701
46702 2007-03-25  Bruno Haible  <bruno@clisp.org>
46703
46704         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
46705         if the compiler does not support C99.
46706
46707 2007-03-25  Bruno Haible  <bruno@clisp.org>
46708
46709         * modules/time (Makefile.am): Ensure all rule action lines start with a
46710         tab.
46711
46712 2007-03-24  Bruno Haible  <bruno@clisp.org>
46713
46714         * modules/tsearch-tests: New file.
46715         * tests/test-tsearch.sh: New file.
46716         * tests/test-tsearch.c: New file, mostly copied from glibc.
46717
46718         * modules/search-tests: New file.
46719         * tests/test-search.c: New file.
46720
46721         * modules/search: New file.
46722         * lib/search_.h: New file, incorporating lib/tsearch.h.
46723         * m4/search_h.m4: New file.
46724         * lib/tsearch.h: Remove file.
46725         * lib/tsearch.c: Include search.h instead of tsearch.h.
46726         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
46727         HAVE_TSEARCH.
46728         * modules/tsearch (Files): Remove lib/tsearch.h.
46729         (Depends-on): Add search.
46730         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46731         (Include): Change tsearch.h into search.h.
46732
46733 2007-03-24  Bruno Haible  <bruno@clisp.org>
46734
46735         * modules/fpucw: New file.
46736         * lib/fpucw.h: New file.
46737         * lib/frexp.c: Include fpucw.h.
46738         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46739         (FUNC): Use them.
46740         * lib/printf-frexp.c: Include fpucw.h.
46741         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46742         (FUNC): Use them.
46743         * lib/vasnprintf.c: Include fpucw.h.
46744         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46745         'long double' calculations.
46746         * tests/test-frexpl.c: Include fpucw.h.
46747         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46748         * tests/test-printf-frexpl.c: Include fpucw.h.
46749         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46750         * modules/frexpl (Depends-on): Add fpucw.
46751         * modules/printf-frexpl (Depends-on): Likewise.
46752         * modules/fprintf-posix (Depends-on): Likewise.
46753         * modules/snprintf-posix (Depends-on): Likewise.
46754         * modules/sprintf-posix (Depends-on): Likewise.
46755         * modules/vasnprintf-posix (Depends-on): Likewise.
46756         * modules/vasprintf-posix (Depends-on): Likewise.
46757         * modules/vfprintf-posix (Depends-on): Likewise.
46758         * modules/vsnprintf-posix (Depends-on): Likewise.
46759         * modules/vsprintf-posix (Depends-on): Likewise.
46760         * modules/frexpl-tests (Depends-on): Likewise.
46761         * modules/printf-frexpl-tests (Depends-on): Likewise.
46762
46763 2007-03-24  Bruno Haible  <bruno@clisp.org>
46764
46765         * lib/float+.h: New file.
46766         * lib/isnan.c: Include float+.h.
46767         (SIZE): New macro.
46768         (FUNC): Compare only SIZE bytes of the value.
46769         * lib/vasnprintf.c: Include float+.h.
46770         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46771         SIZEOF_LDBL or SIZEOF_DBL bytes.
46772         * modules/isnan-nolibm (Files): Add lib/float+.h.
46773         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46774         * modules/isnanl (Files): Add lib/float+.h.
46775         * modules/vasnprintf (Files): Add lib/float+.h.
46776
46777 2007-03-24  Bruno Haible  <bruno@clisp.org>
46778
46779         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46780         include isnanl-nolibm.h.
46781
46782 2007-03-24  Bruno Haible  <bruno@clisp.org>
46783
46784         * tests/test-read-file.c (main): Don't produce spurious output for
46785         expected situations. Make the test fail if it encountered unexpected
46786         results.
46787
46788 2007-03-24  Bruno Haible  <bruno@clisp.org>
46789
46790         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46791         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46792
46793 2007-03-24  Bruno Haible  <bruno@clisp.org>
46794
46795         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46796
46797 2007-03-24  Bruno Haible  <bruno@clisp.org>
46798
46799         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46800         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46801
46802         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46803         * modules/utf8-ucs4: Turn into a symbolic link to module
46804         unistr/u8-mbtouc.
46805
46806         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46807         utf8-ucs4-unsafe.
46808         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46809         unistr/u8-mbtouc-unsafe.
46810
46811         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46812         * modules/utf16-ucs4: Turn into a symbolic link to module
46813         unistr/u16-mbtouc.
46814
46815         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46816         utf16-ucs4-unsafe.
46817         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46818         unistr/u16-mbtouc-unsafe.
46819
46820         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46821         * modules/ucs4-utf8: Turn into a symbolic link to module
46822         unistr/u8-ubtomb.
46823
46824         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46825         * modules/ucs4-utf16: Turn into a symbolic link to module
46826         unistr/u16-ubtomb.
46827
46828 2007-03-24  Bruno Haible  <bruno@clisp.org>
46829
46830         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46831         Enable the function only if HAVE_INLINE.
46832         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46833         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46834         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46835         Enable the function only if HAVE_INLINE.
46836         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46837         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46838         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46839         Enable the function only if HAVE_INLINE.
46840         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46841         Enable the function only if HAVE_INLINE.
46842         * modules/utf8-ucs4: Update.
46843         * modules/utf8-ucs4-unsafe: Update.
46844         * modules/utf16-ucs4: Update.
46845         * modules/utf16-ucs4-unsafe: Update.
46846         * modules/ucs4-utf8: Update.
46847         * modules/ucs4-utf16: Update.
46848
46849 2007-03-24  Bruno Haible  <bruno@clisp.org>
46850
46851         * lib/utf8-ucs4.h: Remove file.
46852         * lib/utf8-ucs4-unsafe.h: Remove file.
46853         * lib/utf16-ucs4.h: Remove file.
46854         * lib/utf16-ucs4-unsafe.h: Remove file.
46855         * lib/ucs4-utf8.h: Remove file.
46856         * lib/ucs4-utf16.h: Remove file.
46857         * lib/unistr.h: Include their previous contents.
46858         * m4/utf-ucs4.m4: Remove file.
46859         * m4/ucs4-utf.m4: Remove file.
46860         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46861         (Depends-on): Add unistr/base.
46862         (configure.ac): Remove gl_UTF_UCS4.
46863         (Makefile.am): Update.
46864         (Include): Change to unistr.h.
46865         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46866         (Depends-on): Add unistr/base.
46867         (configure.ac): Remove gl_UTF_UCS4.
46868         (Makefile.am): Update.
46869         (Include): Change to unistr.h.
46870         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46871         (Depends-on): Add unistr/base.
46872         (configure.ac): Remove gl_UTF_UCS4.
46873         (Makefile.am): Update.
46874         (Include): Change to unistr.h.
46875         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46876         (Depends-on): Add unistr/base.
46877         (configure.ac): Remove gl_UTF_UCS4.
46878         (Makefile.am): Update.
46879         (Include): Change to unistr.h.
46880         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46881         (Depends-on): Add unistr/base.
46882         (configure.ac): Remove gl_UCS4_UTF.
46883         (Makefile.am): Update.
46884         (Include): Change to unistr.h.
46885         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46886         (Depends-on): Add unistr/base.
46887         (configure.ac): Remove gl_UCS4_UTF.
46888         (Makefile.am): Update.
46889         (Include): Change to unistr.h.
46890         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46891         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46892         utf8-ucs4-unsafe.h.
46893         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46894         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46895         utf16-ucs4-unsafe.h.
46896         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46897         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46898         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46899         * lib/unistr/u8-strchr.c: Likewise.
46900         * lib/unistr/u8-strrchr.c: Likewise.
46901         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46902         * lib/unistr/u16-strchr.c: Likewise.
46903         * lib/unistr/u16-strrchr.c: Likewise.
46904         * lib/striconveh.c: Update.
46905         * lib/linebreak.c: Update.
46906
46907 2007-03-24  Bruno Haible  <bruno@clisp.org>
46908
46909         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46910         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46911
46912 2007-03-22  Bruno Haible  <bruno@clisp.org>
46913
46914         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46915
46916 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46917
46918         * MODULES.html.sh (File system functions): New module write-any-file.
46919         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46920         * m4/write-any-file.m4: New files.
46921
46922 2007-03-23  Eric Blake  <ebb9@byu.net>
46923
46924         * gnulib-tool: Rearrange space-tab sequences, since some editors
46925         like to eat them.
46926
46927 2007-03-23  Eric Blake  <ebb9@byu.net>
46928
46929         * lib/version-etc.c (version_etc_va): Update license wording to
46930         be more concise.  Recommended by Richard Stallman.
46931
46932 2007-03-22  Bruno Haible  <bruno@clisp.org>
46933
46934         * lib/poll.c (MSG_PEEK): New fallback definition.
46935
46936 2007-03-22  Bruno Haible  <bruno@clisp.org>
46937
46938         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46939         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46940         (main): Update.
46941         Fixes a compilation error on BeOS.
46942
46943 2007-03-22  Bruno Haible  <bruno@clisp.org>
46944
46945         * modules/frexpl-tests: New file.
46946         * tests/test-frexpl.c: New file.
46947
46948         * modules/frexpl: New file.
46949         * m4/frexpl.m4: New file.
46950         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46951         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46953         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46954         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46955         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46956
46957 2007-03-22  Bruno Haible  <bruno@clisp.org>
46958
46959         * lib/frexpl.c: Share code with lib/frexp.c.
46960         * modules/mathl (Files): Add lib/frexp.c.
46961         (Depends-on): Add isnanl-nolibm.
46962
46963 2007-03-22  Bruno Haible  <bruno@clisp.org>
46964
46965         * modules/printf-frexp (Files): Add m4/frexp.m4.
46966         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46967         only if the found frexp function actually works.
46968
46969 2007-03-22  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/frexp.c: Remove older implementation that uses divisions.
46972
46973 2007-03-21  Bruno Haible  <bruno@clisp.org>
46974
46975         * modules/frexp-tests: New file.
46976         * tests/test-frexp.c: New file.
46977
46978         * modules/frexp: New file.
46979         * lib/frexp.c: New file.
46980         * m4/frexp.m4: New file.
46981         * lib/math_.h (frexp): New declaration.
46982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46983         REPLACE_FREXP.
46984         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46985
46986 2007-03-21  Bruno Haible  <bruno@clisp.org>
46987
46988         * modules/isnanl-tests: New file.
46989         * tests/test-isnanl.c: New file.
46990
46991         * modules/isnanl: New file.
46992         * lib/isnanl.h: New file.
46993         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46994         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46995         gl_FUNC_ISNANL_WORKS.
46996         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46997         New macros.
46998
46999 2007-03-21  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
47002         lib/isnanl.h.
47003         (Include): Update.
47004         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
47005         * lib/vasnprintf.c: Update.
47006         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
47007         tests/test-isnanl.h, remove tests/test-isnanl.c.
47008         (Makefile.am): Update.
47009         * tests/test-isnanl-nolibm.c: New file.
47010         * tests/test-isnanl.h: New file.
47011         * tests/test-isnanl.c: Remove file.
47012
47013 2007-03-21  Jim Meyering  <jim@meyering.net>
47014
47015         When trying to open ".", treat ESTALE like EACCES.
47016         * lib/savewd.c (savewd_save): Resort to forking not just upon
47017         failure with EACCES, but also when errno is ESTALE.
47018
47019 2007-03-20  Bruno Haible  <bruno@clisp.org>
47020
47021         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
47022         Needed on AIX 5.1. Reported by Matthew Woehlke.
47023
47024 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47025
47026         Suggestions by Bruno Haible:
47027         * lib/acl-internal.h: Include "gettext.h" rather than rolling
47028         our own.
47029         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
47030         * modules/acl (Depends-on): Add gettext.
47031
47032 2007-03-19  Bruno Haible  <bruno@clisp.org>
47033
47034         * modules/iconvme: Remove file.
47035         * lib/iconvme.h: Remove file.
47036         * lib/iconvme.c: Remove file.
47037         * m4/iconvme.m4: Remove file.
47038
47039 2007-03-19  Bruno Haible  <bruno@clisp.org>
47040
47041         * doc/relocatable-maint.texi: Break long shell script line.
47042         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47043
47044 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47045
47046         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
47047         handle file_has_acl.
47048         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
47049         * lib/acl.c: Move header inclusions and related macro defns into
47050         lib/acl-internal.h.
47051         (S_ISLNK): Remove defn, since that's now done for us.
47052         (file_has_acl): Move to lib/file-has-acl.c.
47053         Call acl_trivial if available.  This is the crucial part of the fix.
47054         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
47055         shared within the library.  Rewrite a bit, partly to make it compatible
47056         with the GNU coding style.
47057         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
47058         Remove unnecessary double-quotes.
47059         Don't test for acl_to_text; the build will catch that.
47060         Replace acl_entries if it doesn't exist and it is needed.
47061         Check for -lsec and acl_trivial (as used on Solaris 10).
47062         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
47063         lib/file-has-acl.c.
47064         (Depends-on): Add sys_stat, for S_ISLNK.
47065
47066 2007-03-19  Ben Pfaff  <blp@gnu.org>
47067
47068         * doc/gnulib.texi: Fix typos.
47069         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47070
47071 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47072
47073         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
47074         If size is zero here, buf must be zero.
47075
47076 2007-03-19  Simon Josefsson  <simon@josefsson.org>
47077
47078         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
47079         <bruno@clisp.org>.
47080
47081 2007-03-18  Bruno Haible  <bruno@clisp.org>
47082
47083         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
47084         Suggested by Eric Blake.
47085
47086 2007-03-18  Ben Pfaff  <blp@gnu.org>
47087
47088         * doc/relocatable.texi: Recommend using as prefix a directory
47089         that does not exist and will never be created.  Based on
47090         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
47091         and others.
47092
47093 2007-03-17  Bruno Haible  <bruno@clisp.org>
47094
47095         * lib/fchownat.c: Include lchown.h.
47096
47097 2007-03-17  Bruno Haible  <bruno@clisp.org>
47098
47099         Fix endless loop when the given allocated size was > INT_MAX.
47100         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
47101         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
47102         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
47103         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
47104         * lib/sprintf.c (sprintf): Likewise.
47105
47106 2007-03-17  Bruno Haible  <bruno@clisp.org>
47107
47108         * tests/test-argp-2.sh (func_compare): Output a context diff.
47109
47110 2007-03-17  Bruno Haible  <bruno@clisp.org>
47111
47112         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
47113         locale's decimal-point character.
47114
47115 2007-03-17  Bruno Haible  <bruno@clisp.org>
47116
47117         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
47118         before comparing it. Needed because on some platforms (e.g. x86) a
47119         'long double' occupies less bytes than sizeof (long double).
47120
47121 2007-03-17  Bruno Haible  <bruno@clisp.org>
47122
47123         * tests/test-crc.c (main): Make printf statements 64-bit clean.
47124         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
47125         * tests/test-getaddrinfo.c (simple): Likewise.
47126         * tests/test-read-file.c (main): Likewise.
47127
47128 2007-03-17  Bruno Haible  <bruno@clisp.org>
47129
47130         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
47131
47132 2007-03-17  Bruno Haible  <bruno@clisp.org>
47133
47134         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
47135         unused variable.
47136
47137 2007-03-17  Bruno Haible  <bruno@clisp.org>
47138
47139         * tests/test-c-strcasecmp.c: Include c-strcase.h.
47140         * tests/test-c-strncasecmp.c: Likewise.
47141
47142 2007-03-17  Bruno Haible  <bruno@clisp.org>
47143
47144         * modules/stdlib (Depends-on): Add unistd.
47145         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
47146         Needed for MacOS X 10.3.
47147
47148 2007-03-17  Bruno Haible  <bruno@clisp.org>
47149
47150         * lib/unistr/u-strdup.h: Include <stdlib.h>.
47151
47152 2007-03-17  Bruno Haible  <bruno@clisp.org>
47153
47154         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47155
47156 2007-03-17  Bruno Haible  <bruno@clisp.org>
47157
47158         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
47159         to reflect files copied from gnulib (with or without modifications).
47160         Suggested by Jim Meyering.
47161
47162 2007-03-17  Eric Blake  <ebb9@byu.net>
47163
47164         * NEWS: Document stdlib change from 2007-02-18.
47165
47166 2007-03-17  Jim Meyering  <jim@meyering.net>
47167
47168         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
47169         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
47170         someone uses a name containing shell meta-characters.
47171         Reported by Alfred M. Szmidt.
47172
47173         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
47174
47175 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47176
47177         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
47178         and copy gettext configuration files only if configure.ac contains
47179         a use of AM_GNU_GETTEXT_VERSION.
47180
47181 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47182
47183         * build-aux/bootstrap (gnulib_name): New variable.
47184         (gnulib_tool_options): Use it.
47185
47186 2007-03-13  Simon Josefsson  <simon@josefsson.org>
47187
47188         * tests/test-des.c: Use new namespace.
47189
47190 2007-03-15  Bruno Haible  <bruno@clisp.org>
47191
47192         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
47193         Reported by James Youngman <jay@gnu.org>.
47194
47195 2007-03-15  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
47198         declared prototype. Needed with cc on OSF/1 5.1.
47199
47200 2007-03-15  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
47203         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
47204         (struct gl_list_implementation): Add dispose_fn argument to the
47205         'create_empty', 'create' methods.
47206         (struct gl_list_impl_base): Add field 'dispose_fn'.
47207         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
47208         argument.
47209         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
47210         dispose_fn argument.
47211         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
47212         dispose_fn on the dropped values.
47213         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
47214         dispose_fn argument.
47215         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
47216         dropped values.
47217         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
47218         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47219         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
47220         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47221         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
47222         argument.
47223         (gl_tree_list_free): Call dispose_fn on the dropped values.
47224         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
47225         the dropped values.
47226         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47227         Add dispose_fn argument.
47228         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
47229         Call dispose_fn on the dropped values.
47230         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
47231         Add dispose_fn argument.
47232         (gl_sublist_create): Initialize the 'dispose_fn' field.
47233         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
47234         * tests/test-array_list.c (main): Update.
47235         * tests/test-carray_list.c (main): Update.
47236         * tests/test-avltree_list.c (main): Update.
47237         * tests/test-rbtree_list.c (main): Update.
47238         * tests/test-avltreehash_list.c (main): Update.
47239         * tests/test-rbtreehash_list.c (main): Update.
47240         * tests/test-linked_list.c (main): Update.
47241         * tests/test-linkedhash_list.c (main): Update.
47242         * tests/test-array_oset.c (main): Update.
47243
47244 2007-03-15  Bruno Haible  <bruno@clisp.org>
47245
47246         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
47247         (gl_oset_create_empty): Add dispose_fn argument.
47248         (struct gl_oset_implementation): Add dispose_fn argument to
47249         'create_empty' method.
47250         (struct gl_oset_impl_base): Add dispose_fn field.
47251         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
47252         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
47253         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
47254         values.
47255         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
47256         (gl_tree_oset_free): Call dispose_fn on the dropped values.
47257         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47258         dropped value.
47259         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47260         dropped value.
47261         * tests/test-array_oset.c (main): Update.
47262         * tests/test-avltree_oset.c (main): Update.
47263         * tests/test-rbtree_oset.c (main): Update.
47264         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
47265
47266 2007-03-13  Bruno Haible  <bruno@clisp.org>
47267
47268         * tests/test-stdbool.c (i): Update after last patch.
47269
47270 2007-03-12  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/quotearg.c: Include <wctype.h> early, before the definition of
47273         the iswprint macro. Needed on Solaris 2.5.1.
47274
47275 2007-03-12  Bruno Haible  <bruno@clisp.org>
47276
47277         * tests/test-printf-frexp.c (main): Declare x as volatile.
47278
47279 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47280
47281         * doc/gnulib.texi (Build robot for gnulib): New section.
47282
47283 2007-03-12  Jim Meyering  <jim@meyering.net>
47284
47285         * build-aux/bootstrap: New file.
47286         * build-aux/bootstrap.conf: New file, from coreutils.
47287
47288 2007-03-11  Bruno Haible  <bruno@clisp.org>
47289
47290         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
47291
47292 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47293
47294         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
47295         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
47296         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
47297
47298 2007-03-11  Bruno Haible  <bruno@clisp.org>
47299
47300         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
47301         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
47302
47303 2007-03-11  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
47306         formula. Needed for SunPRO C 5.0.
47307
47308 2007-03-11  Bruno Haible  <bruno@clisp.org>
47309
47310         * modules/long-options (Depends-on): Add getopt.
47311
47312 2007-03-11  Bruno Haible  <bruno@clisp.org>
47313
47314         * modules/modechange (Depends-on): Add stdbool.
47315
47316 2007-03-11  Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/i-ring (Depends-on): Add stdbool.
47319
47320 2007-03-11  Bruno Haible  <bruno@clisp.org>
47321
47322         * modules/gc-des (Depends-on): Add stdbool.
47323
47324 2007-03-11  Bruno Haible  <bruno@clisp.org>
47325
47326         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
47327
47328 2007-03-11  Bruno Haible  <bruno@clisp.org>
47329
47330         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
47331
47332 2007-03-11  Bruno Haible  <bruno@clisp.org>
47333
47334         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
47335
47336 2007-03-11  Bruno Haible  <bruno@clisp.org>
47337
47338         * lib/vasnprintf.c (sprintf): Undefine.
47339
47340 2007-03-11  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
47343         initializers in SunPRO C and Compaq C compilers.
47344
47345 2007-03-11  Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
47348         decrementing code ANSI C compliant.
47349
47350 2007-03-11  Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
47353         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
47354
47355 2007-03-11  Bruno Haible  <bruno@clisp.org>
47356
47357         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
47358         <stdbool.h> substitute doesn't pass.
47359
47360 2007-03-11  Bruno Haible  <bruno@clisp.org>
47361
47362         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
47363
47364 2007-03-11  Bruno Haible  <bruno@clisp.org>
47365
47366         * gnulib-tool (func_create_megatestdir): Create also an autobuild
47367         script, for submission to autobuild.josefsson.org.
47368
47369 2007-03-10  Bruno Haible  <bruno@clisp.org>
47370
47371         * modules/canonicalize-lgpl-tests: New file.
47372         * tests/test-canonicalize-lgpl.sh: New file.
47373         * tests/test-canonicalize-lgpl.c: New file.
47374
47375         * modules/c-strcase-tests: New file.
47376         * tests/test-c-strcase.sh: New file.
47377         * tests/test-c-strcasecmp.c: New file.
47378         * tests/test-c-strncasecmp.c: New file.
47379
47380         * modules/atexit-tests: New file.
47381         * tests/test-atexit.sh: New file.
47382         * tests/test-atexit.c: New file.
47383
47384 2007-03-10  Bruno Haible  <bruno@clisp.org>
47385
47386         * tests/test-binary-io.sh: Use temporary filenames that are not so
47387         likely to clash with those of other tests (in a parallel make).
47388         * tests/test-binary-io.c: Likewise.
47389
47390 2007-03-10  Bruno Haible  <bruno@clisp.org>
47391
47392         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
47393         fallback; use #error instead.
47394         Suggested by Simon Josefsson.
47395
47396 2007-03-10  Bruno Haible  <bruno@clisp.org>
47397
47398         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
47399         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
47400         first and the last.
47401
47402 2007-03-10  Bruno Haible  <bruno@clisp.org>
47403
47404         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
47405
47406 2007-03-10  Bruno Haible  <bruno@clisp.org>
47407
47408         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
47409         "make distcheck".
47410         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
47411         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
47412         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
47413
47414 2007-03-10  Bruno Haible  <bruno@clisp.org>
47415
47416         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
47417         variable.
47418         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
47419         variable.
47420
47421 2007-03-09  Eric Blake  <ebb9@byu.net>
47422         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
47423
47424         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
47425         types are not being provided by gnulib.
47426         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
47427         types are supported.
47428
47429 2007-03-10  Bruno Haible  <bruno@clisp.org>
47430
47431         * lib/stdio_.h (__attribute__): New macro.
47432         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
47433         vsprintf): Specify __attribute__ __format__ for GCC.
47434         Suggested by Eric Blake.
47435
47436 2007-03-09  Bruno Haible  <bruno@clisp.org>
47437
47438         * modules/printf-posix-tests: New file.
47439         * tests/test-printf-posix.sh: New file.
47440         * tests/test-printf-posix.c: New file.
47441
47442         * modules/printf-posix: New file.
47443         * lib/printf.c: New file.
47444         * m4/printf-posix-rpl.m4: New file.
47445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
47446         REPLACE_PRINTF.
47447         * lib/stdio_.h (printf): New declaration.
47448         (format, __format__, ____printf____, ____scanf____, ____strftime____,
47449         ____strfmon____): New macros.
47450         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
47451         REPLACE_PRINTF.
47452
47453 2007-03-09  Bruno Haible  <bruno@clisp.org>
47454
47455         * tests/test-vasnprintf-posix2.sh: New file.
47456         * tests/test-vasnprintf-posix2.c: New file.
47457         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
47458         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47459         (Makefile.am): Activate test-vasnprintf-posix2.sh.
47460
47461         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
47462         a locale dependent decimal point, rather than always '.'.
47463
47464 2007-03-09  Eric Blake  <ebb9@byu.net>
47465
47466         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
47467         spite of platforms like Tandem/NSK that define it to -1.
47468
47469 2007-03-08  Bruno Haible  <bruno@clisp.org>
47470
47471         * modules/vprintf-posix-tests: New file.
47472         * tests/test-vprintf-posix.sh: New file.
47473         * tests/test-vprintf-posix.c: New file.
47474         * tests/test-printf-posix.h: New file.
47475
47476         * modules/vprintf-posix: New file.
47477         * lib/vprintf.c: New file.
47478         * m4/vprintf-posix.m4: New file.
47479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
47480         REPLACE_VPRINTF.
47481         * lib/stdio_.h (vprintf): New declaration.
47482         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
47483         REPLACE_VPRINTF.
47484
47485 2007-03-08  Bruno Haible  <bruno@clisp.org>
47486
47487         * modules/fprintf-posix-tests: New file.
47488         * tests/test-fprintf-posix.sh: New file.
47489         * tests/test-fprintf-posix.c: New file.
47490
47491         * modules/fprintf-posix: New file.
47492         * lib/fprintf.c: New file.
47493         * m4/fprintf-posix.m4: New file.
47494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
47495         REPLACE_FPRINTF.
47496         * lib/stdio_.h (fprintf): New declaration.
47497         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
47498         REPLACE_FPRINTF.
47499
47500 2007-03-08  Bruno Haible  <bruno@clisp.org>
47501
47502         * modules/vfprintf-posix-tests: New file.
47503         * tests/test-vfprintf-posix.sh: New file.
47504         * tests/test-vfprintf-posix.c: New file.
47505         * tests/test-fprintf-posix.h: New file.
47506         * tests/test-fprintf-posix.out: New file.
47507
47508         * modules/vfprintf-posix: New file.
47509         * lib/vfprintf.c: New file.
47510         * m4/vfprintf-posix.m4: New file.
47511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
47512         REPLACE_VFPRINTF.
47513         * lib/stdio_.h (vfprintf): New declaration.
47514         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
47515         REPLACE_VFPRINTF.
47516
47517 2007-03-08  Bruno Haible  <bruno@clisp.org>
47518
47519         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
47520
47521 2007-03-08  Bruno Haible  <bruno@clisp.org>
47522
47523         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
47524         instead of 'expr' invocations.
47525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47526         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47529         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47530         Suggested by Paul Eggert.
47531
47532 2007-03-08  Bruno Haible  <bruno@clisp.org>
47533
47534         * modules/fseterr-tests: New file.
47535         * tests/test-fseterr.c: New file.
47536
47537         * modules/fseterr: New file.
47538         * lib/fseterr.h: New file.
47539         * lib/fseterr.c: New file.
47540
47541 2007-03-08  Bruno Haible  <bruno@clisp.org>
47542
47543         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
47544         * lib/getopt_.h: Likewise.
47545         * lib/mbswidth.h: Likewise.
47546         * lib/setenv.h: Likewise.
47547         * lib/vasnprintf.h: Likewise.
47548         * lib/vasprintf.h: Likewise.
47549         * lib/verror.h: Likewise.
47550         * lib/xsetenv.h: Likewise.
47551         * lib/xvasprintf.h: Likewise.
47552
47553 2007-03-08  Jim Meyering  <jim@meyering.net>
47554
47555         * users.txt: Add parted.
47556
47557         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
47558
47559 2007-03-07  Bruno Haible  <bruno@clisp.org>
47560
47561         * m4/printf.m4: Make the shell script snippets copy&pastable.
47562
47563 2007-03-02  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/netinet_in_.h: New file.
47566         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
47567         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
47568         * modules/netinet_in (Files): Add lib/netinet_in_.h.
47569         (Depends-on): Add absolute-header.
47570         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
47571         into netinet/in.h.
47572
47573 2007-03-03  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/sys_select_.h: New file.
47576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47577         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47578         * modules/sys_select (Files): Add lib/sys_select_.h.
47579         (Depends-on): Add absolute-header.
47580         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47581         into sys/select.h.
47582
47583 2007-03-02  Bruno Haible  <bruno@clisp.org>
47584
47585         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47586         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47587         values.
47588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47589         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47590         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47591         * modules/sys_socket (Depends-on): Add absolute-header.
47592         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47593         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47594         (Include): Remove requirement of inclusion of <sys/types.h>.
47595
47596 2007-03-02  Bruno Haible  <bruno@clisp.org>
47597
47598         * lib/byteswap_.h (bswap_32): Fix formula.
47599
47600 2007-03-06  Bruno Haible  <bruno@clisp.org>
47601
47602         * modules/sprintf-posix-tests: New file.
47603         * tests/test-sprintf-posix.c: New file.
47604
47605         * modules/sprintf-posix: New file.
47606         * lib/sprintf.c: New file.
47607         * m4/sprintf-posix.m4: New file.
47608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
47609         REPLACE_SPRINTF.
47610         * lib/stdio_.h (sprintf): New declaration.
47611         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
47612         REPLACE_SPRINTF.
47613
47614 2007-03-06  Bruno Haible  <bruno@clisp.org>
47615
47616         * modules/vsprintf-posix-tests: New file.
47617         * tests/test-vsprintf-posix.c: New file.
47618         * tests/test-sprintf-posix.h: New file.
47619
47620         * modules/vsprintf-posix: New file.
47621         * lib/vsprintf.c: New file.
47622         * m4/vsprintf-posix.m4: New file.
47623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
47624         REPLACE_VSPRINTF.
47625         * lib/stdio_.h (vsprintf): New declaration.
47626         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
47627         REPLACE_VSPRINTF.
47628
47629 2007-03-06  Bruno Haible  <bruno@clisp.org>
47630
47631         * modules/vsnprintf (Depend-on): Remove minmax.
47632
47633 2007-03-06  Bruno Haible  <bruno@clisp.org>
47634
47635         * modules/snprintf-posix-tests: New file.
47636         * tests/test-snprintf-posix.c: New file.
47637
47638         * modules/snprintf-posix: New file.
47639         * m4/snprintf-posix.m4: New file.
47640         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
47641         gl_FUNC_SNPRINTF.
47642         (gl_FUNC_SNPRINTF): Invoke it.
47643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
47644         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
47645         is set.
47646         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
47647
47648 2007-03-06  Bruno Haible  <bruno@clisp.org>
47649
47650         * modules/vsnprintf-posix-tests: New file.
47651         * tests/test-vsnprintf-posix.c: New file.
47652         * tests/test-snprintf-posix.h: New file.
47653
47654         * modules/vsnprintf-posix: New file.
47655         * m4/vsnprintf-posix.m4: New file.
47656         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
47657         gl_FUNC_VSNPRINTF.
47658         (gl_FUNC_VSNPRINTF): Invoke it.
47659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
47660         * lib/stdio_.h (vsnprintf): Define as a replacement if
47661         REPLACE_VSNPRINTF is set.
47662         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
47663
47664 2007-03-06  Bruno Haible  <bruno@clisp.org>
47665
47666         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
47667         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
47668
47669 2007-03-06  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
47672         (asinl): Declare also if HAVE_DECL_ASINL is set.
47673         (atanl): Declare also if HAVE_DECL_ATANL is set.
47674         (ceill): Declare also if HAVE_DECL_CEILL is set.
47675         (cosl): Declare also if HAVE_DECL_COSL is set.
47676         (expl): Declare also if HAVE_DECL_EXPL is set.
47677         (floorl): Declare also if HAVE_DECL_FLOORL is set.
47678         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
47679         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
47680         (logl): Declare also if HAVE_DECL_LOGL is set.
47681         (sinl): Declare also if HAVE_DECL_SINL is set.
47682         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
47683         (tanl): Declare also if HAVE_DECL_TANL is set.
47684         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
47685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
47686         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
47687         declaration of frexpl, ldexpl.
47688         * modules/printf-frexpl (Depends-on): Add math.
47689         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
47690
47691 2007-03-05  Bruno Haible  <bruno@clisp.org>
47692
47693         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
47694         frexpl and ldexpl are declared.
47695         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
47696
47697 2007-03-05  Bruno Haible  <bruno@clisp.org>
47698
47699         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
47700         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
47701
47702 2007-03-05  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/stdio_.h: Include <stddef.h>.
47705
47706 2007-03-05  Bruno Haible  <bruno@clisp.org>
47707
47708         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
47709
47710 2007-03-05  Bruno Haible  <bruno@clisp.org>
47711
47712         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
47713         NetBSD 4, from Ralf Wildenhues.
47714
47715 2007-03-04  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/vasprintf.h: Update #if logic for the case when the functions
47718         exist but are overridden.
47719
47720 2007-03-04  Bruno Haible  <bruno@clisp.org>
47721
47722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
47723         implementations: glibc-2.4 and MacOS X 10.3.
47724         * tests/test-vasnprintf-posix.c (test_function): Test also the case
47725         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
47726         * tests/test-vasprintf-posix.c (test_function): Likewise.
47727
47728 2007-03-04  Bruno Haible  <bruno@clisp.org>
47729
47730         * modules/vasprintf-posix-tests: New file.
47731         * tests/test-vasprintf-posix.c: New file.
47732
47733         * modules/vasprintf-posix: New file.
47734         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47735         defined.
47736         * m4/vasprintf-posix.m4: New file.
47737         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47738         gl_FUNC_VASPRINTF.
47739         (gl_FUNC_VASPRINTF): Invoke it.
47740         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47741         here.
47742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47743
47744 2007-03-04  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47747         REPLACE_GETTIMEOFDAY.
47748         * modules/sys_time (Makefile.am): Likewise.
47749         * m4/sys_time_h.m4: Likewise.
47750         * m4/gettimeofday.m4: Likewise.
47751
47752 2007-03-04  Bruno Haible  <bruno@clisp.org>
47753
47754         * modules/vasnprintf-posix-tests: New file.
47755         * tests/test-vasnprintf-posix.c: New file.
47756
47757         * modules/vasnprintf-posix: New file.
47758         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47759         printf-frexpl.h.
47760         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47761         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47762         REPLACE_VASNPRINTF is defined.
47763         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47764         gl_FUNC_VASNPRINTF.
47765         (gl_FUNC_VASNPRINTF): Invoke it.
47766         * m4/vasnprintf-posix.m4: New file.
47767         * m4/printf.m4: New file.
47768
47769 2007-03-04  Bruno Haible  <bruno@clisp.org>
47770
47771         Compile progreloc.c only if --enable-relocatable is specified.
47772         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47773         if --enable-relocatable was specified.
47774         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47775         lib_SOURCES.
47776
47777 2007-03-04  Jim Meyering  <jim@meyering.net>
47778
47779         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47780         Use it consistently, rather than enumerating errno constants.
47781
47782 2007-03-04  Bruno Haible  <bruno@clisp.org>
47783
47784         * modules/xvasprintf-tests: New file.
47785         * tests/test-xvasprintf.c: New file.
47786
47787         * modules/vasprintf-tests: New file.
47788         * tests/test-vasprintf.c: New file.
47789
47790         * modules/vasnprintf-tests: New file.
47791         * tests/test-vasnprintf.c: New file.
47792
47793         * modules/vsnprintf-tests: New file.
47794         * tests/test-vsnprintf.c: New file.
47795
47796         * modules/snprintf-tests: New file.
47797         * tests/test-snprintf.c: New file.
47798
47799 2007-03-04  Bruno Haible  <bruno@clisp.org>
47800
47801         Compile relocatable.c only if --enable-relocatable is specified.
47802         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47803         gl_RELOCATABLE_LIBRARY.
47804         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47805         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47806         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47807         gl_RELOCATABLE_LIBRARY.
47808         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47809         (Makefile.am): Remove lib_SOURCES.
47810         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47811         gl_RELOCATABLE_LIBRARY.
47812         (Makefile.am): Remove lib_SOURCES.
47813         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47814         always.
47815         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47816         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47817
47818 2007-03-04  Bruno Haible  <bruno@clisp.org>
47819
47820         * modules/argmatch-tests: New file.
47821         * tests/test-argmatch.c: New file.
47822
47823         * tests/test-allocsa.c (main): Halve the number of loop runs.
47824
47825         * modules/alloca-opt-tests: New file.
47826         * tests/test-alloca-opt.c: New file.
47827
47828 2007-03-04  Jim Meyering  <jim@meyering.net>
47829
47830         Work around difference between Linux ACLs and Solaris 10 ZFS.
47831         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47832         for EINVAL.
47833
47834 2007-03-03  Bruno Haible  <bruno@clisp.org>
47835
47836         * modules/relocatable-prog (Depends-on): Add back progreloc's
47837         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47838
47839 2007-03-03  Bruno Haible  <bruno@clisp.org>
47840
47841         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47842         * modules/relocatable-lib: New file.
47843
47844 2007-03-03  Bruno Haible  <bruno@clisp.org>
47845
47846         * modules/relocatable-prog: Renamed from modules/relocatable.
47847         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47848
47849 2007-03-03  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47852         m4/relocatable-lib.m4.
47853         (Depends-on): Remove 'relocatable'.
47854         (configure.ac): Add gl_RELOCATABLE_NOP.
47855
47856 2007-03-03  Bruno Haible  <bruno@clisp.org>
47857
47858         * modules/relocatable-prog-wrapper: New file.
47859         * modules/relocatable (Depends-on): Add it. Remove all other
47860         dependencies except progname.
47861         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47862
47863         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47864         (gl_FUNC_STRERROR): Nop.
47865         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47866
47867         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47868         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47869
47870         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47871         (gl_FUNC_READLINK): Update.
47872
47873         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47874
47875 2007-03-03  Bruno Haible  <bruno@clisp.org>
47876
47877         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47878         * modules/xreadlink (Depends-on): Add unistd.
47879         * modules/xreadlink-with-size (Depends-on): Likewise.
47880
47881 2007-03-03  Bruno Haible  <bruno@clisp.org>
47882
47883         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47884         extracted from gt_FUNC_SETENV.
47885         (gt_FUNC_SETENV): Remove macro.
47886         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47887         remove gt_FUNC_SETENV.
47888
47889 2007-03-03  Bruno Haible  <bruno@clisp.org>
47890
47891         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47892         ENABLE_RELOCATABLE here.
47893         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47894
47895 2007-03-03  Bruno Haible  <bruno@clisp.org>
47896
47897         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47898         * tests/test-rbtreehash_list.c: Include progname.h.
47899         (main): Call set_program_name.
47900
47901         * modules/rbtree-oset-tests (Depends-on): Add progname.
47902         * tests/test-rbtree_oset.c: Include progname.h.
47903         (main): Call set_program_name.
47904
47905         * modules/rbtree-list-tests (Depends-on): Add progname.
47906         * tests/test-rbtree_list.c: Include progname.h.
47907         (main): Call set_program_name.
47908
47909         * modules/linked-list-tests (Depends-on): Add progname.
47910         * tests/test-linked_list.c: Include progname.h.
47911         (main): Call set_program_name.
47912
47913 2007-03-03  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47916         All uses of __restrict changed to _Restrict_.
47917         * lib/glob_.h (__restrict): Remove macro.
47918
47919 2007-03-02  Bruno Haible  <bruno@clisp.org>
47920
47921         * modules/gettext (configure.ac): Require gettext infrastructure
47922         from version 0.16.1.
47923
47924 2007-03-02  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/linkedhash-list-tests (Depends-on): Add progname.
47927         * tests/test-linkedhash_list.c: Include progname.h.
47928         (main): Call set_program_name.
47929
47930         * modules/carray-list-tests (Depends-on): Add progname.
47931         * tests/test-carray_list.c: Include progname.h.
47932         (main): Call set_program_name.
47933
47934         * modules/avltreehash-list-tests (Depends-on): Add progname.
47935         * tests/test-avltreehash_list.c: Include progname.h.
47936         (main): Call set_program_name.
47937
47938         * modules/avltree-oset-tests (Depends-on): Add progname.
47939         * tests/test-avltree_oset.c: Include progname.h.
47940         (main): Call set_program_name.
47941
47942         * modules/avltree-list-tests (Depends-on): Add progname.
47943         * tests/test-avltree_list.c: Include progname.h.
47944         (main): Call set_program_name.
47945
47946         * modules/array-oset-tests (Depends-on): Add progname.
47947         * tests/test-array_oset.c: Include progname.h.
47948         (main): Call set_program_name.
47949
47950         * modules/array-list-tests (Depends-on): Add progname.
47951         * tests/test-array_list.c: Include progname.h.
47952         (main): Call set_program_name.
47953
47954         * modules/argp-tests (Depends-on): Add progname.
47955         * tests/test-argp.c: Include argp.h first. Include progname.h.
47956         (main): Call set_program_name.
47957
47958 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47959
47960         * doc/gnulib-tool.texi (Initial import): Reword description of
47961         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47962         limited effect even if defined after the first system include.
47963
47964 2007-03-01  Bruno Haible  <bruno@clisp.org>
47965
47966         * build-aux/config.libpath: Update to libtool-1.5.22.
47967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47968
47969 2007-03-01  Bruno Haible  <bruno@clisp.org>
47970
47971         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47972         foo_CFLAGS.
47973         Reported by Ralf Wildenhues.
47974
47975 2007-03-01  Bruno Haible  <bruno@clisp.org>
47976
47977         * build-aux/install-reloc: Remove object files left over by some
47978         compilers.
47979         Reported by Ralf Wildenhues.
47980
47981 2007-03-01  Bruno Haible  <bruno@clisp.org>
47982
47983         * build-aux/install-reloc: Break long lines.
47984
47985 2007-03-01  Bruno Haible  <bruno@clisp.org>
47986
47987         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47988         Reported by Ralf Wildenhues.
47989
47990 2007-03-01  Bruno Haible  <bruno@clisp.org>
47991
47992         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47993         include ordering constraints.
47994
47995 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47996
47997         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47999         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
48000         as another example.
48001         * lib/time_.h: Fix misspelling.
48002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48003         Require gl_HEADER_TIME_H_DEFAULTS.
48004         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
48005         * m4/time_r.m4 (gl_TIME_R): Likewise.
48006         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
48007
48008 2007-03-01  Bruno Haible  <bruno@clisp.org>
48009
48010         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
48011         * m4/utimens.m4 (gl_UTIMENS): Likewise.
48012
48013 2007-03-01  Jim Meyering  <jim@meyering.net>
48014
48015         * modules/xreadlink (Maintainer): Add my name.
48016         * modules/xreadlink-with-size (Depends-on): Alphabetize.
48017
48018 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
48019             Bruno Haible  <bruno@clisp.org>
48020
48021         * build-aux/install-reloc: Compile also c-ctype.c.
48022         * build-aux/relocatable.sh.in: New file.
48023         * doc/relocatable.texi: New file.
48024         * doc/relocatable-maint.texi: New file.
48025         * doc/gnulib.texi: Include relocatable-maint.texi.
48026         * lib/progreloc.c: Include unistd.h unconditionally.
48027         * lib/relocwrapper.c: Include unistd.h unconditionally.
48028         Include c-ctype.h.
48029         (add_dotbin): Use c_tolower.
48030         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
48031         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
48032         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
48033         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
48034         to m4/relocatable-lib.m4.
48035         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
48036         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
48037         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
48038         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
48039         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
48040         * modules/relocatable: New file.
48041         * modules/relocatable-lib: New file.
48042         * modules/relocatable-script: New file.
48043
48044 2007-02-28  Bruno Haible  <bruno@clisp.org>
48045
48046         Import --enable-relocatable infrastructure.
48047         * build-aux/config.libpath: New file, from GNU gettext.
48048         * build-aux/install-reloc: New file, from GNU gettext.
48049         * build-aux/reloc-ldflags: New file, from GNU gettext.
48050         * lib/relocatable.h: New file, from GNU gettext.
48051         * lib/relocatable.c: New file, from GNU gettext.
48052         * lib/relocwrapper.c: New file, from GNU gettext.
48053         * m4/relocatable.m4: New file, from GNU gettext.
48054
48055 2007-02-28  Bruno Haible  <bruno@clisp.org>
48056
48057         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
48058
48059         * modules/xreadlink: New file, from GNU gettext with modifications.
48060         * lib/xreadlink.c: New file, from GNU gettext.
48061         * lib/xreadlink.h: Add comments.
48062         (xreadlink): New declaration.
48063
48064         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
48065         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
48066         lib/xreadlink-with-size.c.
48067         (configure.ac): Remove gl_XREADLINK invocation.
48068         (Makefile.am): Augment lib_SOURCES.
48069         * m4/xreadlink.m4: Remove file.
48070         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
48071         (xreadlink_with_size): Renamed from xreadink.
48072         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
48073         * modules/canonicalize (Depends-on): Replace xreadlink with
48074         xreadlink-with-size.
48075         * lib/canonicalize.c (canonicalize_filename_mode): Update.
48076
48077 2007-02-25  Jim Meyering  <jim@meyering.net>
48078
48079         * build-aux/announce-gen: When complaining about excess arguments,
48080         list them.
48081
48082 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48083
48084         * README: Document signed integer overflow situation more
48085         accurately.
48086
48087 2007-02-25  Bruno Haible  <bruno@clisp.org>
48088
48089         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
48090         'a' or 'A' conversion.
48091
48092 2007-02-25  Bruno Haible  <bruno@clisp.org>
48093
48094         * modules/filename: Renamed from modules/pathname.
48095         (Files): Replace lib/pathname.h with lib/filename.h. Replace
48096         lib/concatpath.c with lib/concat-filename.c.
48097         (Makefile.am): Update.
48098         (Include): Replace pathname.h with filename.h.
48099         * lib/filename.h: Renamed from lib/pathname.h.
48100         (concatenated_filename): Renamed from concatenated_pathname.
48101         * lib/concat-filename.c: Renamed from lib/concatpath.c.
48102         (concatenated_filename): Renamed from concatenated_pathname.
48103         * lib/findprog.c: Include filename.h instead of pathname.h.
48104         (find_in_path): Update.
48105         * lib/javacomp.c: Include filename.h instead of pathname.h.
48106         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48107         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48108         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48109         is_oldgcj_14_13_usable, is_javac_usable): Update.
48110         * lib/javaexec.c: Include filename.h instead of pathname.h.
48111         (execute_java_class): Update.
48112         * modules/findprog: Update.
48113         * modules/javacomp: Update.
48114         * modules/javaexec: Update.
48115         * MODULES.html.sh (File system functions): Add 'filename', remove
48116         'pathname'.
48117
48118 2007-02-25  Bruno Haible  <bruno@clisp.org>
48119
48120         * modules/printf-frexpl-tests: New file.
48121         * tests/test-printf-frexpl.c: New file.
48122
48123         * modules/printf-frexpl: New file.
48124         * lib/printf-frexpl.h: New file.
48125         * lib/printf-frexpl.c: New file.
48126         * m4/printf-frexpl.m4: New file.
48127
48128 2007-02-25  Bruno Haible  <bruno@clisp.org>
48129
48130         * modules/printf-frexp-tests: New file.
48131         * tests/test-printf-frexp.c: New file.
48132
48133         * modules/printf-frexp: New file.
48134         * lib/printf-frexp.h: New file.
48135         * lib/printf-frexp.c: New file.
48136         * m4/printf-frexp.m4: New file.
48137
48138 2007-02-25  Bruno Haible  <bruno@clisp.org>
48139
48140         Assume automake >= 1.10 for the tests.
48141         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
48142         * modules/arctwo-tests: Likewise.
48143         * modules/argp-tests: Likewise.
48144         * modules/avltree-list-tests: Likewise.
48145         * modules/avltree-oset-tests: Likewise.
48146         * modules/avltreehash-list-tests: Likewise.
48147         * modules/carray-list-tests: Likewise.
48148         * modules/crc-tests: Likewise.
48149         * modules/des-tests: Likewise.
48150         * modules/gc-arcfour-tests: Likewise.
48151         * modules/gc-arctwo-tests: Likewise.
48152         * modules/gc-des-tests: Likewise.
48153         * modules/gc-hmac-md5-tests: Likewise.
48154         * modules/gc-hmac-sha1-tests: Likewise.
48155         * modules/gc-md2-tests: Likewise.
48156         * modules/gc-md4-tests: Likewise.
48157         * modules/gc-md5-tests: Likewise.
48158         * modules/gc-pbkdf2-sha1-tests: Likewise.
48159         * modules/gc-rijndael-tests: Likewise.
48160         * modules/gc-sha1-tests: Likewise.
48161         * modules/gc-tests: Likewise.
48162         * modules/getaddrinfo-tests: Likewise.
48163         * modules/hmac-md5-tests: Likewise.
48164         * modules/hmac-sha1-tests: Likewise.
48165         * modules/linked-list-tests: Likewise.
48166         * modules/linkedhash-list-tests: Likewise.
48167         * modules/lock-tests: Likewise.
48168         * modules/md2-tests: Likewise.
48169         * modules/md4-tests: Likewise.
48170         * modules/md5-tests: Likewise.
48171         * modules/rbtree-list-tests: Likewise.
48172         * modules/rbtree-oset-tests: Likewise.
48173         * modules/rbtreehash-list-tests: Likewise.
48174         * modules/read-file-tests: Likewise.
48175         * modules/rijndael-tests: Likewise.
48176         * modules/stdint-tests: Likewise.
48177         * modules/tls-tests: Likewise.
48178
48179 2007-02-24  Bruno Haible  <bruno@clisp.org>
48180
48181         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
48182         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
48183         function; instead check whether isnan with a double argument links.
48184         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
48185         function; instead check whether isnan with a 'long double' argument
48186         links.
48187         Reported by Eric Blake <ebb9@byu.net>.
48188
48189 2007-02-24  Bruno Haible  <bruno@clisp.org>
48190
48191         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
48192         defined.
48193         * lib/isnanl.c: Remove all code. Just include isnan.c.
48194         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
48195
48196 2007-02-25  Jim Meyering  <jim@meyering.net>
48197
48198         Avoid conflicting types for 'unsetenv' on FreeBSD.
48199         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
48200         conflicting with FreeBSD's (5.0 and 6.1) function declaration
48201         in stdlib.h.
48202
48203 2007-02-24  Bruno Haible  <bruno@clisp.org>
48204
48205         * modules/isnanl-nolibm-tests: New file.
48206         * tests/test-isnanl.c: New file.
48207
48208         * modules/isnanl-nolibm: New file.
48209         * lib/isnanl.h: New file.
48210         * lib/isnanl.c: New file.
48211         * m4/isnanl.m4: New file.
48212
48213 2007-02-24  Bruno Haible  <bruno@clisp.org>
48214
48215         * modules/isnan-nolibm-tests: New file.
48216         * tests/test-isnan.c: New file.
48217
48218         * modules/isnan-nolibm: New file.
48219         * lib/isnan.h: New file.
48220         * lib/isnan.c: New file.
48221         * m4/isnan.m4: New file.
48222
48223 2007-02-24  Bruno Haible  <bruno@clisp.org>
48224
48225         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
48226         assume that an exponent fits in 20 bits.
48227
48228 2007-02-24  Jim Meyering  <jim@meyering.net>
48229
48230         * m4/regex.m4: Update the description of the configure-time option,
48231         --without-included-regex, to state accurately what the defaults are,
48232         and perhaps to give people an idea why using this option is risky.
48233
48234 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48235
48236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
48237         loops on small arguments.  This attempts to avoid the problem
48238         Bruno Haible reported for AIX 4.3.2 in
48239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
48240
48241 2007-02-23  Bruno Haible  <bruno@clisp.org>
48242
48243         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
48244         Needed for help2man.
48245
48246 2007-02-23  Karl Berry  <karl@gnu.org>
48247
48248         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
48249         exists, foo.h should be cvs-ignored, not committed.
48250
48251 2007-02-23  Eric Blake  <ebb9@byu.net>
48252
48253         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
48254         * lib/stat-time.h (includes): Likewise.
48255         * lib/utimecmp.c (includes): Likewise.
48256         * lib/utimens.h (includes): Likewise.
48257         * lib/getdate.y (includes): Also include "timespec.h" for use
48258         internal to the module.
48259         * modules/utimens (Depends-on): Revert yesterday's patch.
48260         * modules/nanosleep (Depends-on): Add missing dependency.
48261
48262 2007-02-22  Bruno Haible  <bruno@clisp.org>
48263
48264         * lib/glob.c: Don't include getlogin_r.h.
48265
48266 2007-02-22  Jim Meyering  <jim@meyering.net>
48267
48268         * modules/utimens (Depends-on): Add timespec, required for
48269         utimens.h's inclusion of timespec.h.
48270
48271 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
48272
48273         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
48274         long unreadable paths in GNU/Linux.  Problem reported by Andreas
48275         Schwab in
48276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
48277         I'll try to think of a better way to fix the Solaris problem.
48278
48279         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
48280         like glibc; on Solaris 10, it fails with errno == EINVAL.
48281         POSIX says the behavior is unspecified if the first argument is NULL,
48282         so play it safe and never pass NULL to the system getcwd.
48283
48284 2007-02-21  Jim Meyering  <jim@meyering.net>
48285
48286         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
48287         of gettimeofday.  It would conflict with the one now always
48288         provided via sys_time_.h.  Reported by Matthew Woehlke, as
48289         an IRIX 6.5 build failure.
48290
48291 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48292
48293         Minor fixups to port to Solaris 10 with Sun C 5.8.
48294         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
48295         * modules/getcwd (Depends-on): Add dirfd.
48296         * lib/putenv.c (putenv): #undef it.
48297         (rpl_putenv): New decl.
48298         (malloc, free): Include <stdlib.h> rather than prototyping separately.
48299
48300 2007-02-20  Bruno Haible  <bruno@clisp.org>
48301
48302         * modules/stdio-tests: New file.
48303         * tests/test-stdio.c: New file.
48304
48305         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
48306         (Depends-on): Add stdio.
48307         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48308         (Include): Use <stdio.h> instead of vsnprintf.h.
48309         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48310         HAVE_DECL_VSNPRINTF.
48311         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
48312
48313         * modules/snprintf (Files): Remove lib/snprintf.h.
48314         (Depends-on): Add stdio.
48315         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48316         (Include): Use <stdio.h> instead of snprintf.h.
48317         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48318         HAVE_DECL_SNPRINTF.
48319         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
48320         * lib/getaddrinfo.c: Likewise.
48321
48322         * modules/stdio: New file.
48323         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
48324         * lib/snprintf.h: Remove file.
48325         * lib/vsnprintf.h: Remove file.
48326         * lib/.cppi-disable: Remove snprintf.h.
48327         * m4/stdio_h.m4: New file.
48328         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
48329
48330 2007-02-20  Jim Meyering  <jim@meyering.net>
48331
48332         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
48333         used by e.g., mingw.  From Bruno Haible.
48334
48335 2007-02-19  Bruno Haible  <bruno@clisp.org>
48336
48337         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
48338         warnings.
48339         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48340
48341 2007-02-19  Bruno Haible  <bruno@clisp.org>
48342
48343         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
48344         from mingw users.
48345
48346 2007-02-19  Bruno Haible  <bruno@clisp.org>
48347
48348         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
48349         warnings.
48350         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
48351
48352 2007-02-19  Jim Meyering  <jim@meyering.net>
48353
48354         Don't use FD after a successful "fdopendir (fd)".
48355         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
48356         Reset it by calling dirfd on the just-obtained DIR*.
48357
48358         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
48359         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
48360
48361 2007-02-18  Bruno Haible  <bruno@clisp.org>
48362
48363         * lib/readlink.c: Include <unistd.h>.
48364         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
48365         HAVE_READLINK.
48366         * modules/readlink (Depends-on): Add unistd.
48367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48368         (Include): Add <unistd.h>.
48369
48370         * lib/getlogin_r.h: Remove file.
48371         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
48372         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
48373         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
48374         HAVE_DECL_GETLOGIN_R.
48375         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
48376         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48377         (Include): Use <unistd.h> instead of getlogin_r.h.
48378
48379         * lib/getcwd.h: Remove file.
48380         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
48381         * lib/xgetcwd.c: Likewise.
48382         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
48383         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
48384         * modules/getcwd (Files): Remove lib/getcwd.h.
48385         (Depends-on): Add unistd.
48386         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48387         (Include): Use <unistd.h> instad of getcwd.h.
48388
48389         * lib/ftruncate.c: Include <unistd.h> first.
48390         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
48391         Set HAVE_FTRUNCATE.
48392         * modules/ftruncate (Depends-on): Add unistd.
48393         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48394
48395         * lib/fchdir.c: Include <unistd.h> first.
48396         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
48397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
48398         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
48399         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48400         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
48401
48402         * lib/dup2.c: Include <unistd.h> first.
48403         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
48404         HAVE_DUP2.
48405         * modules/dup2 (Depends-on): Add unistd.
48406         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48407
48408         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
48409         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
48410         REPLACE_CHOWN. Don't define chown as a macro here.
48411         * modules/chown (Depends-on): Add unistd.
48412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48413
48414         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
48415         Add definition for GL_LINK_WARNING.
48416         (chown, dup2): New declarations.
48417         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
48418         link warning.
48419         (ftruncate): New declaration.
48420         (getcwd): New declaration, taken from old getcwd.h.
48421         (getlogin_r): New declaration, taken from old getlogin_r.h.
48422         (readlink): New declaration.
48423         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
48424         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
48425         (gl_PREREQ_UNISTD): Remove macro.
48426         (gl_UNISTD_MODULE_INDICATOR): New macro.
48427         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
48428         many new variables. Don't set UNISTD_H.
48429         * modules/unistd (Description): Change.
48430         (Depends-on): Add link-warning.
48431         (configure.ac): Update.
48432         (Makefile.am): Create unistd.h always. Substitute many new variables
48433         into it.
48434
48435 2007-02-18  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
48438         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
48439         HAVE_GETSUBOPT.
48440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
48441         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
48442         * lib/getsubopt.h: Remove file.
48443         * modules/getsubopt (Files): Remove lib/getsubopt.h.
48444         (Depends-on): Add stdlib.
48445         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48446         (Includes): Use <stdlib.h> instead of getsubopt.h.
48447         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
48448         Set HAVE_GETSUBOPT.
48449         * lib/getsubopt.c: Don't include getsubopt.h.
48450
48451 2007-02-18  Bruno Haible  <bruno@clisp.org>
48452
48453         * modules/fchdir (Depends-on): Add dup2.
48454
48455 2007-02-18  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/stdlib_.h: Handle glibc's special invocation convention
48458         specially.
48459
48460 2007-02-18  Bruno Haible  <bruno@clisp.org>
48461
48462         * modules/stdlib-tests: New file.
48463         * tests/test-stdlib.c: New file.
48464
48465         * modules/mkstemp (Files): Remove lib/mkstemp.h.
48466         (Depends-on): Add stdlib.
48467         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48468         (Includes): Use <stdlib.h> instead of mkstemp.h.
48469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48470         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
48471         * lib/mkstemp.c: Don't include mkstemp.h.
48472         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
48473         * lib/stdlib--.h: Don't include mkstemp.h.
48474
48475         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
48476         (Depends-on): Add stdlib.
48477         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48478         (Includes): Use <stdlib.h> instead of mkdtemp.h.
48479         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48480         HAVE_MKDTEMP.
48481         * lib/mkdtemp.c: Don't include mkdtemp.h.
48482         * lib/clean-temp.c: Don't include mkdtemp.h.
48483
48484         * modules/exit (Files): Remove lib/exit.h.
48485         (Depends-on): Add stdlib.
48486         (Makefile.am): Remove lib_SOURCES.
48487         (Include): Use <stdlib.h> instead of exit.h.
48488         * lib/argmatch.c: Don't include exit.h.
48489         * lib/execute.c: Likewise.
48490         * lib/pagealign_alloc.c: Likewise.
48491         * lib/pipe.c: Likewise.
48492         * lib/wait-process.c: Likewise.
48493         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
48494         * lib/exitfail.c: Likewise.
48495         * lib/savewd.c: Likewise.
48496         * lib/xsetenv.c: Likewise.
48497
48498         * modules/stdlib: New file.
48499         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
48500         and extra comments about mkstemp().
48501         * lib/exit.h: Remove file.
48502         * lib/mkdtemp.h: Remove file.
48503         * lib/mkstemp.h: Remove file.
48504         * m4/stdlib_h.m4: New file.
48505         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
48506
48507 2007-02-18  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/math-tests: New file.
48510         * tests/test-math.c: New file.
48511
48512         * modules/math: New file.
48513         * modules/mathl (Files): Remove lib/mathl.h.
48514         (Depends-on): Add math.
48515         (Makefile.am): Don't mention mathl.h.
48516         (Include): Use <math.h> instead of mathl.h.
48517         * lib/math_.h: New file.
48518         * lib/mathl.h: Remove file.
48519         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
48520         mathl.h.
48521         * lib/asinl.c: Likewise.
48522         * lib/atanl.c: Likewise.
48523         * lib/ceill.c: Likewise.
48524         * lib/cosl.c: Likewise.
48525         * lib/expl.c: Likewise.
48526         * lib/floorl.c: Likewise.
48527         * lib/frexpl.c: Likewise.
48528         * lib/ldexpl.c: Likewise.
48529         * lib/logl.c: Likewise.
48530         * lib/sincosl.c: Likewise.
48531         * lib/sinl.c: Likewise.
48532         * lib/sqrtl.c: Likewise.
48533         * lib/tanl.c: Likewise.
48534         * lib/trigl.c: Likewise.
48535         * m4/math_h.m4: New file.
48536         * MODULES.html.sh (Mathematics): Add math.
48537
48538 2007-02-17  Bruno Haible  <bruno@clisp.org>
48539
48540         * modules/wctype-tests: New file.
48541         * tests/test-wctype.c: New file.
48542
48543         * modules/wchar-tests: New file.
48544         * tests/test-wchar.c: New file.
48545
48546         * modules/unistd-tests: New file.
48547         * tests/test-unistd.c: New file.
48548
48549         * modules/time-tests: New file.
48550         * tests/test-time.c: New file.
48551
48552         * modules/sysexits-tests: New file.
48553         * tests/test-sysexits.c: New file.
48554
48555         * modules/sys_time-tests: New file.
48556         * tests/test-sys_time.c: New file.
48557
48558         * modules/sys_stat-tests: New file.
48559         * tests/test-sys_stat.c: New file.
48560
48561         * modules/sys_socket-tests: New file.
48562         * tests/test-sys_socket.c: New file.
48563
48564         * modules/sys_select-tests: New file.
48565         * tests/test-sys_select.c: New file.
48566
48567         * modules/string-tests: New file.
48568         * tests/test-string.c: New file.
48569
48570         * modules/stdbool-tests: New file.
48571         * tests/test-stdbool.c: New file.
48572
48573         * modules/netinet_in-tests: New file.
48574         * tests/test-netinet_in.c: New file.
48575
48576         * modules/inttypes-tests: New file.
48577         * tests/test-inttypes.c: New file.
48578
48579         * modules/fcntl-tests: New file.
48580         * tests/test-fcntl.c: New file.
48581
48582         * modules/byteswap-tests: New file.
48583         * tests/test-byteswap.c: New file.
48584
48585         * modules/arpa_inet-tests: New file.
48586         * tests/test-arpa_inet.c: New file.
48587
48588 2007-02-17  Bruno Haible  <bruno@clisp.org>
48589
48590         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48591         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48592         if the corresponding module is not enabled. Emit link warnings if
48593         the function is used nevertheless.
48594         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48595         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48596         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48597         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48598         * modules/inttypes (Depends-on): Add link-warning.
48599         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48600         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48601         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48602         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48603         * modules/imaxdiv (configure.ac): Likewise.
48604         * modules/strtoimax (configure.ac): Likewise.
48605         * modules/strtoumax (configure.ac): Likewise.
48606
48607 2007-02-17  Bruno Haible  <bruno@clisp.org>
48608
48609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
48610         gl_STRING_MODULE_INDICATOR_DEFAULTS.
48611         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
48612         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
48613
48614 2007-02-17  Bruno Haible  <bruno@clisp.org>
48615
48616         * modules/link-warning: New file.
48617         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
48618         * lib/string_.h (GL_LINK_WARNING): Remove definition.
48619         * modules/string (Depends-on): Add link-warning.
48620         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48621         string.h.
48622         * MODULES.html.sh (Support for building libraries and executables): Add
48623         link-warning.
48624
48625 2007-02-17  Bruno Haible  <bruno@clisp.org>
48626
48627         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
48628         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
48629         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
48630         long lines.
48631
48632 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
48633             Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/tmpfile: New file.
48636         * lib/tmpfile.c: New file.
48637         * m4/tmpfile.m4: New file.
48638         * MODULES.html.sh (func_all_modules): New section "Input/output".
48639
48640 2007-02-15  Bruno Haible  <bruno@clisp.org>
48641
48642         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
48643         (supports_delete_on_close): New function.
48644         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
48645
48646 2007-02-14  Bruno Haible  <bruno@clisp.org>
48647
48648         * modules/mbspcasecmp-tests: New file.
48649         * tests/test-mbspcasecmp.sh: New file.
48650         * tests/test-mbspcasecmp.c: New file.
48651
48652         New module mbspcasecmp.
48653         * modules/mbspcasecmp: New file.
48654         * lib/mbspcasecmp.c: New file.
48655         * lib/string_.h (strncasecmp): Change warning message.
48656         (mbspcasecmp): New declaration.
48657         * m4/mbspcasecmp.m4: New file.
48658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48659         GNULIB_MBSPCASECMP.
48660         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
48661         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
48662
48663 2007-02-14  Bruno Haible  <bruno@clisp.org>
48664
48665         * modules/mbsncasecmp-tests: New file.
48666         * tests/test-mbsncasecmp.sh: New file.
48667         * tests/test-mbsncasecmp.c: New file.
48668
48669         New module mbsncasecmp.
48670         * modules/mbsncasecmp: New file.
48671         * lib/mbsncasecmp.c: New file.
48672         * lib/string_.h (mbsncasecmp): New declaration.
48673         * m4/mbsncasecmp.m4: New file.
48674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48675         GNULIB_MBSNCASECMP.
48676         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
48677         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
48678
48679 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48680
48681         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
48682         Verify that it doesn't overlap with our flags.
48683         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
48684         do not have the desired effect in multibyte locales; instead, use
48685         mbscasecmp.
48686         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
48687         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
48688         we don't require GNU fnmatch ourselves (if our users require it, they
48689         should do so explicitly).
48690
48691         Fix regex code so it doesn't rely on strcasecmp.
48692         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
48693         Otherwise, include gnulib's langinfo.h.
48694         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
48695         undesirable behavior in non-C locales.  Instead, rely on localecharset.
48696         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
48697         * modules/regex (FILES): Remove m4/codeset.m4.
48698         (Depends-on): Add localcharset.  Remove strcase.
48699
48700 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48701
48702         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
48703         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
48704
48705 2007-02-13  Bruno Haible  <bruno@clisp.org>
48706
48707         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
48708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48709
48710 2007-02-12  Bruno Haible  <bruno@clisp.org>
48711
48712         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48713         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
48714         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
48715         time warning rather than a link error.
48716
48717 2007-02-12  Bruno Haible  <bruno@clisp.org>
48718
48719         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
48720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48721         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48722
48723 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48724
48725         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
48726         args, not 2.
48727
48728 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48729
48730         New module 'time', so that apps can include <time.h> as per
48731         POSIX and GNU instead of separate include files like time_r.h
48732         and timegm.h.  This implementation tries out a simpler approach
48733         for replacing decls in standard include files (as compared to
48734         the string module), somewhat as an experiment.
48735
48736         * config/srclist.txt: Comment out mktime.c for now.
48737         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48738         since it doesn't apply any more.  Use generic wording instead.
48739         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48740         'time'.
48741         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48742         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48743         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48744         Don't include <sys/types.h>; no longer needed since we assume C89.
48745         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48746         * lib/strftime.c: Likewise.
48747         * lib/time_r.c: Likewise.
48748         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48749         * lib/nanosleep.c: Include <time.h> first, to check interface.
48750         * lib/strptime.c: Likewise.
48751         * lib/time_r.c: Likewise.
48752         * lib/timegm.c: Likewise.
48753         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48754         needed.
48755         * lib/timegm.c: Don't include timegm.h; no longer needed.
48756         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48757         time.h now handles any problems in that area.
48758         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48759         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48760         that time.h defines struct timespec.
48761         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48762         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48763         handles that.
48764         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48765         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48766         needed.  Set REPLACE_LOCALTIME.
48767         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48768         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48769         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48770         nanosleep; time_h.m4 now does that.  Don't require
48771         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48772         module handles this now.
48773         * modules/getdate (Depends-on): Remove timespec.  Add time.
48774         * modules/nanosleep (Depends-on): Likewise.
48775         * modules/stat-time (Depends-on): Likewise.
48776         * modules/nanosleep (Include): Include time.h, not timespec.h.
48777         * modules/strptime (Files): Remove lib/strptime.h.
48778         (Depends-on): Add extensions, time.
48779         (Include): Include time.h, not strptime.h.
48780         * modules/time_r (Files): Remove lib/time_r.h.
48781         (Depends-on): Add time.
48782         (Include): Include time.h, not time_r.h.
48783         * modules/timegm: Likewise.
48784         * modules/timespec (Description): Now does timespec-related decls
48785         of our own, instead of struct timespec itself.
48786         (Depends-on): Add time; remove extensions.
48787         (Maintainer): Add self.
48788         * modules/utimecmp (Depends-on): Add time; remove timespec.
48789         * modules/utimens (Depends-on): Likewise.
48790         * modules/xnanosleep (Depends-on): Likewise.
48791
48792 2007-02-11  Bruno Haible  <bruno@clisp.org>
48793
48794         * lib/c-strstr.c: Include allocsa.h.
48795         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48796         * lib/c-strcasestr.c: Include allocsa.h.
48797         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48798         * lib/strcasestr.c: Include allocsa.h.
48799         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48800         * lib/mbsstr.c: Include allocsa.h.
48801         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48802         allocsa/freesa instead of malloc/free.
48803         * lib/mbscasestr.c: Include allocsa.h.
48804         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48805         allocsa/freesa instead of malloc/free.
48806         * modules/c-strstr (Depends-on): Add allocsa.
48807         * modules/c-strcasestr (Depends-on): Likewise.
48808         * modules/strcasestr (Depends-on): Likewise.
48809         * modules/mbsstr (Depends-on): Likewise.
48810         * modules/mbscasestr (Depends-on): Likewise.
48811
48812 2007-02-11  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48815
48816         * modules/mbsspn-tests: New file.
48817         * tests/test-mbsspn.sh: New file.
48818         * tests/test-mbsspn.c: New file.
48819
48820 2007-02-11  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48823
48824         * modules/mbspbrk-tests: New file.
48825         * tests/test-mbspbrk.sh: New file.
48826         * tests/test-mbspbrk.c: New file.
48827
48828 2007-02-11  Bruno Haible  <bruno@clisp.org>
48829
48830         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48831         unneeded cast.
48832
48833         * modules/mbscspn-tests: New file.
48834         * tests/test-mbscspn.sh: New file.
48835         * tests/test-mbscspn.c: New file.
48836
48837 2007-02-11  Bruno Haible  <bruno@clisp.org>
48838
48839         * modules/mbscasecmp-tests: New file.
48840         * tests/test-mbscasecmp.sh: New file.
48841         * tests/test-mbscasecmp.c: New file.
48842
48843 2007-02-11  Bruno Haible  <bruno@clisp.org>
48844
48845         Ensure O(n) worst-case complexity of mbscasestr.
48846         * lib/mbscasestr.c: Include stdbool.h.
48847         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48848         functions.
48849         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48850         the bookkeeping indicates that it's worth it.
48851         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48852
48853         * modules/mbscasestr-tests: New file.
48854         * tests/test-mbscasestr1.c: New file.
48855         * tests/test-mbscasestr2.sh: New file.
48856         * tests/test-mbscasestr2.c: New file.
48857         * tests/test-mbscasestr3.sh: New file.
48858         * tests/test-mbscasestr3.c: New file.
48859         * tests/test-mbscasestr4.sh: New file.
48860         * tests/test-mbscasestr4.c: New file.
48861         * m4/locale-tr.m4: New file.
48862
48863 2007-02-11  Bruno Haible  <bruno@clisp.org>
48864
48865         Ensure O(n) worst-case complexity of mbsstr.
48866         * lib/mbsstr.c: Include stdbool.h.
48867         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48868         functions.
48869         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48870         bookkeeping indicates that it's worth it.
48871         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48872
48873         * modules/mbsstr-tests: New file.
48874         * tests/test-mbsstr1.c: New file.
48875         * tests/test-mbsstr2.sh: New file.
48876         * tests/test-mbsstr2.c: New file.
48877         * tests/test-mbsstr3.sh: New file.
48878         * tests/test-mbsstr3.c: New file.
48879         * m4/locale-fr.m4: New file.
48880
48881 2007-02-11  Bruno Haible  <bruno@clisp.org>
48882
48883         * lib/mbsrchr.c (mbsrchr): Fix bug.
48884
48885         * modules/mbsrchr-tests: New file.
48886         * tests/test-mbsrchr.sh: New file.
48887         * tests/test-mbsrchr.c: New file.
48888
48889 2007-02-11  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/mbschr.c (mbschr): Fix bug.
48892
48893         * modules/mbschr-tests: New file.
48894         * tests/test-mbschr.sh: New file.
48895         * tests/test-mbschr.c: New file.
48896         * m4/locale-zh.m4: New file.
48897
48898 2007-02-11  Bruno Haible  <bruno@clisp.org>
48899
48900         Support for copying multibyte string iterators.
48901         * lib/mbiter.h: Include <string.h>.
48902         (mbiter_multi_copy): New function.
48903         (mbi_copy): New macro.
48904         * lib/mbuiter.h: Include <string.h>.
48905         (mbuiter_multi_copy): New function.
48906         (mbui_copy): New macro.
48907
48908 2007-02-11  Bruno Haible  <bruno@clisp.org>
48909
48910         New module mbslen.
48911         * modules/mbslen: New file.
48912         * lib/mbslen.c: New file.
48913         * lib/string_.h (mbslen): New declaration.
48914         * m4/mbslen.m4: New file.
48915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48916         GNULIB_MBSLEN.
48917         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48918         * MODULES.html.sh (Internationalization functions): Add mbslen.
48919
48920 2007-02-11  Bruno Haible  <bruno@clisp.org>
48921
48922         Ensure O(n) worst-case complexity of strcasestr substitute.
48923         * lib/strcasestr.c: Include stdbool.h.
48924         (knuth_morris_pratt): New function.
48925         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48926         bookkeeping indicates that it's worth it.
48927         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48928
48929         * modules/strcasestr-tests: New file.
48930         * tests/test-strcasestr.c: New file.
48931
48932 2007-02-11  Bruno Haible  <bruno@clisp.org>
48933
48934         Ensure O(n) worst-case complexity of c_strcasestr.
48935         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48936         (knuth_morris_pratt): New function.
48937         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48938         the bookkeeping indicates that it's worth it.
48939         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48940
48941         * modules/c-strcasestr-tests: New file.
48942         * tests/test-c-strcasestr.c: New file.
48943
48944 2007-02-11  Bruno Haible  <bruno@clisp.org>
48945
48946         Ensure O(n) worst-case complexity of c_strstr.
48947         * lib/c-strstr.c: Include stdbool.h, string.h.
48948         (knuth_morris_pratt): New function.
48949         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48950         bookkeeping indicates that it's worth it.
48951         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48952
48953         * lib/c-strstr.c: Complete rewrite for maintainability.
48954
48955         * modules/c-strstr-tests: New file.
48956         * tests/test-c-strstr.c: New file.
48957
48958 2007-02-11  Bruno Haible  <bruno@clisp.org>
48959
48960         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48961         5.2.1 and earlier, whereby \055 was treated just like the range
48962         delimiter '-'.
48963         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48964
48965 2007-02-08  Bruno Haible  <bruno@clisp.org>
48966
48967         * modules/regex (Depends-on): Add stdbool.
48968         Reported by Dalibor Topic <robilad@kaffe.org>.
48969
48970 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48971
48972         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48973         Prefer returning from main to exiting from it.
48974         Remove unnecessary parens after sizeof.
48975
48976 2007-02-05  Bruno Haible  <bruno@clisp.org>
48977
48978         New module mbssep.
48979         * modules/mbssep: New file.
48980         * lib/mbssep.c: New file.
48981         * lib/string_.h (strsep): Add a conditional link warning.
48982         (mbssep): New declaration.
48983         * m4/mbssep.m4: New file.
48984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48985         GNULIB_MBSSEP.
48986         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48987         * MODULES.html.sh (Internationalization functions): Add mbssep.
48988
48989 2007-02-05  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48992         Optimize search in case of 1 delimiter.
48993
48994 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48995
48996         * lib/acl.h: Include sys/types.h before sys/acl.h.
48997
48998 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48999
49000         Merge upstream fix for glibc bugzilla #3957:
49001
49002         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
49003
49004         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
49005         bit for RE_HAT_LISTS_NOT_NEWLINE.
49006         (build_charclass_op): Remove bogus comment.
49007
49008 2007-02-05  Simon Josefsson  <simon@josefsson.org>
49009
49010         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
49011
49012 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49013
49014         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
49015         * lib/memmem.c [!defined _LIBC]: Include config.h.
49016
49017 2007-02-04  Bruno Haible  <bruno@clisp.org>
49018
49019         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
49020         warning message.
49021
49022 2007-02-04  Bruno Haible  <bruno@clisp.org>
49023
49024         New module mbstok_r.
49025         * modules/mbstok_r: New file.
49026         * lib/mbstok_r.c: New file.
49027         * lib/string_.h (strtok_r): Change argument names to match the
49028         comments. Add a conditional link warning.
49029         (mbstok_r): New declaration.
49030         * m4/mbstok_r.m4: New file.
49031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49032         GNULIB_MBSTOK_R.
49033         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
49034         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
49035
49036 2007-02-04  Bruno Haible  <bruno@clisp.org>
49037
49038         New module mbsspn.
49039         * modules/mbsspn: New file.
49040         * lib/mbsspn.c: New file.
49041         * lib/string_.h (strspn): Add a conditional link warning.
49042         (mbsspn): New declaration.
49043         * m4/mbsspn.m4: New file.
49044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49045         GNULIB_MBSSPN.
49046         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
49047         * MODULES.html.sh (Internationalization functions): Add mbsspn.
49048
49049 2007-02-04  Bruno Haible  <bruno@clisp.org>
49050
49051         New module mbspbrk.
49052         * modules/mbspbrk: New file.
49053         * lib/mbspbrk.c: New file.
49054         * lib/string_.h (strpbrk): Add a conditional link warning.
49055         (mbspbrk): New declaration.
49056         * m4/mbspbrk.m4: New file.
49057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49058         GNULIB_MBSPBRK.
49059         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
49060         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
49061
49062 2007-02-04  Bruno Haible  <bruno@clisp.org>
49063
49064         New module mbscspn.
49065         * modules/mbscspn: New file.
49066         * lib/mbscspn.c: New file.
49067         * lib/string_.h (strcspn): Add a conditional link warning.
49068         (mbscspn): New declaration.
49069         * m4/mbscspn.m4: New file.
49070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49071         GNULIB_MBSCSPN.
49072         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
49073         * MODULES.html.sh (Internationalization functions): Add mbscspn.
49074
49075 2007-02-04  Bruno Haible  <bruno@clisp.org>
49076
49077         New module mbscasestr, reduced goal of strcasestr.
49078         * modules/mbscasestr: New file.
49079         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
49080         (mbscasestr): Renamed from strcasestr.
49081         * lib/strcasestr.c: Don't include mbuiter.h.
49082         (strcasestr): Remove support for multibyte locales.
49083         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
49084         Change the conditional link warning.
49085         (mbscasestr): New declaration.
49086         * m4/mbscasestr.m4: New file.
49087         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
49088         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
49089         REPLACE_STRCASESTR.
49090         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
49091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49092         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49093         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
49094         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
49095         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49096         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
49097         (Depends-on): Remove mbuiter.
49098         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
49099
49100 2007-02-04  Bruno Haible  <bruno@clisp.org>
49101
49102         Simplify handling of strncasecmp.
49103         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
49104         the conditional link warning.
49105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49106         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
49107         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
49108         * modules/strcase (configure.ac): Don't invoke
49109         gl_STRING_MODULE_INDICATOR.
49110         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
49111
49112 2007-02-04  Bruno Haible  <bruno@clisp.org>
49113
49114         New module mbscasecmp, reduced goal of strcasecmp.
49115         * modules/mbscasecmp: New file.
49116         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
49117         (mbscasecmp): Renamed from strcasecmp.
49118         * lib/strcasecmp.c: Don't include mbuiter.h.
49119         (strcasecmp): Remove support for multibyte locales.
49120         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
49121         Change the conditional link warning.
49122         (mbscasecmp): New declaration.
49123         * m4/mbscasecmp.m4: New file.
49124         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
49125         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
49126         REPLACE_STRCASECMP.
49127         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
49128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49129         GNULIB_MBSCASECMP.
49130         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
49131         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
49132         * modules/strcase (Files): Remove m4/mbrtowc.m4.
49133         (Depends-on): Remove mbuiter.
49134         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
49135
49136 2007-02-04  Bruno Haible  <bruno@clisp.org>
49137
49138         New module mbsstr. Remove module strstr.
49139         * modules/mbsstr: New file.
49140         * modules/strstr: Remove file.
49141         * lib/mbsstr.c: Renamed from lib/strstr.c.
49142         (mbsstr): Renamed from strstr.
49143         * lib/string_.h (strstr): Remove declaration. Change the conditional
49144         link warning.
49145         (mbsstr): New declaration.
49146         * m4/mbsstr.m4: New file.
49147         * m4/strstr.m4: Remove file.
49148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49149         REPLACE_STRSTR.
49150         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49151         Don't initialize GNULIB_STRSTR.
49152         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
49153         substitute GNULIB_STRSTR and REPLACE_STRSTR.
49154         * MODULES.html.sh (Internationalization functions): Add mbsstr.
49155         (Support for systems lacking ANSI C 89): Remove strstr.
49156
49157 2007-02-04  Bruno Haible  <bruno@clisp.org>
49158
49159         New module mbsrchr.
49160         * modules/mbsrchr: New file.
49161         * lib/mbsrchr.c: New file.
49162         * lib/string_.h (strrchr): Add a conditional link warning.
49163         (mbsrchr): New declaration.
49164         * m4/mbsrchr.m4: New file.
49165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49166         GNULIB_MBSRCHR.
49167         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
49168         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
49169
49170 2007-02-04  Bruno Haible  <bruno@clisp.org>
49171
49172         New module mbschr.
49173         * modules/mbschr: New file.
49174         * lib/mbschr.c: New file.
49175         * lib/string_.h (strchr): Add a conditional link warning.
49176         (mbschr): New declaration.
49177         * m4/mbschr.m4: New file.
49178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49179         GNULIB_MBSCHR.
49180         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
49181         * MODULES.html.sh (Internationalization functions): Add mbschr.
49182
49183 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49184
49185         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
49186
49187         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
49188
49189 2007-02-04  Bruno Haible  <bruno@clisp.org>
49190
49191         New module description section 'configure.ac-early'.
49192         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
49193         (func_get_autoconf_early_snippet): New function.
49194         (func_import, func_create_testdir): Use it. Remove special cases for
49195         modules 'extensions' and 'lock'.
49196         * modules/extensions (configure.ac-early): Require
49197         gl_USE_SYSTEM_EXTENSIONS.
49198         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
49199
49200 2007-02-04  Bruno Haible  <bruno@clisp.org>
49201
49202         Make use of gcj-4.3's -fsource and -ftarget option.
49203         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
49204         and if so try the options -fsource and -ftarget.
49205         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
49206         source_version, ftarget_option, target_version arguments.
49207         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
49208         (is_envjavac_oldgcj_14_14_usable): Renamed from
49209         is_envjavac_gcj_14_14_usable.
49210         (is_envjavac_oldgcj_14_13_usable): Renamed from
49211         is_envjavac_gcj_14_13_usable.
49212         (is_gcj_present): Update.
49213         (is_gcj_43, is_gcj43_usable): New functions.
49214         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
49215         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
49216         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
49217         try the options -fsource and -ftarget.
49218
49219 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49220
49221         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
49222         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
49223         larger value.
49224
49225 2007-02-03  Jim Meyering  <jim@meyering.net>
49226
49227         Give tools a better chance to allocate space for very large buffers.
49228         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
49229
49230         Make pwd and readlink work also when run with an unreadable parent dir
49231         on systems with openat support.
49232         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
49233         provided getcwd function, even when we have openat support.
49234         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
49235
49236 2007-02-02  Bruno Haible  <bruno@clisp.org>
49237
49238         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49239         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
49240         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
49241         portability problems if one of these functions is only used on specific
49242         platforms.
49243         Reported by Paul Eggert.
49244
49245 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
49246
49247         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
49248         is causing more trouble than it's curing.
49249         * lib/regex_internal.h (__mempcpy): Remove.
49250         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
49251         (and make the code a tad smaller to boot).
49252         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
49253
49254 2007-02-02  Jim Meyering  <jim@meyering.net>
49255
49256         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
49257         section, not in the Makefile.am: one.
49258
49259 2007-02-02  Eric Blake  <ebb9@byu.net>
49260
49261         * lib/strchrnul.c: Always include config.h first.
49262
49263         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
49264         gnulib strstr is not necessary here.
49265
49266 2007-02-02  Simon Josefsson  <simon@josefsson.org>
49267
49268         * m4/socklen.m4: Fix typo.
49269
49270 2007-02-02  Eric Blake  <ebb9@byu.net>
49271
49272         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
49273         * modules/netinet_in (Makefile.am): Likewise.
49274
49275 2007-02-01  Bruno Haible  <bruno@clisp.org>
49276
49277         * lib/string_.h (GL_LINK_WARNING): New macro.
49278         (strcasecmp, strstr, strcasestr): If provided by the system,
49279         conditionally define as a macro that leads to a warning instead of to
49280         an error.
49281         (strncasecmp): Conditionally define as a macro that leads to a warning.
49282
49283 2007-02-01  Karl Berry  <karl@gnu.org>
49284
49285         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
49286
49287 2007-02-01  Bruno Haible  <bruno@clisp.org>
49288
49289         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
49290         renamings.
49291
49292 2007-02-01  Eric Blake  <ebb9@byu.net>
49293
49294         * modules/regex (Depends-on): Revert dependence on mempcpy.
49295         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
49296         module's definition of mempcpy.
49297         Reported by Paul Eggert.
49298
49299 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         * lib/string_.h: If the gnulib module XYZ is not present, undefine
49302         the symbol XYZ before redefining it.  This fixes a problem with
49303         programs that don't use XYZ, when compiled on systems that define
49304         XYZ to something else.
49305
49306 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
49307
49308         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
49309         occurs when "mkdir -m foo" creates a setgid directory that is (1)
49310         writeable to group or other and (2) is intended to have a special
49311         mode bit that is set or cleared.  In such a case, the directory
49312         should be neither group- nor other-writeable until the special
49313         mode bits are right.
49314
49315 2007-01-31  Eric Blake  <ebb9@byu.net>
49316
49317         * modules/mountlist (Depends-on): Add strstr.
49318
49319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
49320         bug.
49321         * modules/string (Makefile.am): Remove redundant replacement.
49322         * modules/regex (Depends-on): Add mempcpy.
49323
49324 2007-01-31  Bruno Haible  <bruno@clisp.org>
49325
49326         New module description field 'Link'.
49327         * gnulib-tool (func_usage): Document --extract-link-directive.
49328         (sed_extract_prog): Recognize 'Link' directive.
49329         (func_get_link_directive): New function.
49330         (func_import): Show summary of link directives.
49331         Handle --extract-link-directive option.
49332         * modules/acl (Link): New section.
49333         * modules/clock-time (Link): New section.
49334         * modules/euidaccess (Link): New section.
49335         * modules/gettext (Link): New section.
49336         * modules/iconv (Link): New section.
49337         * modules/lock (Link): New section.
49338         * modules/nanosleep (Link): New section.
49339         * modules/readline (Link): New section.
49340
49341 2007-01-27  Bruno Haible  <bruno@clisp.org>
49342
49343         Enforce the use of gnulib modules for unportable <string.h> functions.
49344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
49345         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
49346         (gl_HEADER_STRING_H_BODY): Require it.
49347         * lib/string_.h: If the gnulib module XYZ is not present, redefine
49348         the symbol XYZ to one that gives a link error.
49349         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
49350         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
49351         * modules/mempcpy (configure.ac): Likewise.
49352         * modules/memrchr (configure.ac): Likewise.
49353         * modules/stpcpy (configure.ac): Likewise.
49354         * modules/stpncpy (configure.ac): Likewise.
49355         * modules/strcase (configure.ac): Likewise.
49356         * modules/strcasestr (configure.ac): Likewise.
49357         * modules/strchrnul (configure.ac): Likewise.
49358         * modules/strdup (configure.ac): Likewise.
49359         * modules/strndup (configure.ac): Likewise.
49360         * modules/strnlen (configure.ac): Likewise.
49361         * modules/strpbrk (configure.ac): Likewise.
49362         * modules/strsep (configure.ac): Likewise.
49363         * modules/strstr (configure.ac): Likewise.
49364         * modules/strtok_r (configure.ac): Likewise.
49365
49366 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
49367
49368         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
49369
49370 2007-01-30  Jim Meyering  <jim@meyering.net>
49371
49372         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
49373
49374 2007-01-29  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
49377         * lib/execute.c: Likewise.
49378         * lib/pipe.c: Likewise.
49379         * lib/printf-args.h: Likewise.
49380         * lib/printf-args.c: Likewise.
49381         * lib/printf-parse.c: Likewise.
49382         * lib/vasnprintf.c: Likewise.
49383
49384 2007-01-29  Eric Blake  <ebb9@byu.net>
49385
49386         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
49387         declaration.
49388
49389 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49390
49391         * lib/strptime.h (strptime): Use 'restrict' for args where
49392         POSIX requires this.
49393         * lib/strptime.c (strptime): Likewise.
49394         Change license notice from LGPL to GPL, since gnulib-tool will
49395         change this as needed.
49396         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
49397         defined.
49398         Include "strptime.h" first, to check interface.
49399         Do not #undef _LIBC and _NL_CURRENT.
49400         Do not include <stdlib.h>; no longer needed.
49401         Include "time_r.h" and declare ptime_locale_status
49402         only if _LIBC is not defined.
49403         (__P): Remove unused macro.
49404         (match_string): Bring back glibc version, but use it only if _LIBC
49405         is defined.
49406         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
49407         Remove unnecessary assertion and abort() call.
49408         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
49409         * m4/strptime.m4: Fix serial number comment.
49410         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
49411         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
49412         (Depends-on): Add time_r.
49413
49414 2007-01-29  Bruno Haible  <bruno@clisp.org>
49415
49416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49417         strptime.
49418         * modules/strptime (Depends-on): Add stdbool.
49419         * lib/strptime.h: Include <time.h> always. Add comments.
49420
49421 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49422
49423         * modules/strptime: New file.
49424         * lib/strptime.h: New file.
49425         * lib/strptime.c: New file.
49426         * m4/strptime.m4: New file.
49427
49428 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49429
49430         * MODULES.html.sh: New module mpsort.
49431         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
49432
49433         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
49434         a circularity problem with HP-UX ia64 reported by Bob Proulx in
49435         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
49436         All uses changed.
49437         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
49438         All uses changed.
49439         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
49440         to _Restrict_.
49441         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
49442         the parameter matches the prototype.
49443
49444 2007-01-28  Jim Meyering  <jim@meyering.net>
49445
49446         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
49447         sys/time.h here, reverting that part of the previous patch:
49448         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
49449
49450 2007-01-28  Bruno Haible  <bruno@clisp.org>
49451
49452         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
49453         value of $(SYS_TIME_H).
49454         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
49455         remove it conditionally, too. [added by Jim Meyering]
49456         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
49457         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49458         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
49459         GETTIMEOFDAY_REPLACEMENT to 1.
49460
49461 2007-01-28  Bruno Haible  <bruno@clisp.org>
49462
49463         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
49464         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
49465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
49466         Set UNISTD_H instead of UNISTD_H2.
49467         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
49468
49469 2007-01-28  Bruno Haible  <bruno@clisp.org>
49470
49471         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
49472         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
49473
49474 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49475
49476         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
49477         (func_create_testdir): Ensure C locale for `grep' and `tr'
49478         character ranges.
49479         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
49480         ACLOCAL_AMFLAGS parsing state machine.
49481
49482 2007-01-27  Bruno Haible  <bruno@clisp.org>
49483
49484         * modules/unistr/base: Update.
49485
49486 2007-01-27  Bruno Haible  <bruno@clisp.org>
49487
49488         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
49489         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
49490         * modules/unistr/u32-mbtouc-unsafe: Renamed from
49491         modules/unistr/u32-mbtouc.
49492         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
49493         * lib/unistr.h: Update.
49494         * lib/linebreak.c: Update.
49495         * modules/unistr/u32-mbtouc: Renamed from
49496         modules/unistr/u32-mbtouc-safe.
49497         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
49498         * lib/unistr.h: Update.
49499         * lib/unistr/u32-to-u8.c: Update.
49500         * lib/unistr/u32-to-u16.c: Update.
49501
49502 2007-01-27  Bruno Haible  <bruno@clisp.org>
49503
49504         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
49505         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
49506         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
49507         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
49508         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
49509         * modules/unistr/u16-mbtouc-unsafe: Renamed from
49510         modules/unistr/u16-mbtouc.
49511         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
49512         * lib/unistr.h: Update.
49513         * lib/linebreak.c: Update.
49514         * modules/linebreak: Update.
49515         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
49516         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
49517         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
49518         * modules/unistr/u16-mbtouc: Renamed from
49519         modules/unistr/u16-mbtouc-safe.
49520         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
49521         * lib/unistr.h: Update.
49522         * lib/unistr/u16-to-u8.c: Update.
49523         * modules/unistr/u16-to-u8: Update.
49524         * lib/unistr/u16-to-u32.c: Update.
49525         * modules/unistr/u16-to-u32: Update.
49526
49527 2007-01-27  Bruno Haible  <bruno@clisp.org>
49528
49529         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
49530         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
49531         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
49532         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
49533         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
49534         * modules/unistr/u8-mbtouc-unsafe: Renamed from
49535         modules/unistr/u8-mbtouc.
49536         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
49537         * lib/unistr.h: Update.
49538         * lib/striconveh.c: Update.
49539         * modules/striconveh: Update.
49540         * lib/linebreak.c: Update.
49541         * modules/linebreak: Update.
49542         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
49543         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
49544         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
49545         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
49546         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
49547         * lib/unistr.h: Update.
49548         * lib/striconveh.c: Update.
49549         * modules/striconveh: Update.
49550         * lib/unistr/u8-to-u16.c: Update.
49551         * modules/unistr/u8-to-u16: Update.
49552         * lib/unistr/u8-to-u32.c: Update.
49553         * modules/unistr/u8-to-u32: Update.
49554
49555 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49556
49557         Sync from Libtool.
49558         * lib/argz.c: Do not include strings.h nor memory.h, include
49559         string.h unconditionally.  Patch by Simon Josefsson.
49560
49561 2007-01-27  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
49564         from gl_HEADER_STRING_H_BODY.
49565         (gl_HEADER_STRING_H_BODY): Require it.
49566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
49567         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49568         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49569         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49571         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49573         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49574         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49575         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49576         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49577         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49578         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49579         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49580         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49581
49582 2007-01-27  Bruno Haible  <bruno@clisp.org>
49583
49584         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49585         check_PROGRAMS into noinst_PROGRAMS.
49586         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49587         check_PROGRAMS in this case.
49588         (func_import): Set for_test to false.
49589         (func_create_testdir): Set for_test to true.
49590
49591 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49592             Bruno Haible  <bruno@clisp.org>
49593
49594         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49595         (Depends-on): Add string.
49596         (Includes): Use <string.h> instead of strcasestr.h.
49597         * modules/string (Makefile.am): Also substitute the value of
49598         REPLACE_STRCASESTR.
49599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49600         assume strcasestr is declared in <string.h> not <strings.h>. Also
49601         set REPLACE_STRCASESTR.
49602         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49603         REPLACE_STRCASESTR.
49604         * lib/strcasestr.h: Remove file.
49605         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
49606         * lib/string_.h (strcasestr): New declaration.
49607
49608 2007-01-27  Bruno Haible  <bruno@clisp.org>
49609
49610         * lib/string_.h: Use 'extern'.
49611
49612 2007-01-27  Jim Meyering  <jim@meyering.net>
49613
49614         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
49615         of set-but-not-used local, "q".
49616
49617         * lib/mempcpy.c: Include <config.h> before <string.h>.
49618         This fixes a compilation error on HP-UX, due to the system's
49619         "restrict"-using mempcpy prototype.
49620
49621 2007-01-26  Bruno Haible  <bruno@clisp.org>
49622
49623         Small optimization.
49624         * lib/javacomp.c: Include c-strstr.h.
49625          (is_envjavac_gcj): Use c_strstr instead of strstr.
49626         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
49627
49628 2007-01-26  Bruno Haible  <bruno@clisp.org>
49629
49630         * MODULES.html.sh (Unicode string functions): Add the new modules.
49631
49632         * modules/uniconv/u32-strconv-to-locale: New file.
49633         * lib/uniconv/u32-strconv-to-locale.c: New file.
49634
49635         * modules/uniconv/u16-strconv-to-locale: New file.
49636         * lib/uniconv/u16-strconv-to-locale.c: New file.
49637
49638         * modules/uniconv/u8-strconv-to-locale: New file.
49639         * lib/uniconv/u8-strconv-to-locale.c: New file.
49640
49641         * modules/uniconv/u32-strconv-from-locale: New file.
49642         * lib/uniconv/u32-strconv-from-locale.c: New file.
49643
49644         * modules/uniconv/u16-strconv-from-locale: New file.
49645         * lib/uniconv/u16-strconv-from-locale.c: New file.
49646
49647         * modules/uniconv/u8-strconv-from-locale: New file.
49648         * lib/uniconv/u8-strconv-from-locale.c: New file.
49649
49650         * modules/uniconv/u32-strconv-to-enc: New file.
49651         * lib/uniconv/u32-strconv-to-enc.c: New file.
49652         * modules/uniconv/u32-strconv-to-enc-tests: New file.
49653         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
49654
49655         * modules/uniconv/u16-strconv-to-enc: New file.
49656         * lib/uniconv/u16-strconv-to-enc.c: New file.
49657         * lib/uniconv/u-strconv-to-enc.h: New file.
49658         * modules/uniconv/u16-strconv-to-enc-tests: New file.
49659         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
49660
49661         * modules/uniconv/u8-strconv-to-enc: New file.
49662         * lib/uniconv/u8-strconv-to-enc.c: New file.
49663         * modules/uniconv/u8-strconv-to-enc-tests: New file.
49664         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
49665
49666         * modules/uniconv/u32-strconv-from-enc: New file.
49667         * lib/uniconv/u32-strconv-from-enc.c: New file.
49668         * modules/uniconv/u32-strconv-from-enc-tests: New file.
49669         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
49670
49671         * modules/uniconv/u16-strconv-from-enc: New file.
49672         * lib/uniconv/u16-strconv-from-enc.c: New file.
49673         * modules/uniconv/u16-strconv-from-enc-tests: New file.
49674         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
49675
49676         * modules/uniconv/u8-strconv-from-enc: New file.
49677         * lib/uniconv/u8-strconv-from-enc.c: New file.
49678         * lib/uniconv/u-strconv-from-enc.h: New file.
49679         * modules/uniconv/u8-strconv-from-enc-tests: New file.
49680         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
49681
49682         * modules/uniconv/u32-conv-from-enc: New file.
49683         * lib/uniconv/u32-conv-from-enc.c: New file.
49684         * modules/uniconv/u32-conv-from-enc-tests: New file.
49685         * tests/uniconv/test-u32-conv-from-enc.c: New file.
49686
49687         * modules/uniconv/u16-conv-from-enc: New file.
49688         * lib/uniconv/u16-conv-from-enc.c: New file.
49689         * lib/uniconv/u-conv-from-enc.h: New file.
49690         * modules/uniconv/u16-conv-from-enc-tests: New file.
49691         * tests/uniconv/test-u16-conv-from-enc.c: New file.
49692
49693         * modules/uniconv/u8-conv-from-enc: New file.
49694         * lib/uniconv/u8-conv-from-enc.c: New file.
49695         * modules/uniconv/u8-conv-from-enc-tests: New file.
49696         * tests/uniconv/test-u8-conv-from-enc.c: New file.
49697
49698         * modules/uniconv/base: New file.
49699         * lib/uniconv.h: New file.
49700
49701 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         * doc/gnulib-tool.texi (Initial import): Update to match current
49704         behavior with strdup module.
49705         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
49706         * lib/memmem.h: Remove; all uses removed.  This is now done
49707         by <string.h>.
49708         * lib/mempcpy.h: Likewise.
49709         * lib/memrchr.h: Likewise.
49710         * lib/stpcpy.h: Likewise.
49711         * lib/stpncpy.h: Likewise.
49712         * lib/strcase.h: Likewise.
49713         * lib/strchrnul.h: Likewise.
49714         * lib/strdup.h: Likewise.
49715         * lib/strndup.h: Likewise.
49716         * lib/strnlen.h: Likewise.
49717         * lib/strpbrk.h: Likewise.
49718         * lib/strsep.h: Likewise.
49719         * lib/strstr.h: Likewise.
49720         * lib/strtok_r.h: Likewise.
49721         * lib/string_.h: New file.
49722         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
49723         Rely on <string.h> instead.
49724         * lib/canon-host.c: Likewise.
49725         * lib/chdir-long.c: Likewise.
49726         * lib/concatpath.c: Likewise.
49727         * lib/exclude.c: Likewise.
49728         * lib/fchdir.c: Likewise.
49729         * lib/getaddrinfo.c: Likewise.
49730         * lib/getcwd.c: Likewise.
49731         * lib/getsubopt.c: Likewise.
49732         * lib/glob.c: Likewise.
49733         * lib/hard-locale.c: Likewise.
49734         * lib/iconvme.c: Likewise.
49735         * lib/javacomp.c: Likewise.
49736         * lib/mempcpy.c: Likewise.
49737         * lib/memrchr.c: Likewise.
49738         * lib/regex_internal.h: Likewise.
49739         * lib/stpncpy.c: Likewise.
49740         * lib/strcasecmp.c: Likewise.
49741         * lib/strchrnul.c: Likewise.
49742         * lib/strdup.c: Likewise.
49743         * lib/striconv.c: Likewise.
49744         * lib/striconveh.c: Likewise.
49745         * lib/striconveha.c: Likewise.
49746         * lib/strncasecmp.c: Likewise.
49747         * lib/strndup.c: Likewise.
49748         * lib/strnlen.c: Likewise.
49749         * lib/strsep.c: Likewise.
49750         * lib/strstr.c: Likewise.
49751         * lib/strtok_r.c: Likewise.
49752         * lib/userspec.c: Likewise.
49753         * lib/w32spawn.h: Likewise.
49754         * lib/xstrndup.c: Likewise.
49755         * lib/mountlist.c (strstr): Remove decl.
49756         * m4/string_h.m4: New file.
49757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49758         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49759         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49760         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49761         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49762         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49763         Set REPLACE_STRCASECMP if necessary.
49764         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49765         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49766         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49768         HAVE_DECL_STRDUP if necessary.
49769         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49770         since gl_FUNC_STRNDUP does that now.
49771         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49772         Check for decl here...
49773         (gl_PREREQ_STRNLEN): ... not here.
49774         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49775         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49776         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49777         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49778         necessary.
49779         * modules/string: New file.
49780         * modules/memmem (Files): Remove special-purpose include file.
49781         (Depends-on): Add string.
49782         (Include): Include <string.h>, not the removed file.
49783         * modules/mempcpy: Likewise.
49784         * modules/memrchr: Likewise.
49785         * modules/stpcpy: Likewise.
49786         * modules/stpncpy: Likewise.
49787         * modules/strcase: Likewise.
49788         * modules/strchrnul: Likewise.
49789         * modules/strdup: Likewise.
49790         * modules/strndup: Likewise.
49791         * modules/strnlen: Likewise.
49792         * modules/strpbrk: Likewise.
49793         * modules/strsep: Likewise.
49794         * modules/strstr: Likewise.
49795         * modules/strtok_r: Likewise.
49796         * tests/test-dirname.c: Don't include "strdup.h", since
49797         <string.h> now suffices.
49798         * tests/test-memmem.c: Don't include "memmem.h", since
49799         <string.h> now suffices.
49800
49801 2007-01-25  Bruno Haible  <bruno@clisp.org>
49802
49803         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49804         *resultp is 0.
49805
49806         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49807         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49808         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49809         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49810
49811         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49812         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49813         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49814         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49815         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49816         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49817
49818 2007-01-24  Bruno Haible  <bruno@clisp.org>
49819
49820         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49822         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49823         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49824         gl_FUNC_FTS_CORE.
49825         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49826         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49827         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49828         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49829         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49830         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49831         gl_FUNC_FCHOWNAT.
49832         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49833         gl_FUNC_STRFTIME.
49834         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49835         Reported by Ralf Wildenhues.
49836
49837 2007-01-24  Bruno Haible  <bruno@clisp.org>
49838
49839         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49840         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49841         gl_GETADDRINFO.
49842         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49843         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49844         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49845
49846 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49847
49848         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49849         Don't use 'exit'; just return from 'main'.
49850         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49851
49852         * lib/fnmatch_.h: Readjust white space and comments to match
49853         glibc, to avoid spurious diffs.
49854
49855 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49856
49857         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49858         2004-12-01 change by Jakub Jelinek, since this code won't compile
49859         if !LIBC.  Problem reported by Bob Proulx.
49860
49861 2007-01-23  Bruno Haible  <bruno@clisp.org>
49862
49863         * lib/striconveh.c: Include c-strcaseeq.h.
49864         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49865         * modules/striconveh (Depends-on): Add c-strcaseeq.
49866
49867 2007-01-23  Bruno Haible  <bruno@clisp.org>
49868
49869         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49870
49871         * modules/c-strcaseeq: New file.
49872         * lib/c-strcaseeq.h: New file.
49873
49874         * modules/streq: New file.
49875         * lib/streq.h: New file.
49876
49877 2007-01-23  Bruno Haible  <bruno@clisp.org>
49878
49879         * modules/striconveha-tests: New file.
49880         * tests/test-striconveha.c: New file.
49881
49882         * lib/striconveha.h: Include <stdbool.h>.
49883         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49884         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49885         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49886         (mem_iconveha): New function.
49887         (str_iconveha_notranslit): Renamed from str_iconveha.
49888         (str_iconveha): New function.
49889         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49890         c-strcase.
49891
49892 2007-01-23  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49895         encodings without forgiving before trying any encoding with handler.
49896         (str_iconveha): Try all encodings without forgiving before trying any
49897         encoding with handler.
49898
49899 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49900
49901         Import the following changes from libc.
49902
49903         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49904
49905         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49906
49907         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49908
49909         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49910         normal_bracket label.
49911
49912         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49913
49914         [BZ #361]
49915         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49916         to normal_bracket after fetching the next character.
49917
49918 2007-01-22  Bruno Haible  <bruno@clisp.org>
49919
49920         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49921         argument.
49922         * lib/striconveh.c (iconv_carefully_1): New function.
49923         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49924         argument.
49925         (str_cd_iconveh): Update.
49926         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49927         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49928         * tests/test-striconveh.c (MAGIC): New macro.
49929         (new_offsets): New function.
49930         (main): Test call with and without offsets.
49931
49932 2007-01-22  Bruno Haible  <bruno@clisp.org>
49933
49934         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49935         * modules/sys_select (Makefile.am): Likewise.
49936         * modules/sys_socket (Makefile.am): Likewise.
49937         * modules/sys_time (Makefile.am): Likewise.
49938
49939 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         * modules/gettimeofday (License): Change from GPL to LGPL, since
49942         gettimeofday is a library function.
49943
49944 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49945
49946         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49947
49948 2007-01-21  Bruno Haible  <bruno@clisp.org>
49949
49950         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49951
49952 2007-01-21  Bruno Haible  <bruno@clisp.org>
49953
49954         * modules/striconveha: New file.
49955         * lib/striconveha.h: New file.
49956         * lib/striconveha.c: New file.
49957         * MODULES.html.sh (Internationalization functions): Add striconveha.
49958         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49959         string.
49960         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49961
49962 2007-01-21  Bruno Haible  <bruno@clisp.org>
49963
49964         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49965         * lib/striconveh.c (str_iconveh): Likewise.
49966
49967 2007-01-21  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/striconveh.h (mem_iconveh): New declaration.
49970         * lib/striconveh.c (mem_iconveh): New function.
49971         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49972
49973 2007-01-21  Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49976
49977         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49978         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49979         original result buffer.
49980         (str_cd_iconveh): Update.
49981         * tests/test-striconveh.c (main): Update.
49982
49983         * lib/striconv.h (mem_cd_iconv): Change specification.
49984         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49985         result buffer.
49986         (str_cd_iconv): Update.
49987         * tests/test-striconv.c (main): Update.
49988
49989 2007-01-21  Bruno Haible  <bruno@clisp.org>
49990
49991         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49992
49993 2007-01-20  Jim Meyering  <jim@meyering.net>
49994
49995         * lib/userspec.c (parse_with_separator): If a user or group string
49996         starts with "+", skip the corresponding name-to-ID look-up, since
49997         such a look-up must fail: user and group names may not include "+".
49998
49999 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50000
50001         * lib/poll.c: Include sys/time.h and time.h unconditionally,
50002         since we now assume the sys_time module.
50003         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
50004         check for sys/time.h; no longer needed.
50005         * modules/poll (Depends-on): Depend on sys_time.
50006
50007 2007-01-18  Bruno Haible  <bruno@clisp.org>
50008
50009         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
50010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50011
50012         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
50013         gettimeofday.
50014
50015         * tests/test-gettimeofday.c: Include <time.h>.
50016         (dummy): Remove variable.
50017
50018         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
50019         gl_HEADER_SYS_TIME_H.
50020         (gl_HEADER_SYS_TIME_H): New macro.
50021
50022         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
50023         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50024         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50025         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
50026         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
50028         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
50029         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50030         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
50031         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
50032         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50033
50034         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
50035         last change; it caused a compilation error when cross-compiling to
50036         Cygwin.
50037
50038 2007-01-18  Jim Meyering  <jim@meyering.net>
50039
50040         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
50041         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
50042         than the race-prone "test -d sys || mkdir sys".
50043         (configure.ac): Use AC_PROG_MKDIR_P.
50044         * modules/sys_select: Likewise.
50045         * modules/sys_socket: Likewise.
50046         * modules/sys_time: Likewise.
50047
50048 2007-01-18  Eric Blake  <ebb9@byu.net>
50049
50050         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
50051         replace gettimeofday.
50052         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
50053         name, to avoid infinite recursion.
50054
50055 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
50056
50057         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
50058         module sys_time.
50059         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
50060         assume timespec.h defines struct timeval.
50061         * lib/settime.c: Likewise.
50062         * lib/utimens.c: Likewise.
50063         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
50064         since we now assume the gettimeofday module.
50065         * lib/tempname.c (__gen_tempname): Likewise.
50066         * lib/gettimeofday.h: Remove.
50067         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
50068         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
50069         Include <time.h>, for 'time()'.
50070         (localtime_buffer_addr): Also use this workaround if
50071         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
50072         to simplify the uses.  All uses changed.
50073         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
50074         that #undef is inside {}, and 'const' follows type name consistently.
50075         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
50076         (gettimeofday): Do not use the maximum possible value for
50077         tv->tv_usec, since that might break usages other than ls.c.
50078         Instead, we'll leave ls.c alone.  This undoes today's patch
50079         by Bruno.  Add a compile-time warning for 1s-clock resolution;
50080         we've never observed the problem but might as well keep the
50081         canary.
50082         * lib/nanosleep.c: Include timespec.h first, for interface check.
50083         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
50084         now assume the sys_time module.
50085         * lib/tempname.c: Likewise.
50086         * lib/timespec.h: Likewise.
50087         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
50088         needed.
50089         * lib/strftime.c: Likewise.
50090         * lib/timespec.h: Likewise.
50091         * lib/posixtm.c: Include posixtm.h first, for interface check.
50092         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
50093         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
50094         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
50095         * lib/sys_time_.h: New file.
50096         * lib/timespec.h (struct timespec): Use long int, not long.
50097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50098         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
50099         Remove obsolescent call to AC_HEADER_TIME.
50100         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
50101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50102         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50103         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
50104         Likewise.
50105         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
50106         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
50107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
50108         into the sys_time module.  Check for gettimeofday just once.
50109         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
50110         for gettimeofday signature to just check the signature.  Merely
50111         compile it, since linking doesn't test signature.  Improve test for
50112         whether gettimeofday.o is actually needed.
50113         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
50114         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
50115         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
50116         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50117         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
50118         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
50119         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
50120         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
50121         than worrying about sys/time.h.
50122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50123         Don't bother worrying about TIME_WITH_SYS_TIME.
50124         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
50125         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
50126         * m4/sys_time_h.m4: New file.
50127         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
50128         Don't include sys/time.h.  Return from main rather than exiting.
50129         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
50130         all uses changed.
50131         * modules/gethrxtime (Depends-on): Add sys_time.
50132         * modules/gettime (Depends-on): Likewise.
50133         * modules/gettimeofday (Depends-on): Likewise.
50134         * modules/nanosleep (Depends-on): Likewise.
50135         * modules/settime (Depends-on): Likewise.
50136         * modules/tempname (Depends-on): Likewise.
50137         * modules/utimens (Depends-on): Likewise.
50138         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
50139         (Include:) Change back to <sys/time.h>.
50140         (Maintainer:) Add self.
50141         * modules/sys_time: New file.
50142         * modules/tempname (Depends-on): Add gettimeofday.
50143         * tests/test-gettimeofday.c: Include <sys/time.h>
50144         rather than gettimeofday.h.
50145
50146 2007-01-17  Bruno Haible  <bruno@clisp.org>
50147
50148         * gnulib-tool (func_get_license): Revert last patch. Instead, let
50149         the license default to GPL.
50150         (func_create_testdir): Don't complain if a module is LGPL and its
50151         tests module depends on GPLed modules.
50152
50153 2007-01-17  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/gettimeofday.c (gettimeofday): Add code for the case
50156         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
50157         maximum possible value for tv->tv_usec, rather than the minimum one.
50158
50159 2005-10-08  Martin Lambers  <marlam@marlam.de>
50160 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50161 2007-01-16  Bruno Haible  <bruno@clisp.org>
50162
50163         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
50164         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
50165         gl_FUNC_GETTIMEOFDAY.
50166         (Include): Add gettimeofday.h.
50167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
50168         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
50169         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
50170         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
50171         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
50172         * lib/gettimeofday.h: New file.
50173         * lib/gettimeofday.c: Include <sys/timeb.h>.
50174         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
50175         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50176         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
50177         fall back on time().
50178
50179         * tests/test-gettimeofday.c: New file.
50180         * modules/gettimeofday-tests: New file.
50181
50182 2007-01-16  Eric Blake  <ebb9@byu.net>
50183
50184         * modules/fnmatch (Depends-on): Depend on wchar.
50185         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
50186         * m4/fnmatch.m4: Likewise.
50187         * modules/mbchar (Makefile.am): Assume <wchar.h>.
50188         * m4/mbchar.m4: Likewise.
50189         * modules/mbswidth (Depends-on): Depend on wchar.
50190         * lib/mbswidth.c: Assume <wchar.h>.
50191         * m4/mbswidth.m4: Likewise.
50192         * modules/quotearg (Depends-on): Depend on wchar.
50193         * lib/quotearg.c: Assume <wchar.h>.
50194         * m4/quotearg.m4: Likewise.
50195         * modules/regex (Depends-on): Depend on wchar.
50196         * lib/regex_internal.h: Assume <wchar.h>.
50197         * m4/regex.m4: Likewise.
50198         * modules/stdint (Depends-on): Depend on wchar.
50199         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
50200         * m4/stdint.m4: Likewise.
50201         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
50202         * modules/strftime (Depends-on): Depend on wchar.
50203         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
50204         * modules/strtol (Depends-on): Depend on wchar.
50205         * lib/strtol.c: Assume <wchar.h>.
50206         * modules/wcwidth (Depends-on): Depend on wchar.
50207         * lib/wcwidth.h: Assume <wchar.h>.
50208         * m4/wcwidth.m4: Likewise.
50209
50210 2007-01-16  Bruno Haible  <bruno@clisp.org>
50211
50212         * modules/csharpexec-script: New, created from...
50213         * modules/csharpexec: ... this.
50214
50215 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50216
50217         * modules/javaexec-script: New, created from...
50218         * modules/javaexec: ... this.
50219
50220 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50221
50222         * modules/poll (Dependencies): Add sys_select.
50223
50224 2007-01-15  Jim Meyering  <jim@meyering.net>
50225
50226         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
50227         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
50228         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
50229         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
50230
50231 2007-01-15  Bruno Haible  <bruno@clisp.org>
50232
50233         * modules/striconveh: New file.
50234         * lib/striconveh.h: New file.
50235         * lib/striconveh.c: New file.
50236         * MODULES.html.sh (Internationalization functions): Add striconveh.
50237
50238         * modules/striconveh-tests: New file.
50239         * tests/test-striconveh.c: New file.
50240
50241 2007-01-15  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
50244         not from GNU libiconv or GNU libc.
50245
50246 2007-01-15  Bruno Haible  <bruno@clisp.org>
50247
50248         * doc/gnulib-intro.texi (Copyright): Explain the different license
50249         terms for module descriptions, autoconf macros, tests, documentation.
50250
50251 2007-01-14  Bruno Haible  <bruno@clisp.org>
50252
50253         * modules/striconv-tests: New file.
50254         * tests/test-striconv.c: New file.
50255
50256 2007-01-14  Bruno Haible  <bruno@clisp.org>
50257
50258         * modules/iconv-tests: New file.
50259         * tests/test-iconv.c: New file.
50260
50261 2007-01-14  Bruno Haible  <bruno@clisp.org>
50262
50263         * gnulib-tool (func_get_license): For test modules, use the license of
50264         the main module.
50265
50266 2007-01-14  Bruno Haible  <bruno@clisp.org>
50267
50268         * modules/iconv (Include): Clarify that <iconv.h> can only be included
50269         if iconv is found to exist.
50270
50271 2007-01-14  Bruno Haible  <bruno@clisp.org>
50272
50273         * modules/c-ctype-tests: New file.
50274         * tests/test-c-ctype.c: New file.
50275
50276 2007-01-14  Bruno Haible  <bruno@clisp.org>
50277
50278         * modules/binary-io-tests: New file.
50279         * tests/test-binary-io.sh: New file.
50280         * tests/test-binary-io.c: New file.
50281
50282 2007-01-14  Bruno Haible  <bruno@clisp.org>
50283
50284         * modules/array-oset-tests: New file.
50285         * tests/test-array_oset.c: New file.
50286
50287 2007-01-14  Bruno Haible  <bruno@clisp.org>
50288
50289         * modules/array-list-tests: New file.
50290         * tests/test-array_list.c: New file.
50291
50292 2007-01-14  Bruno Haible  <bruno@clisp.org>
50293
50294         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
50295         and make.
50296         Reported by Simon Josefsson in
50297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
50298
50299 2007-01-14  Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/allocsa-tests: New file.
50302         * tests/test-allocsa.c: New file.
50303
50304 2007-01-14  Bruno Haible  <bruno@clisp.org>
50305
50306         * modules/fchdir (Depends-on): Add absolute-header.
50307         * modules/unistd (Depends-on): Likewise.
50308
50309 2006-12-30  Bruno Haible  <bruno@clisp.org>
50310
50311         * modules/fchdir: New file.
50312         * modules/unistd (Files): Add lib/unistd_.h.
50313         (Makefile.am): Generate unistd.h from unistd_.h.
50314         * lib/fchdir.c: New file.
50315         * lib/dirent_.h: New file.
50316         * lib/unistd_.h: New file.
50317         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
50318         * m4/fchdir.m4: New file.
50319         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
50320         (gl_HEADER_UNISTD): Invoke it.
50321         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
50322         function.
50323         * lib/backupfile.c (opendir, closedir): Undefine.
50324         * lib/chown.c (open, close): Undefine.
50325         * lib/clean-temp.c (open, close): Undefine.
50326         * lib/copy-file.c (open, close): Undefine.
50327         * lib/execute.c (open, close): Undefine.
50328         * lib/fsusage.c (open, close): Undefine.
50329         * lib/gc-gnulib.c (open, close): Undefine.
50330         * lib/getcwd.c (opendir, closedir): Undefine.
50331         * lib/glob.c (opendir, closedir): Undefine.
50332         * lib/javacomp.c (open, close): Undefine.
50333         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
50334         * lib/openat-proc.c (open, close): Undefine.
50335         * lib/pagealign_alloc.c (open, close): Undefine.
50336         * lib/pipe.c (open, close): Undefine.
50337         * lib/progreloc.c (open, close): Undefine.
50338         * lib/savedir.c (opendir, closedir): Undefine.
50339         * lib/utime.c (open, close): Undefine.
50340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
50341
50342 2007-01-10  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
50345
50346 2007-01-12  Eric Blake  <ebb9@byu.net>
50347
50348         Provide a robust <wchar.h>.  Further simplifications are now
50349         possible in other modules, but not included here.
50350         * modules/wchar: New module.
50351         * m4/wchar.m4: New file.
50352         * lib/wchar_.h: Likewise.
50353         * modules/mbchar (Depends-on): Depend on wchar, as the first use
50354         of the new module.
50355         * MODULES.html.sh (Extended multibyte and wide character utilities):
50356         New section.
50357
50358 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
50359
50360         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
50361         to a reasonable default for memory allocation.
50362         (xreadlink): Don't allocate a huge buffer, to work around a buggy
50363         file system that reports garbage st_size values for symlinks.
50364         Problem reported by Liyang Hu.
50365
50366 2007-01-11  Simon Josefsson  <simon@josefsson.org>
50367
50368         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
50369         Emacs .#* auto-save files).
50370
50371 2007-01-11  Bruno Haible  <bruno@clisp.org>
50372
50373         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
50374         directory.
50375
50376 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         Use @...@ consistently in lib/wctype_.h.
50379         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
50380         on it being set to 1 or 0.
50381         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
50382         go back to AC_SUBSTing it.
50383         * modules/wctype (Makefile.am): Undo previous change.
50384
50385 2007-01-10  Eric Blake  <ebb9@byu.net>
50386
50387         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
50388         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
50389         * modules/wctype (Makefile.am): Likewise.
50390         Reported by Chris McGuire.
50391
50392 2007-01-10  Jim Meyering  <jim@meyering.net>
50393
50394         fts.c: a small readability/maintainability improvement
50395         * lib/fts.c (fts_read): Make this code slightly more readable and
50396         maintainable by hoisting the "sp->fts_cur = p" assignments to
50397         immediately follow the statements that set P.  Derived from
50398         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
50399
50400 2007-01-10  Eric Blake  <ebb9@byu.net>
50401
50402         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
50403         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
50404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50405         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50406         Reported by Chris McGuire.
50407
50408 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50409
50410         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
50411         in sed script.
50412
50413 2007-01-09  Bruno Haible  <bruno@clisp.org>
50414
50415         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
50416         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
50417         variables.
50418         (func_module): Use them.
50419
50420 2007-01-09  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/unistr/base: New file.
50423         * lib/unistr.h: New file.
50424
50425         * modules/unistr/u8-to-u16: New file.
50426         * lib/unistr/u8-to-u16.c: New file.
50427
50428         * modules/unistr/u8-to-u32: New file.
50429         * lib/unistr/u8-to-u32.c: New file.
50430
50431         * modules/unistr/u16-to-u8: New file.
50432         * lib/unistr/u16-to-u8.c: New file.
50433
50434         * modules/unistr/u16-to-u32: New file.
50435         * lib/unistr/u16-to-u32.c: New file.
50436
50437         * modules/unistr/u32-to-u8: New file.
50438         * lib/unistr/u32-to-u8.c: New file.
50439
50440         * modules/unistr/u32-to-u16: New file.
50441         * lib/unistr/u32-to-u16.c: New file.
50442
50443         * modules/unistr/u8-check: New file.
50444         * modules/unistr/u16-check: New file.
50445         * modules/unistr/u32-check: New file.
50446         * lib/unistr/u8-check.c: New file.
50447         * lib/unistr/u16-check.c: New file.
50448         * lib/unistr/u32-check.c: New file.
50449
50450         * modules/unistr/u8-chr: New file.
50451         * modules/unistr/u16-chr: New file.
50452         * modules/unistr/u32-chr: New file.
50453         * lib/unistr/u8-chr.c: New file.
50454         * lib/unistr/u16-chr.c: New file.
50455         * lib/unistr/u32-chr.c: New file.
50456
50457         * modules/unistr/u8-cmp: New file.
50458         * modules/unistr/u16-cmp: New file.
50459         * modules/unistr/u32-cmp: New file.
50460         * lib/unistr/u8-cmp.c: New file.
50461         * lib/unistr/u16-cmp.c: New file.
50462         * lib/unistr/u32-cmp.c: New file.
50463
50464         * modules/unistr/u8-cpy: New file.
50465         * modules/unistr/u16-cpy: New file.
50466         * modules/unistr/u32-cpy: New file.
50467         * lib/unistr/u8-cpy.c: New file.
50468         * lib/unistr/u16-cpy.c: New file.
50469         * lib/unistr/u32-cpy.c: New file.
50470         * lib/unistr/u-cpy.h: New file.
50471
50472         * modules/unistr/u8-cpy-alloc: New file.
50473         * modules/unistr/u16-cpy-alloc: New file.
50474         * modules/unistr/u32-cpy-alloc: New file.
50475         * lib/unistr/u8-cpy-alloc.c: New file.
50476         * lib/unistr/u16-cpy-alloc.c: New file.
50477         * lib/unistr/u32-cpy-alloc.c: New file.
50478         * lib/unistr/u-cpy-alloc.h: New file.
50479
50480         * modules/unistr/u8-endswith: New file.
50481         * modules/unistr/u16-endswith: New file.
50482         * modules/unistr/u32-endswith: New file.
50483         * lib/unistr/u8-endswith.c: New file.
50484         * lib/unistr/u16-endswith.c: New file.
50485         * lib/unistr/u32-endswith.c: New file.
50486         * lib/unistr/u-endswith.h: New file.
50487
50488         * modules/unistr/u8-mblen: New file.
50489         * modules/unistr/u16-mblen: New file.
50490         * modules/unistr/u32-mblen: New file.
50491         * lib/unistr/u8-mblen.c: New file.
50492         * lib/unistr/u16-mblen.c: New file.
50493         * lib/unistr/u32-mblen.c: New file.
50494
50495         * modules/unistr/u8-mbtouc: New file.
50496         * modules/unistr/u16-mbtouc: New file.
50497         * modules/unistr/u32-mbtouc: New file.
50498         * lib/unistr/u8-mbtouc.c: New file.
50499         * lib/unistr/u16-mbtouc.c: New file.
50500         * lib/unistr/u32-mbtouc.c: New file.
50501
50502         * modules/unistr/u8-mbtouc-safe: New file.
50503         * modules/unistr/u16-mbtouc-safe: New file.
50504         * modules/unistr/u32-mbtouc-safe: New file.
50505         * lib/unistr/u8-mbtouc-safe.c: New file.
50506         * lib/unistr/u16-mbtouc-safe.c: New file.
50507         * lib/unistr/u32-mbtouc-safe.c: New file.
50508
50509         * modules/unistr/u8-move: New file.
50510         * modules/unistr/u16-move: New file.
50511         * modules/unistr/u32-move: New file.
50512         * lib/unistr/u8-move.c: New file.
50513         * lib/unistr/u16-move.c: New file.
50514         * lib/unistr/u32-move.c: New file.
50515         * lib/unistr/u-move.h: New file.
50516
50517         * modules/unistr/u8-next: New file.
50518         * modules/unistr/u16-next: New file.
50519         * modules/unistr/u32-next: New file.
50520         * lib/unistr/u8-next.c: New file.
50521         * lib/unistr/u16-next.c: New file.
50522         * lib/unistr/u32-next.c: New file.
50523
50524         * modules/unistr/u8-prev: New file.
50525         * modules/unistr/u16-prev: New file.
50526         * modules/unistr/u32-prev: New file.
50527         * lib/unistr/u8-prev.c: New file.
50528         * lib/unistr/u16-prev.c: New file.
50529         * lib/unistr/u32-prev.c: New file.
50530
50531         * modules/unistr/u8-set: New file.
50532         * modules/unistr/u16-set: New file.
50533         * modules/unistr/u32-set: New file.
50534         * lib/unistr/u8-set.c: New file.
50535         * lib/unistr/u16-set.c: New file.
50536         * lib/unistr/u32-set.c: New file.
50537         * lib/unistr/u-set.h: New file.
50538
50539         * modules/unistr/u8-startswith: New file.
50540         * modules/unistr/u16-startswith: New file.
50541         * modules/unistr/u32-startswith: New file.
50542         * lib/unistr/u8-startswith.c: New file.
50543         * lib/unistr/u16-startswith.c: New file.
50544         * lib/unistr/u32-startswith.c: New file.
50545         * lib/unistr/u-startswith.h: New file.
50546
50547         * modules/unistr/u8-stpcpy: New file.
50548         * modules/unistr/u16-stpcpy: New file.
50549         * modules/unistr/u32-stpcpy: New file.
50550         * lib/unistr/u8-stpcpy.c: New file.
50551         * lib/unistr/u16-stpcpy.c: New file.
50552         * lib/unistr/u32-stpcpy.c: New file.
50553         * lib/unistr/u-stpcpy.h: New file.
50554
50555         * modules/unistr/u8-stpncpy: New file.
50556         * modules/unistr/u16-stpncpy: New file.
50557         * modules/unistr/u32-stpncpy: New file.
50558         * lib/unistr/u8-stpncpy.c: New file.
50559         * lib/unistr/u16-stpncpy.c: New file.
50560         * lib/unistr/u32-stpncpy.c: New file.
50561         * lib/unistr/u-stpncpy.h: New file.
50562
50563         * modules/unistr/u8-strcat: New file.
50564         * modules/unistr/u16-strcat: New file.
50565         * modules/unistr/u32-strcat: New file.
50566         * lib/unistr/u8-strcat.c: New file.
50567         * lib/unistr/u16-strcat.c: New file.
50568         * lib/unistr/u32-strcat.c: New file.
50569         * lib/unistr/u-strcat.h: New file.
50570
50571         * modules/unistr/u8-strchr: New file.
50572         * modules/unistr/u16-strchr: New file.
50573         * modules/unistr/u32-strchr: New file.
50574         * lib/unistr/u8-strchr.c: New file.
50575         * lib/unistr/u16-strchr.c: New file.
50576         * lib/unistr/u32-strchr.c: New file.
50577
50578         * modules/unistr/u8-strcmp: New file.
50579         * modules/unistr/u16-strcmp: New file.
50580         * modules/unistr/u32-strcmp: New file.
50581         * lib/unistr/u8-strcmp.c: New file.
50582         * lib/unistr/u16-strcmp.c: New file.
50583         * lib/unistr/u32-strcmp.c: New file.
50584
50585         * modules/unistr/u8-strcpy: New file.
50586         * modules/unistr/u16-strcpy: New file.
50587         * modules/unistr/u32-strcpy: New file.
50588         * lib/unistr/u8-strcpy.c: New file.
50589         * lib/unistr/u16-strcpy.c: New file.
50590         * lib/unistr/u32-strcpy.c: New file.
50591         * lib/unistr/u-strcpy.h: New file.
50592
50593         * modules/unistr/u8-strcspn: New file.
50594         * modules/unistr/u16-strcspn: New file.
50595         * modules/unistr/u32-strcspn: New file.
50596         * lib/unistr/u8-strcspn.c: New file.
50597         * lib/unistr/u16-strcspn.c: New file.
50598         * lib/unistr/u32-strcspn.c: New file.
50599         * lib/unistr/u-strcspn.h: New file.
50600
50601         * modules/unistr/u8-strdup: New file.
50602         * modules/unistr/u16-strdup: New file.
50603         * modules/unistr/u32-strdup: New file.
50604         * lib/unistr/u8-strdup.c: New file.
50605         * lib/unistr/u16-strdup.c: New file.
50606         * lib/unistr/u32-strdup.c: New file.
50607         * lib/unistr/u-strdup.h: New file.
50608
50609         * modules/unistr/u8-strlen: New file.
50610         * modules/unistr/u16-strlen: New file.
50611         * modules/unistr/u32-strlen: New file.
50612         * lib/unistr/u8-strlen.c: New file.
50613         * lib/unistr/u16-strlen.c: New file.
50614         * lib/unistr/u32-strlen.c: New file.
50615         * lib/unistr/u-strlen.h: New file.
50616
50617         * modules/unistr/u8-strmblen: New file.
50618         * modules/unistr/u16-strmblen: New file.
50619         * modules/unistr/u32-strmblen: New file.
50620         * lib/unistr/u8-strmblen.c: New file.
50621         * lib/unistr/u16-strmblen.c: New file.
50622         * lib/unistr/u32-strmblen.c: New file.
50623
50624         * modules/unistr/u8-strmbtouc: New file.
50625         * modules/unistr/u16-strmbtouc: New file.
50626         * modules/unistr/u32-strmbtouc: New file.
50627         * lib/unistr/u8-strmbtouc.c: New file.
50628         * lib/unistr/u16-strmbtouc.c: New file.
50629         * lib/unistr/u32-strmbtouc.c: New file.
50630
50631         * modules/unistr/u8-strncat: New file.
50632         * modules/unistr/u16-strncat: New file.
50633         * modules/unistr/u32-strncat: New file.
50634         * lib/unistr/u8-strncat.c: New file.
50635         * lib/unistr/u16-strncat.c: New file.
50636         * lib/unistr/u32-strncat.c: New file.
50637         * lib/unistr/u-strncat.h: New file.
50638
50639         * modules/unistr/u8-strncmp: New file.
50640         * modules/unistr/u16-strncmp: New file.
50641         * modules/unistr/u32-strncmp: New file.
50642         * lib/unistr/u8-strncmp.c: New file.
50643         * lib/unistr/u16-strncmp.c: New file.
50644         * lib/unistr/u32-strncmp.c: New file.
50645
50646         * modules/unistr/u8-strncpy: New file.
50647         * modules/unistr/u16-strncpy: New file.
50648         * modules/unistr/u32-strncpy: New file.
50649         * lib/unistr/u8-strncpy.c: New file.
50650         * lib/unistr/u16-strncpy.c: New file.
50651         * lib/unistr/u32-strncpy.c: New file.
50652         * lib/unistr/u-strncpy.h: New file.
50653
50654         * modules/unistr/u8-strnlen: New file.
50655         * modules/unistr/u16-strnlen: New file.
50656         * modules/unistr/u32-strnlen: New file.
50657         * lib/unistr/u8-strnlen.c: New file.
50658         * lib/unistr/u16-strnlen.c: New file.
50659         * lib/unistr/u32-strnlen.c: New file.
50660         * lib/unistr/u-strnlen.h: New file.
50661
50662         * modules/unistr/u8-strpbrk: New file.
50663         * modules/unistr/u16-strpbrk: New file.
50664         * modules/unistr/u32-strpbrk: New file.
50665         * lib/unistr/u8-strpbrk.c: New file.
50666         * lib/unistr/u16-strpbrk.c: New file.
50667         * lib/unistr/u32-strpbrk.c: New file.
50668         * lib/unistr/u-strpbrk.h: New file.
50669
50670         * modules/unistr/u8-strrchr: New file.
50671         * modules/unistr/u16-strrchr: New file.
50672         * modules/unistr/u32-strrchr: New file.
50673         * lib/unistr/u8-strrchr.c: New file.
50674         * lib/unistr/u16-strrchr.c: New file.
50675         * lib/unistr/u32-strrchr.c: New file.
50676
50677         * modules/unistr/u8-strspn: New file.
50678         * modules/unistr/u16-strspn: New file.
50679         * modules/unistr/u32-strspn: New file.
50680         * lib/unistr/u8-strspn.c: New file.
50681         * lib/unistr/u16-strspn.c: New file.
50682         * lib/unistr/u32-strspn.c: New file.
50683         * lib/unistr/u-strspn.h: New file.
50684
50685         * modules/unistr/u8-strstr: New file.
50686         * modules/unistr/u16-strstr: New file.
50687         * modules/unistr/u32-strstr: New file.
50688         * lib/unistr/u8-strstr.c: New file.
50689         * lib/unistr/u16-strstr.c: New file.
50690         * lib/unistr/u32-strstr.c: New file.
50691         * lib/unistr/u-strstr.h: New file.
50692
50693         * modules/unistr/u8-strtok: New file.
50694         * modules/unistr/u16-strtok: New file.
50695         * modules/unistr/u32-strtok: New file.
50696         * lib/unistr/u8-strtok.c: New file.
50697         * lib/unistr/u16-strtok.c: New file.
50698         * lib/unistr/u32-strtok.c: New file.
50699         * lib/unistr/u-strtok.h: New file.
50700
50701         * modules/unistr/u8-uctomb: New file.
50702         * modules/unistr/u16-uctomb: New file.
50703         * modules/unistr/u32-uctomb: New file.
50704         * lib/unistr/u8-uctomb.c: New file.
50705         * lib/unistr/u16-uctomb.c: New file.
50706         * lib/unistr/u32-uctomb.c: New file.
50707
50708         * MODULES.html.sh (Unicode string functions): Add the new modules.
50709
50710 2007-01-08  Bruno Haible  <bruno@clisp.org>
50711
50712         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
50713         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
50714         subdirectories.
50715
50716 2007-01-08  Karl Berry  <karl@gnu.org>
50717
50718         * doc/error.texi: mention that main() fns must set program_name
50719         when progname is used.
50720
50721 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
50722
50723         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
50724         WCTYPE_H is empty, for the benefit of builds from non-distclean
50725         directories.  Problem reported by Eric Blake in
50726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
50727
50728 2007-01-08  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50731         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50732         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50733         PROVIDE_CANONICALIZE_FILENAME_MODE.
50734         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50735
50736 2007-01-08  Bruno Haible  <bruno@clisp.org>
50737
50738         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50739         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50740         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50741         * lib/fts.c: Likewise.
50742         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50743
50744 2006-12-25  Bruno Haible  <bruno@clisp.org>
50745
50746         * modules/utf8-ucs4-safe: New file.
50747         * lib/utf8-ucs4-safe.h: New file.
50748         * lib/unistr/utf8-ucs4-safe.c: New file.
50749
50750         * modules/utf16-ucs4-safe: New file.
50751         * lib/utf16-ucs4-safe.h: New file.
50752         * lib/unistr/utf16-ucs4-safe.c: New file.
50753
50754         * MODULES.html.sh (Unicode string functions): Add the new modules.
50755
50756 2007-01-08  Bruno Haible  <bruno@clisp.org>
50757
50758         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50759         (Depends-on): Add unitypes.
50760         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50761         (u8_mbtouc_aux): Move out to separate file.
50762         (u8_mbtouc): Use ucs4_t, uint8_t types.
50763         * lib/unistr/utf8-ucs4.c: New file.
50764
50765         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50766         (Depends-on): Add unitypes.
50767         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50768         (u16_mbtouc_aux): Move out to separate file.
50769         (u16_mbtouc): Use ucs4_t, uint16_t types.
50770         * lib/unistr/utf16-ucs4.c: New file.
50771
50772         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50773         (Depends-on): Add unitypes.
50774         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50775         (u8_uctomb_aux): Move out to separate file.
50776         (u8_uctomb): Use ucs4_t, uint8_t types.
50777         * lib/unistr/ucs4-utf8.c: New file.
50778
50779         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50780         (Depends-on): Add unitypes.
50781         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50782         (u16_uctomb_aux): Move out to separate file.
50783         (u16_uctomb): Use ucs4_t, uint16_t types.
50784         * lib/unistr/ucs4-utf16.c: New file.
50785
50786 2006-12-25  Bruno Haible  <bruno@clisp.org>
50787
50788         * modules/unitypes: New file.
50789         * lib/unitypes.h: New file.
50790         * MODULES.html.sh (func_all_modules): New section "Unicode string
50791         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50792         this section. Add unitypes.
50793
50794 2007-01-08  Bruno Haible  <bruno@clisp.org>
50795
50796         Avoid variable names that conflict with those from libtool.
50797         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50798         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50799         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50800         library_names_spec to acl_library_names_spec, hardcode_* to
50801         acl_hardcode_*.
50802         Reported by Ralf Wildenhues.
50803
50804 2007-01-08  Bruno Haible  <bruno@clisp.org>
50805
50806         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50807         definition.
50808         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50809         definition.
50810         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50811         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50812         definition.
50813         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50814         definition.
50815         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50816         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50817         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50818         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50819         definition.
50820         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50821         definition.
50822         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50823         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50824         GC_USE_<algorithm>.
50825         * lib/gc-libgcrypt.c: Likewise.
50826         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50827         * modules/gc-arctwo (configure.ac): Likewise.
50828         * modules/gc-des (configure.ac): Likewise.
50829         * modules/gc-hmac-md5 (configure.ac): Likewise.
50830         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50831         * modules/gc-md2 (configure.ac): Likewise.
50832         * modules/gc-md4 (configure.ac): Likewise.
50833         * modules/gc-md5 (configure.ac): Likewise.
50834         * modules/gc-random (configure.ac): Likewise.
50835         * modules/gc-rijndael (configure.ac): Likewise.
50836         * modules/gc-sha1 (configure.ac): Likewise.
50837
50838 2007-01-08  Bruno Haible  <bruno@clisp.org>
50839
50840         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50841         macro definition.
50842         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50843         definition.
50844         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50845         definition.
50846         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50847         * modules/fcntl-safer (configure.ac): Likewise.
50848         * modules/fopen-safer (configure.ac): Likewise.
50849         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50850         GNULIB_FWRITEERROR macro definition.
50851
50852 2007-01-08  Bruno Haible  <bruno@clisp.org>
50853
50854         * m4/gnulib-common.m4: New file.
50855         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50856         (func_get_filelist): Add m4/gnulib-common.m4.
50857
50858 2007-01-08  Bruno Haible  <bruno@clisp.org>
50859
50860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50861         command.
50862
50863 2007-01-08  Jim Meyering  <jim@meyering.net>
50864
50865         Use a more robust test for a "can't happen" condition.
50866         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50867         narrowed the st_size value.  Presuming the "can't happen" condition
50868         is true, that narrowing could conceivably convert an invalid st_size
50869         value into a valid one.  Instead, use a change based on Matthew
50870         Woehlke's original patch.
50871
50872         Slight readability improvement: use an assert-like macro
50873         in place of literal "abort ()" uses.
50874         * lib/fts.c (fts_assert): Define.
50875         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50876         Use this macro instead of a bare 'abort'.
50877
50878 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50881         simply work around them.
50882         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50883         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50884         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50885         declaring.
50886         Don't bother to define as macros, since the standard doesn't require it.
50887         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50888         longer worry about IRIX 5.3.
50889         (HAVE_WCTYPE_CTMP_BUG): Remove.
50890
50891 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50892
50893         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50894         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50895         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50896         Problems reported by Georg Schwarz for IRIX 5.3.
50897
50898         * gnulib-tool (autoconf_minversion): Take the maximum version number
50899         found, not the minimum.  Problem reported by James Youngman.
50900
50901 2007-01-03  Karl Berry  <karl@gnu.org>
50902
50903         * doc/error.texi: new file, explaining interaction with progname.
50904         * doc/gnulib.texi: include it.  Update copyright.
50905
50906 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50907
50908         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50909         AC_CANONICAL_HOST, to improve autobuild outputs.
50910
50911 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50912             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50913
50914         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50915         sockets, server sockets, and other file descriptors.  Count errors
50916         to compute the return value.  Reorder the code a bit to be easier
50917         to follow.  Don't set event bits that were not requested (except
50918         POLLERR and POLLHUP).
50919
50920 2007-01-01  Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50923
50924 2007-01-03  Jim Meyering  <jim@meyering.net>
50925
50926         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50927
50928 2007-01-02  Bruno Haible  <bruno@clisp.org>
50929
50930         * modules/settime (Include): Require timespec.h.
50931         * modules/nanosleep (Include): Likewise.
50932
50933 2007-01-01  Bruno Haible  <bruno@clisp.org>
50934
50935         * gnulib-tool (func_emit_copyright_notice): Bump year.
50936         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50937
50938 2007-01-01  Bruno Haible  <bruno@clisp.org>
50939
50940         Improve support for OpenBSD.
50941         * build-aux/config.rpath (libname_spec): Export.
50942         (library_names_spec): New variable. Export.
50943         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50944         library_names_spec from the config.rpath output. Locate shared library
50945         through the name pattern in library_names_spec.
50946
50947 2007-01-01  Eric Blake  <ebb9@byu.net>
50948
50949         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50950
50951 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50952
50953         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50954         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50955         assume the C locale, and avoid an "eval" that could cause trouble.
50956         Problem with SORT reported by Bob Proulx.
50957
50958         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50959         Define.  Trivial patch from Henning Nielsen Lund, originally
50960         sent to bug-grep@gnu.org today.
50961
50962 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50963
50964         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50965         struct stat.  Problem reported by Henning Nielsen Lund.
50966         * lib/acl.c: Include acl.h first, to check interface.  Don't
50967         bother to include sys/types.h and sys/stat.h again.
50968
50969 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50970
50971         Import the following change from libc; problem reported by
50972         Sven Verdoolaege.
50973
50974         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50975
50976         [BZ #1373]
50977         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50978
50979 2006-12-28  Jim Meyering  <jim@meyering.net>
50980
50981         * build-aux/announce-gen: Do not assume that the package
50982         builds any of tar.gz, tar.bz2, and .xdelta files.
50983         Suggestion from Simon Josefsson.
50984
50985 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50986
50987         * modules/announce-gen: New file.
50988
50989 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50990
50991         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50992         handles its gotchas now.
50993         * lib/mbswidth.c: Likewise.
50994         * lib/wcwidth.h: Likewise.
50995         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50996         and iswcntrl; the wctype module does this stuff now.
50997         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50999         * modules/mbchar (Depends-on): Add wctype.
51000         * modules/mbswidth (Depends-on): Likewise.
51001         * modules/wcwidth (Depends-on): Likewise.
51002
51003 2006-12-27  Eric Blake  <ebb9@byu.net>
51004
51005         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
51006         module uses more than what <wctype.h> is required to provide.
51007
51008 2006-12-26  Eric Blake  <ebb9@byu.net>
51009
51010         * gnulib-tool (sed_extract_prog): Avoid space-tab.
51011
51012 2006-12-26  Eric Blake  <ebb9@byu.net>
51013
51014         * modules/absolute-header: New module.
51015         * modules/fcntl (Depends-on): Depend on it.
51016         * modules/inttypes (Depends-on): Likewise.
51017         * modules/stdint (Depends-on): Likewise.
51018         * modules/sys_stat (Depends-on): Likewise.
51019         * modules/wctype (Depends-on): Likewise.
51020         * MODULES.html.sh (Support for building libraries and
51021         executables): Document it.
51022
51023 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51024
51025         * gnulib-tool (SED): Remove, undoing previous change.
51026         The problem was that it broke coreutils on Solaris, because
51027         "sed --posix" leaked into a makefile.
51028         (sed): New alias, if 'alias' and GNU sed.
51029
51030 2006-12-24  Jim Meyering  <jim@meyering.net>
51031
51032         Work around an fchownat bug in glibc-2.4:
51033         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
51034         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
51035         in spite of the -P option.
51036         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
51037         New macros.
51038         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
51039         * modules/openat (Files): Add lib/fchownat.c.
51040         * lib/openat.c (fchownat): Don't define here.  Move to...
51041         * lib/fchownat.c: ...this new file.
51042
51043 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51044
51045         Fix bug reported by Bruno Haible in
51046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
51047         where quotearg.c didn't compile on Mac OS X 10.2 because it
51048         lacks <wchar.h> and wint_t.
51049         * lib/wctype_.h (__wctype_wint_t): New type.
51050         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
51051         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
51052         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
51053         Arg is now of type __wctype_wint_t, not wint_t.
51054         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
51055         substitute HAVE_WINT_T.
51056         * modules/wctype (Files): Add m4/wint_t.m4.
51057         (wctype.h): Substitute HAVE_WINT_T.
51058
51059 2006-12-23  Bruno Haible  <bruno@clisp.org>
51060
51061         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
51062
51063 2006-12-23  Bruno Haible  <bruno@clisp.org>
51064
51065         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
51066         S_ISLNK.
51067         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
51068         mingw.
51069
51070 2006-12-22  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/copy-file.c: Include acl.h.
51073         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
51074         Close the file descriptors only after being done with copy_acl.
51075         * modules/copy-file (Depends-on): Add acl.
51076
51077 2006-12-22  Bruno Haible  <bruno@clisp.org>
51078
51079         * gnulib-tool (SED): New variable.
51080         Use $SED instead of sed everywhere.
51081
51082 2006-12-22  Bruno Haible  <bruno@clisp.org>
51083
51084         * modules/no-c++: New file.
51085         * m4/no-c++.m4: New file.
51086         * MODULES.html.sh (Support for building libraries and executables):
51087         Add no-c++.
51088
51089 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51090
51091         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51092         Include <limits.h>, and use its INT_MAX to rewrite the
51093         j loop so that it does not overflow 'int'.  Problem reported by
51094         Ralf Wildenhues in
51095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
51096         Play it safe by shifting left by 1 rather than multiplying by 2,
51097         as GCC is less likely to optimize this away when the value
51098         is signed (when it assumes overflow leads to undefined behavior).
51099         Also, don't assume time_t uses two's complement.
51100
51101 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         * MODULES.html.sh: New module wctype.
51104         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
51105         * lib/fnmatch.c: Don't bother to include <wchar.h> before
51106         <wctype.h>, since the new wctype module should fix this.
51107         * lib/quotearg.c: Include <wctype.h> unconditionally, since
51108         the wctype module should arrange for it.
51109         * lib/regex_internal.h: Likewise.
51110         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
51111         since the wctype module should handle this now.
51112         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
51113         * modules/fnmatch (Depends-on): Add wctype.
51114         * modules/quotearg (Depends-on): Likewise.
51115         * modules/regex (Depends-on): Likewise.
51116
51117 2006-12-19  Bruno Haible  <bruno@clisp.org>
51118
51119         * lib/strdup.h [C++]: Wrap definitions in extern "C".
51120         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
51121
51122 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51123
51124         * modules/savewd (Depends-on): Fix dependency on fcntl.
51125
51126 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51127
51128         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
51129         conforms to C99, rather than relying on the user's environment
51130         setting of STDINT_H.
51131
51132 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51133         and Eric Blake  <ebb9@byu.net>
51134
51135         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
51136         This is more consistent with the other defines here.
51137         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
51138         Port to z/OS.  Problem reported by Paul Gilmartin.
51139         Change local vars to use gl_ prefix rather than ac_.
51140         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
51141         with other defines.
51142         * modules/double-slash-root: New module.
51143         * modules/dirname (Files): Remove m4/double-slash-root.m4.
51144         (Depends-on): Add double-slash-root.
51145         * MODULES.html.sh (File system functions): Mention new module.
51146
51147 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
51148
51149         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
51150         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
51151         This is for the benefit of gzip, which doesn't do i18n.
51152
51153 2006-12-12  Jim Meyering  <jim@meyering.net>
51154
51155         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
51156         Reported by Andreas Schwab <schwab@suse.de>.
51157
51158 2006-12-12  Bruno Haible  <bruno@clisp.org>
51159
51160         Merge these changes.
51161         2006-09-05  Bruno Haible  <bruno@clisp.org>
51162         * lib/iconvme.c (iconv_string): No need to save and restore errno when
51163         iconv_alloc succeeded.
51164         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
51165         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
51166         test for " && dest " at the end - dest is always != NULL there. Call
51167         iconv with 4xNULL arguments initially, to reset the state. Call iconv
51168         with 2xNULL arguments, also to flush the state storage. Handle the
51169         IRIX iconv behaviour. Realloc the final result, to throw away unused
51170         memory.
51171
51172 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
51173
51174         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
51175         and fchmodat unconditionally, since glibc 2.4 has them.
51176         Problem reported by Arkadiusz Miskiewicz.
51177
51178 2006-12-10  Bruno Haible  <bruno@clisp.org>
51179
51180         * gnulib-tool (func_import): Show the include files only for those
51181         modules that are copied and specified.
51182         Reported by Karl Berry.
51183
51184 2006-12-08  Jim Meyering  <jim@meyering.net>
51185
51186         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
51187         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
51188
51189         * build-aux/announce-gen: Add two new options, both optional:
51190         --bootstrap-tools=TOOL_LIST
51191               a comma-separated list of tools, e.g.,
51192               autoconf,automake,bison,gnulib
51193         --gnulib-snapshot-date=DATE
51194               if gnulib is in the bootstrap tool list,
51195               then report this as the snapshot date.
51196               If not specified, use the current date/time.
51197               If you specify a date here, be sure it's UTC.
51198
51199 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51200
51201         * tests/test-argp-2.sh: Fix test to match actual output.
51202         (func_compare): Fix sed script to be portable.
51203
51204 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
51205
51206         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
51207         workaround for this case.  It is not autoconfigured now; offhand
51208         it's hard to see how to autoconfigure it.
51209
51210 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51211
51212         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
51213         a directory that is about to be chowned.  Such a directory's
51214         initial file permissions should permit the owner only and this
51215         should not be changed until after the chown, since the group and
51216         other bits would be incorrect if they granted permission before
51217         the chown.
51218
51219         Fix porting problem for iswctype reported by Georg Schwarz in:
51220         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
51221         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
51222         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
51223         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
51224         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51225
51226 2006-12-03  Jim Meyering  <jim@meyering.net>
51227
51228         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
51229         p->fts_statp may not yet be defined.
51230         (fts_read): Instead, set it in the caller, once p->fts_statp is
51231         sure to be defined, and corresponds to a top-level directory.
51232         This bug made du -x fail.  Here's the coreutils test case:
51233         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
51234         Reported by Mike Frysinger.
51235
51236 2006-12-01  Jim Meyering  <jim@meyering.net>
51237
51238         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
51239         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
51240         Reported by Simon Josefsson.
51241
51242 2006-11-30  Jim Meyering  <jim@meyering.net>
51243
51244         * m4/warning.m4: Use the all-permissive copyright notice
51245         recommended by RMS (rather than LGPL).
51246         * m4/vararrays.m4: Likewise.
51247         * m4/flexmember.m4: Likewise.
51248
51249 2006-11-29  Bruno Haible  <bruno@clisp.org>
51250
51251         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51252         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
51253         using +=.
51254         Reported by Simon Josefsson <simon@josefsson.org>.
51255
51256 2006-11-28  James Youngman <jay@gnu.org>
51257
51258         * README: Advise users that they might find the bug-gnulib@gnu.org
51259         and autotools-announce@gnu.org mailing lists useful.
51260
51261 2006-11-28  Bruno Haible  <bruno@clisp.org>
51262
51263         * m4/ptrdiff_max.m4: Remove file.
51264
51265 2006-11-21  Bruno Haible  <bruno@clisp.org>
51266
51267         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
51268         _AC_COMPUTE_INT.
51269         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51270         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
51271         _AC_COMPUTE_INT.
51272         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51273         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
51274         _AC_COMPUTE_INT.
51275         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51276
51277 2006-11-28  Jim Meyering  <jim@meyering.net>
51278
51279         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
51280         warning from "gcc -Wshadow" about shadowing the builtin.
51281
51282 2006-11-27  Bruno Haible  <bruno@clisp.org>
51283
51284         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
51285         _AC_COMPUTE_INT.
51286         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51287
51288 2006-11-27  Bruno Haible  <bruno@clisp.org>
51289             Paul Eggert  <eggert@cs.ucla.edu>
51290
51291         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
51292
51293 2006-11-26  Bruno Haible  <bruno@clisp.org>
51294
51295         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51296         noinst_LTLIBRARIES.
51297
51298 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51299             Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
51302         if compiling with "gcc -ansi".
51303
51304 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51305
51306         Fix some incompatibilities with gcc -ansi -pedantic.
51307         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
51308         if compiling pedantically with GCC, unless it's C99 or later.
51309         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
51310         it mishandles gcc -ansi -pedantic as well.
51311         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
51312         if gcc -pedantic.
51313         * lib/regexec.c (check_node_accept_bytes): Don't use auto
51314         initializers for struct if -pedantic, unless it's C99 or later.
51315
51316 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
51317
51318         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
51319         Don't close an fd more than once. Identical atimes indicate
51320         success, not failure.
51321
51322 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
51323
51324         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
51325
51326 2006-11-23  Jim Meyering  <jim@meyering.net>
51327
51328         * build-aux/announce-gen: New file.  From coreutils.
51329
51330 2006-11-22  Jim Meyering  <jim@meyering.net>
51331
51332         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
51333         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
51334         (fts_read): Use a temporary to narrow the overused st_size member
51335         before using it in a switch statement.  Reported by Matthew Woehlke.
51336
51337         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
51338         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
51339
51340 2006-11-20  Bruno Haible  <bruno@clisp.org>
51341
51342         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
51343         changequote instead of pairs of brackets.
51344         Reported by Andreas Schwab <schwab@suse.de>.
51345
51346 2006-11-21  Jim Meyering  <jim@meyering.net>
51347
51348         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
51349         so as to remain compatible with older compilers.
51350         Patch from Michael Deutschmann.
51351
51352 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51353
51354         * MODULES.html.sh (File system functions): Add openat.
51355
51356         * lib/openat.h (rpl_fstatat): New macro, if
51357         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
51358         (fstatat): Define to rpl_fstatat under the same conditions,
51359         unless COMPILING_FSTATAT.
51360         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
51361         seems to have the bug.
51362         * lib/fstatat.c: New file.
51363         * modules/openat (Files): Add it.
51364
51365 2006-11-20  Bruno Haible  <bruno@clisp.org>
51366
51367         * Makefile: New file.
51368
51369 2006-11-20  Jim Meyering  <jim@meyering.net>
51370
51371         The beginnings of syntax-related checks for gnulib.
51372         * lib/Makefile: New file.
51373         * lib/t-idcache: New script.  Ensure that the two halves of
51374         idcache.c stay in sync.
51375
51376         * lib/idcache.c: Adjust comments in user- and group- portions to
51377         be more accurate, and to be consistent with one another.
51378
51379 2006-11-20  Jim Meyering  <jim@meyering.net>
51380
51381         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
51382         continue using the flexible array member (thus, this module performs
51383         half as many malloc calls), with the addition that...
51384         (getgroup, getuser): Consistently record a non-match via an empty
51385         "name" string, and map an empty string match to a NULL return value.
51386         * modules/idcache (Depends-on): Re-add flexmember.
51387
51388         * lib/idcache.c (getuser): Remove all uses of the register keyword.
51389         (getuidbyname, getgroup, getgidbyname): Likewise.
51390
51391         Use cleaner syntax: NULL rather than 0.
51392         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
51393
51394 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51395
51396         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
51397         It mishandled the case where the group was missing.
51398         Problem reported by Greg Schafer.
51399         * modules/idcache: Likewise.
51400
51401 2006-11-18  Jim Meyering  <jim@meyering.net>
51402
51403         * check-module (%exempt_header): Add exception for some
51404         conditionally-included headers.
51405
51406         * modules/i-ring (Depends-on): Add verify.
51407         (License): Change to LGPL.
51408
51409 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51410
51411         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
51412         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
51413         and inttostr.h.  Use snprintf rather than uinttostr, so that
51414         LGPLed code doesn't depend on GPLed.
51415
51416 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51417
51418         * modules/inline (License): Change from GPL to LGPL.
51419
51420 2006-11-17  Jim Meyering  <jim@meyering.net>
51421
51422         * modules/d-type (License): Switch to LGPL.
51423
51424 2006-11-15  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
51427
51428 2006-11-15  Eric Blake  <ebb9@byu.net>
51429
51430         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
51431         the module dependency.
51432
51433 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51434             Bruno Haible  <bruno@clisp.org>
51435
51436         * gnulib-tool (func_create_testdir): Add license consistency check.
51437
51438 2006-11-15  Eric Blake  <ebb9@byu.net>
51439
51440         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
51441         random "(cached)" in configure output.
51442
51443 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51444
51445         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
51446         test for conforming inttypes.h is both announced and cached.
51447
51448         * MODULES.html.sh (seen_modules, seen_files): New variables.
51449         (func_module): Rewrite to use a few less gnulib-tool and sed
51450         invocations.  Avoid a couple of quadratic algorithms for ...
51451         (missed_modules, missed_files): ... these, with ...
51452         (func_append, func_tmpdir): ... these new functions, from
51453         gnulib-tool.  Analogously, install traps for cleanup.
51454
51455         * tests/test-gc.c (main): Remove unused variables.
51456         * tests/test-read-file.c: Include stdlib.h, for 'free'.
51457
51458 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
51459
51460         * modules/inttostr (License): Change to LGPL.
51461
51462 2006-11-14  Eric Blake  <ebb9@byu.net>
51463
51464         * modules/tempname (License): Change to LGPL.
51465
51466 2006-11-14  Eric Blake  <ebb9@byu.net>
51467
51468         * doc/functions.texi (Function Portability): *printf functions on
51469         Cygwin now understand all POSIX size specifiers.
51470
51471 2006-11-14  Bruno Haible  <bruno@clisp.org>
51472
51473         * modules/c-ctype (License): Change to LGPL.
51474
51475 2006-11-12  Bruno Haible  <bruno@clisp.org>
51476
51477         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51478         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
51479         for GNOME libraries, for which the include files are installed in
51480         subdirectories of $prefix/include.
51481
51482 2006-11-12  Bruno Haible  <bruno@clisp.org>
51483
51484         * m4/lib-link.m4: Require at least autoconf-2.54.
51485         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
51486         name to underscores for the --with option.
51487
51488 2006-11-13  Bruno Haible  <bruno@clisp.org>
51489
51490         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
51491         the tests directory.
51492         Reported by Ralf Wildenhues.
51493
51494 2006-11-13  Bruno Haible  <bruno@clisp.org>
51495
51496         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
51497         (func_emit_initmacro_end): Undo the override here.
51498         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
51499         Works around the famous automake error in coreutils.
51500
51501 2006-11-13  Eric Blake  <ebb9@byu.net>
51502
51503         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
51504         element, not its node.
51505
51506 2006-11-12  Bruno Haible  <bruno@clisp.org>
51507
51508         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
51509         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
51510
51511 2006-11-12  Bruno Haible  <bruno@clisp.org>
51512
51513         * gnulib-tool: New option --local-symlink.
51514         (func_usage): Document it.
51515         (lsymbolic): New variable.
51516         (func_import, func_create_testdir): If --symlink was not specified,
51517         test whether --local-symlink was specified and the file comes from
51518         the local_gnulib_dir.
51519
51520 2006-11-12  Bruno Haible  <bruno@clisp.org>
51521
51522         * gnulib-tool (func_ln): New function.
51523         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
51524
51525 2006-11-12  Bruno Haible  <bruno@clisp.org>
51526
51527         Finish support for source files in subdirectories.
51528         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
51529         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
51530         AUTOMAKE_OPTIONS.
51531         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
51532
51533 2006-11-12  Bruno Haible  <bruno@clisp.org>
51534
51535         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51536         EXTRA_lib_SOURCES augmentation.
51537         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
51538
51539 2006-11-12  Jim Meyering  <jim@meyering.net>
51540
51541         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
51542         file descriptors.  This also averts a failure on systems with
51543         native openat support when a traversed directory lacks "x" access.
51544         * lib/fts_.h: Include "i-ring.h"
51545         (struct FTS) [fts_fd_ring]: New member.
51546         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
51547         (FCHDIR): Add parentheses.
51548         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
51549         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
51550         When descending, rather than simply closing the previous
51551         fts_cwd_fd value, push that file descriptor onto the ring.
51552         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
51553         (fts_open): Initialize the new fd_ring member.
51554         (fts_close): Clear the ring.
51555         (fts_safe_changedir): When possible, use our new fd_ring to skip
51556         the diropen and fstat and dev/ino comparison that would normally
51557         accompany a virtual `chdir ("..")'.
51558
51559         * modules/fts (Depends-on): Add i-ring.
51560         * modules/i-ring: New module.
51561         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
51562         * m4/i-ring.m4: New file.
51563
51564 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51565
51566         * gnulib-tool (func_create_testdir): Fix replacement of
51567         `build-aux' in configure.ac.  Run autotools in gltests
51568         subdirectory.
51569         (func_create_testdir, func_create_megatestdir, test): There is
51570         no need for '--force' in most autotool invocations in a new
51571         tree.  Actually fail the whole test if any of the tools, or the
51572         configure or make stages fail.
51573
51574         Sync from Automake.
51575         * build-aux/gnupload: Revert last change.  Add pointer to upload
51576         instructions of the GNU Maintenance Instructions.
51577         Suggestion by Karl Berry.
51578
51579 2006-11-10  Jim Meyering  <jim@meyering.net>
51580
51581         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51582
51583 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51586         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51587         (bind_textdomain_codeset) [! ENABLE_NLS]:
51588         Evaluate all the arguments.  That way, callers get compatible behavior
51589         if the arguments have side effects.  Also, it avoids some GCC
51590         diagnostics in some cases; Joel E. Denny reported problems when Bison
51591         was configured with --enable-gcc-warnigs.
51592
51593 2006-11-10  Jim Meyering  <jim@meyering.net>
51594
51595         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51596         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51597         account.
51598
51599 2006-11-10  Jim Meyering  <jim@meyering.net>
51600
51601         * modules/inline: New file/module.
51602         * modules/xalloc (Files): Remove m4/inline.m4.
51603         (Depends-on): Add inline, instead.
51604         * modules/oset: Likewise.
51605         * modules/list: Likewise.
51606
51607 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51608
51609         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
51610         Problem reported by Matthew Woehlke.
51611
51612 2006-11-09  Bruno Haible  <bruno@clisp.org>
51613
51614         * lib/tempname.c (gen_tempname): Remove variant that invokes
51615         __gen_tempname.
51616         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
51617         __gen_tempname.
51618
51619 2006-11-08  Bruno Haible  <bruno@clisp.org>
51620
51621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
51622         to 'yes' instead of 'cross-compiling'.
51623
51624 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
51625
51626         * lib/quotearg.h (quotearg_free): New decl.
51627         * lib/quotearg.c (quotearg_free): New function.
51628         (slot0, nslots, slotvec0, slotvec):
51629         Now file-scope so that quotearg_free can get at them.
51630
51631 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51632
51633         Sync from Automake.
51634         * build-aux/gnupload: Add missing 'gnu' to example URL.
51635         Report by Karl Berry.
51636
51637 2006-11-08  Bruno Haible  <bruno@clisp.org>
51638
51639         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
51640         Suggested by Paul Eggert.
51641
51642 2006-11-08  Jim Meyering  <jim@meyering.net>
51643
51644         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
51645         It's already included if !_LIBC.
51646         (fts_safe_changedir): Add a comment.
51647
51648 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51649
51650         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
51651         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
51652         Matthew Woehlke.
51653
51654         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
51655         definitions up, to avoid colliding with change below.
51656         (static_inline) [HAVE_INLINE]: New macro.
51657         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
51658         Provide extern decls when !HAVE_INLINE.  Do not define unless
51659         static_inline is defined, either by us or by xmalloc.c.  Use
51660         static_inline rather than static inline.
51661         (XCALLOC): Optimize sizeof(T) = 1 case.
51662         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
51663
51664 2006-11-07  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
51667         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
51668         AC_C_INLINE.
51669         * modules/xalloc (Files): Add m4/inline.m4.
51670
51671 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51672
51673         * README: Fix typo.
51674         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
51675         (Miscellanous Notes): ...from this.
51676
51677 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51678
51679         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
51680         Mention that offsetof should be used instead of sizeof.
51681         From Bruno Haible.
51682
51683 2006-11-07  Bruno Haible  <bruno@clisp.org>
51684
51685         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
51686
51687 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51688
51689         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51690         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
51691         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51692         (gl_tree_add_before, gl_tree_add_after):
51693         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
51694         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
51695         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51696         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
51697         (gl_linked_add_after, gl_linked_add_at): Likewise.
51698         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
51699         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51700         (gl_tree_add_before, gl_tree_add_after): Likewise.
51701         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
51702         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
51703         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51704
51705 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51706
51707         * lib/gl_oset.h: Use C comment style, not C++ comment style.
51708
51709 2006-11-06  Bruno Haible  <bruno@clisp.org>
51710
51711         * m4/inline.m4: New file.
51712         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
51713         * modules/list (Files): Add m4/inline.m4.
51714         * modules/oset (Files): Likewise.
51715
51716 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * lib/idcache.c: Include <stddef.h>, for offsetof.
51719         (struct userid.name): Change from char * to a flexible array member.
51720         All uses changed.
51721         * modules/idcache (Depends-on): Add flexmember.
51722
51723         * MODULES.html.sh (Core language properties): New module flexmember.
51724         * modules/flexmember, m4/flexmember.m4: New files.
51725
51726         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
51727         inline functions that are identical with the old xnmalloc_inline,
51728         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
51729         that we can avoid some unnecessary integer multiplications and
51730         divisions in the common case where the element size is known at
51731         compile time.
51732         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51733         needed.
51734         (xnboundedmalloc): Remove.
51735         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51736         arguments, for consistency with rest of this header.
51737         (xcharalloc): Rewrite using XNMALLOC.
51738         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51739         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51740         versions have been moved to lib/xalloc.h and renamed to be the
51741         non-*_inline versions.
51742         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51743         and xnrealloc functions, since those functions are now inline and
51744         now call us.
51745         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51746         renaming described above.
51747         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51748         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51749         captures the dependency in AC_C_INLINE.
51750
51751         New module canonicalize-lgpl, proposed by Charles Wilson in
51752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51753         with a few small changes afterwards.
51754         * MODULES.html.sh (File system functions): New module
51755         canonicalize-lgpl.
51756         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51757         and canonicalize_file_name.
51758         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51759         * modules/canonicalize-lgpl: New files.
51760
51761 2006-11-05  Bruno Haible  <bruno@clisp.org>
51762
51763         * gnulib-tool (func_import, func_create_testdir): Create directories
51764         also for files in subdirectories of lib/.
51765
51766 2006-11-05  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51769         ANSI C compliant.
51770
51771 2006-11-03  Bruno Haible  <bruno@clisp.org>
51772
51773         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51774         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51775         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51776         (xnboundedmalloc): New inline function.
51777         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51778         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51779         xmalloc.
51780         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51781         xmalloc.
51782         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51783         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51784         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51785         xmalloc.
51786         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51787         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51788         xmalloc.
51789         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51790         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51791         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51792         xmalloc.
51793         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51794         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51795         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51796         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51797         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51798         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51799         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51800
51801 2006-11-03  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/c-ctype.h [C++]: Define functions without name mangling.
51804         * lib/fwriteerror.h [C++]: Likewise.
51805         * lib/gcd.h [C++]: Likewise.
51806         * lib/linebreak.h [C++]: Likewise.
51807
51808 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51811         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51812         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51813         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51814         Check for functions and headers just once.
51815         Check for declaration of canonicalize_file_name.
51816         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51817
51818 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51819
51820         * gnulib-tool (func_import): Fix typo in actioncmd.
51821
51822 2006-11-02  Bruno Haible  <bruno@clisp.org>
51823
51824         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51825         newline sequence in the Makefile.am snippet as a space, like "make"
51826         does.
51827         Reported by Roger Persson <perrog@gmail.com>.
51828
51829 2006-11-01  Bruno Haible  <bruno@clisp.org>
51830
51831         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51832         already declared in <string.h>.
51833         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51834
51835 2006-11-01  Bruno Haible  <bruno@clisp.org>
51836
51837         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51838         * lib/strcase.h: Include <string.h>.
51839         (strcasecmp): Define to rpl_strcasecmp here.
51840
51841 2006-11-01  Bruno Haible  <bruno@clisp.org>
51842
51843         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51844
51845 2006-11-01  Eric Blake  <ebb9@byu.net>
51846
51847         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51848
51849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51850
51851 2006-10-29  Bruno Haible  <bruno@clisp.org>
51852
51853         Make it compile in C++ mode.
51854         * lib/full-write.c (full_rw): Add a cast.
51855
51856 2006-11-01  Bruno Haible  <bruno@clisp.org>
51857
51858         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51859         be POSIX compliant.
51860         Reported by Roger Persson <perrog@gmail.com>.
51861
51862 2006-11-01  Eric Blake  <ebb9@byu.net>
51863
51864         * lib/getopt_.h: Fix comments.
51865
51866 2006-10-31  Eric Blake  <ebb9@byu.net>
51867
51868         * modules/tmpdir (Depends-on): Add sys_stat.
51869         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51870         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51871         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51872         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51873         tempname.
51874
51875 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51876
51877         Avoid some C++ diagnostics reported by Bruno Haible.
51878         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51879         xmalloc.
51880         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51881         (struct slotvec): Move to top level.
51882         (quotearg_n_options): Rewrite to avoid xmalloc.
51883         * lib/xalloc.h (xcharalloc): New function.
51884         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51885         [defined __cplusplus]: Add function template that provides result
51886         type propagation.  This part of the change is from Bruno Haible.
51887
51888 2006-10-29  Bruno Haible  <bruno@clisp.org>
51889
51890         Make it compile in C++ mode.
51891         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51892         * lib/strnlen1.c (strnlen1): Cast memchr result.
51893         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51894         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51895         (create_temp_dir): Rename local variable 'template'.
51896         (compile_csharp_using_sscli): Add cast.
51897         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51898         * lib/findprog.c (find_in_path): Likewise.
51899         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51900         * lib/wait-process.c (register_slave_subprocess): Likewise.
51901
51902 2006-10-22  Bruno Haible  <bruno@clisp.org>
51903
51904         * modules/tsearch: New file.
51905         * lib/tsearch.h: New file.
51906         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51907         * m4/tsearch.m4: New file.
51908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51909
51910 2006-10-29  Eric Blake  <ebb9@byu.net>
51911
51912         * lib/arcfour.c: Assume config.h.
51913         * lib/arctwo.c: Likewise.
51914         * lib/base64.c: Likewise.
51915         * lib/check-version.c: Likewise.
51916         * lib/crc.c: Likewise.
51917         * lib/des.c: Likewise.
51918         * lib/gc-gnulib.c: Likewise.
51919         * lib/gc-libgcrypt.c: Likewise.
51920         * lib/gc-pbkdf2-sha1.c: Likewise.
51921         * lib/getaddrinfo.c: Likewise.
51922         * lib/getdelim.c: Likewise.
51923         * lib/getline.c: Likewise.
51924         * lib/hmac-md5.c: Likewise.
51925         * lib/hmac-sha1.c: Likewise.
51926         * lib/iconvme.c: Likewise.
51927         * lib/md2.c: Likewise.
51928         * lib/md4.c: Likewise.
51929         * lib/memxor.c: Likewise.
51930         * lib/read-file.c: Likewise.
51931         * lib/readline.c: Likewise.
51932         * lib/rijndael-alg-fst.c: Likewise.
51933         * lib/rijndael-api-fst.c: Likewise.
51934         * lib/xgetdomainname.c: Likewise.
51935
51936 2006-10-28  Eric Blake  <ebb9@byu.net>
51937
51938         * lib/xstrndup.c: Assume config.h.
51939
51940 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51941
51942         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51943         stat-macros.h is now for our own macros, whereas stat_h is for
51944         macros in the <sys/stat.h> name space.
51945         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51946         (STAT_MACROS_H): Remove.
51947         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51948         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51949         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51950         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51951         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51952         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51953         Move these macros to ...
51954         * lib/stat_.h: here.  Don't include stat-macros.h.
51955         * lib/canonicalize.c: Don't include stat-macros.h.
51956         * lib/chown.c: Likewise.
51957         * lib/euidaccess.c: Likewise.
51958         * lib/file-type.c: Likewise.
51959         * lib/filemode.c: Likewise.
51960         * lib/glob.c: Likewise.
51961         * lib/isapipe.c: Likewise.
51962         * lib/lchown.c: Likewise.
51963         * lib/lstat.c: Likewise.
51964         * lib/mkdir-p.c: Likewise.
51965         * lib/rmdir.c: Likewise.
51966         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51968         unless mkdir isn't declared, to speed up 'configure'.
51969         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51970         would define all the S_* symbols.
51971         * modules/canonicalize (Depends-on):
51972         Depend on sys_stat, not stat-macros.
51973         * modules/chown: Likewise.
51974         * modules/euidaccess: Likewise.
51975         * modules/filemode: Likewise.
51976         * modules/file-type: Likewise.
51977         * modules/glob: Likewise.
51978         * modules/isapipe: Likewise.
51979         * modules/lchown: Likewise.
51980         * modules/lstat: Likewise.
51981         * modules/mkancesdirs: Likewise.
51982         * modules/rmdir: Likewise.
51983         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51984         * modules/modechange: Likewise.
51985         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51986         (configure.ac): Remove gl_STAT_MACROS.
51987         * modules/sys_stat (Depends-on): Remove stat-macros.
51988
51989 2006-10-27  Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/signed.m4: Remove file.
51992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51993         invocation.
51994         * modules/vasnprintf (Files): Remove m4/signed.m4.
51995
51996 2006-10-27  Bruno Haible  <bruno@clisp.org>
51997
51998         Update to GNU gettext 0.16.
51999         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
52000         m4/inttypes-h.m4, m4/signed.m4.
52001         * m4/gettext.m4: Update to GNU gettext 0.16.
52002         * m4/intl.m4: New file, from GNU gettext.
52003         * m4/intldir.m4: New file, from GNU gettext.
52004         * config/srclist.txt: Update
52005
52006 2006-10-27  Eric Blake  <ebb9@byu.net>
52007
52008         * MODULES.html.sh: Document tempname.
52009         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
52010         dependencies.
52011         (Files): Move lib/tempname.c...
52012         * modules/tempname: ...to this new module.
52013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
52014         (gl_PREREQ_TEMPNAME): Move...
52015         * m4/tempname.m4: ...to this new file.
52016         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
52017         * modules/sys_stat (Depends-on): Add stat-macros.
52018         * lib/stat_.h (includes): Pick up stat macros.
52019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
52020         if stat macros are broken.
52021         * lib/tempname.c (includes): No need to include "stat-macros.h".
52022         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
52023         (direxists, __path_search) [!_LIBC]: Don't compile these in
52024         gnulib; the tmpdir module covers that.
52025         * lib/tempname.h: New file.
52026
52027 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52028
52029         * COPYING: Explain how gnulib-tool converts licence headers.
52030         Almost all wording by Eric Blake.
52031
52032 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
52033
52034         * lib/mbchar.h (is_basic_table): Make read-only.
52035         * lib/mbchar.c (is_basic_table): Likewise.
52036         Reported by John Darrington.
52037
52038 2006-10-25  Bruno Haible  <bruno@clisp.org>
52039
52040         * lib/progname.h (set_program_name): Undefine before defining.
52041
52042 2006-10-25  Bruno Haible  <bruno@clisp.org>
52043
52044         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
52045         false for non-gcc C++ compilers.
52046         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52047
52048 2006-10-24  Bruno Haible  <bruno@clisp.org>
52049
52050         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
52051         iconv implementations like Irix iconv.
52052
52053 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52054
52055         * modules/vararrays: New file.
52056         * m4/vararrays.m4: New file, taken from diffutils.
52057         * MODULES.html.sh: New module vararrays.
52058
52059 2006-10-24  Karl Berry  <karl@gnu.org>
52060
52061         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
52062         Don't call GNU Unix.
52063
52064 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52065
52066         * users.txt: Add Libtool.
52067
52068         Sync from Libtool:
52069
52070         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
52073         to gnulib's policy of including config.h unconditionally.
52074
52075 2006-10-24  Bruno Haible  <bruno@clisp.org>
52076
52077         * modules/wcwidth (Files): Add m4/wint_t.m4.
52078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
52079         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
52080
52081 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52082
52083         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
52084         to pacify GCC with some -W flags enabled.  Problem reported by
52085         Bruno Haible.
52086
52087 2006-10-24  Jim Meyering  <jim@meyering.net>
52088
52089         * MODULES.html.sh: Remove uinttostr.  It's not a module.
52090         Reported by Karl Berry.
52091
52092 2006-10-23  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
52095
52096 2006-10-24  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/gl_list.h: Use C comment style, not C++ comment style.
52099
52100 2006-10-23  Eric Blake  <ebb9@byu.net>
52101
52102         * lib/getaddrinfo.c (includes): Add missing include.
52103
52104 2006-10-23  Bruno Haible  <bruno@clisp.org>
52105             Paul Eggert  <eggert@cs.ucla.edu>
52106
52107         Ability to rename obstack_free.
52108         * lib/obstack.h (__obstack_free): New macro. Declare instead of
52109         obstack_free.
52110         (obstack_free): Invoke the __obstack_free macro.
52111         * lib/obstack.c (obstack_free): Use __obstack_free macro.
52112
52113 2006-10-23  Bruno Haible  <bruno@clisp.org>
52114             Paul Eggert  <eggert@cs.ucla.edu>
52115
52116         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
52117         __argc, __argv from the declaration. (They are defined as macros on
52118         mingw.)
52119
52120 2006-10-22  Bruno Haible  <bruno@clisp.org>
52121
52122         * doc/gnulib-intro.texi: New file.
52123         * doc/gnulib.texi: Include it.
52124
52125 2006-10-21  Bruno Haible  <bruno@clisp.org>
52126
52127         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
52128         "Introduction", "Miscellanous Notes", "Particular Modules".
52129
52130 2006-10-21  Bruno Haible  <bruno@clisp.org>
52131
52132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52133         Change mostlyclean-local rule to avoid sh syntax error from bash
52134         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
52135
52136 2006-10-23  Jim Meyering  <jim@meyering.net>
52137
52138         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
52139         in place of snprintf.
52140
52141         * modules/inttostr (Files): Add lib/uinttostr.c.
52142         * lib/uinttostr.c (inttostr): New file/function.
52143         * lib/inttostr.h (uinttostr): Declare.
52144         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
52145         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52146         Add uinttostr.
52147         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
52148
52149 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         * lib/canonicalize.c (ELOOP): Define if not already defined.
52152         Problem reported by Bruno Haible in
52153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
52154
52155 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
52158         Problem reported by Perry Smith and Ville Laurikari.
52159
52160         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
52161         uses.
52162
52163 2006-10-19  Bruno Haible  <bruno@clisp.org>
52164
52165         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
52166         for mingw.
52167
52168 2006-10-19  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
52171         Needed for mingw.
52172
52173 2006-10-19  Bruno Haible  <bruno@clisp.org>
52174
52175         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
52176
52177 2006-10-19  Bruno Haible  <bruno@clisp.org>
52178
52179         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
52180         it.
52181
52182 2006-10-19  Bruno Haible  <bruno@clisp.org>
52183
52184         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
52185         invocation.
52186
52187 2006-10-19  Bruno Haible  <bruno@clisp.org>
52188
52189         * gnulib-tool (func_create_testdir): Don't include ftruncate and
52190         mountlist by default.
52191
52192 2006-10-16  Bruno Haible  <bruno@clisp.org>
52193
52194         * lib/c-strstr.c: Include c-strstr.h.
52195
52196 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52197
52198         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
52199         in a slash.
52200
52201 2006-10-18  Bruno Haible  <bruno@clisp.org>
52202
52203         * lib/lock.h [C++]: Wrap definitions in extern "C".
52204
52205 2006-10-18  Bruno Haible  <bruno@clisp.org>
52206
52207         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
52208         gl_LIBOBJS list.
52209
52210 2006-10-18  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
52213
52214 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
52215
52216         * lib/xstrtol.h: Include gettext.h.
52217         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
52218         Problem reported by Eric Blake.
52219         * modules/xstrtol (Depends-on): Add gettext-h.
52220
52221 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
52222
52223         * lib/strftime.c (advance): New macro.
52224         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
52225         incomplete type, so you can't add 0 to it.  Problem and patch
52226         reported by Eelco Dolstra for dietlibc.
52227
52228 2006-10-18  Jim Meyering  <jim@meyering.net>
52229
52230         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
52231         type for a local, and rename it: s/up/user_proc/.
52232
52233 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52234
52235         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
52236         READ_UTMP_USER_PROCESS.
52237         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
52238
52239 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52240
52241         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
52242         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
52243
52244 2006-10-17  Eric Blake  <ebb9@byu.net>
52245
52246         * lib/sigprocmask.c (sigprocmask): Fix typo.
52247
52248         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
52249
52250         * modules/clean-temp (Makefile.am): Don't add to make output...
52251         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
52252         config.h.
52253
52254 2006-10-17  Bruno Haible  <bruno@clisp.org>
52255
52256         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
52257         differently if DEFAULT_TEXT_DOMAIN is set.
52258
52259 2006-10-16  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/clean-temp.c: Include fwriteerror.h.
52262
52263 2006-10-16  Bruno Haible  <bruno@clisp.org>
52264
52265         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
52266
52267 2006-10-16  Bruno Haible  <bruno@clisp.org>
52268
52269         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
52270         * lib/sigprocmask.h: Include <sys/types.h>.
52271         (sigset_t): Use the system's definition if present.
52272
52273 2006-10-17  Eric Blake  <ebb9@byu.net>
52274
52275         * lib/xvasprintf.c (includes): Assume config.h.
52276         * lib/xasprintf.c (includes): Likewise.
52277
52278 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52279
52280         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
52281         at least as wide as intmax_t.
52282
52283 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
52284
52285         (Imported from Automake.)
52286         * build-aux/gnupload: Update to version 1.1 of directive file.
52287
52288 2006-10-16  Eric Blake  <ebb9@byu.net>
52289
52290         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
52291         match Automake 1.10a.
52292
52293 2006-10-14  Bruno Haible  <bruno@clisp.org>
52294
52295         * modules/sigprocmask: New file.
52296         * lib/sigprocmask.h: New file.
52297         * lib/sigprocmask.c: New file.
52298         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
52299         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
52300         request sigprocmask.o.
52301         (gl_PREREQ_SIGPROCMASK): New macro.
52302         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
52303         (Depends-on): Add sigprocmask.
52304         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
52305         gt_SIGNALBLOCKING. Test for 'raise' only once.
52306         * lib/fatal-signal.c: Include sigprocmask.h.
52307         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
52308         unblock_fatal_signals): Define always.
52309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52310         sigprocmask.
52311
52312 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52313
52314         Sync from Automake.
52315         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
52316         which incorrectly sets the mode of an existing destination
52317         directory.  In some cases the unpatched install-sh could do the
52318         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
52319         system.  We hope this is rare in practice, but it's clearly worth
52320         fixing.  Problem reported by Alex Unleashed in
52321         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
52322         Also, don't bother to check for -m bugs unless we're using -m;
52323         suggested by Stepan Kasal.
52324
52325 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52326
52327         Sync from Automake.
52328         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
52329         `-c' flag, so they appear at the same position as in %FASTDEP%
52330         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
52331         which ignores unknown options only after the first non-option.
52332         Bug report against M4 by Nelson H. F. Beebe.
52333
52334 2006-10-13  Jim Meyering  <jim@meyering.net>
52335
52336         Fix a bug in yesterday's change.
52337         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
52338         p->fts_statp->st_dev would be used uninitialized.
52339         Ensures that we always call fts_stat on the very first entry.
52340         Miklos Szeredi reported that find -xdev stopped working.
52341
52342 2006-10-12  Bruno Haible  <bruno@clisp.org>
52343
52344         * gnulib-tool (func_get_automake_snippet): Append an automatically
52345         computed EXTRA_DIST augmentation.
52346         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
52347         * modules/alloca-opt (Makefile.am): Likewise.
52348         * modules/allocsa (Makefile.am): Likewise.
52349         * modules/arcfour (Makefile.am): Likewise.
52350         * modules/arctwo (Makefile.am): Likewise.
52351         * modules/argmatch (Makefile.am): Likewise.
52352         * modules/argz (Makefile.am): Likewise.
52353         * modules/atexit (Makefile.am): Likewise.
52354         * modules/backupfile (Makefile.am): Likewise.
52355         * modules/byteswap (Makefile.am): Likewise.
52356         * modules/c-strtod (Makefile.am): Likewise.
52357         * modules/c-strtold (Makefile.am): Likewise.
52358         * modules/calloc (Makefile.am): Likewise.
52359         * modules/canon-host (Makefile.am): Likewise.
52360         * modules/canonicalize (Makefile.am): Likewise.
52361         * modules/chdir-long (Makefile.am): Likewise.
52362         * modules/chdir-safer (Makefile.am): Likewise.
52363         * modules/check-version (Makefile.am): Likewise.
52364         * modules/chown (Makefile.am): Likewise.
52365         * modules/cloexec (Makefile.am): Likewise.
52366         * modules/close-stream (Makefile.am): Likewise.
52367         * modules/closeout (Makefile.am): Likewise.
52368         * modules/crc (Makefile.am): Likewise.
52369         * modules/csharpexec (Makefile.am): Likewise.
52370         * modules/cycle-check (Makefile.am): Likewise.
52371         * modules/des (Makefile.am): Likewise.
52372         * modules/dev-ino (Makefile.am): Likewise.
52373         * modules/dirfd (Makefile.am): Likewise.
52374         * modules/dirname (Makefile.am): Likewise.
52375         * modules/dup2 (Makefile.am): Likewise.
52376         * modules/eealloc (Makefile.am): Likewise.
52377         * modules/error (Makefile.am): Likewise.
52378         * modules/euidaccess (Makefile.am): Likewise.
52379         * modules/exclude (Makefile.am): Likewise.
52380         * modules/exitfail (Makefile.am): Likewise.
52381         * modules/fcntl-safer (Makefile.am): Likewise.
52382         * modules/fcntl (Makefile.am): Likewise.
52383         * modules/file-type (Makefile.am): Likewise.
52384         * modules/fileblocks (Makefile.am): Likewise.
52385         * modules/filemode (Makefile.am): Likewise.
52386         * modules/filenamecat (Makefile.am): Likewise.
52387         * modules/fnmatch (Makefile.am): Likewise.
52388         * modules/fopen-safer (Makefile.am): Likewise.
52389         * modules/fpending (Makefile.am): Likewise.
52390         * modules/fprintftime (Makefile.am): Likewise.
52391         * modules/free (Makefile.am): Likewise.
52392         * modules/fsusage (Makefile.am): Likewise.
52393         * modules/ftruncate (Makefile.am): Likewise.
52394         * modules/fts (Makefile.am): Likewise.
52395         * modules/gc-arcfour (Makefile.am): Likewise.
52396         * modules/gc-des (Makefile.am): Likewise.
52397         * modules/gc-hmac-md5 (Makefile.am): Likewise.
52398         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
52399         * modules/gc-md4 (Makefile.am): Likewise.
52400         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52401         * modules/gc-sha1 (Makefile.am): Likewise.
52402         * modules/gc (Makefile.am): Likewise.
52403         * modules/getaddrinfo (Makefile.am): Likewise.
52404         * modules/getcwd (Makefile.am): Likewise.
52405         * modules/getdelim (Makefile.am): Likewise.
52406         * modules/getdomainname (Makefile.am): Likewise.
52407         * modules/getgroups (Makefile.am): Likewise.
52408         * modules/gethostname (Makefile.am): Likewise.
52409         * modules/gethrxtime (Makefile.am): Likewise.
52410         * modules/getline (Makefile.am): Likewise.
52411         * modules/getloadavg (Makefile.am): Likewise.
52412         * modules/getlogin_r (Makefile.am): Likewise.
52413         * modules/getndelim2 (Makefile.am): Likewise.
52414         * modules/getopt (Makefile.am): Likewise.
52415         * modules/getpagesize (Makefile.am): Likewise.
52416         * modules/getpass-gnu (Makefile.am): Likewise.
52417         * modules/getpass (Makefile.am): Likewise.
52418         * modules/getsubopt (Makefile.am): Likewise.
52419         * modules/gettime (Makefile.am): Likewise.
52420         * modules/gettimeofday (Makefile.am): Likewise.
52421         * modules/getugroups (Makefile.am): Likewise.
52422         * modules/getusershell (Makefile.am): Likewise.
52423         * modules/glob (Makefile.am): Likewise.
52424         * modules/group-member (Makefile.am): Likewise.
52425         * modules/hard-locale (Makefile.am): Likewise.
52426         * modules/hash (Makefile.am): Likewise.
52427         * modules/hmac-md5 (Makefile.am): Likewise.
52428         * modules/hmac-sha1 (Makefile.am): Likewise.
52429         * modules/human (Makefile.am): Likewise.
52430         * modules/idcache (Makefile.am): Likewise.
52431         * modules/imaxabs (Makefile.am): Likewise.
52432         * modules/imaxdiv (Makefile.am): Likewise.
52433         * modules/inet_ntop (Makefile.am): Likewise.
52434         * modules/inet_pton (Makefile.am): Likewise.
52435         * modules/intprops (Makefile.am): Likewise.
52436         * modules/inttostr (Makefile.am): Likewise.
52437         * modules/inttypes (Makefile.am): Likewise.
52438         * modules/isapipe (Makefile.am): Likewise.
52439         * modules/javaversion (Makefile.am): Likewise.
52440         * modules/lchmod (Makefile.am): Likewise.
52441         * modules/lchown (Makefile.am): Likewise.
52442         * modules/localcharset (Makefile.am): Likewise.
52443         * modules/long-options (Makefile.am): Likewise.
52444         * modules/lstat (Makefile.am): Likewise.
52445         * modules/malloc (Makefile.am): Likewise.
52446         * modules/mathl (Makefile.am): Likewise.
52447         * modules/mbchar (Makefile.am): Likewise.
52448         * modules/md2 (Makefile.am): Likewise.
52449         * modules/md4 (Makefile.am): Likewise.
52450         * modules/md5 (Makefile.am): Likewise.
52451         * modules/memcasecmp (Makefile.am): Likewise.
52452         * modules/memchr (Makefile.am): Likewise.
52453         * modules/memcmp (Makefile.am): Likewise.
52454         * modules/memcoll (Makefile.am): Likewise.
52455         * modules/memcpy (Makefile.am): Likewise.
52456         * modules/memmem (Makefile.am): Likewise.
52457         * modules/memmove (Makefile.am): Likewise.
52458         * modules/mempcpy (Makefile.am): Likewise.
52459         * modules/memrchr (Makefile.am): Likewise.
52460         * modules/memset (Makefile.am): Likewise.
52461         * modules/memxor (Makefile.am): Likewise.
52462         * modules/mkancesdirs (Makefile.am): Likewise.
52463         * modules/mkdir-p (Makefile.am): Likewise.
52464         * modules/mkdir (Makefile.am): Likewise.
52465         * modules/mkdtemp (Makefile.am): Likewise.
52466         * modules/mkstemp (Makefile.am): Likewise.
52467         * modules/mktime (Makefile.am): Likewise.
52468         * modules/modechange (Makefile.am): Likewise.
52469         * modules/mountlist (Makefile.am): Likewise.
52470         * modules/nanosleep (Makefile.am): Likewise.
52471         * modules/obstack (Makefile.am): Likewise.
52472         * modules/openat (Makefile.am): Likewise.
52473         * modules/pagealign_alloc (Makefile.am): Likewise.
52474         * modules/pathmax (Makefile.am): Likewise.
52475         * modules/physmem (Makefile.am): Likewise.
52476         * modules/poll (Makefile.am): Likewise.
52477         * modules/posixtm (Makefile.am): Likewise.
52478         * modules/posixver (Makefile.am): Likewise.
52479         * modules/putenv (Makefile.am): Likewise.
52480         * modules/quote (Makefile.am): Likewise.
52481         * modules/quotearg (Makefile.am): Likewise.
52482         * modules/raise (Makefile.am): Likewise.
52483         * modules/read-file (Makefile.am): Likewise.
52484         * modules/readline (Makefile.am): Likewise.
52485         * modules/readlink (Makefile.am): Likewise.
52486         * modules/readtokens (Makefile.am): Likewise.
52487         * modules/readutmp (Makefile.am): Likewise.
52488         * modules/realloc (Makefile.am): Likewise.
52489         * modules/regex (Makefile.am): Likewise.
52490         * modules/rename-dest-slash (Makefile.am): Likewise.
52491         * modules/rename (Makefile.am): Likewise.
52492         * modules/rijndael (Makefile.am): Likewise.
52493         * modules/rmdir (Makefile.am): Likewise.
52494         * modules/rpmatch (Makefile.am): Likewise.
52495         * modules/safe-read (Makefile.am): Likewise.
52496         * modules/safe-write (Makefile.am): Likewise.
52497         * modules/same-inode (Makefile.am): Likewise.
52498         * modules/same (Makefile.am): Likewise.
52499         * modules/save-cwd (Makefile.am): Likewise.
52500         * modules/savedir (Makefile.am): Likewise.
52501         * modules/setenv (Makefile.am): Likewise.
52502         * modules/settime (Makefile.am): Likewise.
52503         * modules/sha1 (Makefile.am): Likewise.
52504         * modules/sig2str (Makefile.am): Likewise.
52505         * modules/snprintf (Makefile.am): Likewise.
52506         * modules/stat-macros (Makefile.am): Likewise.
52507         * modules/stat-time (Makefile.am): Likewise.
52508         * modules/stdbool (Makefile.am): Likewise.
52509         * modules/stdint (Makefile.am): Likewise.
52510         * modules/stdlib-safer (Makefile.am): Likewise.
52511         * modules/stpcpy (Makefile.am): Likewise.
52512         * modules/stpncpy (Makefile.am): Likewise.
52513         * modules/strcase (Makefile.am): Likewise.
52514         * modules/strcasestr (Makefile.am): Likewise.
52515         * modules/strchrnul (Makefile.am): Likewise.
52516         * modules/strcspn (Makefile.am): Likewise.
52517         * modules/strdup (Makefile.am): Likewise.
52518         * modules/strerror (Makefile.am): Likewise.
52519         * modules/strftime (Makefile.am): Likewise.
52520         * modules/strndup (Makefile.am): Likewise.
52521         * modules/strnlen (Makefile.am): Likewise.
52522         * modules/strpbrk (Makefile.am): Likewise.
52523         * modules/strsep (Makefile.am): Likewise.
52524         * modules/strstr (Makefile.am): Likewise.
52525         * modules/strtod (Makefile.am): Likewise.
52526         * modules/strtoimax (Makefile.am): Likewise.
52527         * modules/strtok_r (Makefile.am): Likewise.
52528         * modules/strtol (Makefile.am): Likewise.
52529         * modules/strtoll (Makefile.am): Likewise.
52530         * modules/strtoul (Makefile.am): Likewise.
52531         * modules/strtoull (Makefile.am): Likewise.
52532         * modules/strtoumax (Makefile.am): Likewise.
52533         * modules/strverscmp (Makefile.am): Likewise.
52534         * modules/sys_socket (Makefile.am): Likewise.
52535         * modules/sys_stat (Makefile.am): Likewise.
52536         * modules/sysexits (Makefile.am): Likewise.
52537         * modules/time_r (Makefile.am): Likewise.
52538         * modules/timegm (Makefile.am): Likewise.
52539         * modules/timespec (Makefile.am): Likewise.
52540         * modules/tmpfile-safer (Makefile.am): Likewise.
52541         * modules/trim (Makefile.am): Likewise.
52542         * modules/unistd-safer (Makefile.am): Likewise.
52543         * modules/unlinkdir (Makefile.am): Likewise.
52544         * modules/unlocked-io (Makefile.am): Likewise.
52545         * modules/userspec (Makefile.am): Likewise.
52546         * modules/utime (Makefile.am): Likewise.
52547         * modules/utimecmp (Makefile.am): Likewise.
52548         * modules/utimens (Makefile.am): Likewise.
52549         * modules/vasnprintf (Makefile.am): Likewise.
52550         * modules/vasprintf (Makefile.am): Likewise.
52551         * modules/vsnprintf (Makefile.am): Likewise.
52552         * modules/xalloc (Makefile.am): Likewise.
52553         * modules/xgetcwd (Makefile.am): Likewise.
52554         * modules/xnanosleep (Makefile.am): Likewise.
52555         * modules/xreadlink (Makefile.am): Likewise.
52556         * modules/xstrtod (Makefile.am): Likewise.
52557         * modules/xstrtol (Makefile.am): Likewise.
52558         * modules/xstrtold (Makefile.am): Likewise.
52559         * modules/yesno (Makefile.am): Likewise.
52560         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
52561
52562 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * modules/error (Makefile.am): Distribute files through
52565         EXTRA_DIST, not lib_SOURCES.
52566
52567 2006-10-12  Eric Blake  <ebb9@byu.net>
52568
52569         * modules/error (Makefile.am): Distribute files in /lib.
52570         * modules/obstack (Makefile.am): Likewise.
52571
52572 2006-10-12  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/acl (Makefile.am): Distribute all files in lib/ through
52575         EXTRA_DIST.
52576         * modules/arcfour (Makefile.am): Likewise.
52577         * modules/arctwo (Makefile.am): Likewise.
52578         * modules/argmatch (Makefile.am): Likewise.
52579         * modules/argz (Makefile.am): Likewise.
52580         * modules/atexit (Makefile.am): Likewise.
52581         * modules/backupfile (Makefile.am): Likewise.
52582         * modules/c-strtod (Makefile.am): Likewise.
52583         * modules/c-strtold (Makefile.am): Likewise.
52584         * modules/calloc (Makefile.am): Likewise.
52585         * modules/canon-host (Makefile.am): Likewise.
52586         * modules/canonicalize (Makefile.am): Likewise.
52587         * modules/chdir-long (Makefile.am): Likewise.
52588         * modules/chdir-safer (Makefile.am): Likewise.
52589         * modules/check-version (Makefile.am): Likewise.
52590         * modules/chown (Makefile.am): Likewise.
52591         * modules/cloexec (Makefile.am): Likewise.
52592         * modules/close-stream (Makefile.am): Likewise.
52593         * modules/closeout (Makefile.am): Likewise.
52594         * modules/crc (Makefile.am): Likewise.
52595         * modules/cycle-check (Makefile.am): Likewise.
52596         * modules/des (Makefile.am): Likewise.
52597         * modules/dirfd (Makefile.am): Likewise.
52598         * modules/dirname (Makefile.am): Likewise.
52599         * modules/dup2 (Makefile.am): Likewise.
52600         * modules/euidaccess (Makefile.am): Likewise.
52601         * modules/exclude (Makefile.am): Likewise.
52602         * modules/exitfail (Makefile.am): Likewise.
52603         * modules/fcntl-safer (Makefile.am): Likewise.
52604         * modules/file-type (Makefile.am): Likewise.
52605         * modules/fileblocks (Makefile.am): Likewise.
52606         * modules/filemode (Makefile.am): Likewise.
52607         * modules/filenamecat (Makefile.am): Likewise.
52608         * modules/fnmatch (Makefile.am): Likewise.
52609         * modules/fopen-safer (Makefile.am): Likewise.
52610         * modules/fpending (Makefile.am): Likewise.
52611         * modules/fprintftime (Makefile.am): Likewise.
52612         * modules/free (Makefile.am): Likewise.
52613         * modules/fsusage (Makefile.am): Likewise.
52614         * modules/ftruncate (Makefile.am): Likewise.
52615         * modules/fts (Makefile.am): Likewise.
52616         * modules/gc (Makefile.am): Likewise.
52617         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52618         * modules/getaddrinfo (Makefile.am): Likewise.
52619         * modules/getcwd (Makefile.am): Likewise.
52620         * modules/getdelim (Makefile.am): Likewise.
52621         * modules/getdomainname (Makefile.am): Likewise.
52622         * modules/getgroups (Makefile.am): Likewise.
52623         * modules/gethostname (Makefile.am): Likewise.
52624         * modules/gethrxtime (Makefile.am): Likewise.
52625         * modules/getline (Makefile.am): Likewise.
52626         * modules/getloadavg (Makefile.am): Likewise.
52627         * modules/getlogin_r (Makefile.am): Likewise.
52628         * modules/getopt (Makefile.am): Likewise.
52629         * modules/getpass (Makefile.am): Likewise.
52630         * modules/getpass-gnu (Makefile.am): Likewise.
52631         * modules/getsubopt (Makefile.am): Likewise.
52632         * modules/gettime (Makefile.am): Likewise.
52633         * modules/gettimeofday (Makefile.am): Likewise.
52634         * modules/getugroups (Makefile.am): Likewise.
52635         * modules/getusershell (Makefile.am): Likewise.
52636         * modules/glob (Makefile.am): Likewise.
52637         * modules/group-member (Makefile.am): Likewise.
52638         * modules/hard-locale (Makefile.am): Likewise.
52639         * modules/hash (Makefile.am): Likewise.
52640         * modules/hmac-md5 (Makefile.am): Likewise.
52641         * modules/hmac-sha1 (Makefile.am): Likewise.
52642         * modules/human (Makefile.am): Likewise.
52643         * modules/idcache (Makefile.am): Likewise.
52644         * modules/imaxabs (Makefile.am): Likewise.
52645         * modules/imaxdiv (Makefile.am): Likewise.
52646         * modules/inet_ntop (Makefile.am): Likewise.
52647         * modules/inet_pton (Makefile.am): Likewise.
52648         * modules/inttostr (Makefile.am): Likewise.
52649         * modules/isapipe (Makefile.am): Likewise.
52650         * modules/lchown (Makefile.am): Likewise.
52651         * modules/long-options (Makefile.am): Likewise.
52652         * modules/lstat (Makefile.am): Likewise.
52653         * modules/malloc (Makefile.am): Likewise.
52654         * modules/mathl (Makefile.am): Likewise.
52655         * modules/mbchar (Makefile.am): Likewise.
52656         * modules/md2 (Makefile.am): Likewise.
52657         * modules/md4 (Makefile.am): Likewise.
52658         * modules/md5 (Makefile.am): Likewise.
52659         * modules/memcasecmp (Makefile.am): Likewise.
52660         * modules/memchr (Makefile.am): Likewise.
52661         * modules/memcmp (Makefile.am): Likewise.
52662         * modules/memcoll (Makefile.am): Likewise.
52663         * modules/memcpy (Makefile.am): Likewise.
52664         * modules/memmem (Makefile.am): Likewise.
52665         * modules/memmove (Makefile.am): Likewise.
52666         * modules/mempcpy (Makefile.am): Likewise.
52667         * modules/memrchr (Makefile.am): Likewise.
52668         * modules/memset (Makefile.am): Likewise.
52669         * modules/memxor (Makefile.am): Likewise.
52670         * modules/mkancesdirs (Makefile.am): Likewise.
52671         * modules/mkdir (Makefile.am): Likewise.
52672         * modules/mkdir-p (Makefile.am): Likewise.
52673         * modules/mkdtemp (Makefile.am): Likewise.
52674         * modules/mkstemp (Makefile.am): Likewise.
52675         * modules/mktime (Makefile.am): Likewise.
52676         * modules/modechange (Makefile.am): Likewise.
52677         * modules/mountlist (Makefile.am): Likewise.
52678         * modules/nanosleep (Makefile.am): Likewise.
52679         * modules/openat (Makefile.am): Likewise.
52680         * modules/pagealign_alloc (Makefile.am): Likewise.
52681         * modules/physmem (Makefile.am): Likewise.
52682         * modules/poll (Makefile.am): Likewise.
52683         * modules/posixtm (Makefile.am): Likewise.
52684         * modules/posixver (Makefile.am): Likewise.
52685         * modules/putenv (Makefile.am): Likewise.
52686         * modules/quote (Makefile.am): Likewise.
52687         * modules/quotearg (Makefile.am): Likewise.
52688         * modules/raise (Makefile.am): Likewise.
52689         * modules/read-file (Makefile.am): Likewise.
52690         * modules/readline (Makefile.am): Likewise.
52691         * modules/readlink (Makefile.am): Likewise.
52692         * modules/readtokens (Makefile.am): Likewise.
52693         * modules/readutmp (Makefile.am): Likewise.
52694         * modules/realloc (Makefile.am): Likewise.
52695         * modules/regex (Makefile.am): Likewise.
52696         * modules/rename (Makefile.am): Likewise.
52697         * modules/rename-dest-slash (Makefile.am): Likewise.
52698         * modules/rijndael (Makefile.am): Likewise.
52699         * modules/rmdir (Makefile.am): Likewise.
52700         * modules/rpmatch (Makefile.am): Likewise.
52701         * modules/safe-read (Makefile.am): Likewise.
52702         * modules/safe-write (Makefile.am): Likewise.
52703         * modules/same (Makefile.am): Likewise.
52704         * modules/save-cwd (Makefile.am): Likewise.
52705         * modules/savedir (Makefile.am): Likewise.
52706         * modules/setenv (Makefile.am): Likewise.
52707         * modules/settime (Makefile.am): Likewise.
52708         * modules/sha1 (Makefile.am): Likewise.
52709         * modules/sig2str (Makefile.am): Likewise.
52710         * modules/snprintf (Makefile.am): Likewise.
52711         * modules/stdlib-safer (Makefile.am): Likewise.
52712         * modules/stpcpy (Makefile.am): Likewise.
52713         * modules/stpncpy (Makefile.am): Likewise.
52714         * modules/strcase (Makefile.am): Likewise.
52715         * modules/strcasestr (Makefile.am): Likewise.
52716         * modules/strchrnul (Makefile.am): Likewise.
52717         * modules/strcspn (Makefile.am): Likewise.
52718         * modules/strdup (Makefile.am): Likewise.
52719         * modules/strerror (Makefile.am): Likewise.
52720         * modules/strftime (Makefile.am): Likewise.
52721         * modules/strndup (Makefile.am): Likewise.
52722         * modules/strnlen (Makefile.am): Likewise.
52723         * modules/strpbrk (Makefile.am): Likewise.
52724         * modules/strsep (Makefile.am): Likewise.
52725         * modules/strstr (Makefile.am): Likewise.
52726         * modules/strtod (Makefile.am): Likewise.
52727         * modules/strtoimax (Makefile.am): Likewise.
52728         * modules/strtok_r (Makefile.am): Likewise.
52729         * modules/strtol (Makefile.am): Likewise.
52730         * modules/strtoll (Makefile.am): Likewise.
52731         * modules/strtoul (Makefile.am): Likewise.
52732         * modules/strtoull (Makefile.am): Likewise.
52733         * modules/strtoumax (Makefile.am): Likewise.
52734         * modules/strverscmp (Makefile.am): Likewise.
52735         * modules/time_r (Makefile.am): Likewise.
52736         * modules/timegm (Makefile.am): Likewise.
52737         * modules/tmpfile-safer (Makefile.am): Likewise.
52738         * modules/unistd-safer (Makefile.am): Likewise.
52739         * modules/unlinkdir (Makefile.am): Likewise.
52740         * modules/userspec (Makefile.am): Likewise.
52741         * modules/utime (Makefile.am): Likewise.
52742         * modules/utimecmp (Makefile.am): Likewise.
52743         * modules/utimens (Makefile.am): Likewise.
52744         * modules/vasnprintf (Makefile.am): Likewise.
52745         * modules/vasprintf (Makefile.am): Likewise.
52746         * modules/vsnprintf (Makefile.am): Likewise.
52747         * modules/xalloc (Makefile.am): Likewise.
52748         * modules/xgetcwd (Makefile.am): Likewise.
52749         * modules/xnanosleep (Makefile.am): Likewise.
52750         * modules/xreadlink (Makefile.am): Likewise.
52751         * modules/xstrtod (Makefile.am): Likewise.
52752         * modules/xstrtol (Makefile.am): Likewise.
52753         * modules/xstrtold (Makefile.am): Likewise.
52754         * modules/yesno (Makefile.am): Likewise.
52755
52756 2006-10-12  Jim Meyering  <jim@meyering.net>
52757
52758         * m4/getloadavg.m4: Revert the change below.
52759
52760         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52761         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52762         fail with a symlink, which is what coreutils' ./bootstrap now
52763         creates by default.
52764
52765 2006-10-12  Bruno Haible  <bruno@clisp.org>
52766
52767         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52768         mingw.
52769         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52770         MSVC and mingw explicitly.
52771
52772 2006-10-11  Simon Josefsson  <jas@extundo.com>
52773             Bruno Haible  <bruno@clisp.org>
52774
52775         Add support for multiple gnulib-tool invocations in the scope of a
52776         single configure.ac file.
52777         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52778         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52779         with the same contents as the _LIBADD variable.
52780         (func_emit_initmacro_start, func_emit_initmacro_end,
52781         func_emit_initmacro_done): New functions.
52782         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52783         gl_LIBOBJS and gl_LTLIBOBJS.
52784
52785 2006-10-11  Bruno Haible  <bruno@clisp.org>
52786
52787         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52788         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52789         autoreconf. Instead, invoke autopoint explicitly but move back the
52790         *.m4 files from gnulib.
52791
52792 2006-10-11  Bruno Haible  <bruno@clisp.org>
52793
52794         * gnulib-tool (func_usage): Make module names after --create-testdir
52795         optional.
52796         (func_create_testdir): If no module was specified, use nearly all
52797         modules.
52798
52799 2006-10-12  Jim Meyering  <jim@meyering.net>
52800
52801         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52802         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52803         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52804         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52805         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52806         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52807         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52808         (fts_set_stat_required): New function.
52809         (fts_open): Defer the calls to fts_stat, if possible or requested.
52810         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52811         into fts_stat itself.
52812         (fts_read): Perform any required (deferred) fts_stat call.
52813         (fts_build): Likewise, for the directory we're about to open and read.
52814         In the readdir loop, carefully decide whether each entry will require
52815         an eventual call to fts_stat, using dirent.d_type info if available.
52816         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52817         a command line argument into this function.  Update all callers.
52818         Map a return value of FTS_DOT to FTS_D for a command line argument.
52819         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52820         Thanks to Miklos Szeredi for his tenacity and for the initial
52821         bug report about "find" failing on a FUSE-based file system.
52822
52823         * lib/fts.c (fts_open): Use consistent indentation.
52824
52825 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52826
52827         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52828         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52829         reported by Jim Meyering.  All uses of cache variables renamed
52830         to match Autoconf's.
52831         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52832         the other one.
52833
52834         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52835         Fix misspelling in diagnostic.
52836
52837 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52838
52839         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52840         defined.  Problem reported by Matthew Woehlke.
52841
52842         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52843         Add support for Tandem NonStop R series.
52844         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52845         Use new macro.
52846
52847         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52848         (has_trailing_slash): Omit size arg; all callers changed.
52849         Omit 'inline', since it doesn't help performance and we'd
52850         need to configure it.
52851         Don't count //, ///, etc. as having a trailing slash.
52852         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52853         (rpl_rename_dest_slash): On failure, use rename's errno rather
52854         than (in some cases) an incorrect or junk errno.
52855         Simplify code by removing need to compute length; this does
52856         cause it to make two passes instead of one over the file name,
52857         but it's worth it.
52858
52859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52860         change, since Autoconf's version may no longer be appropriate now
52861         that we are using CVS Autoconf's version.  Add support for Tandem.
52862
52863 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52864             Bruno Haible  <bruno@clisp.org>
52865
52866         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52867         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52868         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52869         gl_AC_TYPE_LONG_LONG.
52870
52871         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52872         instead of HAVE_LONG_LONG.
52873         * lib/printf-args.c (printf_fetchargs): Likewise.
52874         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52875         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52876         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52877         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52878         gl_AC_TYPE_LONG_LONG.
52879
52880 2006-10-11  Bruno Haible  <bruno@clisp.org>
52881
52882         * m4/longlong.m4: Add comments.
52883         * m4/ulonglong.m4: Likewise.
52884
52885 2006-10-10  Bruno Haible  <bruno@clisp.org>
52886
52887         Make it possible to #define stpcpy, strdup to aliases.
52888         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52889         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52890
52891 2006-10-10  Bruno Haible  <bruno@clisp.org>
52892
52893         Make it possible to #define gcd to an alias.
52894         * lib/gcd.c: Include config.h.
52895
52896 2006-10-10  Bruno Haible  <bruno@clisp.org>
52897
52898         Make it possible to #define c_isascii to an alias.
52899         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52900         defined. Undefine the macros before defining them, to avoid gcc
52901         warnings.
52902         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52903         define NO_C_CTYPE_MACROS early.
52904
52905 2006-10-10  Bruno Haible  <bruno@clisp.org>
52906
52907         Make it possible to #define set_program_name to an alias.
52908         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52909         ENABLE_RELOCATABLE early.
52910
52911 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52912
52913         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52914         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52915         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52916         More generally, don't assume that 64-bit signed int is available
52917         if unsigned int is, and vice versa.
52918         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52919         unsigned symbols, not on their signed counterparts.
52920         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52921         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52922         (UINT64_C, UINTMAX_C):
52923         Likewise.
52924         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52925         unsigned counterparts.
52926         (Have_long_long, Unsigned): New macros.
52927         (Int): Renamed from INT.
52928         (strtoimax): Use the new macros.
52929         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52930         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52931         * modules/inttypes (inttypes.h): Substitute
52932         HAVE_UNSIGNED_LONG_LONG_INT.
52933         * modules/stdint (stdint.h): Likewise.
52934         (Files): Add m4/ulonglong.m4.
52935
52936 2006-10-10  Bruno Haible  <bruno@clisp.org>
52937
52938         Fix a gcc -Wshadow warning.
52939         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52940         to 'bucket'.
52941         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52942         gl_linked_indexof_from_to): Likewise.
52943         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52944         Likewise.
52945         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52946         Likewise.
52947         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52948         Reported by Eric Blake.
52949
52950 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52951
52952         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52953         for NetBSD.  Problem reported by Bruno Haible.
52954
52955 2006-10-09  Jim Meyering  <jim@meyering.net>
52956
52957         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52958         Patch from Bruno Haible.
52959
52960 2006-10-09  Jim Meyering  <jim@meyering.net>
52961
52962         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52963         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52964         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52965
52966 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52967
52968         Don't include <config.h> twice; this doesn't work in some cases,
52969         e.g., when config.h has "#define intmax_t long long int" and
52970         we include <config.h>, <inttypes.h>, <config.h> in that order.
52971         Problem reported by Matthew Woehlke in:
52972         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52973         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52974         * lib/fts-cycle.c: Don't include config.h.
52975         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52976         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52977         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52978         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52979         inttypes.h.
52980         * lib/xstrtoumax.c: Likewise.
52981         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52982         __strtol and the like, so that this module is more like its siblings.
52983         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52984         Remove; no longer needed now that we assume gnulib inttypes.h.
52985
52986 2006-10-08  Bruno Haible  <bruno@clisp.org>
52987
52988         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52989         option.
52990
52991 2006-10-07  Jim Meyering  <jim@meyering.net>
52992
52993         * modules/inttypes (inttypes.h): Revert what seems to have been
52994         an inadvertent part of today's change: use "|", not "/" in the
52995         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52996
52997 2006-10-07  Bruno Haible  <bruno@clisp.org>
52998
52999         * modules/sublist: New file.
53000
53001 2006-10-07  Bruno Haible  <bruno@clisp.org>
53002
53003         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
53004         * modules/argz (argz.h): Likewise.
53005         * modules/arpa_inet (arpa/inet.h): Likewise.
53006         * modules/byteswap (byteswap.h): Likewise.
53007         * modules/configmake (configmake.h): Likewise.
53008         * modules/fcntl (fcntl.h): Likewise.
53009         * modules/fnmatch (fnmatch.h): Likewise.
53010         * modules/getopt (getopt.h): Likewise.
53011         * modules/glob (glob.h): Likewise.
53012         * modules/inttypes (inttypes.h): Likewise.
53013         * modules/netinet_in (netinet/in.h): Likewise.
53014         * modules/poll (poll.h): Likewise.
53015         * modules/stdbool (stdbool.h): Likewise.
53016         * modules/stdint (stdint.h): Likewise.
53017         * modules/sys_select (sys/select.h): Likewise.
53018         * modules/sys_socket (sys/socket.h): Likewise.
53019         * modules/sys_stat (sys/stat.h): Likewise.
53020         * modules/sysexits (sysexits.h): Likewise.
53021         * modules/unistd (unistd.h): Likewise.
53022         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53023         Add a "DO NOT EDIT" comment to the generated file.
53024         (func_import): Likewise for gnulib-comp.m4.
53025
53026 2006-10-07  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/gl_sublist.h: New file.
53029         * lib/gl_sublist.c: New file.
53030
53031 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53032
53033         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
53034         name (relative to the original working directory) and the file
53035         name component (relative to the temporary working directory).  All
53036         callers changed.
53037         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
53038         * lib/mkdir-p.c (make_dir_parents): Likewise.
53039         * lib/mkdir-p.h (make_dir_parents): Likewise.
53040
53041 2006-10-06  Eric Blake  <ebb9@byu.net>
53042
53043         Define several macros for use by the clean-temp module.
53044         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
53045         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
53046         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
53047
53048         * lib/clean-temp.h (close_stream_temp): New declaration.
53049         * lib/clean-temp.c (includes): Pull in headers according to what
53050         other modules are in use.
53051         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
53052
53053 2006-10-06  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
53056         instead of fopen, fwriteerror.
53057
53058 2006-10-06  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
53061         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
53062         int.
53063         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
53064         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
53065         Return an error indicator.
53066         Suggested by Eric Blake.
53067
53068 2006-10-06  Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
53071         Reported by Eric Blake.
53072
53073 2006-10-06  Bruno Haible  <bruno@clisp.org>
53074
53075         * modules/closeout (Description): Mention stderr too.
53076
53077 2006-10-06  Bruno Haible  <bruno@clisp.org>
53078         and Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         * lib/closeout.c (close_stdout): Also close stderr.
53081         * lib/closeout.h: Update comment.
53082
53083 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53084
53085         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
53086         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
53087         * lib/dirchownmod.c: Include lchown.h.
53088         * lib/lchown.c: Don't include files that lchown.h now includes.
53089         Don't declare chown, since lchown.h now does that.
53090         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
53091         (lchown): Define to rpl_chown if lchown is declared but
53092         does not exist.  Declare using a prototype if lchown is not
53093         declared.  Add a copyright notice.
53094         * lib/mkstemp.h: Include <unistd.h>.
53095         * lib/openat.c: Include lchown.h.
53096
53097         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
53098         we now test for that separately.
53099         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
53100         rather than O_NOFOLLOW, when testing whether it's possible to
53101         avoid a race condition reliably.
53102         * lib/savewd.c (savewd_chdir): Likewise.
53103
53104         Remove macros that are no longer needed now that stdint.h is
53105         reliable.
53106         * lib/fsusage.c (UINTMAX_MAX): Remove.
53107         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
53108         * lib/utimecmp.c (SIZE_MAX): Remove.
53109
53110         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
53111
53112         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
53113         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
53114         O_NOATIME works.
53115
53116 2006-10-05  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/gl_list.h (gl_sortedlist_search_from_to,
53119         gl_sortedlist_indexof_from_to): New declarations.
53120         (gl_list_implementation): New fields sortedlist_search_from_to,
53121         sortedlist_indexof_from_to.
53122         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
53123         inline functions.
53124         * lib/gl_list.c (gl_sortedlist_search_from_to,
53125         gl_sortedlist_indexof_from_to): New functions.
53126         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
53127         function.
53128         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
53129         (gl_array_sortedlist_search_from_to): New function.
53130         (gl_array_list_implementation): Update.
53131         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
53132         function.
53133         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
53134         (gl_carray_sortedlist_search_from_to): New function.
53135         (gl_carray_list_implementation): Update.
53136         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
53137         gl_linked_sortedlist_indexof_from_to): New functions.
53138         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53139         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53140         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
53141         gl_tree_sortedlist_indexof_from_to): New functions.
53142         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53143         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53144         Update.
53145         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53146         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
53147         Update.
53148
53149 2006-10-05  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
53152         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
53153         (struct gl_list_implementation): Add fields search_from_to,
53154         indexof_from_to. Remove fields search, indexof.
53155         (gl_list_search): Use the search_from_to method.
53156         (gl_list_search_from, gl_list_search_from_to): New functions.
53157         (gl_list_indexof): Use the indexof_from_to method.
53158         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53159         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
53160         (gl_list_search_from, gl_list_search_from_to): New functions.
53161         (gl_list_indexof): Use the indexof_from_to method.
53162         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53163         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
53164         gl_array_indexof. Add start_index, end_index arguments.
53165         (gl_array_search_from_to): Renamed from gl_array_search. Add
53166         start_index, end_index arguments.
53167         (gl_array_remove, gl_array_list_implementation): Update.
53168         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
53169         gl_carray_indexof. Add start_index, end_index arguments.
53170         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
53171         start_index, end_index arguments.
53172         (gl_carray_remove, gl_carray_list_implementation): Update.
53173         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
53174         gl_linked_search. Add start_index, end_index arguments.
53175         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
53176         start_index, end_index arguments.
53177         (gl_linked_remove): Update.
53178         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53179         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53180         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
53181         field to 'size_t'.
53182         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
53183         gl_tree_search. Add start_index, end_index arguments.
53184         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53185         start_index, end_index arguments.
53186         (gl_tree_remove): Update.
53187         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53188         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53189         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
53190         function.
53191         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
53192         gl_tree_search. Add start_index, end_index arguments.
53193         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53194         start_index, end_index arguments.
53195         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53196         Update.
53197         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53198
53199 2006-10-05  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
53202
53203         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
53204         fwriteerror_temp): New declarations.
53205         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
53206         (descriptors): New variable.
53207         (cleanup): First, close the descriptors.
53208         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
53209         fclose_temp, fwriteerror_temp): New functions.
53210
53211 2006-10-04  Jim Meyering  <jim@meyering.net>
53212
53213         * lib/fts.c (fts_open): Tiny comment change.
53214
53215 2006-10-04  Bruno Haible  <bruno@clisp.org>
53216
53217         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
53218         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
53219         gl_LOCK_BODY.
53220         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
53221         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
53222         gl_LOCK_EARLY_BODY.
53223         (gl_LOCK): Require gl_LOCK_BODY.
53224
53225 2006-10-04  Bruno Haible  <bruno@clisp.org>
53226
53227         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
53228         (gl_oset_search_atleast): New declaration.
53229         (struct gl_oset_implementation): Add field 'search_atleast'.
53230         (gl_oset_search_atleast): New inline function.
53231         * lib/gl_oset.c (gl_oset_search_atleast): New function.
53232         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
53233         (gl_array_oset_implementation): Update.
53234         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
53235         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
53236         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
53237
53238 2006-10-04  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
53241
53242 2006-10-03  Bruno Haible  <bruno@clisp.org>
53243
53244         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
53245         from gl_avltreehash_list_implementation.
53246
53247 2006-10-03  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/gl_oset.c (gl_oset_add): Fix return type.
53250
53251 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
53252
53253         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
53254
53255 2006-10-02  Eric Blake  <ebb9@byu.net>
53256
53257         * modules/strnlen (Depends-on): Add extensions.
53258
53259 2006-10-02  Eric Blake  <ebb9@byu.net>
53260
53261         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
53262         definition in 2.60+.
53263
53264 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
53265
53266         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
53267         checks.
53268
53269 2006-10-02  Bruno Haible  <bruno@clisp.org>
53270
53271         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
53272         to the AUTOMAKE_OPTIONS.
53273         Reported by Jim Meyering.
53274
53275 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53276
53277         Work around bug in Solaris 10 /proc file system:
53278         /proc/self/fd/NNN/.. isn't the parent directory of
53279         the directory whose file descriptor is NNN.  This needs to
53280         be worked around at run time, not compile time, since a
53281         program might be built on Solaris 8, where things work, and
53282         run on Solaris 10.
53283         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
53284         to use the following interface instead:
53285         (OPENAT_BUFFER_SIZE): New macro.
53286         (openat_proc_name): New function.
53287         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
53288         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
53289         Likewise.
53290         * lib/openat-proc.c: New file.
53291         * modules/openat (Files): Add lib/openat-proc.c.
53292         (Depends-on): Add same-inode, stdbool.
53293         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
53294
53295 2006-09-29  Bruno Haible  <bruno@clisp.org>
53296
53297         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
53298         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
53299         argument. Set stdout_closed before testing for ferror, not after.
53300         (fwriteerror, fwriteerror_no_ebadf): New functions.
53301
53302 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53303
53304         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
53305
53306 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
53307
53308         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
53309         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
53310
53311 2006-09-28  Jim Meyering  <jim@meyering.net>
53312
53313         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
53314         Include <unistd.h>.
53315
53316 2006-09-28  Bruno Haible  <bruno@clisp.org>
53317
53318         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
53319         * modules/linkedhash-list (Depends-on): Likewise.
53320         * modules/rbtreehash-list (Depends-on): Likewise.
53321
53322 2006-09-28  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/strndup.h: Simplify the redefinition of strndup.
53325         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
53326         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
53327
53328 2006-09-28  Bruno Haible  <bruno@clisp.org>
53329
53330         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
53331         * lib/gl_linkedhash_list.c: Likewise.
53332         * lib/gl_rbtreehash_list.c: Likewise.
53333
53334 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
53337         getaddrinfo.
53338
53339         * lib/__fpending.h: Don't include <stdio_ext.h> unless
53340         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
53341         it causes <stdio_ext.h> to cause a compile-time error.
53342         Problem reported by Nelson H. F. Beebe.
53343         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
53344         of HAVE_DECL___PENDING.
53345
53346         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
53347         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
53348         declaration.
53349
53350 2006-09-27  Jim Meyering  <jim@meyering.net>
53351
53352         This file could end up with a definition for a function
53353         named __strndup, rather than rpl_strndup on a system with
53354         incomplete weak_alias support.
53355         * lib/strndup.c (strndup): Rename from __strndup.
53356         Remove #defines that used to map __strndup to strndup.
53357         Don't use K&R prototypes.
53358         Remove LIBC-related code, since this file is not sync'd with glibc.
53359         * lib/strndup.h: Revamp, accordingly.
53360         * m4/strndup.m4: Modernize.
53361
53362 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53363
53364         * modules/savewd (Depends-on): Add 'raise'.
53365         * lib/savewd.c: Include <signal.h>, for 'raise'.
53366
53367 2006-09-26  Jim Meyering  <jim@meyering.net>
53368
53369         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
53370         when we detect Darwin 8.7.0's acl_get_file bug.
53371         Rearrange to perform the new (below) run-test while $LIBS
53372         contains any acl-related library.  Set USE_ACL at the end.
53373         (gl_ACL_GET_FILE): New function.
53374
53375 2006-09-26  Eric Blake  <ebb9@byu.net>
53376
53377         * lib/verror.c: Include <config.h> unconditionally.
53378
53379 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         * modules/clock-time (Maintainer): Add self.
53382         * modules/getlogin_r (Depends-on): Add extensions.
53383
53384 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53385
53386         * modules/clock-time: New module.
53387         * modules/nanosleep (Depends-on): Add clock-time.
53388         * modules/gethrxtime (Depends-on): Likewise.
53389         * modules/gettime (Depends-on): Likewise.
53390         * modules/settime (Depends-on): Likewise.
53391
53392         * modules/fts-lgpl: Depend on openat.
53393         * modules/mkancesdirs: Depend on savewd.
53394         * modules/mkdir-p: Likewise.
53395
53396 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53397
53398         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
53399
53400         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
53401         `gl_have_arbitrary_file_name_length_limit' to
53402         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
53403         actually works between configure runs.
53404
53405 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53406             Bruno Haible  <bruno@clisp.org>
53407
53408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
53409
53410 2006-09-25  Jim Meyering  <jim@meyering.net>
53411
53412         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
53413         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
53414
53415 2006-09-25  Eric Blake  <ebb9@byu.net>
53416
53417         * gnulib-tool (func_import, func_create_testdir): Fix typos in
53418         exec's in 2006-09-18 patch when shuffling fds.
53419
53420 2006-09-25  Bruno Haible  <bruno@clisp.org>
53421
53422         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
53423         Reported by Jim Meyering.
53424
53425 2006-09-24  Jim Meyering  <jim@meyering.net>
53426
53427         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
53428         compare a pointer against a literal "0".  That caused failures with
53429         at least HP-UX's hpcc.
53430
53431 2006-09-22  Simon Josefsson  <jas@extundo.com>
53432
53433         * modules/gc-sha1:
53434         * modules/gc-md4:
53435         * modules/gc-hmac-sha1:
53436         * modules/gc-hmac-md5:
53437         * modules/gc-des:
53438         * modules/gc-arcfour: Distribute more files.
53439
53440 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53441
53442         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
53443         (gl_linked_iterator_from_to): Initialize struct completely.
53444         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
53445         (gl_tree_iterator_from_to): Likewise
53446         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
53447         * lib/gl_array_list.c [lint] (gl_array_iterator)
53448         (gl_array_iterator_from_to): Likewise.
53449         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
53450         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
53451         (gl_carray_iterator_from_to): Likewise.
53452
53453         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
53454         * lib/md4.c (md4_process_block): Remove unused variable.
53455         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
53456         parentheses for clarity.
53457
53458 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53459
53460         * modules/bison-i18n (Depends-on): Add gettext.
53461
53462 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53463
53464         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
53465         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
53466         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
53467         also add missing comma that caused broken test.
53468         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
53469         stdlib.h, for `abort'.
53470         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
53471         variables.
53472         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
53473         include unistd.h if present, for `rmdir'.
53474         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
53475         variables.
53476         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
53477         in the process include standard headers for prototypes.
53478         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
53479         gets declared on GNU/Linux.
53480         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
53481         unistd.h, for `rmdir'.
53482         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
53483
53484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
53485         always true.
53486         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
53487
53488         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
53489
53490 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53491
53492         * gnulib-tool (func_version): Create output all at once.  This
53493         may help avoid triggering unnecessary SIGPIPEs, and at any
53494         rate it doesn't hurt.
53495
53496 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53497             Bruno Haible  <bruno@clisp.org>
53498
53499         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
53500         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53501         * m4/signed.m4 (bh_C_SIGNED): Likewise.
53502
53503         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
53504         (gl_FUNC_VASPRINTF): Invoke it.
53505
53506 2006-09-22  Bruno Haible  <bruno@clisp.org>
53507
53508         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
53509         getloadavg.c as first argument.
53510
53511 2006-09-22  Bruno Haible  <bruno@clisp.org>
53512
53513         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
53514         at the beginning of the gl_INIT macro.
53515         * modules/getloadavg (configure.ac): Pass $gl_source_base to
53516         gl_GETLOADAVG.
53517
53518 2006-09-22  Bruno Haible  <bruno@clisp.org>
53519
53520         * gnulib-tool (func_create_megatestdir): Don't include the config-h
53521         module.
53522         Suggested by Ralf Wildenhues.
53523
53524 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53525
53526         Import this patch from libc:
53527
53528         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
53529
53530         * lib/regex_internal.c (re_string_reconstruct): Handle
53531         offset < pstr->valid_raw_len && pstr->offsets_needed case.
53532         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
53533         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
53534         re_string_context_at.
53535
53536         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
53537         now requires it.
53538         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
53539         gl_REGEX now does it for us.
53540         (gl_REGEX): Add test taken from
53541         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
53542
53543         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
53544         Check that large offsets work.  Modernize Autoconf usages.
53545         Prefer "yes" to mean a good thing rather than a bad.
53546         Don't put "#define mkstemp" in config.h, as this might interfere
53547         with standard system headers that "#define mkstemp mkstemp64".
53548
53549         * modules/mkstemp (Depends-on): Add extensions, so that
53550         mkstemp is visible on some platforms.
53551         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
53552         (Include): Change to "mkstemp.h" from <stdlib.h>.
53553         (Files): Add mkstemp.h.
53554
53555         * lib/mkstemp.h: New file, since some standard headers
53556         #define mkstemp.
53557         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
53558         Include "mkstemp.h".
53559         Make the _LIBC code resemble glibc original more,
53560         e.g., use K&R style.
53561         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
53562         (mkstemp): Remove, since mkstemp.h does this for us.
53563         * lib/stdlib--.h: Include mkstemp.h.
53564
53565         Import this patch from libc:
53566
53567         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53568
53569         * lib/tempname.c (__gen_tempname): Change attempts_min
53570         into a macro.  Use preprocessor to decide how to initialize
53571         attempts [Coverity CID 67].
53572
53573 2006-09-20  Bruno Haible  <bruno@clisp.org>
53574
53575         * lib/mkdtemp.c: Import from libc.
53576         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53577                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53578                 attempts_min into a macro.  Use preprocessor to decide how to
53579                 initialize attempts [Coverity CID 67].
53580         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53581                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53582                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53583
53584 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53585
53586         * gnulib-tool (func_exit): New function, to allow to pass the
53587         exit status portably through the trap.  Use everywhere.
53588         (--help, --version): Signal a write error.
53589         (trap): catch SIGPIPE, for write errors.
53590         Exit at the end of the trap, with the correct exit status.
53591
53592 2006-09-19  Karl Berry  <karl@gnu.org>
53593
53594         * doc/gnulib.texi: note about the license texinfo files.
53595
53596 2006-09-19  Eric Blake  <ebb9@byu.net>
53597
53598         * gnulib-tool: Avoid space-tab.
53599
53600 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53603         that prevented coreutils 6.1 from building.  Problem reported
53604         by Petter Reinholdtsen.
53605
53606 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * gnulib-tool (avoidlist): Fix typo that broke options like
53609         --avoid=lock that are used by coreutils bootstrap.
53610
53611 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
53612
53613         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
53614         more systematically.
53615
53616 2006-09-18  Jim Meyering  <jim@meyering.net>
53617
53618         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
53619
53620 2006-09-18  Bruno Haible  <bruno@clisp.org>
53621
53622         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
53623
53624 2006-09-18  Bruno Haible  <bruno@clisp.org>
53625
53626         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
53627         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
53628         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
53629         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
53630         * m4/gettext.m4: Require autoconf >= 2.52.
53631         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
53632         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
53633         of gl_cv_header_inttypes_h.
53634
53635 2006-09-18  Bruno Haible  <bruno@clisp.org>
53636
53637         * lib/javaversion.c: Include configmake.h.
53638
53639 2006-09-18  Bruno Haible  <bruno@clisp.org>
53640
53641         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
53642         avoid that the while loops be executed in a subshell.
53643
53644 2006-09-18  Bruno Haible  <bruno@clisp.org>
53645
53646         * MODULES.html.sh (func_module): Break long lines.
53647         Suggested by Bruce Korb <bkorb@gnu.org>.
53648
53649 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53650
53651         Speed up by a factor of 1.12.
53652         * gnulib-tool (nl): New variable.
53653         (func_import): Rewrite include directive extraction to only read each
53654         directive once.
53655
53656 2006-09-17  Bruno Haible  <bruno@clisp.org>
53657
53658         * modules/javaversion (Makefile.am): Remove DEFS setting.
53659         (Depends-on): Add configmake, for PKGDATADIR definition.
53660
53661 2006-09-17  Bruno Haible  <bruno@clisp.org>
53662
53663         * gnulib-tool (func_create_testdir): Rewrite all files at once.
53664
53665 2006-09-17  Bruno Haible  <bruno@clisp.org>
53666
53667         * gnulib-tool (func_append): New function, stolen from libtool.m4.
53668         (func_modules_transitive_closure, func_modules_add_dummy,
53669         func_modules_to_filelist, func_import, func_create_testdir,
53670         func_create_megatestdir, ...): Use it wherever possible.
53671         Suggested by Ralf Wildenhues.
53672
53673 2006-09-16  Karl Berry  <karl@gnu.org>
53674
53675         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
53676         to avoid sectioning errors.
53677         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
53678         [ifinfo]: blank line after @center-ed titles.
53679         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
53680         Spell FSF address consistently with others.
53681         (These changes approved by rms.)
53682
53683 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53684
53685         Speed up by a factor of 1.61.
53686         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
53687         already checked module names again.
53688
53689 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53690
53691         Speed up by a factor of 1.13.
53692         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
53693         for new_files, and the input to func_add_or_update.
53694
53695 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53696
53697         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
53698         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
53699
53700 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * modules/mkancesdirs (Depends-on): Add fcntl.
53703         * modules/savewd: New file.
53704         * MODULES.html.sh (File system functions): Add savewd.
53705
53706         * modules/configmake (Makefile.am): Add support for the
53707         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
53708
53709 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53710
53711         * m4/savewd.m4: New file.
53712
53713 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53714
53715         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
53716         (dirchownmod): New arg FD.  All callers changed.
53717         Use FD rather than opening the directory ourself, as opening is
53718         now the caller's responsibility.
53719         * lib/dirchownmod.h: Likewise.
53720         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
53721         hosts that require <sys/types.h> before <sys/stat.h>.  Include
53722         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
53723         (test_dir): Remove.
53724         (mkancesdirs): Return length of prefix of FILE that has already
53725         been made, or -2 if there is a child doing the work.  Redo
53726         algorithm so that it is O(N) rather than O(N**2).  Optimize away
53727         ".", and treat ".." specially since it might stray back into
53728         already-created areas.  Use a subprocess if necessary.  New arg
53729         WD; all users changed.  MAKE_DIR function should now return 1
53730         if it creates a directory that is not readable.  Return -2 if
53731         a child process is spun off.
53732         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53733         Adjust signature to match code.
53734         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53735         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53736         all users changed.
53737         * lib/savewd.c, lib/savewd.h: New files.
53738
53739 2006-09-15  Jim Meyering  <jim@meyering.net>
53740
53741         * modules/rename-dest-slash: New module.
53742         * MODULES.html.sh (posix_compat): Add it here.
53743
53744         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53745
53746 2006-09-15  Jim Meyering  <jim@meyering.net>
53747
53748         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53749         file.
53750
53751         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53752
53753 2006-09-15  Jim Meyering  <jim@meyering.net>
53754
53755         * lib/rename-dest-slash.c (has_trailing_slash): Use
53756         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53757         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53758         test before testing whether SRC is a directory.
53759         Suggestions from Bruno Haible.
53760
53761         Avoid a warning about an unused variable.
53762         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53763         into the #ifdef block where it's used.
53764
53765         * lib/rename-dest-slash.c: New file.
53766
53767 2006-09-14  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/allocsa.c: Include <config.h> unconditionally.
53770         * lib/asnprintf.c: Likewise.
53771         * lib/asprintf.c: Likewise.
53772         * lib/c-strcasecmp.c: Likewise.
53773         * lib/c-strcasestr.c: Likewise.
53774         * lib/c-strncasecmp.c: Likewise.
53775         * lib/c-strstr.c: Likewise.
53776         * lib/classpath.c: Likewise.
53777         * lib/clean-temp.c: Likewise.
53778         * lib/concatpath.c: Likewise.
53779         * lib/copy-file.c: Likewise.
53780         * lib/csharpcomp.c: Likewise.
53781         * lib/csharpexec.c: Likewise.
53782         * lib/execute.c: Likewise.
53783         * lib/fatal-signal.c: Likewise.
53784         * lib/findprog.c: Likewise.
53785         * lib/fwriteerror.c: Likewise.
53786         * lib/gl_array_list.c: Likewise.
53787         * lib/gl_array_oset.c: Likewise.
53788         * lib/gl_avltree_list.c: Likewise.
53789         * lib/gl_avltree_oset.c: Likewise.
53790         * lib/gl_avltreehash_list.c: Likewise.
53791         * lib/gl_carray_list.c: Likewise.
53792         * lib/gl_linked_list.c: Likewise.
53793         * lib/gl_linkedhash_list.c: Likewise.
53794         * lib/gl_list.c: Likewise.
53795         * lib/gl_oset.c: Likewise.
53796         * lib/gl_rbtree_list.c: Likewise.
53797         * lib/gl_rbtree_oset.c: Likewise.
53798         * lib/gl_rbtreehash_list.c: Likewise.
53799         * lib/imaxabs.c: Likewise.
53800         * lib/imaxdiv.c: Likewise.
53801         * lib/javacomp.c: Likewise.
53802         * lib/javaexec.c: Likewise.
53803         * lib/javaversion.c: Likewise.
53804         * lib/linebreak.c: Likewise.
53805         * lib/localcharset.c: Likewise.
53806         * lib/lock.c: Likewise.
53807         * lib/mbchar.c: Likewise.
53808         * lib/mbswidth.c: Likewise.
53809         * lib/mkdtemp.c: Likewise.
53810         * lib/pipe.c: Likewise.
53811         * lib/printf-args.c: Likewise.
53812         * lib/printf-parse.c: Likewise.
53813         * lib/progname.c: Likewise.
53814         * lib/progreloc.c: Likewise.
53815         * lib/readlink.c: Likewise.
53816         * lib/sh-quote.c: Likewise.
53817         * lib/stpcpy.c: Likewise.
53818         * lib/stpncpy.c: Likewise.
53819         * lib/strcasecmp.c: Likewise.
53820         * lib/strcasestr.c: Likewise.
53821         * lib/strcspn.c: Likewise.
53822         * lib/striconv.c: Likewise.
53823         * lib/strncasecmp.c: Likewise.
53824         * lib/strnlen1.c: Likewise.
53825         * lib/strstr.c: Likewise.
53826         * lib/strtok_r.c: Likewise.
53827         * lib/tls.c: Likewise.
53828         * lib/tmpdir.c: Likewise.
53829         * lib/unicodeio.c: Likewise.
53830         * lib/unsetenv.c: Likewise.
53831         * lib/vasnprintf.c: Likewise.
53832         * lib/vasprintf.c: Likewise.
53833         * lib/wait-process.c: Likewise.
53834         * lib/xallocsa.c: Likewise.
53835         * lib/xsetenv.c: Likewise.
53836         * lib/xstriconv.c: Likewise.
53837
53838 2006-09-13  Simon Josefsson  <jas@extundo.com>
53839
53840         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53841         that internally, suggested by Ralf Wildenhues
53842         <Ralf.Wildenhues@gmx.de>.
53843
53844 2006-09-13  Simon Josefsson  <jas@extundo.com>
53845
53846         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53847         @LIBOBJS@.
53848         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53849
53850 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53851
53852         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53853         longer worry about uses that don't define HAVE_CONFIG_H.
53854         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53855         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53856         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53857         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53858         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53859         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53860         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53861         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53862         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53863         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53864         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53865         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53866         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53867         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53868         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53869         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53870         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53871         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53872         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53873         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53874         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53875         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53876         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53877         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53878         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53879         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53880         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53881         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53882         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53883         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53884         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53885         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53886         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53887         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53888         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53889         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53890         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53891         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53892         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53893         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53894         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53895         Likewise.
53896
53897 2006-09-13  Eric Blake  <ebb9@byu.net>
53898
53899         * lib/getopt.c: Fix typo in last commit.
53900
53901 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53902
53903         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53904         dgettext.
53905
53906 2006-09-12  Jim Meyering  <jim@meyering.net>
53907
53908         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53909         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53910         Reported by Nelson H. F. Beebe.
53911
53912 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53913
53914         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53915         program_invocation_name and program_invocation_short_name are
53916         initialized.
53917         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53918         and program_invocation_short_name to argp.h, so they are visible
53919         to user programs.
53920         * lib/argp.h: Likewise
53921
53922 2006-09-10  Bruno Haible  <bruno@clisp.org>
53923
53924         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53925         m4/inttypes_h.m4, m4/uintmax_t.m4.
53926
53927 2006-09-10  Bruno Haible  <bruno@clisp.org>
53928
53929         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53930         gl_AC_TYPE_UINTMAX_T.
53931
53932 2006-09-10  Bruno Haible  <bruno@clisp.org>
53933
53934         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53935
53936 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53937
53938         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53939         convention.  Text proposed by Bruno Haible.
53940         (struct argp_option): Document the use of N_() wrappers.
53941
53942         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53943         '\v', and translate the two parts separately, instead of feeding
53944         the whole string to gettext.  This allows to exclude
53945         '\v' from the strings visible to the translator by writing doc
53946         strings as N_("..") "\v" N_("..").
53947
53948 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53949
53950         * config/srclist.txt: Undo latest change; the bug was fixed.
53951
53952 2006-09-09  Bruno Haible  <bruno@clisp.org>
53953
53954         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53955         assignments if building a library without libtool.
53956         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53957         in func_emit_lib_Makefile_am.
53958         (func_import): When building a static library libfoo.a, arrange to
53959         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53960         (func_create_testdir): Likewise.
53961         * modules/gc (configure.ac, Makefile.am): If building statically,
53962         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53963         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53964         * modules/striconv (configure.ac, Makefile.am): Likewise.
53965         Based on a suggestion by Ralf Wildenhues.
53966
53967 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53968
53969         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53970         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53971         Also:
53972
53973         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53974         Add year_2050_test to catch glibc bug 2821
53975         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53976
53977         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53978         Prefer #ifdef to #if.
53979
53980         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53981         Return from 'main' instead of calling 'exit'.
53982
53983 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53986         returned the maximum time_t value rather than (time_t) -1.
53987         Problem originally reported by William Bardwell
53988         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53989
53990         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53991         Moved to here ...
53992         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53993         ... from here.
53994
53995 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53996
53997         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53998         2821 is fixed.
53999
54000 2006-09-08  Jim Meyering  <jim@meyering.net>
54001
54002         Don't make generated files read-only.  That would bother too many
54003         people.  However, do retain the ability to work when targets are
54004         read-only: remove the destination and temporary files before writing
54005         them (when generated via sed or echo), or by using the -f option for
54006         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
54007         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54008         * modules/byteswap, modules/configmake, modules/fcntl:
54009         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54010         * modules/localcharset, modules/netinet_in, modules/poll:
54011         * modules/stdbool, modules/stdint, modules/sys_select:
54012         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54013
54014 2006-09-08  Jim Meyering  <jim@meyering.net>
54015
54016         Avoid new build failure on FreeBSD 6.0.
54017         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
54018         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
54019         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
54020
54021 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54022
54023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
54024
54025 2006-09-07  Jim Meyering  <jim@meyering.net>
54026
54027         Fix global typo in last change: use chmod u-w, not chmod u-x.
54028         Spotted by Paul Eggert and Bruce Korb.
54029         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54030         * modules/byteswap, modules/configmake, modules/fcntl:
54031         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54032         * modules/localcharset, modules/netinet_in, modules/poll:
54033         * modules/stdbool, modules/stdint, modules/sys_select:
54034         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54035
54036 2006-09-06  Jim Meyering  <jim@meyering.net>
54037
54038         Make generated files be read-only.
54039         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
54040         Ensure that each generated file is now read-only.
54041         * modules/argz: Likewise.
54042         * modules/arpa_inet: Likewise.
54043         * modules/byteswap: Likewise.
54044         * modules/configmake: Likewise.
54045         * modules/fcntl: Likewise.
54046         * modules/fnmatch: Likewise.
54047         * modules/getopt: Likewise.
54048         * modules/glob: Likewise.
54049         * modules/inttypes: Likewise.
54050         * modules/netinet_in: Likewise.
54051         * modules/poll: Likewise.
54052         * modules/stdbool: Likewise.
54053         * modules/stdint: Likewise.
54054         * modules/sys_select: Likewise.
54055         * modules/sys_socket: Likewise.
54056         * modules/sys_stat: Likewise.
54057         * modules/sysexits: Likewise.
54058         * modules/localcharset: Same as above, but continue using temporary
54059         file named "t-$@" (why different?) rather than the "$@-t" used
54060         everywhere else.
54061
54062         * modules/sysexits (Makefile.am): Replace literal occurrences
54063         of "sysexit.h" more readable, and more consistent, "$@".
54064
54065 2006-09-06  Bruno Haible  <bruno@clisp.org>
54066
54067         * modules/striconv: New file.
54068         * modules/xstriconv: New file.
54069         * MODULES.html.sh (Internationalization functions): Add striconv,
54070         xstriconv.
54071
54072 2006-09-06  Bruno Haible  <bruno@clisp.org>
54073
54074         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
54075         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
54076         not using libtool correctly.
54077
54078 2006-09-06  Bruno Haible  <bruno@clisp.org>
54079
54080         * lib/striconv.h: New file.
54081         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
54082         iconvstring.c.
54083         * lib/xstriconv.h: New file.
54084         * lib/xstriconv.c: New file.
54085
54086 2006-09-06  Bruno Haible  <bruno@clisp.org>
54087
54088         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54089         lib_..._LDFLAGS.
54090
54091 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54092
54093         * lib/argz_.h: Sync from Libtool.
54094
54095         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
54096                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54097
54098         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
54099
54100 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54101
54102         * modules/trim: New file.
54103
54104 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54105
54106         * lib/trim.h: New file.
54107         * lib/trim.c: New file.
54108
54109 2006-09-05  Bruno Haible  <bruno@clisp.org>
54110
54111         * MODULES.html.sh (String handling): Add trim.
54112
54113 2006-09-04  Karl Berry  <karl@gnu.org>
54114
54115         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
54116         until next release.
54117
54118 2006-09-03  Bruno Haible  <bruno@clisp.org>
54119
54120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
54121         correctly.
54122
54123 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54124
54125         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
54126         not gl_GETLOADAVG.  Omit unneeded semicolons.
54127         Problems reported by Ralf Wildenhues in
54128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54129         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
54130         at the end, which is the usual gnulib style.
54131
54132         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
54133         of doing all the work ourselves.
54134         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
54135         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
54136
54137 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
54140         Problem reported by Ralf Wildenhues in
54141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54142
54143         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
54144         HAVE_STRUCT_STATFS_F_FSTYPENAME.
54145
54146 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54147
54148         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
54149         yesterday's patch by changing test -n to test -z.
54150
54151 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54152
54153         * modules/getloadavg (Files): Add m4/getloadavg.m4.
54154         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
54155         the former is now obsolescent.
54156
54157         * modules/chdir-long (Depends-on): Add fcntl.
54158
54159 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
54162         obsolescent, and programs should use gnulib instead.
54163         * m4/getloadavg.m4: New file, with contents taken from Autoconf
54164         but with prefixes changed.
54165
54166 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54167
54168         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
54169         or stdbool.h, because they might not exist while configuring.
54170
54171         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
54172         Don't include unistd.h or limits.h; not needed, since chdir-long.h
54173         does that for us.
54174         (O_DIRECTORY): Remove.
54175
54176 2006-08-31  Eric Blake  <ebb9@byu.net>
54177
54178         * gnulib-tool: Don't let emacs change spaces to TAB.
54179
54180 2006-08-31  Bruno Haible  <bruno@clisp.org>
54181
54182         * gnulib-tool: When calling func_import more than once, do it in a
54183         subshell.
54184         Reported by Eric Blake <ebb9@byu.net>.
54185
54186 2006-08-31  Bruno Haible  <bruno@clisp.org>
54187
54188         * gnulib-tool (nl): Remove variable.
54189         (sed_transform_lib_file): Use more robust test for config-h module.
54190         (func_import): Fix typo in 2006-08-25 patch.
54191
54192 2006-08-31  Bruno Haible  <bruno@clisp.org>
54193
54194         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
54195         specified, augment Makefile.am variables instead of assigning them.
54196
54197 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54198
54199         Work around a bug in both the Linux and SunOS 64-bit kernels:
54200         nanosleep mishandles sleeps for longer than 2**31 seconds.
54201         Problem reported by Frank v Waveren in
54202         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
54204         Check for nanosleep bug.
54205         (LIB_NANOSLEEP): Append clock_gettime library if needed.
54206
54207 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54208
54209         Work around a bug in both the Linux and SunOS 64-bit kernels:
54210         nanosleep mishandles sleeps for longer than 2**31 seconds.
54211         Problem reported by Frank v Waveren in
54212         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54213         * lib/nanosleep.c (BILLION): New constant.
54214         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
54215         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
54216         implementation.
54217
54218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         * modules/nanosleep (Depends-on): Add gettime.
54221
54222 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54223         and Simon Josefsson  <jas@extundo.com>
54224         and Oskar Liljeblad  <oskar@osk.mine.nu>
54225
54226         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
54227         * gnulib-tool (func_import): New license type 'unmodifiable license
54228         text'.
54229         * modules/fdl: Use it.  Longer description.
54230         * module/gpl, module/lgpl: New files.
54231
54232 2006-08-30  Jim Meyering  <jim@meyering.net>
54233
54234         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
54235         shadowing the parameter.
54236
54237 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54238
54239         Sync from Libtool:
54240
54241         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54242
54243         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
54244         sharing with gnulib.  Report by Eric Blake.
54245
54246 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * modules/isapipe: New file.
54249         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
54250
54251 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * modules/configmake (Makefile.am): Add a comment, and omit
54254         the CONFIGMAKE_ prefix from generated macro names.  Suggested
54255         by Bruno Haible.
54256
54257 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * m4/isapipe.m4: New file.
54260
54261 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * lib/isapipe.c, lib/isapipe.h: New files.
54264
54265 2006-08-29  Jim Meyering  <jim@meyering.net>
54266
54267         * modules/configmake (Makefile.am): Make configmake.h depend on
54268         Makefile.  Otherwise, a stale configmake.h could hang around.
54269
54270 2006-08-29  Eric Blake  <ebb9@byu.net>
54271
54272         * lib/error.c (error_at_line, print_errno_message): Match libc, after
54273         resolution of upstream bug 3044.
54274
54275 2006-08-29  Bruno Haible  <bruno@clisp.org>
54276
54277         * modules/localcharset (Depends-on): Add configmake.
54278         (Makefile.am): Remove setting of LIBDIR through DEFS.
54279
54280 2006-08-29  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
54283         defined.
54284
54285 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54286
54287         * modules/fcntl: New file.
54288         * modules/chdir-safer (Depends-on): Add fcntl.
54289         * modules/fts: Likewise.
54290         * modules/mkdir-p: Likewise.
54291
54292         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
54293         This undoes the most recent change, since we're now addressing the
54294         problem in a different way.
54295
54296         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
54297         into output, since the output might be called Makefile.am even
54298         if $makefile_name is something different.
54299         (func_import): Use $makefile_am rather than
54300         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
54301         empty.
54302
54303         * modules/inttypes (Files): Add m4/inttypes-h.m4.
54304
54305 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54306
54307         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
54308         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
54309         recent change to stdint.m4, since we're now addressing the problem in a
54310         different way.
54311
54312 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * m4/fcntl_h.m4: New file.
54315
54316 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54317
54318         * lib/fcntl_.h: New file.
54319         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
54320         the fcntl module.
54321         * lib/dirchownmod.c: Likewise.
54322         * lib/fts.c: Likewise.
54323
54324         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
54325         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
54326         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
54327         just before including <inttypes.h>, to avoid circular inclusion.
54328
54329 2006-08-28  Jim Meyering  <jim@meyering.net>
54330
54331         * doc/visibility.texi: Actually read and correct the grammar of the
54332         sentence affected by yesterday's change.
54333
54334 2006-08-28  Eric Blake  <ebb9@byu.net>
54335
54336         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
54337         needs wrapper.
54338
54339 2006-08-28  Eric Blake  <ebb9@byu.net>
54340
54341         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
54342
54343 2006-08-28  Eric Blake  <ebb9@byu.net>
54344
54345         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
54346
54347 2006-08-28  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/c-strstr: New file, from GNU gettext.
54350         * MODULES.html.sh (String handling): Add c-strstr.
54351
54352 2006-08-28  Bruno Haible  <bruno@clisp.org>
54353
54354         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
54355         macros.
54356         Reported by Eric Blake.
54357
54358 2006-08-28  Bruno Haible  <bruno@clisp.org>
54359
54360         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
54361         (VASNPRINTF): Return a string of length > INT_MAX without failing.
54362         * lib/vasprintf.c: Include errno.h, limits.h.
54363         (EOVERFLOW): New fallback definition.
54364         (vasprintf): Test here whether the string length is > INT_MAX.
54365         * lib/vsnprintf.c: Include errno.h, limits.h.
54366         (EOVERFLOW): New fallback definition.
54367         (vsnprintf): Fix bug when generated string was too long for the buffer.
54368         Test here whether the string length is > INT_MAX.
54369
54370 2006-08-28  Bruno Haible  <bruno@clisp.org>
54371
54372         * lib/inttypes_.h (SCNX*): Remove definitions.
54373         Reported by Eric Blake.
54374
54375 2006-08-28  Bruno Haible  <bruno@clisp.org>
54376
54377         * lib/c-strstr.h: New file, from GNU gettext.
54378         * lib/c-strstr.c: New file, from GNU gettext.
54379
54380 2006-08-28  Bruno Haible  <bruno@clisp.org>
54381
54382         * gnulib-tool: Reorder some statements.
54383
54384 2006-08-28  Bruno Haible  <bruno@clisp.org>
54385
54386         * gnulib-tool: New option --makefile-name.
54387         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
54388         $makefile_name.
54389         (func_import): Write $makefile_name to the cache file, and read it from
54390         there unless explicitly specified. Use $makefile_name as file name
54391         instead of Makefile.am. Adjust the recommendations accordingly.
54392
54393 2006-08-28  Bruno Haible  <bruno@clisp.org>
54394
54395         * gnulib-tool (func_verify_module): Check against misapplying patch.
54396
54397 2006-08-28  Bruno Haible  <bruno@clisp.org>
54398
54399         * gnulib-tool (func_relativize, func_relconcat): New functions.
54400         Give an error if --local-dir is given with --update.
54401         Remove trailing slashes from $local_gnulib_dir.
54402         (func_import): Store the relativized $local_gnulib_dir in
54403         gnulib-cache.m4, and read it from there if not specified explicitly.
54404
54405 2006-08-28  Bruno Haible  <bruno@clisp.org>
54406
54407         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
54408         is the current directory. Respect also $local_gnulib_dir.
54409
54410 2006-08-28  Bruno Haible  <bruno@clisp.org>
54411             Simon Josefsson  <jas@extundo.com>
54412
54413         BeOS portability.
54414         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
54415
54416 2006-08-27  Jim Meyering  <jim@meyering.net>
54417
54418         * doc/visibility.texi: Remove duplicate word: "pointer".
54419
54420 2006-08-26  Bruno Haible  <bruno@clisp.org>
54421
54422         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
54423         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
54424         (Makefile.am): Create inttypes.h from inttypes_.h.
54425         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
54426
54427         * modules/imaxabs: New file.
54428
54429         * modules/imaxdiv: New file.
54430
54431 2006-08-26  Bruno Haible  <bruno@clisp.org>
54432
54433         * m4/inttypes.m4: New file.
54434         * m4/_inttypes_h.m4: Remove file.
54435         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
54436         PRI_MACROS_BROKEN.
54437         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
54438
54439         * m4/imaxabs.m4: New file.
54440
54441         * m4/imaxdiv.m4: New file.
54442
54443 2006-08-26  Bruno Haible  <bruno@clisp.org>
54444
54445         * lib/inttypes_.h: New file.
54446         * lib/inttypes.h: Remove file.
54447         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
54448
54449         * lib/imaxabs.c: New file.
54450
54451         * lib/imaxdiv.c: New file.
54452
54453 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54454
54455         New config-h module, so that "make" output needn't be cluttered
54456         by -DHAVE_CONFIG_H.
54457         * MODULES.html.sh (Support for building libraries and executables):
54458         Add config-h.
54459         * modules/config-h: New file.
54460         * gnulib-tool (nl, sed_transform_lib_file): New vars.
54461         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
54462         the config-h module is used.
54463
54464         New configmake module, so that "make" output needn't be cluttered
54465         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
54466         * MODULES.html.sh (Support for building libraries and executables):
54467         Add configmake.
54468         * modules/configmake: New file.
54469
54470 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54471
54472         * m4/config-h.m4: New file.
54473
54474 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54475
54476         * config/srclist.txt: Add elisp-comp.
54477
54478 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * MODULES.html.sh (Support for building libraries and executables):
54481         Add elisp-comp.
54482         * build-aux/elisp-comp: New file.
54483         * modules/elisp-comp: New file.
54484
54485 2006-08-24  Bruno Haible  <bruno@clisp.org>
54486
54487         * gnulib-tool (func_create_testdir): Use non-default values of
54488         sourcebase and m4base.
54489
54490 2006-08-24  Bruno Haible  <bruno@clisp.org>
54491
54492         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
54493         HTML structure.
54494
54495 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54496
54497         * modules/openat (Depends-on): Add lchown.
54498
54499 2006-08-23  Bruno Haible  <bruno@clisp.org>
54500
54501         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
54502         of gl_LOCK_EARLY instead of gl_LOCK.
54503
54504 2006-08-23  Bruno Haible  <bruno@clisp.org>
54505
54506         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
54507         on OSF/1 to no.
54508         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
54509
54510 2006-08-23  Bruno Haible  <bruno@clisp.org>
54511
54512         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
54513         as unusable.
54514
54515         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
54516         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
54517         (gl_LOCK): New macro.
54518
54519 2006-08-22  Simon Josefsson  <jas@extundo.com>
54520
54521         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
54522         to md5 module.
54523
54524 2006-08-22  Simon Josefsson  <jas@extundo.com>
54525
54526         * MODULES.html.sh: Add "Support for maintaining and release
54527         projects".
54528
54529         * build-aux/gnupload: New file, from coreutils.
54530
54531 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54532
54533         Avoid the need for AC_LIBSOURCES in m4 macros.
54534         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
54535         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
54536         * modules/check-version (EXTRA_DIST): Add check-version.h.
54537         * modules/crc (EXTRA_DIST): Add crc.h.
54538         * modules/des (EXTRA_DIST): Add des.h.
54539         * modules/gc (EXTRA_DIST): Add gc.h.
54540         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
54541         * modules/getline (EXTRA_DIST): Add getline.h.
54542         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
54543         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
54544         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
54545         * modules/md2 (EXTRA_DIST): Add md2.h.
54546         * modules/md4 (EXTRA_DIST): Add md4.h.
54547         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
54548         * modules/read-file (EXTRA_DIST): Add read-file.h.
54549         * modules/readline (EXTRA_DIST): Add readline.h.
54550         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
54551         rijndael-api-fst.h.
54552
54553 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         * m4/rijndael.m4 (gl_ARCFOUR):
54556         * m4/arctwo.m4 (gl_ARCTWO):
54557         * m4/check-version.m4 (gl_CHECK_VERSION):
54558         * m4/crc.m4 (gl_CRC):
54559         * m4/des.m4 (gl_DES):
54560         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
54561         * m4/gc.m4 (gl_GC):
54562         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
54563         * m4/getline.m4 (gl_FUNC_GETLINE):
54564         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
54565         * m4/hmac-md5.m4 (gl_HMAC_MD5):
54566         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
54567         * m4/md2.m4 (gl_MD2):
54568         * m4/md4.m4 (gl_MD4):
54569         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
54570         * m4/read-file.m4 (gl_FUNC_READ_FILE):
54571         * m4/readline.m4 (gl_FUNC_READLINE):
54572         * m4/rijndael.m4 (gl_RIJNDAEL):
54573         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54574         to get the necessary .h files and whatnot.
54575
54576 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54579         gnulib rather than the other way around.
54580         * config/srclistvars.sh (COREUTILS): Remove.
54581
54582 2006-08-22  Jim Meyering  <jim@meyering.net>
54583
54584         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54585
54586         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54587
54588 2006-08-22  Eric Blake  <ebb9@byu.net>
54589
54590         * modules/regexprops-generic: New file.
54591         * MODULES.html.sh (Support for building documentation): List it.
54592
54593 2006-08-22  Eric Blake  <ebb9@byu.net>
54594
54595         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54596         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54597         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54598         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54599
54600 2006-08-22  Bruno Haible  <bruno@clisp.org>
54601
54602         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54603         and lib_LTLIBRARIES like the other lib_* variables.
54604
54605 2006-08-22  Bruno Haible  <bruno@clisp.org>
54606
54607         * build-aux/x-to-1.in: New file, from GNU gettext.
54608
54609 2006-08-22  Bruno Haible  <bruno@clisp.org>
54610
54611         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
54612         <utmpx.h> exists.
54613
54614 2006-08-22  Bruno Haible  <bruno@clisp.org>
54615
54616         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
54617         <utmpx.h> exists.
54618
54619 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         BeOS portability.
54622         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
54623         exist.
54624         Problem reported by Bruno Haible.
54625
54626 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         Avoid the need for AC_LIBSOURCES in m4 macros.
54629         * modules/acl (EXTRA_DIST): Add acl.h.
54630         * modules/argmatch (Files): Add m4/argmatch.m4.
54631         (configure.ac): Add gl_ARGMATCH.
54632         (EXTRA_DIST): Renamed from lib_SOURCES, for
54633         consistency with the other modules.  Remove argmatch.c.
54634         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
54635         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
54636         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
54637         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
54638         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
54639         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
54640         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
54641         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
54642         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
54643         * modules/closeout (EXTRA_DIST): Add closeout.h.
54644         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
54645         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
54646         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
54647         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
54648         dirname.h; remove basename.c and stripslash.c.
54649         * modules/exclude (EXTRA_DIST): Add exclude.h.
54650         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
54651         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
54652         * modules/file-type (EXTRA_DIST): Add file-type.h.
54653         * modules/filemode (EXTRA_DIST): Add filemode.h.
54654         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
54655         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54656         * modules/fpending (EXTRA_DIST): Add __fpending.h.
54657         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
54658         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
54659         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
54660         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
54661         * modules/getdate (EXTRA_DIST): Add getdate.c.
54662         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
54663         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
54664         * modules/getpass (EXTRA_DIST): Add getpass.h.
54665         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
54666         * modules/group-member (EXTRA_DIST): Add group-member.h.
54667         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
54668         * modules/hash (EXTRA_DIST): Add hash.h.
54669         * modules/human (EXTRA_DIST): Add human.h.
54670         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
54671         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
54672         * modules/lchown (EXTRA_DIST): Add lchown.h.
54673         * modules/long-options (EXTRA_DIST): Add long-options.h.
54674         * modules/lstat (EXTRA_DIST): Add lstat.h.
54675         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
54676         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
54677         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
54678         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
54679         * modules/memxor (EXTRA_DIST): Add memxor.h.
54680         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
54681         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
54682         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
54683         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
54684         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
54685         * modules/physmem (EXTRA_DIST): Add physmem.h.
54686         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
54687         * modules/posixver (EXTRA_DIST): Add posixver.h.
54688         * modules/quote (EXTRA_DIST): Add quote.h.
54689         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
54690         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
54691         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
54692         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
54693         regex_internal.h regexec.c.
54694         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
54695         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
54696         * modules/same (EXTRA_DIST): Add same.h.
54697         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
54698         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
54699         * modules/savedir (EXTRA_DIST): Add savedir.h.
54700         * modules/sha1 (EXTRA_DIST): Add sha1.h.
54701         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
54702         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
54703         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
54704         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
54705         * modules/strdup (EXTRA_DIST): Add strdup.h.
54706         * modules/strftime (EXTRA_DIST): Add strftime.h.
54707         * modules/strndup (EXTRA_DIST): Add strndup.h.
54708         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
54709         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
54710         * modules/time_r (EXTRA_DIST): Add time_r.h.
54711         * modules/timespec (EXTRA_DIST): Add timespec.h.
54712         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54713         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
54714         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
54715         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
54716         * modules/userspec (EXTRA_DIST): Add userspec.h.
54717         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
54718         * modules/utimens (EXTRA_DIST): Add utimens.h.
54719         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
54720         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
54721         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
54722         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
54723         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
54724         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
54725         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
54726         * modules/yesno (EXTRA_DIST): Add yesno.h.
54727
54728 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54729
54730         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54731
54732         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54733         * m4/dev-ino.m4, same-inode.m4: Remove.
54734
54735         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54736         * m4/acl.m4 (AC_FUNC_ACL):
54737         * m4/backupfile.m4 (gl_BACKUPFILE):
54738         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54739         * m4/canon-host.m4 (gl_CANON_HOST):
54740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54742         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54743         * m4/cloexec.m4 (gl_CLOEXEC):
54744         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54745         * m4/closeout.m4 (gl_CLOSEOUT):
54746         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54747         * m4/dirname.m4 (gl_DIRNAME):
54748         * m4/exclude.m4 (gl_EXCLUDE):
54749         * m4/exitfail.m4 (gl_EXITFAIL):
54750         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54751         * m4/file-type.m4 (gl_FILE_TYPE):
54752         * m4/filemode.m4 (gl_FILEMODE):
54753         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54754         * m4/fpending.m4 (gl_FUNC_FPENDING):
54755         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54756         * m4/fts.m4 (gl_FUNC_FTS):
54757         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54758         * m4/getdate.m4 (gl_GETDATE):
54759         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54760         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54761         * m4/getpass.m4 (gl_FUNC_GETPASS):
54762         * m4/gettime.m4 (gl_GETTIME):
54763         * m4/getugroups.m4 (gl_GETUGROUPS):
54764         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54765         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54766         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54767         * m4/hash.m4 (gl_HASH):
54768         * m4/idcache.m4 (gl_IDCACHE):
54769         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54770         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54771         * m4/long-options.m4 (gl_LONG_OPTIONS):
54772         * m4/lstat.m4 (gl_FUNC_LSTAT):
54773         * m4/md5.m4 (gl_MD5):
54774         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54775         * m4/memcoll.m4 (gl_MEMCOLL):
54776         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54777         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54778         * m4/memxor.m4 (gl_MEMXOR):
54779         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54780         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54781         * m4/modechange.m4 (gl_MODECHANGE):
54782         * m4/mountlist.m4 (gl_MOUNTLIST):
54783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54784         * m4/openat.m4 (gl_FUNC_OPENAT):
54785         * m4/pathmax.m4 (gl_PATHMAX):
54786         * m4/physmem.m4 (gl_PHYSMEM):
54787         * m4/posixtm.m4 (gl_POSIXTM):
54788         * m4/posixver.m4 (gl_POSIXVER):
54789         * m4/quote.m4 (gl_QUOTE):
54790         * m4/quotearg.m4 (gl_QUOTEARG):
54791         * m4/readtokens.m4 (gl_READTOKENS):
54792         * m4/readutmp.m4 (gl_READUTMP):
54793         * m4/regex.m4 (gl_REGEX):
54794         * m4/safe-read.m4 (gl_SAFE_READ):
54795         * m4/safe-write.m4 (gl_SAFE_WRITE):
54796         * m4/same.m4 (gl_SAME):
54797         * m4/save-cwd.m4 (gl_SAVE_CWD):
54798         * m4/savedir.m4 (gl_SAVEDIR):
54799         * m4/settime.m4 (gl_SETTIME):
54800         * m4/sha1.m4 (gl_SHA1):
54801         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54802         * m4/stat-macros.m4 (gl_STAT_MACROS):
54803         * m4/stat-time.m4 (gl_STAT_TIME):
54804         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54805         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54806         * m4/strdup.m4 (gl_FUNC_STRDUP):
54807         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54808         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54809         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54810         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54811         * m4/time_r.m4 (gl_TIME_R):
54812         * m4/timespec.m4 (gl_TIMESPEC):
54813         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54814         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54815         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54816         * m4/userspec.m4 (gl_USERSPEC):
54817         * m4/utimecmp.m4 (gl_UTIMECMP):
54818         * m4/utimens.m4 (gl_UTIMENS):
54819         * m4/xalloc.m4 (gl_XALLOC):
54820         * m4/xgetcwd.m4 (gl_XGETCWD):
54821         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54822         * m4/xreadlink.m4 (gl_XREADLINK):
54823         * m4/xstrtod.m4 (gl_XSTRTOD):
54824         * m4/yesno.m4 (gl_YESNO):
54825         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54826         to get the necessary .h files and whatnot.
54827
54828 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54829             Bruno Haible  <bruno@clisp.org>
54830
54831         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54832         /bin/sh understanding of '!' conditional negation.
54833
54834 2006-08-21  Jim Meyering  <jim@meyering.net>
54835
54836         * modules/openat (Depends-on): Really alphabetize.
54837
54838         * modules/acl (Depends-on): Add error and quote.
54839
54840         * check-module (find_included_lib_files): Add at-func.c to the
54841         ok-to-include-more-than-once white list.
54842
54843         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54844
54845 2006-08-21  Bruno Haible  <bruno@clisp.org>
54846
54847         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54848         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54849         Reported by Martin Lambers <marlam@marlam.de>.
54850
54851 2006-08-21  Bruno Haible  <bruno@clisp.org>
54852
54853         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54854         specify an installation location, don't emit a noinst_LIBRARIES or
54855         noinst_LTLIBRARIES assignment.
54856
54857 2006-08-21  Bruno Haible  <bruno@clisp.org>
54858
54859         BeOS portability.
54860         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54861         BeOS has mbrtowc() but no <wctype.h>.
54862
54863 2006-08-21  Bruno Haible  <bruno@clisp.org>
54864
54865         BeOS portability.
54866         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54867         exist.
54868
54869 2006-08-21  Bruno Haible  <bruno@clisp.org>
54870
54871         BeOS portability.
54872         * lib/mbchar.h: Include <wctype.h> only if it exists.
54873
54874 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54875
54876         Remove files that are no longer needed by their respective modules.
54877         * m4/obstack.m4: Remove.
54878         * m4/strerror_r.m4: Remove.
54879         * m4/uint32_t.m4: Remove.
54880         * m4/uintptr_t.m4: Remove.
54881         * m4/ullong_max.m4: Remove.
54882         * m4/xstrtoimax.m4: Remove.
54883         * m4/xstrtoumax.m4: Remove.
54884
54885         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54886         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54887         dependencies now capture this.
54888
54889         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54890         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54891         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54892         * m4/human.m4 (gl_HUMAN): Likewise.
54893         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54894         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54895
54896         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54897
54898         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54899         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54900         stdint.
54901         * m4/human.m4 (gl_HUMAN): Likewise.
54902         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54903         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54904         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54905         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54906         * m4/xstrtol (gl_XSTRTOL): Likewise.
54907
54908         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54909         AC_TYPE_LONG_LONG_INT.
54910         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54911         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54912         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54913         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54914
54915         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54916         on stdbool.
54917
54918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54919         (gl_PREREQ_XSTRTOUL): Remove.
54920
54921         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54922
54923         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54924         mode.
54925
54926 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54927
54928         Add and change modules to make it easier for coreutils to use
54929         gnulib-tool.
54930         * modules/backupfile (Files): Remove m4/d-ino.m4.
54931         (Depends-on): Add d-ino.
54932         * modules/cycle-check (Depends-on): Add stdint.
54933         (lib_SOURCES): Add cycle-check.h.
54934         * modules/d-ino: New module.
54935         * modules/d-type: New module.
54936         * modules/error (Files): Remove m4/strerror_r.m4.
54937         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54938         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54939         m4/inttypes_h.m4, m4/uintmax_t.m4.
54940         (Depends-on): Add stdint.
54941         (lib_SOURCES): Add fsusage.h.
54942         * modules/getcwd (Files): Remove d-ino.m4.
54943         (Depends-on): Add d-ino.
54944         * modules/getndelim2 (Depends-on): Add stdint.
54945         * modules/glob (Files): Remove m4/d-type.m4.
54946         (Depends-on): Add d-type.
54947         * modules/host-os: New module.
54948         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54949         m4/inttypes_h.m4, m4/uintmax_t.m4.
54950         * Depends-on: Add stdint.
54951         (lib_SOURCES): Add human.h.
54952         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54953         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54954         m4/uintmax_t.m4, m4/ulonglong.m4.
54955         (Depends-on): Add stdint.
54956         (EXTRA_DIST): Add inttostr.h.
54957         * modules/lchmod: New module.
54958         * modules/link-follow: New module.
54959         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54960         (Depends-on): Add lchmod.
54961         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54962         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54963         (Depends-on): Add stdint.
54964         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54965         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54966         (Depends-on): Add stdint.
54967         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54968         * modules/perl: New module.
54969         * modules/regex (Depends-on): Add stdint.
54970         * modules/rmdir-errno: New module.
54971         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54972         m4/intmax_t.m4.
54973         (Depends-on): Add stdint.
54974         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54975         m4/uintmax_t.m4.
54976         (Depends-on): Add stdint.
54977         * modules/unlink-busy: New module.
54978         * modules/utimecmp (Depends-on): Add stdint.
54979         * modules/uptime: New module.
54980         * modules/winsz-ioctl: New module.
54981         * modules/winsz-termios: New module.
54982         * modules/xnanosleep (Depends-on): Add nanosleep.
54983         * modules/ullong_max: Remove.
54984         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54985         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54986         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54987         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54988         (Depends-on): Add inttypes.
54989         (lib_SOURCES): Add xstrtol.h.
54990         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54991         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54992         * MODULES.html.sh: Move 'assert' into the assert section.
54993         Move 'dummy' into the linking section.
54994         Remove ullong_max.
54995         Add section for compatibility checks for POSIX:2001 functions,
54996         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54997         winsz-ioctl, and winsz-termios into it.
54998         Add lchmod.
54999         Add top-level Misc section and put host-os, perl, and uptime
55000         into it.
55001
55002 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55003
55004         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
55005         now assume the stdint module.  Do not include inttypes.h.
55006         * lib/fsusage.h: Likewise.
55007         * lib/getndelim2.c: Likewise.
55008         * lib/human.h: Likewise.
55009         * lib/inttostr.h: Likewise.
55010         * lib/obstack.c: Likewise.
55011         * lib/regex_internal.h: Likewise.
55012         * lib/tempname.c: Likewise.
55013         * lib/utimecmp.c: Likewise.
55014         * lib/xstrtol.h: Likewise.
55015
55016         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
55017
55018         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
55019         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
55020         * lib/xtime.h: Likewise.
55021
55022 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55023
55024         * modules/openat (Files): Add lib/fchmodat.c.
55025         Fixes problem reported by Jay Youngman.
55026
55027 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
55030         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
55031
55032 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
55033             Bruno Haible  <bruno@clisp.org>
55034
55035         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
55036         and is a script that invokes bison. Tighten the code. Add comments.
55037
55038 2006-08-18  Jim Meyering  <jim@meyering.net>
55039
55040         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
55041         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
55042         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
55043         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
55044
55045 2006-08-18  Bruno Haible  <bruno@clisp.org>
55046
55047         * modules/bison-i18n: New file.
55048         * MODULES.html.sh (Internationalization functions): Add it.
55049
55050 2006-08-18  Bruno Haible  <bruno@clisp.org>
55051
55052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
55053         sys/statvfs.h. When getmntinfo was found, check its declaration and
55054         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
55055
55056 2006-08-18  Bruno Haible  <bruno@clisp.org>
55057
55058         * m4/bison-i18n.m4: New file, from bison.
55059
55060 2006-08-18  Bruno Haible  <bruno@clisp.org>
55061
55062         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
55063         (ME_DUMMY): Treat "kernfs" as a dummy.
55064         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
55065
55066 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55067
55068         Update from coreutils.
55069
55070         2006-08-15  Jim Meyering  <jim@meyering.net>
55071
55072         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
55073
55074         2006-01-17  Jim Meyering  <jim@meyering.net>
55075
55076         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
55077
55078         2006-01-11  Jim Meyering  <jim@meyering.net>
55079
55080         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
55081         Check for the lchmod function.
55082
55083 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55084
55085         Update from coreutils.
55086
55087         * lib/__fpending.h: Add copyright notice.
55088         * lib/fprintftime.h: Likewise.
55089         * lib/savedir.c: Use (C) in copyright notice.
55090         * lib/savedir.h: Likewise.
55091
55092         2006-08-15  Jim Meyering  <jim@meyering.net>
55093
55094         * lib/at-func.c: New file, with the logic of all emulated at-functions.
55095         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
55096         in support of the EXPECTED_ERRNO macro.
55097         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
55098         definitions.  Instead, define the appropriate symbols and include
55099         "at-func.c".
55100         * lib/mkdirat.c (mkdirat): Likewise.
55101         * lib/fchmodat.c (fchmodat): Likewise.
55102         (ENOSYS): Remove definition.
55103         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
55104         it.  Don't include "unistd--.h" -- it wasn't ever used.
55105
55106         2006-01-17  Jim Meyering  <jim@meyering.net>
55107
55108         Rewrite fts.c not to change the current working directory,
55109         by using openat, fstatat, fdopendir, etc..
55110
55111         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
55112         (HAVE_OPENAT_SUPPORT): Define.
55113         [_LIBC] (fchdir): Don't undef or define; no longer used.
55114         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
55115         Now, this `function' always succeeds, and consumes its file descriptor
55116         parameter -- so callers must not close such FDs.  Update callers.
55117         (diropen_fd, opendirat, cwd_advance_fd): New functions.
55118         (diropen): Add parameter, SP.  Adjust all callers.
55119         Implement using diropen_fd, rather than open.
55120         (fts_open): Initialize new member, fts_cwd_fd.
55121         Remove fts_rft-setting code.
55122         (fts_close): Close fts_cwd_fd, if necessary.
55123         (__opendir2): Define in terms of opendir or opendirat,
55124         depending on whether the FST_NOCHDIR flag is set.
55125         (fts_build): Since fts_safe_changedir consumes its FD, and since
55126         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
55127         and close the dup'd file descriptor upon failure.
55128         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
55129         (fts_safe_changedir): Tweak semantics to reflect that this function
55130         now calls cwd_advance_fd and hence consumes its FD argument.
55131         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
55132         [struct FTS] (fts_rft): Remove now-unused member.
55133         [struct FTS] (fts_cycle.state): Improve comment.
55134
55135         * lib/openat.c (openat_needs_fchdir): New function.
55136         * lib/openat.h (openat_needs_fchdir): Declare it.
55137
55138 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
55141         Problem and fix reported by Pádraig Brady in
55142         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
55143
55144 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
55147
55148 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * lib/memcoll.c (memcoll): Optimize for the common case where the
55151         arguments are bytewise equal.
55152
55153 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55154
55155         * doc/regexprops-generic.texi: Add a copyright notice.
55156
55157 2006-08-15  Bruno Haible  <bruno@clisp.org>
55158
55159         * modules/tmpdir (License): Change to LGPL.
55160
55161 2006-08-15  Bruno Haible  <bruno@clisp.org>
55162
55163         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
55164         module.
55165
55166 2006-08-14  Simon Josefsson  <jas@extundo.com>
55167
55168         * config/srclist.txt: Add gnupload.
55169
55170 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55171
55172         Change copyright notice from LGPL 2 to GPL 2, since that's the
55173         standard form used in the gnulib repository.
55174         * tests/test-lock.c: Likewise.
55175         * tests/test-stdint.c: Likewise.
55176         * tests/test-tls.c: Likewise.
55177
55178         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
55179         prelude-manager.  User shorter URLs for GNU projects, without '?'.
55180         Add copyright notice.
55181
55182         * check-module: Add copyright notice.  Output a copyright
55183         notice if "--version" is specified.
55184         * modules/COPYING: New file.
55185         * tests/test-getaddrinfo.c: Add copyright notice.
55186         * tests/test-verify.c: Likewise.
55187
55188 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55189
55190         Change copyright notice from LGPL 2 to GPL 2, since that's the
55191         standard form used in the gnulib repository.
55192         * lib/lock.c: LGPL -> GPL.
55193         * lib/lock.h: Likewise.
55194         * lib/strnlen1.c: Likewise.
55195         * lib/strnlen1.h: Likewise.
55196         * lib/tls.c: Likewise.
55197         * lib/tls.h: Likewise.
55198         * lib/tmpdir.c: Likewise.
55199
55200         * lib/TODO: Remove; this belongs only in coreutils.
55201
55202 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55203
55204         Add copyright notices to long-enough files that lack them, since
55205         otherwise the files aren't clearly free.  Use the same notice that
55206         getdate.texi already uses.
55207         * doc/alloca-opt.texi: Add copyright notice.
55208         * doc/alloca.texi: Likewise.
55209         * doc/ctime.texi: Likewise.
55210         * doc/functions.texi: Likewise.
55211         * doc/gcd.texi: Likewise.
55212         * doc/gnulib-tool.texi: Likewise.
55213         * doc/inet_ntoa.texi: Likewise.
55214         * doc/visibility.texi: Likewise.
55215
55216         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
55217         * doc/quote.texi: Add copyright notice.
55218
55219         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
55220         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
55221         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
55222         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
55223         is now obsolete, and give a pointer to the Sun list.
55224         Add copyright notice.
55225
55226 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55227
55228         * config/srclistvars.sh: Add copyright notice.
55229
55230 2006-08-14  Eric Blake  <ebb9@byu.net>
55231
55232         Import the following change from libc:
55233
55234         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
55235
55236         Upstream bug 2997.
55237         * lib/misc/error.c: Add space between program name and message if file
55238         name is missing.
55239
55240 2006-08-12  Karl Berry  <karl@gnu.org>
55241
55242         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
55243         remove, these originate in gnulib now.
55244
55245 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55246
55247         * doc/Makefile (standards.info standards.html standards.dvi):
55248         Also depend on make-stds.texi.
55249
55250 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55251
55252         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
55253         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
55254
55255         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
55256         in wchar_t.  Problem reported by Eric Blake.
55257
55258         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
55259         LEN is smaller than SIZE.  Suggested by Bruno Haible.
55260         Also, help the compiler to keep LEN in a register.
55261
55262 2006-08-11  Eric Blake  <ebb9@byu.net>
55263
55264         * users.txt: Sort.  Add tar.
55265
55266 2006-08-11  Bruno Haible  <bruno@clisp.org>
55267
55268         * users.txt: New file.
55269
55270 2006-08-11  Bruno Haible  <bruno@clisp.org>
55271
55272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
55273         before <wchar.h>. Needed for OSF/1 and BSD/OS.
55274
55275 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55276
55277         * modules/snprintf (Depends-on): Remove minmax.
55278         (Maintainer): Add self and Bruno.
55279
55280 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * lib/.cppi-disable: Add snprintf.h, socket_.h.
55283         * lib/snprintf.c: Include <errno.h> and <limits.h>.
55284         (EOVERFLOW): Define if the system does not.
55285         Do not include "minmax.h"; it wasn't used.
55286         (snprintf): Don't assume size_t promotes to an unsigned type.
55287         Fix bug when generated string was too long for the buffer: the
55288         buffer's contents are supposed to be the initial prefix of the
55289         output.  Don't assume vasnprintf returns EOVERFLOW if the size
55290         exceeds INT_MAX; do the check ourselves.
55291
55292         Import the following changes from libc:
55293
55294         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
55295
55296         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
55297         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
55298         set wc to the byte which couldn't be converted.
55299         (re_string_reconstruct): Don't clear valid_raw_len before calling
55300         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
55301         tip_context using re_string_context_at.
55302
55303         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
55304
55305         * lib/posix/regex.h: g++ still cannot handled [restrict].
55306
55307         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
55308
55309         * lib/posix/regex.h: Remove special handling for VMS.
55310
55311 2006-08-10  Jim Meyering  <jim@meyering.net>
55312
55313         * modules/same-inode: New module.
55314         * modules/dev-ino: New module.
55315         * modules/cycle-check: Depend on these modules, rather than simply
55316         including their .h files.
55317         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
55318         required via m4/cycle-check.m4.
55319         * modules/same: Depend on new same-inode module, rather than
55320         including same-inode.h.
55321         * modules/chdir-safer: New file.
55322
55323         * modules/chown (Depends-on): Add stat-macros.
55324
55325 2006-08-10  Jim Meyering  <jim@meyering.net>
55326
55327         * m4/cycle-check.m4: New file.
55328         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
55329         * m4/dev-ino.m4, m4/same-inode.m4: New files.
55330
55331 2006-08-10  Eric Blake  <ebb9@byu.net>
55332
55333         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
55334         in from original proposal.
55335
55336 2006-08-10  Eric Blake  <ebb9@byu.net>
55337         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55338
55339         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
55340         namespace.
55341
55342 2006-08-10  Bruno Haible  <bruno@clisp.org>
55343
55344         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
55345         as well.
55346
55347 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         Sync from coreutils.
55350
55351         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
55352
55353         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
55354         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
55355
55356 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55357
55358         * modules/restrict: Remove; no longer needed now that we assume
55359         Autoconf 2.59 or later.
55360         * MODULES.html.sh: Remove 'restrict'.
55361         * modules/argp (Depends-on): Remove 'restrict'.
55362         * modules/base64 (Depends-on): Likewise.
55363         * modules/gc (Depends-on): Likewise.
55364         * modules/getaddrinfo (Depends-on): Likewise.
55365         * modules/glob (Depends-on): Likewise.
55366         * modules/inet_ntop (Depends-on): Likewise.
55367         * modules/inet_pton (Depends-on): Likewise.
55368         * modules/memxor (Depends-on): Likewise.
55369         * modules/regex (Depends-on): Likewise.
55370         * modules/strtok_r (Depends-on): Likewise.
55371         * modules/time_r (Depends-on): Likewise.
55372
55373 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
55376         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
55377         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55378         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
55379         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55380         * m4/memxor.m4 (gl_MEMXOR): Likewise.
55381         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
55382         gl_C_RESTRICT replaced by AC_C_RESTRICT.
55383
55384         Merge from coreutils.
55385         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
55386         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
55387         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55388         * m4/time_r.m4 (gl_TIME_R): Likewise.
55389
55390 2006-08-09  Karl Berry  <karl@gnu.org>
55391
55392         * config/srclist.txt: no more gettext-tools, per Bruno.
55393
55394 2006-08-08  Eric Blake  <ebb9@byu.net>
55395
55396         * modules/verror: New module.
55397         * MODULES.html.sh: Document it.
55398
55399 2006-08-08  Eric Blake  <ebb9@byu.net>
55400
55401         * lib/verror.h, lib/verror.c: New files.
55402
55403 2006-08-08  Eric Blake  <ebb9@byu.net>
55404
55405         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
55406         verror_at_line output complies with GNU Coding Standards even when
55407         file is NULL.
55408
55409 2006-08-07  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
55412         versions of AIX.
55413         Reported by Ralf Wildenhues.
55414
55415 2006-08-07  Bruno Haible  <bruno@clisp.org>
55416
55417         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
55418         in an AC_DEFUN. Needed so that the autoconf snippets can use
55419         AC_REQUIRE.
55420
55421 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55422
55423         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55424         Initialize pkgdata_DATA.
55425         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
55426         overriding it.
55427
55428 2006-08-06  Eric Blake  <ebb9@byu.net>
55429
55430         * lib/error.h: Fold in some upstream changes from glibc.
55431         * lib/error.c: Likewise.
55432
55433 2006-08-04  Bruno Haible  <bruno@clisp.org>
55434
55435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55436         Make the mostlyclean-local rule depend on mostlyclean-generic.
55437         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
55438
55439 2006-07-31  Bruno Haible  <bruno@clisp.org>
55440
55441         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
55442         <stdlib.h>, <string.h>.
55443
55444 2006-07-30  Bruno Haible  <bruno@clisp.org>
55445
55446         * modules/readlink (License): Change to LGPL.
55447
55448 2006-07-30  Bruno Haible  <bruno@clisp.org>
55449
55450         * modules/javaversion (Makefile.am): Distribute javaversion.java and
55451         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
55452         set PKGDATADIR to point to it.
55453
55454 2006-07-30  Bruno Haible  <bruno@clisp.org>
55455
55456         * modules/csharpexec (configure.ac): Comment out macro invocation.
55457         * modules/javaexec (configure.ac): Likewise.
55458         * modules/javacomp-script (configure.ac): Likewise.
55459
55460         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
55461
55462 2006-07-30  Bruno Haible  <bruno@clisp.org>
55463
55464         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
55465         linked-list.
55466
55467 2006-07-30  Bruno Haible  <bruno@clisp.org>
55468
55469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
55470
55471 2006-07-30  Bruno Haible  <bruno@clisp.org>
55472
55473         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55474         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
55475         get removed.
55476
55477 2006-07-29  Bruno Haible  <bruno@clisp.org>
55478
55479         Make it possible for gnulib-tool to work with locally modified or
55480         augmented gnulib repositories.
55481         * gnulib-tool (func_usage): Document --local-dir option.
55482         (local_gnulib_dir): New variable.
55483         Handle --local-dir option.
55484         (func_lookup_file): New function.
55485         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
55486         (func_get_description, func_get_filelist, func_get_description,
55487         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
55488         func_get_automake_snippet, func_get_include_directive,
55489         func_get_license, func_get_maintainer): Use func_lookup_file.
55490         (func_import, func_create_testdir): Use func_lookup_file.
55491
55492 2006-07-29  Bruno Haible  <bruno@clisp.org>
55493
55494         * modules/setenv (Depends-on): Add unistd.
55495
55496 2006-07-29  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
55499
55500 2006-07-29  Bruno Haible  <bruno@clisp.org>
55501
55502         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
55503
55504 2006-07-29  Bruno Haible  <bruno@clisp.org>
55505
55506         * gnulib-tool (import, update): If there is no Makefile.am, look at
55507         aclocal.m4, instead of bailing out.
55508
55509 2006-07-29  Bruno Haible  <bruno@clisp.org>
55510
55511         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
55512         Categorize the options by when they are useful.
55513
55514 2006-07-29  Bruno Haible  <bruno@clisp.org>
55515
55516         * gnulib-tool (func_usage): Document option --no-libtool.
55517         Handle option --no-libtool.
55518         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
55519         for changed semantics of $libtool variable.
55520         (func_import): Likewise. If libtool is not used, show this through
55521         an option --no-libtool.
55522         (func_create_testdir): Update.
55523
55524 2006-07-29  Bruno Haible  <bruno@clisp.org>
55525
55526         * gnulib-tool (func_import): Extend error message about missing
55527         --doc-base.
55528
55529 2006-07-29  Bruno Haible  <bruno@clisp.org>
55530
55531         * gnulib-tool (func_import): Don't create the $docbase directory if
55532         there is no file to store there.
55533
55534 2006-07-29  Bruno Haible  <bruno@clisp.org>
55535
55536         * gnulib-tool (autoconf_minversion): If a --dir option is given and
55537         relevant, look for configure.ac there, not in the current directory.
55538         Also use a simple search for AC_PREREQ, not "autoconf --trace".
55539
55540 2006-07-29  Bruno Haible  <bruno@clisp.org>
55541
55542         * gnulib-tool (SORT): New variable.
55543         (func_usage): Undocument --assume-autoconf option.
55544         Remove --assume-autoconf option handling.
55545         (autoconf_minversion): Determine from the contents of configure.ac.
55546         (func_import): Remove autoconf_minversion handling.
55547         Suggested by Eric Blake.
55548
55549 2006-07-29  Bruno Haible  <bruno@clisp.org>
55550
55551         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
55552
55553 2006-07-29  Bruno Haible  <bruno@clisp.org>
55554
55555         * config/srclist.txt (*setenv.[ch]): Remove rules.
55556
55557 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55558
55559         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
55560
55561 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55562
55563         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
55564         arpa/inet.h.
55565
55566 2006-07-28  Simon Josefsson  <jas@extundo.com>
55567
55568         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
55569         * modules/inet_pton (Depends-on): Likewise.
55570
55571 2006-07-28  Simon Josefsson  <jas@extundo.com>
55572
55573         * m4/netinet_in_h.m4: New file.
55574
55575 2006-07-28  Simon Josefsson  <jas@extundo.com>
55576
55577         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55578         #include's.
55579
55580 2006-07-28  Simon Josefsson  <jas@extundo.com>
55581
55582         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55583         #include's.
55584
55585 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55586
55587         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55588         setgid on directories only if they set these bits.
55589         * lib/modechange.h: Remove obsolete comment about masks.
55590
55591 2006-07-28  Eric Blake  <ebb9@byu.net>
55592
55593         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55594         macro expansion.
55595
55596 2006-07-28  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55599
55600 2006-07-28  Bruno Haible  <bruno@clisp.org>
55601
55602         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55603
55604 2006-07-28  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55607         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55608         Define fallbacks.
55609         Avoids link error on FreeBSD 4.x.
55610         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55611
55612         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
55613         encoding.
55614         * lib/mbswidth.c (iswcntrl): Likewise.
55615
55616 2006-07-27  Bruno Haible  <bruno@clisp.org>
55617
55618         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
55619         test.
55620
55621 2006-07-27  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
55624         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
55625         defined.
55626
55627 2006-07-26  Eric Blake  <ebb9@byu.net>
55628
55629         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
55630
55631 2006-07-26  Eric Blake  <ebb9@byu.net>
55632
55633         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
55634         like mingw that lack mkstemp.
55635         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
55636         avoid compilation warning on mingw.
55637
55638 2006-07-26  Bruno Haible  <bruno@clisp.org>
55639
55640         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
55641         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
55642         INT_FAST*_MIN, INTPTR_MIN.
55643
55644 2006-07-25  Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/version-etc (Depends-on): Add stdarg.
55647
55648 2006-07-25  Bruno Haible  <bruno@clisp.org>
55649
55650         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
55651         complex commands.
55652
55653 2006-07-25  Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
55656         defined in <stdarg.h> or config.h.
55657
55658 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55659
55660         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
55661         (gl_STDIO_SAFER): Remove.
55662
55663 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * MODULES.html.sh (File stream based Input/Output):
55666         Add fopen-safer, tmpfile-safer; remove stdio-safer.
55667         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
55668         * modules/fopen-safer, modules/tmpfile-safer: New files.
55669         * modules/stdio-safer: Remove.
55670
55671 2006-07-24  Bruno Haible  <bruno@clisp.org>
55672
55673         * modules/tmpdir: New file.
55674         * MODULES.html.sh (File system functions): Add it.
55675
55676 2006-07-24  Bruno Haible  <bruno@clisp.org>
55677
55678         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
55679         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
55680
55681 2006-07-24  Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/clean-temp: New file.
55684
55685 2006-07-24  Bruno Haible  <bruno@clisp.org>
55686
55687         * m4/tmpdir.m4: New file, from GNU gettext.
55688
55689 2006-07-24  Bruno Haible  <bruno@clisp.org>
55690
55691         * lib/tmpdir.h: New file, from GNU gettext.
55692         * lib/tmpdir.c: New file, from GNU gettext.
55693
55694 2006-07-24  Bruno Haible  <bruno@clisp.org>
55695
55696         * lib/clean-temp.h: New file, from GNU gettext.
55697         * lib/clean-temp.c: New file, from GNU gettext.
55698
55699 2006-07-23  Eric Blake  <ebb9@byu.net>
55700
55701         * modules/stdio-safer (Files): Add tmpfile-safer.c.
55702         (Depends-on): Add binary-io.
55703
55704 2006-07-23  Eric Blake  <ebb9@byu.net>
55705
55706         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
55707
55708 2006-07-23  Eric Blake  <ebb9@byu.net>
55709
55710         * lib/tmpfile-safer.c: New file.
55711         * lib/stdio-safer.h (fopen_safer): Add prototype.
55712         * lib/stdio--.h (tmpfile): Make safer.
55713
55714 2006-07-23  Bruno Haible  <bruno@clisp.org>
55715
55716         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
55717         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
55718         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
55719         gl_linked_remove_at): Use it.
55720
55721 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55722         and Simon Josefsson <jas@extundo.com>
55723
55724         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
55725
55726         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
55727
55728 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55729
55730         * modules/close-stream: New file.
55731         * modules/closeout (Description): Make it clear that it exits
55732         with a diagnostic on error.
55733         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55734         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55735
55736 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55737
55738         * m4/close-stream.m4: New file.
55739
55740 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * lib/close-stream.c, lib/close-stream.h: New files.
55743
55744 2006-07-22  Bruno Haible  <bruno@clisp.org>
55745
55746         Merge from GNU gettext 0.15.
55747
55748         2006-05-01  Bruno Haible  <bruno@clisp.org>
55749
55750                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55751
55752         2006-07-22  Bruno Haible  <bruno@clisp.org>
55753
55754                 * modules/javaversion: New file.
55755                 * MODULES.html.sh (Java): Add javaversion.
55756
55757         2006-03-12  Bruno Haible  <bruno@clisp.org>
55758
55759                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55760
55761         2005-12-04  Bruno Haible  <bruno@clisp.org>
55762
55763                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55764                 (untested).
55765
55766         2006-06-21  Bruno Haible  <bruno@clisp.org>
55767
55768                 Avoid warnings from recent versions of mcs.
55769                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55770                 -o, -L, -r any more. Use options documented since mcs-1.0
55771                 instead. Similarly for -g.
55772
55773         2005-12-04  Bruno Haible  <bruno@clisp.org>
55774
55775                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55776                 .resources, not .resource.
55777
55778         2005-07-09  Bruno Haible  <bruno@clisp.org>
55779
55780                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55781                 add a .dll suffix.
55782                 Reported by Mark Junker <mjscod@gmx.de>.
55783
55784         2006-07-22  Bruno Haible  <bruno@clisp.org>
55785
55786                 * modules/gettext: Upgrade to gettext-0.15.
55787                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55788                 m4/visibility.m4.
55789                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55790
55791 2006-07-22  Bruno Haible  <bruno@clisp.org>
55792
55793         Merge from GNU gettext 0.15.
55794
55795         2006-03-25  Bruno Haible  <bruno@clisp.org>
55796
55797                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55798
55799         2006-07-21  Bruno Haible  <bruno@clisp.org>
55800
55801                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55802                 "1.1".
55803
55804         2006-05-09  Bruno Haible  <bruno@clisp.org>
55805
55806                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55807                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55808                 for the conftestver execution.
55809
55810         2006-05-01  Bruno Haible  <bruno@clisp.org>
55811
55812                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55813                 optional target-version argument. Verify that the compiler
55814                 groks source of the specified source-version, or add -source
55815                 option as necessary. Verify that the compiler produces
55816                 bytecode in the specified target-version, or add -target and
55817                 -source options as necessary. Make the result of the test
55818                 available as variable CONF_JAVAC. Also log error output in
55819                 config.log.
55820
55821         2006-03-11  Bruno Haible  <bruno@clisp.org>
55822
55823                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55824
55825         2006-05-09  Bruno Haible  <bruno@clisp.org>
55826
55827                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55828                 CLASSPATH_SEPARATOR to a semicolon.
55829
55830         2006-03-12  Bruno Haible  <bruno@clisp.org>
55831
55832                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55833                 available as variable CONF_JAVA, for subsequent autoconf
55834                 tests. Also log error output in config.log.
55835
55836         2006-07-19  Bruno Haible  <bruno@clisp.org>
55837
55838                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55839                 that getline works on glibc2 systems. Needed to avoid trouble
55840                 in relocatable.c.
55841                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55842
55843         2005-12-04  Bruno Haible  <bruno@clisp.org>
55844
55845                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55846                 launcher (untested).
55847
55848         2005-12-04  Bruno Haible  <bruno@clisp.org>
55849
55850                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55851
55852         2006-07-22  Bruno Haible  <bruno@clisp.org>
55853
55854                 * gettext.m4: Update from GNU gettext-0.15.
55855                 * nls.m4: Likewise.
55856                 * po.m4: Likewise.
55857                 * inttypes-pri.m4: Likewise.
55858                 * inttypes-h.m4: Renamed from inttypes.m4.
55859                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55860
55861 2006-07-22  Bruno Haible  <bruno@clisp.org>
55862
55863         Merge from GNU gettext 0.15.
55864
55865         2005-07-05  Bruno Haible  <bruno@clisp.org>
55866
55867                 * printf-args.c (printf_fetchargs): Work around broken
55868                 definition of wint_t on mingw.
55869
55870         2005-02-12  Bruno Haible  <bruno@clisp.org>
55871
55872                 * xallocsa.h: Add extern "C" for C++.
55873
55874         2006-05-17  Bruno Haible  <bruno@clisp.org>
55875
55876                 Cygwin portability.
55877                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55878
55879         2006-04-30  Bruno Haible  <bruno@clisp.org>
55880
55881                 * progreloc.c: Include <mach-o/dyld.h> if available.
55882                 (find_executable): Use _NSGetExecutablePath when possible.
55883
55884         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55885
55886                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55887                 function.
55888
55889         2005-12-29  Bruno Haible  <bruno@clisp.org>
55890
55891                 * progreloc.c (set_program_name_and_installdir): Fix
55892                 compilation error.
55893
55894         2005-12-04  Bruno Haible  <bruno@clisp.org>
55895
55896                 Cygwin portability.
55897                 * progreloc.c: Include <windows.h> also on Cygwin.
55898                 (find_executable): Add support for Cygwin.
55899                 (set_program_name_and_installdir): Handle also platforms with
55900                 nonempty EXEEXT.
55901
55902         2006-07-11  Bruno Haible  <bruno@clisp.org>
55903
55904                 * javacomp.c: Fix a comment.
55905                 Reported by Jim Meyering.
55906
55907         2006-04-30  Bruno Haible  <bruno@clisp.org>
55908
55909                 * javacomp.h (compile_java_class): Add source_version,
55910                 target_version arguments.
55911                 * javacomp.c: Rewritten to choose only a compiler that
55912                 respects the specified source_version and target_version.
55913
55914         2006-06-27  Bruno Haible  <bruno@clisp.org>
55915
55916                 Assume correct S_ISDIR macro.
55917                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55918
55919         2006-07-22  Bruno Haible  <bruno@clisp.org>
55920
55921                 * javaversion.h: New file, from GNU gettext.
55922                 * javaversion.c: New file, from GNU gettext.
55923                 * javaversion.java: New file, from GNU gettext.
55924                 * javaversion.class: New file, from GNU gettext.
55925
55926         2006-05-17  Bruno Haible  <bruno@clisp.org>
55927
55928                 Cygwin portability.
55929                 * javaexec.c (execute_java_class): Test for jview program
55930                 also on Cygwin.
55931
55932         2006-04-09  Bruno Haible  <bruno@clisp.org>
55933
55934                 * fatal-signal.c: Don't include string.h.
55935                 (at_fatal_signal): Use a copying loop instead of memcpy.
55936
55937         2005-12-04  Bruno Haible  <bruno@clisp.org>
55938
55939                 * csharpexec.c: Add support for 'clix' launcher (untested).
55940                 (execute_csharp_using_sscli): New function.
55941                 (execute_csharp_program): Call it.
55942
55943         2006-06-21  Bruno Haible  <bruno@clisp.org>
55944
55945                 Avoid warnings from recent versions of mcs.
55946                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55947                 -o, -L, -r any more. Use options documented since mcs-1.0
55948                 instead. Similarly for -g.
55949
55950         2005-07-09  Bruno Haible  <bruno@clisp.org>
55951
55952                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55953                 add a .dll suffix.
55954                 Reported by Mark Junker <mjscod@gmx.de>.
55955
55956         2006-06-17  Bruno Haible  <bruno@clisp.org>
55957
55958                 * config.charset: Update for NetBSD 3.0.
55959
55960         2006-05-17  Bruno Haible  <bruno@clisp.org>
55961
55962                 Cygwin portability.
55963                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55964
55965         2006-05-16  Bruno Haible  <bruno@clisp.org>
55966
55967                 * localcharset.c [CYGWIN]: Include <windows.h>.
55968                 (get_charset_aliases): For Cygwin, return the same CPxxx
55969                 aliases list as under WIN32.
55970                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55971                 the environment variables. Fall back to GetACP().
55972
55973         2006-04-05  Bruno Haible  <bruno@clisp.org>
55974
55975                 * config.charset: Update Juan Manuel Guerrero's address.
55976
55977         2005-02-12  Bruno Haible  <bruno@clisp.org>
55978
55979                 * allocsa.h: Add extern "C" for C++.
55980
55981         2005-02-10  Bruno Haible  <bruno@clisp.org>
55982
55983                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55984                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55985
55986         2006-07-22  Bruno Haible  <bruno@clisp.org>
55987
55988                 * gettext.h: Update to GNU gettext-0.15.
55989
55990 2006-07-22  Bruno Haible  <bruno@clisp.org>
55991
55992         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55993         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55994         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55995
55996 2006-07-21  Eric Blake  <ebb9@byu.net>
55997
55998         * modules/stdlib-safer: New file.
55999         * MODULES.html.sh (File stream based Input/Output): Add
56000         stdlib-safer.
56001
56002 2006-07-21  Eric Blake  <ebb9@byu.net>
56003
56004         * lib/stdlib-safer.h: New file from coreutils, required by
56005         stdlib--.h.
56006
56007 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
56008
56009         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
56010
56011 2006-07-20  Bruno Haible  <bruno@clisp.org>
56012
56013         * gnulib-tool: Recognize new option --assume-autoconf.
56014         (autoconf_minversion): New variable.
56015         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
56016
56017 2006-07-20  Bruno Haible  <bruno@clisp.org>
56018
56019         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
56020
56021 2006-07-19  Derek R. Price  <derek@ximbiot.com>
56022
56023         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
56024         Reindent and repaginate.
56025
56026 2006-07-19  Derek Price  <derek@ximbiot.com>
56027
56028         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
56029         Correct grammar.
56030
56031 2006-07-17  Bruno Haible  <bruno@clisp.org>
56032
56033         * modules/list: New file.
56034         * modules/array-list: New file.
56035         * modules/carray-list, modules/carray-list-tests: New files.
56036         * modules/linked-list, modules/linked-list-tests: New files.
56037         * modules/avltree-list, modules/avltree-list-tests: New files.
56038         * modules/rbtree-list, modules/rbtree-list-tests: New files.
56039         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
56040         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
56041         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
56042         * modules/oset: New file.
56043         * modules/array-oset: New file.
56044         * modules/avltree-oset, modules/avltree-oset-tests: New files.
56045         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
56046         * tests/test-carray_list.c: New file.
56047         * tests/test-linked_list.c: New file.
56048         * tests/test-avltree_list.c: New file.
56049         * tests/test-rbtree_list.c: New file.
56050         * tests/test-linkedhash_list.c: New file.
56051         * tests/test-avltreehash_list.c: New file.
56052         * tests/test-rbtreehash_list.c: New file.
56053         * tests/test-avltree_oset.c: New file.
56054         * tests/test-rbtree_oset.c: New file.
56055         * MODULES.html.sh (Container data structures): New section.
56056
56057 2006-07-17  Bruno Haible  <bruno@clisp.org>
56058
56059         * m4/gl_list.m4: New file.
56060
56061 2006-07-17  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/gl_list.h: New file.
56064         * lib/gl_list.c: New file.
56065         * lib/gl_array_list.h: New file.
56066         * lib/gl_array_list.c: New file.
56067         * lib/gl_carray_list.h: New file.
56068         * lib/gl_carray_list.c: New file.
56069         * lib/gl_linked_list.h: New file.
56070         * lib/gl_linked_list.c: New file.
56071         * lib/gl_anylinked_list1.h: New file.
56072         * lib/gl_anylinked_list2.h: New file.
56073         * lib/gl_avltree_list.h: New file.
56074         * lib/gl_avltree_list.c: New file.
56075         * lib/gl_anyavltree_list1.h: New file.
56076         * lib/gl_anyavltree_list2.h: New file.
56077         * lib/gl_rbtree_list.h: New file.
56078         * lib/gl_rbtree_list.c: New file.
56079         * lib/gl_anyrbtree_list1.h: New file.
56080         * lib/gl_anyrbtree_list2.h: New file.
56081         * lib/gl_anytree_list1.h: New file.
56082         * lib/gl_anytree_list2.h: New file.
56083         * lib/gl_linkedhash_list.h: New file.
56084         * lib/gl_linkedhash_list.c: New file.
56085         * lib/gl_anyhash_list1.h: New file.
56086         * lib/gl_anyhash_list2.h: New file.
56087         * lib/gl_avltreehash_list.h: New file.
56088         * lib/gl_avltreehash_list.c: New file.
56089         * lib/gl_rbtreehash_list.h: New file.
56090         * lib/gl_rbtreehash_list.c: New file.
56091         * lib/gl_anytreehash_list1.h: New file.
56092         * lib/gl_anytreehash_list2.h: New file.
56093
56094         * lib/gl_oset.h: New file.
56095         * lib/gl_oset.c: New file.
56096         * lib/gl_array_oset.h: New file.
56097         * lib/gl_array_oset.c: New file.
56098         * lib/gl_avltree_oset.h: New file.
56099         * lib/gl_avltree_oset.c: New file.
56100         * lib/gl_rbtree_oset.h: New file.
56101         * lib/gl_rbtree_oset.c: New file.
56102         * lib/gl_anytree_oset.h: New file.
56103
56104 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56105
56106         * m4/mkancesdirs.m4: New file.
56107         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
56108         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
56109         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
56110         it.
56111
56112 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56113
56114         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
56115         * lib/mkancesdirs.h: New files.
56116         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
56117         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
56118         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
56119         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
56120         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
56121         callers changed.  Revamp internals significantly, by not
56122         attempting to create directories that are temporarily more
56123         permissive than the final results.  Do not attempt to use
56124         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
56125         This removes some race conditions, fixes some bugs, and simplifies
56126         things.  Use new dirchownmod function to do owner and mode changes.
56127         * lib/mkdir-p.h: Likewise.
56128         * lib/modechange.c (octal_to_mode): New function.
56129         (struct mode_change): New member mentioned.
56130         (make_node_op_equals): New arg mentioned.  All callers changed.
56131         (mode_compile): Keep track of which mode bits the user has explicitly
56132         mentioned.
56133         (mode_adjust): New arg DIR, so that we implement the X op correctly.
56134         New arg PMODE_BITS, to keep track of which mode bits the user
56135         mentioned; it treats S_ISUID and S_ISGID speciall.
56136         All callers changed.
56137         * lib/modechange.h: Likewise.
56138
56139 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * MODULES.html.sh: Add mkancestors.
56142         * modules/mkancesdirs: New module.
56143         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
56144         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
56145         The chdir-safer and afs files are now orphans; I'll remove them
56146         unless someone speaks up.
56147         Add lib/dirchownmod.c, lib/dirchownmod.h.
56148         (Depends-on): Remove alloca, chown, save-cwd, dirname.
56149         Add lchown, mkancesdirs.
56150         (Maintainer): Add self.
56151
56152 2006-07-15  Karl Berry  <karl@gnu.org>
56153
56154         * gnulib-tool: help message wording/arrangement.
56155
56156 2006-07-14  Simon Josefsson  <jas@extundo.com>
56157
56158         * doc/gnulib.texi (Libtool and Windows): New section.
56159
56160 2006-07-12  Simon Josefsson  <jas@extundo.com>
56161
56162         * modules/gendocs (License): Fix license, approved by Karl.
56163
56164 2006-07-12  Eric Blake  <ebb9@byu.net>
56165
56166         * MODULES.html.sh: Add gendocs.
56167
56168 2006-07-11  Eric Blake  <ebb9@byu.net>
56169
56170         * modules/fdl: New module, to install doc/fdl.texi.
56171         * MODULES.html.sh: Add new section for documentation modules.
56172         * gnulib-tool: Avoid space-tab.
56173         (--doc-base): New option, to manage files from doc.
56174
56175 2006-07-11  Eric Blake  <ebb9@byu.net>
56176
56177         * m4/absolute-header.m4: Fix comments to match recent change.
56178
56179 2006-07-11  Eric Blake  <ebb9@byu.net>
56180
56181         * gnulib-tool: List --doc-base before --tests-base.
56182
56183 2006-07-11  Derek R. Price  <derek@ximbiot.com>
56184
56185         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
56186
56187 2006-07-11  Bruno Haible  <bruno@clisp.org>
56188
56189         * README: Mention where to put documentation.
56190
56191 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56192
56193         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
56194
56195 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56196
56197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
56198         to stdint.m4.
56199
56200 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
56203         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
56204         "no/such/file/stdint.h" when there is no such file, so that
56205         the resulting C code can be parsed by dodgy compilers.
56206         Problems reported by Bob Proulx.
56207
56208 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56209
56210         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
56211         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56212         macros into the GNU _D_EXACT_NAMLEN.
56213         * lib/savedir.c:  Likewise.
56214         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
56215
56216 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56217         and Paul Eggert  <eggert@cs.ucla.edu>
56218
56219         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
56220         * m4/savedir.m4:
56221         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56222         macros into the GNU _D_EXACT_NAMLEN.
56223
56224 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56225
56226         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
56227         around the absolute name, to work around a problem with the HP-UX
56228         11.23 native C compiler, reported by Bob Proulx.
56229
56230 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56231
56232         * doc/maintain.texi, make-stds.texi: Sync from
56233         <http://savannah.gnu.org/projects/gnustandards>.
56234
56235 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56236
56237         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
56238
56239 2006-07-09  Jim Meyering  <jim@meyering.net>
56240
56241         * m4/glob.m4: Remove a doubled word in a comment.
56242
56243 2006-07-09  Jim Meyering  <jim@meyering.net>
56244
56245         * lib/argp-pv.c: Remove a doubled word in a comment.
56246         * lib/check-version.c (check_version): Likewise.
56247         * lib/javacomp.c (compile_java_class): Likewise.
56248
56249 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56250
56251         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
56252         for the benefit of people using Autoconf 2.60.  If you want to
56253         support older Autoconf versions you can copy m4/onceonly_2_57.m4
56254         (or m4/onceonly.m4, if pre-2.57) manually.
56255
56256 2006-07-08  Jim Meyering  <jim@meyering.net>
56257
56258         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
56259         comment.
56260         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
56261         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
56262         comment.
56263
56264 2006-07-08  Jim Meyering  <jim@meyering.net>
56265
56266         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
56267
56268 2006-07-07  Simon Josefsson  <jas@extundo.com>
56269
56270         * tests/test-crc.c: Change expected crc value, the test vector
56271         were probably computed using the old broken crc.c?
56272
56273 2006-07-06  Simon Josefsson  <jas@extundo.com>
56274
56275         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
56276         now the canonical place for the M4 file).
56277
56278         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
56279         from the sys_socket dependency now.
56280
56281         * modules/inet_pton (Files): Ditto.
56282
56283         * modules/inet_ntop (Files): Ditto.
56284
56285 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56286
56287         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
56288         not gl_PREREQ_GETUSERSHELL.
56289
56290 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56291
56292         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
56293         with only one argument, for Autoconf 2.60.
56294         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
56295         expand to nothing, so add a shell command to avoid syntax error.
56296         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56297
56298 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56299
56300         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
56301
56302 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
56305         no longer needed.  Check for isblank decl.
56306         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
56307         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
56308         of existence.
56309
56310 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * lib/getloadavg.c: Use __VMS, not VMS.
56313         * lib/getopt.c: Likewise.
56314         * lib/getpagesize.h: Likewise.
56315         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
56316         and probably does not work.
56317
56318 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56319
56320         * lib/.cppi-disable: Add wcwidth.
56321         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
56322         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
56323         (ISGRAPH): Remove.  All uses changed to isgraph.
56324         (FOLD) [!defined _LIBC]: Remove special case.
56325         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
56326         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
56327         HAVE_ISBLANK.
56328         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
56329         case.
56330
56331 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56332
56333         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
56334         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
56335         brackets.  Other minor changes to suppress some compiler
56336         warnings.
56337
56338 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56339         and Paul Eggert  <eggert@cs.ucla.edu>
56340
56341         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
56342         of invoking obsolescent AC_HEADER_DIRENT macro.
56343         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56344         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
56345         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56346         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56347         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
56348         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56349         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
56350         * m4/readdir.m4: Remove; no longer needed.
56351
56352 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56353         and Paul Eggert  <eggert@cs.ucla.edu>
56354
56355         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
56356         Don't worry about this obsolete case any more.
56357         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
56358         directories.
56359         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
56360         worry about this obsolete case any more.
56361         * lib/fts.c: Likewise.
56362         * lib/getcwd.c: Likewise.
56363         * lib/glob.h: Likewise.
56364         * lib/savedir.c: Likewise.
56365
56366 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56367
56368         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
56369         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
56370         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
56371         needed.
56372         All uses removed.
56373         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56374         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56375         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
56376         needed.
56377         * m4/getdate.m4 (gl_GETDATE): Likewise.
56378         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56379         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56380         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56381         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56382         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56383         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56384         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
56385         needed.
56386
56387 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * lib/memcasecmp.c: Include <limits.h>.
56390         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
56391         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
56392         Don't assume isdigit succeeds only on '0' through '9'.
56393
56394 2006-07-05  Eric Blake  <ebb9@byu.net>
56395
56396         * modules/getaddrinfo (Depends-on): Add snprintf.
56397
56398 2006-07-05  Eric Blake  <ebb9@byu.net>
56399
56400         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
56401         to avoid 'header present but could not be compiled' on cygwin.
56402
56403 2006-07-05  Eric Blake  <ebb9@byu.net>
56404
56405         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
56406         missing from netdb.h.
56407         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
56408
56409 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56410
56411         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
56412         no longer needed.
56413         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
56414         * m4/getdate.m4 (gl_GETDATE): Likewise.
56415         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56416         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56417         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56418         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56419         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56420
56421 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56422
56423         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
56424         All uses of is_space replaced by isspace.
56425         * lib/exit.h: Don't talk about STDC_HEADERS.
56426         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
56427         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
56428         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
56429         replaced by isprint etc.
56430         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
56431         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56432         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
56433         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
56434         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
56435         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56436
56437 2006-07-05  Bruno Haible  <bruno@clisp.org>
56438
56439         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
56440         the function exists, before testing against AIX.
56441         Reported by Martin Lambers <marlam@marlam.de>.
56442
56443 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56444
56445         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
56446         From Mark D. Baushke.
56447
56448 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56449
56450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
56451         to the absolute name, not just one, to bypass Sun C 5.8's
56452         "warning: #include of /usr/include/... may be non-portable".
56453
56454 2006-07-04  Eric Blake  <ebb9@byu.net>
56455
56456         * modules/dirname-tests: New test module.
56457         * tests/test-dirname.c: New file, replacing dirname.c
56458         TEST_DIRNAME section that was recently deleted.
56459
56460 2006-07-04  Bruno Haible  <bruno@clisp.org>
56461
56462         Assume ANSI C header files and <ctype.h> functions.
56463         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
56464         (mbsnwidth): Use isprint, iscntrl instead.
56465
56466 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56467
56468         Merge from coreutils.
56469         * MODULES.html.sh: Add xstrtold.
56470         * modules/xstrtold: New file.
56471         * modules/cycle-check (Files): Add lib/same-inode.h.
56472         * modules/dirname (Files): Add m4/double-slash-root.m4.
56473         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
56474         * modules/mkdir-p (Files): Add lib/same-inode.h.
56475         * modules/same (Files): Add lib/same-inode.h.
56476
56477 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56478
56479         * m4/absolute-header.m4: Renamed from full-header-path.m4.
56480         This is to keep the terminology clean; POSIX talks about
56481         "absolute pathnames", not "full pathnames", but the GNU
56482         Coding Standards say to use "path" for something else;
56483         so use "absolute" to keep both sides happy.
56484         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
56485         Set gl_absolute_header, not gl_full_header_path.
56486         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
56487         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
56488         All uses changed.
56489
56490         Merge from coreutils.
56491
56492         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56493
56494         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
56495         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
56496         want to require the building of c-strtod.o.
56497         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
56498         needs -lm directly.
56499         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
56500
56501         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56502
56503         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
56504         --as-needed option if available.  Problem reported by Albert Chin in
56505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
56506         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
56507         cc merely issues a bunch of annoying warnings for --as-needed
56508         (this problem was reported by Bob Proulx).  Also, try linking with
56509         -lm to detect a bug in binutils 2.16 (this problem was reported
56510         by Ralf Wildenhues).
56511
56512         2006-06-18  Jim Meyering  <jim@meyering.net>
56513
56514         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
56515         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
56516         macro.
56517         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
56518         also check for glibc-2.4's abort-inducing bug.
56519
56520         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
56521         Low-probability clean-up should be to use rmdir to get rid of
56522         the just-created directory, not unlink.
56523
56524         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
56525         configure fail, and request a bug report to inform us about it.
56526         Add a comment that, barring reports to the contrary, in 2007 we'll
56527         assume ftruncate is universally available.
56528
56529         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56530
56531         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
56532
56533         2006-03-12  Jim Meyering  <jim@meyering.net>
56534
56535         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
56536         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
56537         * m4/same.m4 (gl_SAME): Likewise.
56538         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
56539
56540         2006-03-11  Eric Blake  <ebb9@byu.net>
56541
56542         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
56543         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
56544         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
56545         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
56546
56547 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56548
56549         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
56550         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
56551         reported by Mark D. Baushke, one in
56552         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
56553
56554         Merge from coreutils.
56555
56556         * lib/.cppi-disable: Add stdint_.h.
56557         * lib/.cvsignore: Add stdint.h.
56558
56559         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56560
56561         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
56562         both double and long double versions.
56563         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
56564         * lib/xstrtold.c: New file.
56565         * lib/xstrtod.h (xstrtold): New decl.
56566
56567         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56568
56569         * lib/filemode.c (setst): Remove.
56570         (strmode): Rewrite to avoid setst.  This makes the code shorter,
56571         (arguably) clearer, and the generated code is a bit smaller on my
56572         Debian GNU/Linux stable x86 host.
56573
56574         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56575
56576         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56577         Assume that filemode.h includes sys/types.h and sys/stat.h.
56578         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56579         (ftypelet): Reorder to put common cases first, for efficiency.
56580         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56581         to do 'M'.
56582         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56583         of 10, for compatibility with FreeBSD.  All callers changed.
56584         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56585         types that can't be deduced solely from st_mode.  First arg is now a
56586         const pointer.
56587         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56588         (strmode): Renamed from mode_string.
56589         (filemodestring): New decl.
56590         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56591         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56592         needed.
56593         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56594
56595         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56598         fsusage.h now does that.  Include fsusage.h first, to test interface.
56599         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56600         at most one method (the old code could have generated decls that
56601         didn't conform to C89, not that this was ever exercised).
56602         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56603
56604         2006-03-19  Jim Meyering  <jim@meyering.net>
56605
56606         Work even in a chroot where d_ino values for entries in "/"
56607         don't match the stat.st_ino values for the same names.
56608         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
56609         number, iterate through all entries again, using lstat instead.
56610         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
56611         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
56612
56613         * lib/getcwd.c (__getcwd): Clarify a comment.
56614         Use memcpy in place of a call to strcpy.
56615
56616         2006-03-12  Jim Meyering  <jim@meyering.net>
56617
56618         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
56619         matches that of the current directory (which we're about to chdir ".."
56620         out of), then save the dev-ino of the parent, instead.
56621
56622         * lib/same-inode.h (SAME_INODE): New file/macro.
56623         * lib/chdir-safer.c (SAME_INODE): Remove definition.
56624         Include "same-inode.h", instead.
56625         * lib/same.c: Likewise.
56626         * lib/cycle-check.h: Include "same-inode.h".
56627         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
56628         * lib/cycle-check.c (SAME_INODE): Remove definition.
56629         * lib/root-dev-ino.h: Include "same-inode.h".
56630
56631         2006-03-11  Eric Blake  <ebb9@byu.net>
56632
56633         * lib/same.c (same_name): s/base_name/last_component/
56634         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
56635         * lib/filenamecat.c (file_name_concat): Likewise.
56636
56637         2006-03-11  Eric Blake  <ebb9@byu.net>,
56638                     Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
56641         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
56642         drive prefix.
56643         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
56644         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
56645         (last_component): New method.
56646         * lib/dirname.c (dir_len): Determine when drive letters need a
56647         subsequent slash.  Preserve // when it is special.
56648         (dir_name): Don't append dot when drive letter is absolute.
56649         [TEST_DIRNAME]: Move into a full-blown gnulib test.
56650         * lib/basename.c (base_name): New semantics - malloc the result.
56651         Preserve // when it is special.  Preserve relative files that look
56652         like drive letters.
56653         (base_len): Preserve // when it is special.
56654         (last_component): New method, similar to old base_name semantics.
56655         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
56656         base_name.  Strip redundant slashes from ///.
56657
56658 2006-07-03  Jim Meyering  <jim@meyering.net>
56659
56660         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
56661         macro is used before the first cycle_check call.
56662
56663 2006-07-03  Eric Blake  <ebb9@byu.net>
56664
56665         * modules/dirname (Depends-on): Add xstrndup.
56666
56667 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56668
56669         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
56670         test cases, so that config.log is a bit easier to follow.
56671
56672 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56673
56674         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
56675         both are 64 bits, since this seems to be the tradition, and this
56676         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
56677         we ever run into a host that prefers long long to long in this
56678         case, we'll need another configure-time test.  Problem reported by
56679         Jim Meyering.
56680
56681 2006-07-02  Eric Blake  <ebb9@byu.net>
56682
56683         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
56684
56685 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56686
56687         * modules/inttypes (Depends-on): No longer depends on stdint.
56688         * modules/stdint (Description): Say more about assumptions.
56689         Say that the fast types might differ.  Say macros are used.
56690         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
56691         (Makefile.am): Revise list of substituted symbols to match
56692         new stdint.m4.
56693         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
56694         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
56695         * tests/test-stdint.c (verify_same_types)
56696         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
56697         the code conforms to C99/C89.
56698         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
56699         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
56700
56701 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56702
56703         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
56704         but fix a bug, by requiring at least 64 bits.
56705         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56706         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
56707         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
56708         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
56709
56710         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
56711         changes.  Make 2.59 a prerequisite.  Check and substitute for
56712         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
56713         inttypes.h.  Do not use special include files; just use the
56714         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
56715         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
56716         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
56717         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
56718         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
56719         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
56720         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
56721         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
56722         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
56723         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
56724         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
56725         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
56726         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
56727         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
56728         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
56729         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56730         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56731         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56732         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56733         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56734         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56735         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56736         not check for things that C99 does not require, e.g., int8_t.  If
56737         a test isn't needed unless <stdint.h> isn't working, and is
56738         unlikely to be needed for any other reason, then don't do it
56739         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56740         size_t, since we assume C89 freestanding at least.  Do not check
56741         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56742         the right thing even if the types are not defined.  Instead use:
56743         (gl_STDINT_TYPE_PROPERTIES): New macro.
56744         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56745         testing whether <sys/types.h> clashes, as Autoconf does this for
56746         us now.  All uses removed.
56747         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56748         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56749         (gl_CHECK_TYPE_SAME):
56750         Remove; no longer needed.
56751         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56752         exists, since we'll return 0 anyway in that case.
56753         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56754
56755 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56756
56757         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56758         possible collision with system files.
56759         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56760         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56761         WCHAR_MIN and WCHAR_MAX in this case.
56762         (<stddef.h>): Do not include; no longer needed.
56763         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56764         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56765         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56766         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56767         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56768         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56769         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56770         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56771         !defined(__c99))]: Include in this case too, since it's harmless
56772         now.
56773         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56774         dangerous to do so.
56775         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56776         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56777         (_STDINT_MIN, _STDINT_MAX): New macros.
56778         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56779         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56780         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56781         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56782         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56783         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56784         macros, not typedefs; this simplifies things quite a bit.
56785         Use long int for all types narrower than int64_t.
56786         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56787         Define in terms of long long int or int64_t or long int,
56788         not int64_t or int32_t.  This saves some compile-time testing.
56789         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56790         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56791         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56792         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56793         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56794         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56795         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56796         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56797         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56798         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56799         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56800         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56801         undef any previous version and define our own version, for
56802         simplicity and consistency with the new macros for types.
56803         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56804         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56805         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56806         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56807         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56808         @WINT_T_SUFFIX@ to keep things simple here.
56809         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56810         Simplify by assuming typical 8/16/32/64 host, since we're
56811         already doing that elsewhere anyway.
56812         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56813         and assume long long int is 64 bits if available.  This
56814         speeds up 'configure'.
56815
56816 2006-07-01  Eric Blake  <ebb9@byu.net>
56817
56818         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56819         Reported by Andreas Buening.
56820
56821 2006-07-01  Eric Blake  <ebb9@byu.net>
56822
56823         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56824
56825 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56826
56827         * lib/getaddrinfo.c: fixed typo
56828
56829 2006-06-29  Jim Meyering  <jim@meyering.net>
56830
56831         * modules/strftime (Maintainer): Add my name, since with the
56832         FPRINTFTIME changes strftime.c has forked from glibc.
56833
56834 2006-06-29  Eric Blake  <ebb9@byu.net>
56835
56836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56837
56838 2006-06-29  Eric Blake  <ebb9@byu.net>
56839
56840         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56841
56842 2006-06-29  Eric Blake  <ebb9@byu.net>
56843
56844         * lib/stat_.h: New file.
56845
56846 2006-06-29  Eric Blake  <ebb9@byu.net>
56847
56848         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56849         unused static function.
56850
56851 2006-06-29  Eric Blake  <ebb9@byu.net>
56852
56853         * doc/functions.texi (Function Portability): Document missing lstat
56854         on mingw.
56855
56856 2006-06-29  Eric Blake  <ebb9@byu.net>
56857
56858         * MODULES.html.sh: Add sys_stat.
56859         * modules/sys_stat: New module.
56860         * modules/mkstemp (Depends-on): Add sys_stat.
56861
56862 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56863
56864         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56865
56866 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56867
56868         * m4/c-bs-a.m4: Removed.
56869
56870 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56871
56872         * lib/strftime.c: Assume strftime() exists.
56873
56874 2006-06-29  Derek Price  <derek@ximbiot.com>
56875
56876         * modules/c-bs-a: Removed - \a is C89.
56877         * MODULES.html.sh: Remove c-bs-a.
56878
56879 2006-06-29  Bruno Haible  <bruno@clisp.org>
56880
56881         * modules/wcwidth (License): Change to LGPL.
56882
56883 2006-06-28  Simon Josefsson  <jas@extundo.com>
56884
56885         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56886         on _WIN32.
56887
56888         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56889         getnameinfo.
56890
56891 2006-06-28  Simon Josefsson  <jas@extundo.com>
56892
56893         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56894
56895 2006-06-28  Simon Josefsson  <jas@extundo.com>
56896
56897         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56898         functions there.  It will succeed on Windows XP, but on Windows
56899         2000 and (presumably) earlier, it will fail, and use the internal
56900         re-implementation.
56901         (use_win32_p): New function.
56902         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56903         Support AI_NUMERICSERV to disable getservbyname.
56904         (getnameinfo): New function, only supports
56905         NI_NUMERICHOST|NI_NUMERICSERV for now.
56906
56907         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56908         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56909         getnameinfo.
56910
56911 2006-06-28  Eric Blake  <ebb9@byu.net>
56912
56913         * modules/wcwidth: New file.
56914         * modules/mbchar (Depends-on): Add wcwidth.
56915         * modules/mbswidth (Depends-on): Add wcwidth.
56916         * MODULES.html.sh: Add wcwidth.
56917
56918 2006-06-28  Eric Blake  <ebb9@byu.net>
56919
56920         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56922
56923 2006-06-28  Eric Blake  <ebb9@byu.net>
56924
56925         * lib/xvasprintf.h: Fix comments.
56926
56927 2006-06-28  Eric Blake  <ebb9@byu.net>
56928
56929         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56930         * lib/mbswidth.c (wcwidth): Move from here...
56931         * lib/wcwidth.h: ...to this new file.
56932
56933 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56934
56935         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56936
56937         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56938         it's obsolete.
56939         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56940
56941 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56942
56943         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56944         Autoconf 2.60 says this stuff was obsolete.
56945
56946 2006-06-28  Bruno Haible  <bruno@clisp.org>
56947
56948         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56949
56950 2006-06-28  Bruno Haible  <bruno@clisp.org>
56951
56952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56953         gt_TYPE_WCHAR_T.
56954
56955 2006-06-28  Bruno Haible  <bruno@clisp.org>
56956
56957         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56958         declaration for wcwidth.
56959         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56960
56961 2006-06-28  Bruno Haible  <bruno@clisp.org>
56962
56963         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56964         (mkdir): Define using _mkdir.
56965
56966 2006-06-28  Bruno Haible  <bruno@clisp.org>
56967
56968         * lib/getaddrinfo.h: Fix POSIX URL.
56969         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56970         _WIN32.
56971         (use_win32_p): Make static.
56972         (getaddrinfo): Reject service name if it is empty or does not consist
56973         solely of decimal digits, or if its value is > 65535.
56974         (getnameinfo): Remove useless casts.
56975
56976 2006-06-27  Simon Josefsson  <jas@extundo.com>
56977
56978         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56979         Eggert and Martin Lambers.
56980
56981 2006-06-27  Simon Josefsson  <jas@extundo.com>
56982
56983         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56984         Eggert and Martin Lambers.
56985
56986 2006-06-27  Bruno Haible  <bruno@clisp.org>
56987
56988         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56989         result to 0, not to empty.
56990         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56991
56992 2006-06-27  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56995
56996 2006-06-26  Simon Josefsson  <jas@extundo.com>
56997
56998         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56999         present.
57000
57001 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
57002
57003         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
57004         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
57005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
57006
57007 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
57008
57009         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
57010
57011 2006-06-26  Bruno Haible  <bruno@clisp.org>
57012
57013         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
57014
57015 2006-06-26  Bruno Haible  <bruno@clisp.org>
57016
57017         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
57018
57019 2006-06-26  Bruno Haible  <bruno@clisp.org>
57020
57021         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
57022         SGI C compiler in pre-C99 mode.
57023         Suggested by Mark D. Baushke and Larry Jones.
57024
57025 2006-06-26  Bruno Haible  <bruno@clisp.org>
57026
57027         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
57028         WCHAR_MAX.
57029         Reported by Mark D. Baushke and Larry Jones.
57030
57031 2006-06-26  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
57034         in pre-C99 mode.
57035         Suggested by Mark D. Baushke and Larry Jones.
57036
57037 2006-06-23  Simon Josefsson  <jas@extundo.com>
57038             Bruno Haible  <bruno@clisp.org>
57039
57040         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
57041         Emit mostlyclean-local rule.
57042         (func_emit_tests_Makefile_am): Likewise.
57043         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
57044
57045 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
57046
57047         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
57048
57049 2006-06-23  Bruno Haible  <bruno@clisp.org>
57050
57051         * tests/test-stdint.c: Update to match ISO C 99 Technical
57052         Corrigendum 1.
57053
57054 2006-06-23  Bruno Haible  <bruno@clisp.org>
57055
57056         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
57057
57058 2006-06-23  Bruno Haible  <bruno@clisp.org>
57059
57060         * lib/stdint_.h: Treat IRIX like OpenBSD.
57061
57062 2006-06-23  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
57065         ISO C 99 Technical Corrigendum 1.
57066
57067 2006-06-22  Simon Josefsson  <jas@extundo.com>
57068
57069         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
57070         MinGW.
57071
57072 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
57075         needed.  Some compiler complained about some of them.  Problem reported
57076         by Larry Jones in
57077         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
57078
57079 2006-06-21  Simon Josefsson  <jas@extundo.com>
57080
57081         * tests/test-getaddrinfo.c: New file.
57082
57083         * modules/getaddrinfo-tests: New file.
57084
57085         * MODULES.html.sh: Add inet_pton.
57086
57087         * modules/inet_pton: New file.
57088
57089 2006-06-21  Simon Josefsson  <jas@extundo.com>
57090
57091         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
57092         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
57093         of using the (limited) gnulib implementation on Windows XP.
57094
57095         * m4/inet_pton.m4: New file.
57096
57097 2006-06-21  Simon Josefsson  <jas@extundo.com>
57098
57099         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
57100         variable.
57101
57102         * lib/socket_.h: Don't define WINVER.
57103
57104         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
57105         slightly modified to work in gnulib.
57106
57107 2006-06-21  Simon Josefsson  <jas@extundo.com>
57108
57109         * doc/gnulib.texi (Windows sockets): Add.
57110
57111 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57112
57113         * lib/read-file.c (fread_file): Start with buffer allocation of
57114         0 bytes rather than 1 byte; this simplifies the code.
57115         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
57116         code to free buffer and save/restore errno.
57117         (internal_read_file): Remove unused local.
57118
57119 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
57122         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
57123         Problem reported by Denis Excoffier in
57124         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
57125
57126 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57127
57128         * modules/sys_socket, modules/socklen: Include sys/types since
57129         FreeBSD 4.x's sys/socket.h needs it.
57130
57131 2006-06-19  Simon Josefsson  <jas@extundo.com>
57132
57133         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
57134
57135 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57136
57137         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
57138
57139 2006-06-19  Bruno Haible  <bruno@clisp.org>
57140
57141         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
57142         and FULL_PATH_INTTYPES_H in angle brackets.
57143         Reported by Mark D. Baushke <mdb@gnu.org>.
57144
57145 2006-06-17  Eric Blake  <ebb9@byu.net>
57146
57147         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
57148         errno.
57149
57150 2006-06-17  Bruno Haible  <bruno@clisp.org>
57151
57152         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
57153         <sys/inttypes.h>.
57154
57155 2006-06-17  Bruno Haible  <bruno@clisp.org>
57156
57157         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
57158         whether errno is declared. Assume <errno.h> declares errno.
57159
57160 2006-06-17  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
57163
57164 2006-06-17  Bruno Haible  <bruno@clisp.org>
57165
57166         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
57167         problem on Solaris 2.5.1.
57168
57169 2006-06-16  Eric Blake  <ebb9@byu.net>
57170
57171         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
57172         * lib/unicodeio.c [!defined errno]: Likewise.
57173         * lib/strtol.c [!defined errno]: Likewise.
57174         * lib/strtod.c [!defined errno]: Likewise.
57175
57176 2006-06-15  Eric Blake  <ebb9@byu.net>
57177
57178         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
57179
57180 2006-06-15  Eric Blake  <ebb9@byu.net>
57181
57182         * config/srclist.txt (ssize_t.m4): Lose sync.
57183
57184 2006-06-15  Bruno Haible  <bruno@clisp.org>
57185
57186         * modules/stdint (Files): Include m4/full-header-path.m4,
57187         m4/size_max.m4, m4/wchar_t.m4.
57188         (Makefile.am): Many more substitutions.
57189         * modules/stdint-tests: New file.
57190         * tests/test-stdint.c: New file.
57191
57192 2006-06-15  Bruno Haible  <bruno@clisp.org>
57193
57194         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
57195         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
57196         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
57197         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
57198         gl_CHECK_TYPE_SAME): New macros.
57199
57200 2006-06-15  Bruno Haible  <bruno@clisp.org>
57201
57202         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
57203
57204 2006-06-15  Bruno Haible  <bruno@clisp.org>
57205
57206         * lib/stdint_.h: Rewritten to be fully auto-configured.
57207         Fixes bug on HP-UX/IA64.
57208
57209 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
57210
57211         * lib/getdate.y (__attribute__): Don't define if already defined.
57212         Problem reported by Larry Jones.
57213         * lib/utimens.c (__attribute__): Likewise.
57214
57215 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
57216
57217         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
57218         reported by Andreas Schwab.
57219
57220 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57221             Bruno Haible  <bruno@clisp.org>
57222
57223         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
57224         check for the declaration of strnlen and a run test that exposes the
57225         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
57226         rpl_strndup.
57227
57228 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57229             Bruno Haible  <bruno@clisp.org>
57230
57231         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
57232
57233 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57234
57235         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
57236         compile test, for Tru64 4.0D.
57237
57238 2006-05-28  Karl Berry  <karl@gnu.org>
57239
57240         * config/srclist.txt (printf-args.c): lose sync.
57241
57242 2006-05-26  Martin Lambers  <marlam@marlam.de>
57243
57244         * lib/getpass.c: Updates the test for the native W32 API, and adds
57245         missing includes, thus fixing compilation warnings.
57246
57247 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57248
57249         * lib/exclude.c (exclude_fnmatch): New function.
57250         (excluded_file_name): Call exclude_fnmatch.
57251         * lib/exclude.h (excluded_file_name): New prototype
57252
57253 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * lib/tempname.c (small_open, large_open): New macros.
57256         (__open, __open64) [!_LIBC]: Remove.
57257         (__gen_tempname): Use small_open and large_open instead of __open
57258         and __open64.  This fixes a portability bug on HP-UX 11.11i
57259         reported by Simon Wing-Tang in
57260         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
57261
57262 2006-05-24  Bruno Haible  <bruno@clisp.org>
57263
57264         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
57265         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
57266         Reported by Thorsten Maerz <torte@netztorte.de> via
57267         Aaron Stone <aaron@serendipity.cx>.
57268
57269 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
57272         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
57273         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
57274         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
57275         not really conditional on the cache.
57276         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
57277
57278 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57279
57280         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
57281         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
57282         (my_usleep): Don't mishandle maximum value.
57283
57284 2006-05-19  Jim Meyering  <jim@meyering.net>
57285
57286         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
57287
57288 2006-05-17  Bruno Haible  <bruno@clisp.org>
57289
57290         Cygwin portability.
57291         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
57292
57293 2006-05-17  Bruno Haible  <bruno@clisp.org>
57294
57295         * lib/stdint_.h: Fix recognition of Cygwin.
57296
57297 2006-05-15  Bruno Haible  <bruno@clisp.org>
57298
57299         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
57300         on libtool patch by Ralf Wildenhues.
57301
57302 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
57305         test for C99 conformance; (bool) 0.5 is an integer constant
57306         expression, but (bool) -0.5 is not.  Problem reported by Fedor
57307         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
57308
57309 2006-05-11  Simon Josefsson  <jas@extundo.com>
57310
57311         * m4/xvasprintf.m4: Fix obvious typo.
57312
57313 2006-05-11  Jim Meyering  <jim@meyering.net>
57314
57315         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
57316         James Lemley.
57317
57318 2006-05-10  Simon Josefsson  <jas@extundo.com>
57319
57320         * lib/md4.c: Typo fix, update copyright years.
57321         (K1, K2): Don't use L because it turn computations into 64-bit on
57322         64-bit platforms.
57323
57324 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
57325
57326         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
57327         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
57328         unwanted sign propagation, e.g., on hosts with 64-bit int.
57329         There still are some problems with reeelly weird theoretical hosts
57330         (e.g., 33-bit int) but it's not worth worrying about now.
57331         * lib/sha1.c (rol): Likewise.
57332         (K1, K2, K3, K4): Remove unnecessary L suffix.
57333
57334 2006-05-10  Bruno Haible  <bruno@clisp.org>
57335
57336         * lib/des.c: Cast to avoid warnings.
57337
57338 2006-05-09  Bruno Haible  <bruno@clisp.org>
57339
57340         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
57341         (Depends-on): Depend also on xsize, stdarg.
57342         (configure.ac): Add gl_XVASPRINTF.
57343
57344 2006-05-09  Bruno Haible  <bruno@clisp.org>
57345
57346         * m4/xvasprintf.m4: New file.
57347
57348 2006-05-09  Bruno Haible  <bruno@clisp.org>
57349
57350         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
57351         (EOVERFLOW): Define fallback value.
57352         (xstrcat): New function.
57353         (xvasprintf): Recognize the special case of a string concatenation.
57354
57355 2006-05-08  Eric Blake  <ebb9@byu.net>
57356
57357         * gnulib-tool (func_version): Base copyright year on CVS date.
57358         (func_emit_copyright_notice): New function.
57359         (func_emit_lib_Makefile_am): Use it.
57360         (func_emit_tests_Makefile_am): Likewise.
57361         (func_import): Likewise.
57362
57363 2006-05-08  Bruno Haible  <bruno@clisp.org>
57364
57365         * modules/stdarg: New file.
57366         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
57367
57368 2006-05-08  Bruno Haible  <bruno@clisp.org>
57369
57370         * m4/stdarg.m4: New file, from GNU gettext.
57371
57372 2006-05-08  Bruno Haible  <bruno@clisp.org>
57373
57374         * config/srclist.txt (build-aux/config.rpath): different from latest
57375         release.
57376
57377 2006-05-08  Bruno Haible  <bruno@clisp.org>
57378
57379         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
57380
57381 2006-05-05  Jim Meyering  <jim@meyering.net>
57382
57383         * m4/warning.m4: New file, derived from bison's file by the same name.
57384
57385 2006-05-03  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/stdint_.h: Shorter URL.
57388         * lib/inttypes.h: Likewise.
57389
57390 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57391
57392         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
57393
57394 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57395
57396         * lib/verify.h: Document the internals better.  Most of this change
57397         was written by Bruno Haible.
57398
57399 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57400
57401         * doc/verify.texi: New file, partly based on a proposal by
57402         Bruno Haible.
57403
57404 2006-05-02  Bruno Haible  <bruno@clisp.org>
57405
57406         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
57407         test from here...
57408         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
57409
57410 2006-04-29  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
57413         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
57414
57415 2006-04-29  Bruno Haible  <bruno@clisp.org>
57416
57417         * gnulib-tool: Make --update option actually work.
57418
57419 2006-04-29  Bruno Haible  <bruno@clisp.org>
57420
57421         * doc/gcd.texi: New file.
57422         * doc/gnulib.texi: Include it.
57423
57424 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57425
57426         * lib/getdate.y (get_date): When adding relative date, start with the
57427         initial time, not with the result of the first mktime call.
57428
57429 2006-04-25  Bruno Haible  <bruno@clisp.org>
57430
57431         * gnulib-tool (func_import): Output the include directives in three
57432         blocks, sorted separately.
57433         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57434
57435 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
57438         to define main with arguments, for C++.  Reported by Eric Blake.
57439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
57440         Prefer 'int main ()' to 'int main (void)', for C++.
57441         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
57442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
57443         for 'main', for C99 and C++.
57444
57445 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57446
57447         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
57448         Don't assume that exit status -1 is valid.
57449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57450         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57451         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
57452         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
57453         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
57454         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
57455         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
57456         functions can be used without declaring them, or that you can
57457         exit with status -1.
57458         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
57459
57460 2006-04-24  Karl Berry  <karl@gnu.org>
57461
57462         * config/srclist.txt (longdouble.m4): sync lost.
57463
57464 2006-04-24  Eric Blake  <ebb9@byu.net>
57465
57466         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
57467
57468 2006-04-24  Bruno Haible  <bruno@clisp.org>
57469
57470         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
57471         poll() implementation in AIX.
57472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57473
57474 2006-04-24  Bruno Haible  <bruno@clisp.org>
57475
57476         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
57477         assigned exactly once.
57478
57479 2006-04-23  Claudio Fontana  <claudio@gnu.org>
57480             Bruno Haible  <bruno@clisp.org>
57481
57482         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
57483         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
57484         for AM_CPPFLAGS.
57485
57486 2006-04-23  Bruno Haible  <bruno@clisp.org>
57487
57488         * modules/copy-file: Depend on unistd.
57489         * modules/execute: Likewise.
57490         * modules/fatal-signal: Likewise.
57491         * modules/findprog: Likewise.
57492         * modules/mkdtemp : Likewise.
57493         * modules/pipe: Likewise.
57494         * modules/wait-process: Likewise.
57495
57496 2006-04-23  Bruno Haible  <bruno@clisp.org>
57497
57498         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
57499         condition was already detected.
57500         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57501
57502 2006-04-23  Bruno Haible  <bruno@clisp.org>
57503
57504         * lib/copy-file.c: Include <unistd.h> unconditionally.
57505         * lib/execute.c: Likewise.
57506         * lib/fatal-signal.c: Likewise.
57507         * lib/findprog.c: Likewise.
57508         * lib/mkdtemp.c: Likewise.
57509         * lib/pipe.h: Likewise.
57510         * lib/pipe.c: Likewise.
57511         * lib/wait-process.h: Likewise.
57512
57513 2006-04-23  Bruno Haible  <bruno@clisp.org>
57514
57515         * gnulib-tool (func_usage): Fix --import description. Document
57516         --update.
57517         (func_import): Create temporary file in a temporary directory, if
57518         --dry-run is specified. Silence errors from 'grep' when there are no
57519         m4 files in $m4dir.
57520         (func_create_testdir): Silence errors from 'grep' when there are no
57521         m4 files in $m4dir.
57522         Reported by Karl Berry <karl@freefriends.org>.
57523
57524 2006-04-20  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
57527         one argument, so that the code will be portable to Autoconf 2.60.
57528         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
57529         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57530         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
57531
57532 2006-04-19  Derek Price  <derek@ximbiot.com>
57533             Eric Blake  <ebb9@byu.net>
57534
57535         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
57536         rather than "/full/path.h".  Update comment to match.  Shorten &
57537         generalize m4_translit call via AS_TR_CPP.
57538
57539 2006-04-19  Derek Price  <derek@ximbiot.com>
57540             Eric Blake  <ebb9@byu.net>
57541
57542         * lib/inttypes.h: Correct grammar in comment.
57543
57544 2006-04-18  Derek Price  <derek@ximbiot.com>
57545             Paul Eggert  <eggert@cs.ucla.edu>
57546
57547         * modules/inttypes: New file.
57548         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
57549
57550 2006-04-18  Derek Price  <derek@ximbiot.com>
57551             Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
57554         New files.
57555
57556 2006-04-18  Derek Price  <derek@ximbiot.com>
57557             Paul Eggert  <eggert@cs.ucla.edu>
57558
57559         * lib/inttypes.h: New file.
57560         * lib/strtoimax.c: Assume <inttypes.h>.
57561
57562 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
57563
57564         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
57565         isn't mounted.  Problem reported by Kir Kolyshkin.
57566
57567 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57568
57569         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
57570         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
57571         Derek R. Price.
57572         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57573         implementation.
57574
57575 2006-04-12  Eric Blake  <ebb9@byu.net>
57576
57577         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57578         is now done automatically by the corresponding Autoconf macro.
57579
57580 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57581
57582         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57583         time_r.h.
57584
57585 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57586
57587         Merge regex changes from libc, removing some of our
57588         POSIX-conformance changes that were rejected and redoing them in a
57589         less-intrusive way.
57590
57591         * lib/regcomp.c (re_compile_internal, init_dfa):
57592         Length arg is now size_t, not Idx.  All uses changed.
57593         (peek_token): Forward decl now says internal_function.
57594         (__re_error_msgid, __re_error_msgid_idx):
57595         Now static rather than extern with attribute_hidden.
57596         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57597         For some reason libc prefers K&R style defns for external functions.
57598         (regerror) [!defined _LIBC]: Likewise.
57599         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57600         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57601         (build_range_exp, build_collating_symbol):
57602         Use K&R-style defn.
57603         (re_compile_fastmap): Use '\0' to memset, not 0.
57604         (utf8_sb_map): Make the calculations more obvious.
57605         (init_dfa, parse_bracket_exp, build_charclass_op):
57606         Call calloc and cast result, as glibc does.
57607         (init_word_char, fetch_token, peek_token, peek_token_bracket):
57608         (build_range_exp, build_collating_symbol):
57609         Now internal functions.
57610
57611         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
57612
57613         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
57614         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
57615         Don't depend on VMS; depend on __VMS instead, for POSIX
57616         namespace cleanness.
57617         (regoff_t): Define to ssize_t, not long int.
57618
57619         Remove the REG_ macros named below.  Instead, make the old names
57620         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
57621         __USE_GNU_REGEX.
57622         (REG_BACKSLASH_ESCAPE_IN_LISTS):
57623         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
57624         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
57625         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
57626         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
57627         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
57628         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
57629         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
57630         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
57631         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
57632         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
57633         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
57634         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
57635         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
57636         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
57637         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
57638         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
57639         (REG_NREGS):
57640         Remove.  All uses replaced by the old RE_* names.
57641         (RE_BACKSLASH_ESCAPE_IN_LISTS):
57642         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
57643         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
57644         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
57645         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
57646         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
57647         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
57648         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
57649         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
57650         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
57651         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
57652         Don't bother having these macros be independent of each others'
57653         values, since they no longer exist in the POSIX name space.
57654
57655         Rename the following member names back to their old names,
57656         unless !__USE_GNU_REGEX.  All uses changed back.
57657         (buffer): Renamed from re_buffer.
57658         (allocated): Renamed from re_allocated.
57659         (used): Renamed from re_used.
57660         (syntax): Renamed from re_syntax.
57661         (fastmap): Renamed from re_fastmap.
57662         (translate): Renamed from re_translate.
57663         (can_be_null): Renamed from re_can_be_null.
57664         (regs_allocated): Renamed from re_regs_allocated.
57665         (fastmap_accurate): Renamed from re_fastmap_accurate.
57666         (no_sub): Renamed from re_no_sub.
57667         (not_bol): Renamed from re_not_bol.
57668         (not_eol): Renamed from re_not_eol.
57669         (newline_anchor): Renamed from re_newline_anchor.
57670         (num_regs): Renamed from rm_num_regs.
57671         (start): Renamed from rm_start.
57672         (end): Renamed from rm_end.
57673
57674         (free_state): Move up a bit.
57675
57676         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
57677         #define to be empty.
57678         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
57679         when that is what is intended.
57680         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
57681         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
57682         (MAX): New macro.
57683         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
57684         All uses changed back to re_malloc, etc.  It's now the caller's
57685         responsibility to check for overflow; all callers changed.
57686         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
57687         (re_x2nrealloc): Remove.
57688         (free_state): Remove decl.
57689
57690         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
57691         (re_set_registers, re_exec):
57692         Use K&R-style defn.
57693
57694         2006-01-31  Roland McGrath  <roland@redhat.com>
57695
57696         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
57697         Reported by Mike Frysinger <vapier@gentoo.org>.
57698
57699         2006-01-15  Andreas Jaeger  <aj@suse.de>
57700
57701         [BZ #1950]
57702         * lib/regex_internal.c (re_string_reconstruct): Adjust for
57703         build_wcs_upper_buffer change.
57704         (build_wcs_upper_buffer): Change return type.
57705
57706         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
57707
57708         * lib/regex_internal.h: Include <stdint.h> if available.
57709
57710         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
57711
57712         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
57713
57714         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57715
57716         * lib/regcomp.c: Adjust for changed secondary hash function.
57717
57718         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
57719
57720         * lib/regex.h: Pretty printing.
57721         Clean up namespace a bit.
57722
57723         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
57724
57725         * lib/regexec.c (update_cur_sifted_state, check_arrival,
57726         check_arrival_add_next_nodes): Avoid using uninitialized variable.
57727
57728         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57729                     Ulrich Drepper  <drepper@redhat.com>
57730
57731         [BZ #1302]
57732         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57733         changed.
57734         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57735
57736         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57737
57738         [BZ #281]
57739         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57740         * lib/regcomp.c: Remove unnecessary uses of
57741         unsigned RE_TRANSLATE_TYPE.
57742         * lib/regex_internal.h: Likewise.
57743         * lib/regex_internal.c: Likewise.
57744         * lib/regexec.c: Likewise.
57745         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57746
57747         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57748
57749         * lib/regexec.c (find_recover_state): Remove unnecessary
57750         initialization.
57751         (transit_state_bkref): Make DFA a const pointer.
57752         (get_subexp): Likewise.
57753         (check_arrival): Likewise.
57754         (update_cur_sifted_state): Likewise.
57755         (re_search_internal): Likewise.
57756         (prune_impossible_nodes): Likewise.
57757         (acquire_init_state_context): Likewise.
57758         (proceed_next_node): Likewise.
57759         (set_regs): Likewise.
57760         (free_fail_stack_return): Likewise.
57761         (check_arrival_expand_ecl): Mark DFA parameter as const.
57762         (check_arrival_expand_ecl_sub): Likewise.
57763         (check_subexp_limits): Likewise.
57764         (sub_epsilon_src_nodes):  Likewise.
57765         (add_epsilon_src_nodes):  Likewise.
57766         (merge_state_array): Likewise.
57767         (update_regs): Likewise.
57768         (build_trtable): Likewise.
57769         (sift_states_backward): Mark MCTX parameter as const.
57770         (build_sifted_states): Likewise.
57771         (update_cur_sifted_state): Likewise.
57772         (sift_states_mkref): Likewise.
57773         (check_arrival_expand_ecl): Mark eclosure as const.
57774         (check_dst_limits_calc_pos_1): Likewise.
57775         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57776         pointer.
57777
57778         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57779
57780         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57781         (transit_state_sb): Likewise.
57782         (transit_state_mb): Likewise.
57783         (sift_states_iter_mb): Likewise.
57784         (check_arrival_add_next_nodes): Likewise.
57785         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57786         [_LIBC] (re_search_2_stub): Use mempcpy.
57787
57788         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57789         mbrtowc for very simple UTF-8 case.
57790
57791         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57792         a pointer-to-const.
57793         (re_acquire_state_context): Likewise.
57794         * lib/regex_internal.h: Adjust prototypes.
57795
57796         * lib/regex.c: Prevent using C++ compilers.
57797
57798         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57799         (re_acquire_state_context): Likewise.
57800
57801 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57802
57803         * modules/regex (Depends-on): Add ssize_t.
57804
57805 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57806
57807         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57808         translation table.
57809
57810 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57811
57812         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57813
57814 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57815             Bruno Haible  <bruno@clisp.org>
57816
57817         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57818         <sys/types.h> and <inttypes.h>.
57819
57820 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57821
57822         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57823         `__error_t_defined', so argp.h will not typedef the former.
57824
57825 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57826
57827         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57828         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57829         glibc names.  Even if glibc is changed to conform to POSIX, the
57830         traditional names will be available anyway, since regex depends on
57831         the extensions module.  Also, fix a longstanding typo in the
57832         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57833         reported by Emanuele Giaquinta.  Also, change sense of cached
57834         variable, so that the message makes sense.
57835
57836 2006-03-24  Simon Josefsson  <jas@extundo.com>
57837
57838         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57839         including some doc fixes.
57840         (base64_encode_alloc): Fix +1 bug on allocation failures.
57841
57842 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57843
57844         * lib/base64.c (base64_encode): Do not read past end of array with
57845         unsanitized input on systems with CHAR_BIT > 8.
57846
57847 2006-03-24  Eric Blake  <ebb9@byu.net>
57848
57849         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57850
57851 2006-03-22  Karl Berry  <karl@gnu.org>
57852
57853         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57854         * config/srclistvars.sh (COREUTILS): new var.
57855
57856 2006-03-17  Jim Meyering  <jim@meyering.net>
57857
57858         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57859         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57860
57861 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57862
57863         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57864         no longer needs it.  Instead, check that regoff_t is as least
57865         as wide as ptrdiff_t.
57866
57867         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57868         so that our regex.h stays compatible with the installed regex.
57869         This is helpful for installers who configure --without-included-regex.
57870         Problem reported by Emanuele Giaquinta.
57871
57872 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57875         Typedef to long int, not to off_, as POSIX will likely change
57876         in that direction.
57877
57878 2006-03-15  Eric Blake  <ebb9@byu.net>
57879
57880         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57881
57882 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57883
57884         * lib/argp-help.c (validate_uparams): Fix typo
57885         * lib/argp-parse.c (argp_default_options): Consistently begin help
57886         messages with a lowercase letter.
57887
57888 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57889
57890         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57891         overrun buffers and shouldn't be used (much as gets shouldn't be
57892         used).
57893         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57894
57895 2006-03-08  Simon Josefsson  <jas@extundo.com>
57896
57897         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57898         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57899
57900 2006-03-08  Simon Josefsson  <jas@extundo.com>
57901
57902         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57903         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57904
57905 2006-03-08  Simon Josefsson  <jas@extundo.com>
57906
57907         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57908         signal that configure disabled the device.
57909
57910 2006-03-08  Simon Josefsson  <jas@extundo.com>
57911
57912         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57913         languages.
57914
57915 2006-03-07  Simon Josefsson  <jas@extundo.com>
57916
57917         * modules/getopt (Depends-on): Add unistd.
57918
57919         * modules/unistd: New file.
57920
57921 2006-03-07  Simon Josefsson  <jas@extundo.com>
57922
57923         * modules/gc-random: New file.
57924
57925 2006-03-07  Simon Josefsson  <jas@extundo.com>
57926
57927         * m4/unistd_h.m4: New file.
57928
57929 2006-03-07  Simon Josefsson  <jas@extundo.com>
57930
57931         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57932         test to be side-effect free by storing the result in the cache
57933         variable gl_cv_lib_readline, and moving the assignment of
57934         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57935         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57936
57937 2006-03-07  Simon Josefsson  <jas@extundo.com>
57938
57939         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57940         error on missing devices (the functions will return an error).
57941
57942         * m4/gc.m4: Move random stuff to gc-random.m4
57943
57944 2006-03-07  Simon Josefsson  <jas@extundo.com>
57945
57946         * lib/unistd_.h: New file.
57947
57948 2006-03-07  Simon Josefsson  <jas@extundo.com>
57949
57950         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57951
57952 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57955         Problem reported by Juan Manuel Guerrero.
57956
57957 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57960         the unistd module.
57961         * lib/getlogin_r.c: Likewise.
57962         * lib/getlogin_r.h: Likewise.
57963         * lib/glob.c: Likewise.
57964         * lib/pagealign_alloc.c: Likewise.
57965         * lib/unistd_.h: Remove; no longer needed.
57966
57967 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57970         Add unistd.
57971         * modules/c-stack (Depends-on): Add unistd.
57972         * modules/getlogin_r: Likewise.
57973         * modules/glob: Likewise.
57974         * modules/pagealign_alloc: Likewise.
57975         * modules/unistd (Files): Remove lib/unistd_.h.
57976         (EXTRA_DIST): Remove.
57977         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57978         need unistd_.h.
57979         (MOSTLYCLEANFILES): Remove unistd.h-t.
57980
57981 2006-03-03  Simon Josefsson  <jas@extundo.com>
57982
57983         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57984
57985 2006-03-03  Simon Josefsson  <jas@extundo.com>
57986
57987         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57988         libidn and bison.
57989
57990 2006-03-03  Simon Josefsson  <jas@extundo.com>
57991
57992         * build-aux/maint.mk: Add indent target.
57993
57994 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57995
57996         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57997         our replacement poll.h in any case, to avoid a differing
57998         declaration from a system header.  Seen on AIX.
57999
58000 2006-03-01  Simon Josefsson  <jas@extundo.com>
58001
58002         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
58003         <kasal@ucw.cz>.
58004
58005 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58006
58007         * modules/gettime (Depends-on): Add extensions module.
58008         * modules/nanosleep (Depends-on): Likewise.
58009         * modules/settime (Depends-on): Likewise.
58010
58011 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58012
58013         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
58014         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
58015         pedantically.
58016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58017         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
58018
58019         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
58020         not "==".  Reported by Ralf Wildenhues.
58021
58022 2006-03-01  Karl Berry  <karl@gnu.org>
58023
58024         * doc/Copyright/request-*: new files, synced from gnuorg.
58025
58026 2006-03-01  Karl Berry  <karl@gnu.org>
58027
58028         * config/srclist.txt (Copyright/*): new entries.
58029
58030 2006-02-28  Simon Josefsson  <jas@extundo.com>
58031
58032         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
58033
58034 2006-02-27  Simon Josefsson  <jas@extundo.com>
58035
58036         * lib/base64.h: Indent #define's.  From Jim Meyering
58037         <jim@meyering.net>.
58038
58039 2006-02-27  Jim Meyering  <jim@meyering.net>
58040
58041         Revert the change of 2006-02-24, so these files can continue
58042         to be sync'd from gettext.
58043         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
58044         of `config.h'.
58045
58046 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58047
58048         * modules/intprops: New file.
58049         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58050         Add intprops.
58051         * modules/getloadavg (Files): Remove lib/intprops.h.
58052         (Depends-on): Add intprops.
58053         * modules/human: Likewise.
58054         * modules/inttostr: Likewise.
58055         * modules/openat: Likewise.
58056         * modules/sig2str: Likewise.
58057         * modules/userspec: Likewise.
58058         * modules/utimecmp: Likewise.
58059         * modules/xnanosleep: Likewise.
58060         * modules/xstrtol: Likewise.
58061
58062 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
58063
58064         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
58065         * modules/lock-tests (TESTS): Use $(EXEEXT).
58066         * modules/tls-tests: Likewise.
58067         * modules/argp-tests: Likewise.
58068         (check_PROGRAMS): New var, replacing...
58069         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
58070
58071 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58072
58073         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
58074         `config.h'.
58075
58076 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
58079
58080 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58081
58082         Sync from coreutils.
58083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
58084         gl_CHDIR_SAFER.
58085
58086 2006-02-22  Jim Meyering  <jim@meyering.net>
58087
58088         Sync from coreutils.
58089         * m4/chdir-safer.m4: New file.
58090
58091 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58092
58093         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
58094         AT_FDCWD exceeds INT_MAX.
58095         * lib/openat.h (AT_FDCWD): Likewise.
58096
58097 2006-02-17  Eric Blake  <address@hidden>
58098
58099         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
58100
58101 2006-02-16  Simon Josefsson  <jas@extundo.com>
58102
58103         * modules/getaddrinfo (Depends-on): Add sys_socket.
58104
58105 2006-02-15  Simon Josefsson  <jas@extundo.com>
58106
58107         * build-aux/maint.mk: Add dsyntax-check rule.
58108
58109 2006-02-15  Eric Blake  <ebb9@byu.net>
58110
58111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
58112         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
58113         'present but cannot compile' warnings on cygwin.
58114         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
58115         use ws2tcpip.h if sys/socket.h works.
58116         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
58117         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
58118
58119 2006-02-14  Simon Josefsson  <jas@extundo.com>
58120
58121         * modules/maintainer-makefile (Files): Rename.
58122
58123         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
58124         and (the local) Makefile.cfg to maint-cfg.mk.
58125
58126         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
58127         to the latter.
58128
58129         * modules/maintainer-makefile: New module.
58130
58131         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
58132         severaly stripped to make it possible to build it up from scratch
58133         with reliable tests.
58134
58135         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
58136         fixes to permit overriding the default actions when configure and
58137         makefile are not available.
58138
58139 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         Sync from coreutils.
58142         * modules/lstat (Depends-on): Don't depend on xalloc.
58143         (License): Change from GPL to LGPL, since this is now simply a
58144         replacement for a libc function.
58145
58146 2006-02-14  Jim Meyering  <jim@meyering.net>
58147
58148         Sync from coreutils.
58149
58150         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
58151         failure on deficient systems, and simplify gnulib lgpl dependencies.
58152         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
58153         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
58154
58155         * lib/xalloc-die.c: Remove unused definition of N_.
58156
58157 2006-02-14  Jim Meyering  <jim@meyering.net>
58158
58159         Sync from coreutils.
58160         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
58161         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
58162         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
58163         double-quote uses of that variable, to accommodate the rare case in
58164         which getmntent is available in none of the libraries checked.  This
58165         happens at least on FreeBSD 5.0.
58166
58167 2006-02-13  Simon Josefsson  <jas@extundo.com>
58168
58169         * gnulib-tool (Usage): Fix --import, from
58170         karl@freefriends.org (Karl Berry).
58171
58172 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58173
58174         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
58175
58176 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
58177
58178         * lib/argp-namefrob.h: Restore changes accidentally lost during the
58179         "autoupdate" on 2005-12-12.
58180
58181 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58182
58183         * modules/closeout (Depends-on): Remove atexit.
58184
58185 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58186
58187         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
58188         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
58189
58190 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58191
58192         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
58193         __EXTENSIONS__ if this causes compilation to fail.  Problem
58194         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
58195         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
58196
58197 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
58200         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
58201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
58202         All uses changed.
58203
58204 2006-01-26  Simon Josefsson  <jas@extundo.com>
58205
58206         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
58207         prototype is visible on mingw32.
58208
58209         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
58210         for mingw32.
58211
58212         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
58213         mingw32).
58214
58215 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58216
58217         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
58218         attempt to open for write; this always fails, at least on POSIX
58219         hosts.  This reinstates the 2006-01-09 change, which was
58220         inadvertently removed.
58221
58222 2006-01-26  Bruno Haible  <bruno@clisp.org>
58223
58224         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
58225         Reported by Paul Eggert.
58226
58227 2006-01-26  Bruno Haible  <bruno@clisp.org>
58228             Paul Eggert  <eggert@cs.ucla.edu>
58229
58230         * lib/stdbool_.h (_Bool)
58231         [(! (defined __cplusplus || defined __BEOS__)
58232           && !defined __GNUC__
58233           && !(defined __HP_cc || defined __xlc__
58234                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
58235                || defined __sgi))]:
58236         #define to signed char in these cases too; this simplifies
58237         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
58238         etc., separately) and makes it more conservative.
58239
58240 2006-01-25  Simon Josefsson  <jas@extundo.com>
58241
58242         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
58243         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
58244         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
58245
58246 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58247
58248         * lib/argp-namefrob.h: Bugfix. Remove stray #
58249
58250 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
58253         so that we test the test.
58254         Check for yet another HP-UX cc bug involving *bool |= bool.
58255
58256 2006-01-25  Karl Berry  <karl@gnu.org>
58257
58258         * config/srclist.txt (vasnprintf.c): sync lost.
58259
58260 2006-01-25  Jim Meyering  <jim@meyering.net>
58261
58262         Sync from the stable (b5) branch of coreutils:
58263
58264         * lib/fts.c (fts_children): Don't let close() clobber errno from
58265         failed fchdir().
58266
58267         * lib/fts.c (fts_stat): When following a symlink-to-directory,
58268         don't necessarily interpret stat-fails+lstat-succeeds as indicating
58269         a dangling symlink.  That can also happen at least for ELOOP.
58270         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
58271         FYI, this bug predates the inclusion of fts.c in coreutils.
58272
58273         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
58274         in their own block, so pre-c99 compilers don't object.
58275
58276         Avoid the double-free (first in fts_read, second in fts_close) that
58277         would occur when an `active' directory is made inaccessible (e.g.,
58278         via chmod a-x) during a traversal.
58279         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58280         before returning.  Reproduce this failure by
58281         mkdir -p a/b; cd a; chmod a-x . b
58282         Reported by Stavros Passas.
58283
58284 2006-01-25  Jim Meyering  <jim@meyering.net>
58285
58286         * lib/fileblocks.c: Remove more useless parentheses.
58287         * lib/readutmp.h: Likewise.
58288
58289 2006-01-25  Bruno Haible  <bruno@clisp.org>
58290
58291         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
58292         warnings.
58293         Reported by Paul Eggert.
58294
58295 2006-01-25  Bruno Haible  <bruno@clisp.org>
58296
58297         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
58298         rid of a trap command. For Solaris sh.
58299         Reported by Mark D. Baushke <mdb@gnu.org>.
58300
58301 2006-01-24  Simon Josefsson  <jas@extundo.com>
58302
58303         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
58304         Bruno.
58305
58306 2006-01-24  Karl Berry  <karl@gnu.org>
58307
58308         * config/srclist.txt (argp-namefrob.h): sync lost.
58309
58310 2006-01-24  Jim Meyering  <jim@meyering.net>
58311
58312         * modules/openat (Files): Add lib/intprops.h.
58313         From Mark D. Baushke.
58314
58315 2006-01-24  Jim Meyering  <jim@meyering.net>
58316
58317         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
58318         Reported by Mark D. Baushke.
58319
58320 2006-01-24  Jim Meyering  <jim@meyering.net>
58321
58322         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
58323
58324 2006-01-24  Bruno Haible  <bruno@clisp.org>
58325
58326         * modules/strnlen (Maintainer): Change from glibc to all.
58327
58328 2006-01-24  Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
58331         Patch by Paul Eggert.
58332
58333 2006-01-24  Bruno Haible  <bruno@clisp.org>
58334
58335         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
58336         already has it.
58337         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
58338         2005-11-26.
58339
58340         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
58341         'signed char' to avoid problems with the built-in _Bool type.
58342         Reported by Paul Eggert on 2005-11-26.
58343
58344 2006-01-24  Bruno Haible  <bruno@clisp.org>
58345
58346         * gnulib-tool (func_import): Avoid constructing complicated sed
58347         expressions inside backquote.
58348         Report and solution by Mark D. Baushke <mdb@gnu.org>.
58349
58350 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
58351
58352         These changes imported from libc.
58353         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
58354         test and two separate function calls.
58355         * lib/strndup.c (__strndup): Add libc_hidden_def.
58356
58357 2006-01-23  Simon Josefsson  <jas@extundo.com>
58358
58359         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
58360         Remove the test_*_SOURCES variable: automake infers it by default.
58361         * modules/tls-tests: Likewise.
58362
58363 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58364
58365         Work around porting bugs reported by Dieter in
58366         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
58367         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
58368         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
58369         Include "getopt.h" first, to check interface.
58370         (getenv): Declare only if defined HAVE_DECL_GETENV &&
58371         !HAVE_DECL_GETENV.
58372         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
58373         (__strndup): Revert to K&R-style function dfns, the glibc style.
58374         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
58375         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
58376         Include strnlen.h first, to get prototype properly.
58377         (strnlen): Renamed from __strnlen.
58378         Remove weak alias.
58379
58380 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58381
58382         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
58383
58384 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58385
58386         * config/srclist.txt: Adjust to reflect glibc reorganization.
58387         This affects only comments.
58388
58389 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58390
58391          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
58392          Reported by Bruce Korb <bkorb@gnu.org>.
58393
58394 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58395
58396         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
58397         to pacify gcc -Wswitch-default.
58398
58399 2006-01-22  Bruno Haible  <bruno@clisp.org>
58400
58401         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
58402         temporary buffer for sprintf, take into account the precision also
58403         for 'd', 'i', 'u', 'o', 'x', 'X'.
58404
58405 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58406
58407         * modules/argp-tests: New module
58408         * tests/test-argp.c: New file
58409         * tests/test-argp-2.sh: New file
58410
58411 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58412
58413         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
58414         (__argp_base_name): Removed
58415         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
58416         typo.
58417         (__argp_base_name): Provide macro definition or extern declaration
58418         depending on the configuration
58419
58420 2006-01-20  Simon Josefsson  <jas@extundo.com>
58421
58422         * modules/inet_ntop (Depends-on): Depend on sys_socket.
58423
58424 2006-01-20  Simon Josefsson  <jas@extundo.com>
58425
58426         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
58427
58428 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
58431         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
58432         Suggested by Bruno Haible.
58433
58434 2006-01-20  Karl Berry  <karl@gnu.org>
58435
58436         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
58437         until changes propagate, I guess.
58438
58439 2006-01-19  Simon Josefsson  <jas@extundo.com>
58440
58441         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
58442
58443 2006-01-19  Simon Josefsson  <jas@extundo.com>
58444
58445         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
58446
58447 2006-01-19  Simon Josefsson  <jas@extundo.com>
58448
58449         * gnulib-tool: Set check_PROGRAMS.
58450
58451         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58452         modules/des-tests, modules/gc-arcfour-tests,
58453         modules/gc-arctwo-tests, modules/gc-des-tests,
58454         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58455         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58456         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58457         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58458         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58459         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
58460         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
58461         test_*_SOURCES.
58462
58463 2006-01-18  Simon Josefsson  <jas@extundo.com>
58464
58465         * modules/socklen (Depends-on): Depend on sys_socket.
58466
58467 2006-01-18  Simon Josefsson  <jas@extundo.com>
58468
58469         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58470         modules/des-tests, modules/gc-arcfour-tests,
58471         modules/gc-arctwo-tests, modules/gc-des-tests,
58472         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58473         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58474         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58475         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58476         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58477         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
58478         $(EXEEXT) to automake TESTS variable, for mingw32.
58479
58480 2006-01-17  Simon Josefsson  <jas@extundo.com>
58481
58482         * modules/socklen (Include): Need sys/socket.h.
58483
58484 2006-01-17  Bruno Haible  <bruno@clisp.org>
58485
58486         * modules/ssize_t (Include): Add <sys/types.h>.
58487
58488 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
58489
58490         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
58491         it's not portable and it doesn't work with cross-compiles.
58492         Problem reported by Bruno Haible.  Fix missing-$ typo in
58493         'test "gl_cv_ignore_unused_libraries" ...' that prevented
58494         -zignore from being used with Sun's C compiler.
58495
58496 2006-01-12  Simon Josefsson  <jas@extundo.com>
58497
58498         * lib/base64.c: Fix warning, reported by Bruno Haible
58499         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
58500
58501 2006-01-12  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/ldd: New file.
58504         * build-aux/ldd.sh.in: New file.
58505         * MODULES.html.sh (Support for building libraries and executables): Add
58506         ldd.
58507
58508 2006-01-12  Bruno Haible  <bruno@clisp.org>
58509
58510         * m4/ldd.m4: New file.
58511
58512 2006-01-12  Bruno Haible  <bruno@clisp.org>
58513
58514         * gnulib-tool (func_import, func_create_testdir): Don't go into an
58515         endless loop while replacing $auxdir with build-aux.
58516
58517 2006-01-11  Simon Josefsson  <jas@extundo.com>
58518
58519         * lib/stdint_.h (SIZE_MAX): Add missing (.
58520
58521 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         Sync from coreutils.
58524         * lib/md5.c: Fix commentary typos.
58525         (alignof, UNALIGNED_P): No need for a GCC-specific version.
58526         * lib/md5.h (__attribute__): Remove; unused.
58527         * lib/sha1.c: Fix commentary to match md5 better.
58528         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
58529         so that we don't need to worry about alignment.  All uses changed.
58530         This merges the 2005-10-28 md5 change into sha1.
58531
58532 2006-01-11  Jim Meyering  <jim@meyering.net>
58533
58534         Sync from coreutils.
58535         * lib/md5.c (OP): Fix spacing.
58536
58537 2006-01-11  Bruno Haible  <bruno@clisp.org>
58538
58539         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58540         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
58541         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
58542
58543 2006-01-11  Bruno Haible  <bruno@clisp.org>
58544
58545         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58546         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
58547         the "early" section as well.
58548
58549 2006-01-11  Bruno Haible  <bruno@clisp.org>
58550
58551         Avoid "ar: no archive members specified" error on MacOS X.
58552         * gnulib-tool (func_modules_add_dummy): New function.
58553         (func_import, func_create_testdir): Invoke it.
58554
58555 2006-01-11  Bruno Haible  <bruno@clisp.org>
58556
58557         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
58558         with $auxdir in AC_CONFIG_FILES statements.
58559
58560 2006-01-11  Bruno Haible  <bruno@clisp.org>
58561
58562         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58563         Initialize also noinst_HEADERS to empty.
58564
58565 2006-01-11  Bruno Haible  <bruno@clisp.org>
58566
58567         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
58568         variables.
58569         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
58570         autoreconf.
58571
58572 2006-01-11  Bruno Haible  <bruno@clisp.org>
58573
58574         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58575         overridable by the user.
58576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58577
58578 2006-01-10  Simon Josefsson  <jas@extundo.com>
58579
58580         * modules/sys_socket: New file.
58581
58582 2006-01-10  Simon Josefsson  <jas@extundo.com>
58583
58584         * m4/sys_socket_h.m4: New file.
58585
58586 2006-01-10  Simon Josefsson  <jas@extundo.com>
58587
58588         * lib/socket_.h: New file.
58589
58590 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         * modules/readutmp (Maintainer): Add myself.
58593
58594 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58597         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58598         People who are still concerned with buggy memcmp implementations
58599         can invoke gl_FUNC_MEMCMP themselves.
58600
58601 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * lib/regex_internal.h (BITSET_WORD_BITS):
58604         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58605         preprocessor mishandles large unsigned values as if they were signed.
58606         Problem reported by Claudio Fontana in
58607         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
58608
58609 2006-01-10  Jim Meyering  <jim@meyering.net>
58610
58611         Avoid the double-free (first in fts_read, second in fts_close) that
58612         would occur when an `active' directory is made inaccessible (e.g.,
58613         via chmod a-x) during a traversal.
58614         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58615         before returning.  Reproduce this failure by
58616         mkdir -p a/b; cd a; chmod a-x . b
58617         Reported by Stavros Passas.
58618
58619         Sync from coreutils.
58620         * lib/sha1.c: Tweak grammar in a comment.
58621
58622 2006-01-10  Jim Meyering  <jim@meyering.net>
58623
58624         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
58625         Patch by Joerg Sonnenberger.
58626
58627 2006-01-10  Bruno Haible  <bruno@clisp.org>
58628
58629         * modules/readutmp: Depend on module free.
58630         * modules/strtok_r: Depend on module restrict.
58631
58632 2006-01-10  Bruno Haible  <bruno@clisp.org>
58633
58634         * modules/gettext (configure.ac): Add an invocation of
58635         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
58636
58637 2006-01-10  Bruno Haible  <bruno@clisp.org>
58638
58639         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
58640         Reported by Werner Lemberg <wl@gnu.org>.
58641
58642 2006-01-10  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/localcharset.c: Update from GNU gettext.
58645
58646 2006-01-10  Bruno Haible  <bruno@clisp.org>
58647
58648         * lib/argp.h (__const): Remove macro. Use const instead.
58649         * lib/argp-fmtstream.h (__const): Likewise.
58650         * lib/glob_.h (__const): Remove macro.
58651         * lib/glob-libc.h: Use const instead of __const.
58652
58653 2006-01-10  Bruno Haible  <bruno@clisp.org>
58654
58655         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
58656         variable.
58657         Needed to avoid an automake error regarding the 'gettext' module.
58658
58659 2006-01-09  Simon Josefsson  <jas@extundo.com>
58660
58661         * modules/inet_ntop (Depends-on): Add restrict.
58662
58663 2006-01-09  Simon Josefsson  <jas@extundo.com>
58664
58665         * modules/gc-rijndael-tests (License): Put under LGPL.
58666
58667         * modules/gc-des-tests (License): Likewise.
58668
58669         * modules/gc-arcfour-tests (License): Likewise.
58670
58671         * modules/gc-arctwo-tests (License): Likewise.
58672
58673         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
58674
58675         * modules/gc-hmac-sha1-tests (Files): Likewise.
58676
58677         * modules/gc-hmac-md5-tests (License): Likewise.
58678
58679         * modules/gc-sha1-tests (License): Likewise.
58680
58681         * modules/gc-md5-tests (License): Likewise.
58682
58683         * modules/gc-md4-tests (License): Likewise.
58684
58685         * modules/gc-md2-tests (License): Likewise.
58686
58687         * modules/gc-tests (License): Likewise.
58688
58689         * modules/des-tests (License): Likewise.
58690
58691         * modules/md4-tests (License): Likewise.
58692
58693         * modules/md2-tests (License): Likewise.
58694
58695 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         Sync from coreutils:
58698
58699         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
58700         * modules/lib-ignore: New file.
58701         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
58702         chdir-safer.m4, lchmod.m4.
58703         * modules/openat: Add mkdirat.c, openat-priv.h.
58704
58705 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58706
58707         Sync from coreutils.
58708         * m4/lib-ignore.m4: New file.
58709         * m4/lchmod.m4: New file.
58710
58711 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         Sync from coreutils.
58714         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
58715         for write access: POSIX says that must fail.
58716         * lib/fts.c (diropen): Likewise.
58717         * lib/save-cwd.c (save_cwd): Likewise.
58718         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
58719         well, for minor improvements on hosts that lack O_DIRECTORY.
58720         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
58721         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
58722         Fall back on chown if open failed with EACCES.
58723
58724         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
58725         Report an error at compile-time if only a 1-second nominal clock
58726         resolution is found.
58727
58728         * lib/lchmod.h: New file.
58729         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58730         (make_dir_parents): Use lchown rather than chown, and
58731         lchmod rather than chmod.
58732
58733         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58734         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58735         "proc" reported by n0dalus.
58736
58737         * lib/mountlist.c: Include <limits.h>.
58738         (dev_from_mount_options)
58739         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58740         New function.  It no longer assumes "dev=" has the System V meaning
58741         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58742         (read_file_system_list)
58743         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58744         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58745         dev= in that case.
58746
58747         * lib/posixtm.h (PDS_PRE_2000): New macro.
58748         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58749         allow_century.  All usages changed.  Reject dates outside the range
58750         1969-1999 if PDS_PRE_2000 is used.
58751
58752 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58753
58754         Sync from coreutils.
58755         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58756         (Time of day items): Mention the possibility of leap seconds.
58757         Problem reported by Dr. David Alan Gilbert.
58758
58759 2006-01-09  Jim Meyering  <jim@meyering.net>
58760
58761         Sync from coreutils.
58762
58763         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58764
58765         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58766
58767         * lib/modechange.c (mode_compile): Reject an invalid mode string
58768         that starts with an octal digit.  From Andreas Gruenbacher.
58769
58770         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58771         and dup to open_safer and dup_safer, respectively.
58772         (openat_permissive): Fix typo in comment.
58773
58774         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58775         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58776         (_): Remove; no longer needed.
58777         (openat): Renamed from rpl_openat; no need for rpl_openat
58778         since openat.h renames openat for us.
58779         Replace most of the body with a call to openat_permissive,
58780         to avoid duplicate code.
58781         Port to (probably hypothetical) environments were mode_t is
58782         wider than int.
58783         (openat_permissive): Require mode arg, so that we can check
58784         types better.  Put it just after flags.  Change cwd failure
58785         indicator from pointer-to-bool to pointer-to-errno-value.
58786         All callers changed.
58787         Invoke openat_save_fail and/or openat_restore_fail if
58788         cwd_errno is null, so that openat can call us.
58789         (openat_permissive, fdopendir, fstatat, unlinkat):
58790         Simplify errno handling to avoid some duplicate code,
58791         as it's OK to set errno on success.
58792         * lib/openat.h: Revamp code so that function macros depend on
58793         __OPENAT_PREFIX only, not also on AT_FDCWD.
58794         (openat_ro): Remove.  Caller changed to use openat_permissive.
58795         (openat_permissive): Now a macro, if not a function.
58796         (openat_restore_fail, openat_save_fail): Now always functions,
58797         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58798
58799         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58800         and openat.c.
58801         * lib/mkdirat.c: Include openat-priv.h.
58802         Remove definitions of macros defined therein.
58803         * lib/openat.c: Likewise.
58804
58805         * lib/mkdirat.c (mkdirat): New file and function.
58806         * lib/openat.h (mkdirat): Declare.
58807
58808         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58809
58810         * lib/openat.h (openat_permissive): Declare.
58811         (openat_ro): Define.
58812
58813         * lib/openat.c (EXPECTED_ERRNO): New macro.
58814         (openat_permissive): New function -- used in remove.c rewrite.
58815         (all functions): Set errno just before returning, only if there
58816         was an actual failure.
58817         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58818
58819         Emulate openat-family functions using Linux's procfs, if possible.
58820         Idea and some code based on Ulrich Drepper's glibc changes.
58821
58822         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58823         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58824         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58825         before falling back on save_cwd and restore_cwd.
58826         (fdopendir, fstatat, unlinkat): Likewise.
58827
58828         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58829         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58830
58831         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58832         as second argument to va_arg.  Otherwise, some versions of gcc
58833         warn that `if this code is reached, the program will abort'.
58834
58835 2006-01-09  Jim Meyering  <jim@meyering.net>
58836
58837         Sync from coreutils.
58838         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58839         Require openat-priv.h.
58840
58841 2006-01-09  Bruno Haible  <bruno@clisp.org>
58842
58843         * modules/strnlen (Include): Use strnlen.h.
58844
58845 2006-01-09  Bruno Haible  <bruno@clisp.org>
58846
58847         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58848
58849 2006-01-09  Bruno Haible  <bruno@clisp.org>
58850
58851         * lib/sysexit_.h (EX_OK): New macro.
58852         Suggested by Martin Lambers <marlam@marlam.de>.
58853
58854 2006-01-09  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58857         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58858
58859 2006-01-09  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58862         numbers.
58863
58864 2006-01-09  Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58867         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58868         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58869         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58870
58871 2006-01-09  Bruno Haible  <bruno@clisp.org>
58872
58873         * build-aux/javacomp.sh.in: New file, moved from lib/.
58874         * modules/javacomp-script (Files): Update.
58875         (configure.ac): Add AC_CONFIG_FILES invocation.
58876         (EXTRA_DIST): Remove variable.
58877
58878         * build-aux/javaexec.sh.in: New file, moved from lib/.
58879         * modules/javaexec (Files): Update.
58880         (configure.ac): Add AC_CONFIG_FILES invocation.
58881         (EXTRA_DIST): Remove javaexec.sh.in.
58882
58883         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58884         * modules/csharpcomp-script (Files): Update.
58885         (configure.ac): Add AC_CONFIG_FILES invocation.
58886         (EXTRA_DIST): Remove variable.
58887
58888         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58889         * modules/csharpexec (Files): Update.
58890         (configure.ac): Add AC_CONFIG_FILES invocation.
58891         (EXTRA_DIST): Remove csharpexec.sh.in.
58892
58893 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58894
58895         Sync from coreutils.
58896
58897         Add POSIX ACL support
58898         * lib/acl.h (copy_acl, set_acl): Add declarations.
58899         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58900         systems other than Linux.
58901         (chmod_or_fchmod): New function: use fchmod when possible,
58902         and chmod otherwise.
58903         (file_has_acl): Add a POSIX ACL implementation, with a
58904         Linux-specific subcase.
58905         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58906         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58907         acls are unsupported.
58908         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58909         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58910         are unsupported.
58911
58912 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58913
58914         Sync from coreutils.
58915         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58916
58917 2006-01-07  Bruno Haible  <bruno@clisp.org>
58918
58919         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58920         gl_EARLY.
58921
58922 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58925         Problem reported for Mingw by Mark Junker.
58926
58927 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58928
58929         * README: Gnulib normally doesn't generate a tarball.
58930
58931 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58934         long int, not int, for nanosecond counts, so that people who are
58935         used to POSIX struct timespec won't be surprised.  Reported by Jim
58936         Meyering.
58937
58938 2005-12-28  Bruno Haible  <bruno@clisp.org>
58939
58940         * build-aux/config.rpath: Update from GNU gettext.
58941
58942 2005-12-16  Jim Meyering  <jim@meyering.net>
58943
58944         * modules/fprintftime: New module.
58945         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58946
58947 2005-12-16  Jim Meyering  <jim@meyering.net>
58948
58949         * m4/fprintftime.m4: New file.
58950
58951 2005-12-16  Jim Meyering  <jim@meyering.net>
58952
58953         * lib/fprintftime.c, lib/fprintftime.h: New files.
58954
58955 2005-12-15  Simon Josefsson  <jas@extundo.com>
58956
58957         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58958         new m4/socklen.m4.
58959
58960 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58961
58962         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58963         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58964
58965 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58966
58967         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58968         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58969         struct uparams is valid. Fall back to the default values if it is
58970         not.
58971
58972 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58973
58974         * modules/argp (Files): Add argp-pin.c
58975         (Depends-on): dirname
58976         (lib_SOURCES): Add argp-pin.c
58977
58978 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58979
58980         * m4/argp.m4:  Check if program_invocation_name and
58981         program_invocation_short_name are declared and define appropriate
58982         macros if they are not.
58983
58984 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58985
58986         * lib/argp-help.c (__argp_base_name): New function
58987         (__argp_short_program_name): Rewrite using __argp_base_name
58988         * lib/argp-namefrob.h: Define program_invocation_name and
58989         program_invocation_short_name if requested
58990         (__argp_base_name): Add prototype
58991         * lib/argp-parse.c (argp_def): Use gettext wrappers
58992         (argp_default_parser): Use __argp_base_name
58993         * lib/argp-pin.c: New file. Defines program_invocation_name and
58994         program_invocation_short_name on systems that lack them.
58995
58996 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58999         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59000         porting problem reported by Georg Schwarz in
59001         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59002
59003 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
59006         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59007         porting problem reported by Georg Schwarz in
59008         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59009
59010 2005-12-05  Bruno Haible  <bruno@clisp.org>
59011
59012         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
59013         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
59014         Reported by Mark Junker <mjscod@gmx.de>.
59015
59016 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
59017
59018         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
59019         Use implementation from Albert Chin, with some
59020         comments/corrections by Stepan Kasal and myself.
59021
59022 2005-12-02  Bruno Haible  <bruno@clisp.org>
59023
59024         * gnulib-tool (func_import): Accept GPLed build tool modules when
59025         --lgpl is given.
59026         * modules/csharpcomp-script: New file.
59027         * modules/csharpcomp: Depend on it.
59028         * modules/javacomp-script: New file.
59029         * modules/javacomp: Depend on it.
59030         Suggested by Simon Josefsson.
59031
59032 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59033
59034         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
59035         statement, to work around an HP-UX 10.20 compiler bug reported by
59036         Peter O'Gorman.
59037
59038 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * modules/savedir (Depends-on): Add openat.
59041
59042 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
59045         (uintmax_t) [defined uintmax_t]: Do not declare.
59046         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
59047         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
59048         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
59049         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
59050         sake of portability to weird hosts that C allows (though we don't
59051         know of any practical examples).
59052
59053         * lib/savedir.h (fdsavedir): New decl.
59054         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
59055         contains most of the former guts of savedir.
59056         (savedir): Use savedirstream.
59057         Include "openat.h".
59058
59059 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59060
59061         * modules/obstack (Files): Add m4/ulonglong.m4.
59062         Problem reported by Davide Angelocola.
59063
59064 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59065
59066         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
59067         coreutils no longer futzes with rounding modes.
59068
59069 2005-11-14  Jim Meyering  <jim@meyering.net>
59070
59071         * lib/mkstemp-safer.c: Include <config.h>, required for possible
59072         replacement of mkstemp.
59073
59074 2005-11-10  Simon Josefsson  <jas@extundo.com>
59075
59076         * lib/readline.c: Remove EOL.
59077
59078 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59079
59080         * modules/gethrxtime (Depends-on): Add gettime.
59081
59082 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59083
59084         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
59085         or gettimeofday; no longer needed.
59086
59087 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
59090         time business.
59091         (gethrxtime) [! (HAVE_NANOUPTIME
59092         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
59093         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
59094         our own approximation.
59095
59096 2005-11-08  Eric Blake  <ebb9@byu.net>
59097
59098         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59099
59100 2005-11-08  Eric Blake  <ebb9@byu.net>
59101
59102         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59103
59104 2005-11-04  Bruno Haible  <bruno@clisp.org>
59105
59106         * gnulib-tool: Implement --update mode.
59107
59108 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59109
59110         Fix porting problem reported by Theodoros V. Kalamatianos.
59111         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
59112         Don't assume that futimes failing means we must fail.
59113
59114 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
59117         variables to suggest the intended function of the PATH_MAX check.
59118
59119 2005-10-30  Kean Johnston  <jkj@sco.com>
59120
59121         Trivial changes to support SCO systems.
59122         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
59123         as PATH_MAX.
59124         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
59125         where __ptr is null when no I/O is pending.
59126
59127 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59128
59129         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
59130         leave errno alone.  Problem reported by Dmitry V. Levin.
59131
59132 2005-10-28  Simon Josefsson  <jas@extundo.com>
59133
59134         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
59135         Test more.
59136
59137         * tests/test-gc-md2.c, tests/test-md2.c: New files.
59138
59139         * modules/md2, modules/md2-tests: New files.
59140
59141 2005-10-28  Simon Josefsson  <jas@extundo.com>
59142
59143         * m4/inet_ntop.m4: More tests.
59144
59145         * m4/gc-md2.m4, md2.m4: New file.
59146
59147 2005-10-28  Simon Josefsson  <jas@extundo.com>
59148
59149         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
59150         "restrict" keywords, as per POSIX.  Protect the function
59151         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
59152         Don't use K&R prototypes.  Check the sprintf return values.
59153         Re-define EAFNOSUPPORT if not present.  Indent.
59154
59155         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
59156         suggested by Bruno Haible <bruno@clisp.org>.
59157
59158         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
59159
59160         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
59161
59162         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
59163         libgcrypt).
59164
59165         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
59166
59167         * lib/md2.h, lib/md2.c: New files.
59168
59169 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
59170
59171         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
59172         errno alone.  Problem reported by Frederic Jolliton.
59173
59174 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59175
59176         * modules/verify (License): Change from GPL to LGPL.  This is a
59177         tiny module and there are apparently near-equivalents that are
59178         under the BSD license.
59179
59180 2005-10-24  Simon Josefsson  <jas@extundo.com>
59181
59182         * modules/sha1: Relicense to LGPL.
59183
59184 2005-10-24  Simon Josefsson  <jas@extundo.com>
59185
59186         * lib/md4.h: Shrink buffer size, now that we changed the type.
59187
59188 2005-10-23  Simon Josefsson  <jas@extundo.com>
59189
59190         * gnulib-tool (func_import): Fix --tests-base.
59191
59192 2005-10-22  Simon Josefsson  <jas@extundo.com>
59193
59194         * modules/arcfour (Depends-on): Need stdint.
59195
59196 2005-10-22  Simon Josefsson  <jas@extundo.com>
59197
59198         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
59199         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
59200
59201 2005-10-22  Simon Josefsson  <jas@extundo.com>
59202
59203         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
59204         suggested by Bruno Haible <bruno@clisp.org>.
59205
59206 2005-10-22  Simon Josefsson  <jas@extundo.com>
59207
59208         * lib/crc.h: Include stddef.h, for size_t.
59209
59210 2005-10-22  Simon Josefsson  <jas@extundo.com>
59211
59212         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
59213         arcfour_context struct (simplify test vector testing in GNU
59214         Shishi).
59215
59216 2005-10-21  Simon Josefsson  <jas@extundo.com>
59217
59218         * modules/des, modules/des-tests: New files.
59219
59220         * modules/gc-des, modules/gc-des-tests: New files.
59221
59222         * tests/test-des.c, tests/test-gc-des.c: New file.
59223
59224 2005-10-21  Simon Josefsson  <jas@extundo.com>
59225
59226         * modules/arctwo, modules/arctwo-tests: New files.
59227
59228         * tests/test-arctwo.c: New file.
59229
59230         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
59231
59232         * tests/test-gc-arctwo.c: New file.
59233
59234 2005-10-21  Simon Josefsson  <jas@extundo.com>
59235
59236         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
59237         Bruno Haible <bruno@clisp.org>.
59238
59239         * m4/gc-des.m4: New file.
59240
59241 2005-10-21  Simon Josefsson  <jas@extundo.com>
59242
59243         * m4/arctwo.m4: New file.
59244
59245         * m4/gc-arctwo.m4: New file.
59246
59247 2005-10-21  Simon Josefsson  <jas@extundo.com>
59248
59249         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
59250         block.
59251
59252 2005-10-21  Simon Josefsson  <jas@extundo.com>
59253
59254         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
59255         <bruno@clisp.org>.
59256
59257         * lib/hmac-sha1.c (hmac_sha1): Likewise.
59258
59259         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
59260         Bruno Haible <bruno@clisp.org>.
59261
59262         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
59263         <bruno@clisp.org>.
59264
59265 2005-10-21  Simon Josefsson  <jas@extundo.com>
59266
59267         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
59268
59269 2005-10-21  Simon Josefsson  <jas@extundo.com>
59270
59271         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
59272
59273 2005-10-21  Simon Josefsson  <jas@extundo.com>
59274
59275         * lib/des.h, lib/des.c: New files.
59276
59277         * lib/gc-gnulib.c: Support DES.c
59278
59279 2005-10-21  Simon Josefsson  <jas@extundo.com>
59280
59281         * lib/arctwo.h, lib/arctwo.c: New files.
59282
59283         * lib/gc-gnulib.c: Support ARCTWO.
59284
59285 2005-10-21  Simon Josefsson  <jas@extundo.com>
59286
59287         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
59288         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59289
59290 2005-10-21  Simon Josefsson  <jas@extundo.com>
59291
59292         * gnulib-tool (func_import, func_create_testdir): Define automake
59293         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
59294         Makefile.am snippet),
59295         suggested by Bruno Haible <bruno@clisp.org>.
59296
59297         * modules/gc (Makefile.am): Use it.
59298
59299 2005-10-21  Bruno Haible  <bruno@clisp.org>
59300
59301         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
59302         patch.
59303
59304 2005-10-19  Simon Josefsson  <jas@extundo.com>
59305
59306         * tests/test-gc-rijndael.c: New file.
59307
59308         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
59309
59310 2005-10-19  Simon Josefsson  <jas@extundo.com>
59311
59312         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
59313         interface too.
59314
59315 2005-10-19  Simon Josefsson  <jas@extundo.com>
59316
59317         * tests/test-gc-arcfour.c: New file.
59318
59319         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
59320
59321 2005-10-19  Simon Josefsson  <jas@extundo.com>
59322
59323         * modules/gc-md4, modules/gc-md4-tests: New file.
59324
59325         * tests/test-gc-md4.c: New file.
59326
59327 2005-10-19  Simon Josefsson  <jas@extundo.com>
59328
59329         * m4/gc-md4.m4: New file.
59330
59331 2005-10-19  Simon Josefsson  <jas@extundo.com>
59332
59333         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
59334         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
59335         <kasal@ucw.cz>.
59336
59337 2005-10-19  Simon Josefsson  <jas@extundo.com>
59338
59339         * m4/gc-arcfour.m4: New file.
59340
59341         * m4/gc-rijndael.m4: New file.
59342
59343 2005-10-19  Simon Josefsson  <jas@extundo.com>
59344
59345         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
59346
59347 2005-10-19  Simon Josefsson  <jas@extundo.com>
59348
59349         * lib/gc-gnulib.c: Support ARCFOUR.
59350
59351 2005-10-19  Simon Josefsson  <jas@extundo.com>
59352
59353         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
59354         support.
59355
59356         * lib/gc.h: Add ECB enum type.
59357
59358         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
59359
59360 2005-10-18  Simon Josefsson  <jas@extundo.com>
59361
59362         * tests/test-md5.c: New file.
59363
59364         * modules/md5-tests: New file.
59365
59366 2005-10-18  Simon Josefsson  <jas@extundo.com>
59367
59368         * tests/test-md4.c: New file.
59369
59370         * modules/md4, modules/md4-tests: New files.
59371
59372 2005-10-18  Simon Josefsson  <jas@extundo.com>
59373
59374         * m4/md4.m4: New file.
59375
59376 2005-10-18  Simon Josefsson  <jas@extundo.com>
59377
59378         * lib/md4.h, lib/md4.c: New files, based on md5.?.
59379
59380 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
59381
59382         * gnulib-tool (func_create_testdir): Omit the second check whether
59383         BUILT_SOURCES in nonempty.
59384
59385 2005-10-17  Simon Josefsson  <jas@extundo.com>
59386
59387         * tests/test-rijndael.c: New file.
59388
59389 2005-10-17  Simon Josefsson  <jas@extundo.com>
59390
59391         * modules/sha1: Depend on stdint instead of md5.
59392
59393         * modules/md5: Depend on stdint, remove uint32_t.
59394
59395 2005-10-17  Simon Josefsson  <jas@extundo.com>
59396
59397         * modules/gc-sha1-tests: New file.
59398
59399         * tests/test-gc-sha1.c: New file.
59400
59401 2005-10-17  Simon Josefsson  <jas@extundo.com>
59402
59403         * m4/md5.m4: Remove call to uint32_t.m4.
59404
59405 2005-10-17  Simon Josefsson  <jas@extundo.com>
59406
59407         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
59408
59409         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
59410         md5.h.
59411
59412         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
59413
59414         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
59415
59416 2005-10-17  Simon Josefsson  <jas@extundo.com>
59417
59418         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
59419
59420 2005-10-17  Simon Josefsson  <jas@extundo.com>
59421
59422         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
59423
59424 2005-10-17  Simon Josefsson  <jas@extundo.com>
59425
59426         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
59427
59428         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
59429
59430 2005-10-17  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
59433         that it can also be used in a test.
59434
59435 2005-10-16  Bruno Haible  <bruno@clisp.org>
59436
59437         * gnulib-tool (func_emit_tests_Makefile_am): Also define
59438         TESTS_ENVIRONMENT, so that individual tests can augment it.
59439
59440         * gnulib-tool (func_create_testdir): Use an intermediate target for
59441         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
59442         macros, like $(ALLOCA_H), which cannot be passed through the command
59443         line.
59444
59445 2005-10-15  Simon Josefsson  <jas@extundo.com>
59446
59447         * modules/rijndael-tests: New file.
59448
59449         * modules/rijndael: New file.
59450
59451 2005-10-15  Simon Josefsson  <jas@extundo.com>
59452
59453         * m4/rijndael.m4: New file.
59454
59455 2005-10-15  Simon Josefsson  <jas@extundo.com>
59456
59457         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
59458
59459         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
59460
59461 2005-10-14  Simon Josefsson  <jas@extundo.com>
59462
59463         * tests/test-arcfour.c: New file.
59464
59465         * modules/arcfour, modules/arcfour-tests: New files.
59466
59467 2005-10-14  Simon Josefsson  <jas@extundo.com>
59468
59469         * m4/arcfour.m4: New file.
59470
59471 2005-10-14  Simon Josefsson  <jas@extundo.com>
59472
59473         * lib/arcfour.h, lib/arcfour.c: New files.
59474
59475 2005-10-14  Roland McGrath  <roland@redhat.com>
59476
59477         Import from libc.  [BZ #1331]
59478         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
59479         macro argument.
59480         Reported by Matej Vela <vela@debian.org>.
59481
59482 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59483
59484         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
59485         include <wchar.h>; no longer needed.
59486
59487 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59488
59489         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
59490
59491 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
59492         and  Ulrich Drepper  <drepper@redhat.com>
59493
59494         Import from libc.
59495         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
59496         instead of inline stream orientation test and two separate
59497         function calls.  Pay no attention to USE_IN_LIBIO.
59498
59499 2005-10-13  Simon Josefsson  <jas@extundo.com>
59500
59501         * modules/gc-hmac-md5-tests: New file.
59502
59503         * tests/test-gc-hmac-sha1.c: New file.
59504
59505         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
59506
59507         * modules/gc-hmac-md5-tests: New file.
59508
59509         * tests/test-gc-md5.c: New file.
59510
59511         * modules/gc-md5-tests: New file.
59512
59513 2005-10-13  Simon Josefsson  <jas@extundo.com>
59514
59515         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
59516         Move memory allocation outside of loop.
59517
59518 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59519
59520         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
59521         intermediate directory is in a read-only file system.  Problem
59522         reported by Eric Blake.
59523
59524 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
59525
59526         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
59527
59528 2005-10-12  Simon Josefsson  <jas@extundo.com>
59529
59530         * tests/test-hmac-sha1.c: New file.
59531
59532         * modules/hmac-sha1-tests: New file.
59533
59534         * modules/hmac-sha1: New file.
59535
59536 2005-10-12  Simon Josefsson  <jas@extundo.com>
59537
59538         * modules/gc-sha1: New file.
59539
59540 2005-10-12  Simon Josefsson  <jas@extundo.com>
59541
59542         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
59543
59544         * tests/test-gc-pbkdf2-sha1.c: New file.
59545
59546 2005-10-12  Simon Josefsson  <jas@extundo.com>
59547
59548         * modules/gc-md5, modules/gc-hmac-md5: New files.
59549
59550         * modules/gc (Files): Remove md5, memxor and hmac files.
59551
59552 2005-10-12  Simon Josefsson  <jas@extundo.com>
59553
59554         * m4/gc-pbkdf2-sha1.m4: New file.
59555
59556         * m4/gc-hmac-sha1.m4: New file.
59557
59558         * m4/gc-sha1: New file.
59559
59560         * m4/hmac-sha1.m4: New file.
59561
59562 2005-10-12  Simon Josefsson  <jas@extundo.com>
59563
59564         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
59565
59566         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
59567
59568 2005-10-12  Simon Josefsson  <jas@extundo.com>
59569
59570         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
59571         suggested by Bruno Haible <bruno@clisp.org>.
59572
59573 2005-10-12  Simon Josefsson  <jas@extundo.com>
59574
59575         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59576
59577 2005-10-12  Simon Josefsson  <jas@extundo.com>
59578
59579         * lib/gc-pbkdf2-sha1.c: New file.
59580
59581         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59582
59583 2005-10-12  Simon Josefsson  <jas@extundo.com>
59584
59585         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59586
59587         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59588
59589 2005-10-12  Simon Josefsson  <jas@extundo.com>
59590
59591         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59592         GC_USE_HMAC_MD5, respectively.
59593
59594         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59595         (gc_md5): Fix typo.
59596
59597         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59598
59599         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59600
59601         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59602
59603 2005-10-12  Bruno Haible  <bruno@clisp.org>
59604
59605         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
59606         Reported by Stepan Kasal <kasal@ucw.cz>.
59607
59608 2005-10-11  Simon Josefsson  <jas@extundo.com>
59609
59610         * tests/test-crc.c: New file.
59611
59612         * modules/crc, modules/crc-tests: New files.
59613
59614 2005-10-11  Simon Josefsson  <jas@extundo.com>
59615
59616         * m4/crc.m4: New file.
59617
59618 2005-10-11  Simon Josefsson  <jas@extundo.com>
59619
59620         * lib/gc.h: Add gc_hash and gc_hash_buffer.
59621
59622         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
59623
59624         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
59625
59626 2005-10-11  Simon Josefsson  <jas@extundo.com>
59627
59628         * lib/crc.h, lib/crc.c: New files.
59629
59630         * lib/gc.h (gc_hash_buffer): Add doc.
59631
59632 2005-10-11  Bruno Haible  <bruno@clisp.org>
59633
59634         * modules/c-strcasestr: New file.
59635         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
59636
59637 2005-10-11  Bruno Haible  <bruno@clisp.org>
59638
59639         * modules/c-strcase: New file.
59640         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
59641
59642 2005-10-11  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/strcasecmp.c: Include limits.h.
59645         (strcasecmp): Avoid integer overflow on exotic platforms.
59646         * lib/strncasecmp.c: Include limits.h.
59647         (strncasecmp): Avoid integer overflow on exotic platforms.
59648         Reported by Paul Eggert.
59649
59650 2005-10-11  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/c-strcasestr.h: New file, from GNU gettext.
59653         * lib/c-strcasestr.c: New file, from GNU gettext.
59654
59655 2005-10-11  Bruno Haible  <bruno@clisp.org>
59656
59657         * lib/c-strcase.h: New file, from GNU gettext.
59658         * lib/c-strcasecmp.c: New file, from GNU gettext.
59659         * lib/c-strncasecmp.c: New file, from GNU gettext.
59660
59661 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59662
59663         * modules/mempcpy (License): GPL -> LGPL.
59664         * modules/strchrnul (License): Likewise.
59665         * modules/sysexits (License): Likewise.
59666
59667 2005-10-08  Simon Josefsson  <jas@extundo.com>
59668
59669         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
59670
59671 2005-10-07  Simon Josefsson  <jas@extundo.com>
59672
59673         * m4/memxor.m4: Remove gl_C_RESTRICT call.
59674
59675 2005-10-06  Simon Josefsson  <jas@extundo.com>
59676
59677         * tests/test-hmac-md5.c: New file.
59678
59679         * modules/hmac-md5-tests: New file.
59680
59681         * modules/hmac-md5: New file.
59682
59683 2005-10-06  Simon Josefsson  <jas@extundo.com>
59684
59685         * m4/hmac-md5.m4: New file.
59686
59687         * m4/memxor.m4: Require gl_C_RESTRICT.
59688
59689 2005-10-06  Simon Josefsson  <jas@extundo.com>
59690
59691         * lib/memxor.c (memxor): Avoid casts and warnings.
59692
59693 2005-10-06  Simon Josefsson  <jas@extundo.com>
59694
59695         * lib/hmac-md5.c: New file.
59696
59697         * lib/hmac.h: New file.
59698
59699 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59700
59701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
59702         promotes to int, not unsigned int, to catch the AIX 5.3
59703         compiler bug.
59704
59705 2005-10-05  Simon Josefsson  <jas@extundo.com>
59706
59707         * modules/memxor: New file.
59708
59709         * modules/iconv (Files): Move config.rpath to havelib, it is used
59710         there.
59711
59712         * modules/havelib (Files): Add config.rpath.
59713
59714 2005-10-05  Simon Josefsson  <jas@extundo.com>
59715
59716         * m4/memxor.m4: New file.
59717
59718 2005-10-05  Simon Josefsson  <jas@extundo.com>
59719
59720         * lib/memxor.c (memxor): Fix compiler error.
59721
59722         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
59723         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
59724
59725         * lib/memxor.h, lib/memxor.c: New files.
59726
59727         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
59728         we assume all systems have it, suggested by Jim Meyering
59729         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59730         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59731         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59732         same reasons.
59733
59734 2005-10-05  Simon Josefsson  <jas@extundo.com>
59735
59736         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59737
59738 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59741         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59742         needed, since the source code now assumes these .h files.
59743
59744 2005-10-05  Derek Price  <derek@ximbiot.com>
59745
59746         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59747
59748 2005-10-05  Bruno Haible  <bruno@clisp.org>
59749
59750         * modules/stdint (License): Change to LGPL.
59751
59752 2005-10-04  Simon Josefsson  <jas@extundo.com>
59753
59754         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59755         D. Baushke" <mdb@gnu.org>.
59756
59757 2005-10-04  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/verify.h (verify_true): Provide alternative definition for C++.
59760
59761 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59762
59763         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59764         (SSIZE_MAX): New macro, if not already defined.
59765         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59766         than 2 GiB.
59767
59768 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59769
59770         Sync from coreutils.
59771         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59772         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59773         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59774         ULLONG_MAX doesn't work with 2.7.2.1.
59775
59776 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59777
59778         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59779         From Ben Pfaff.
59780
59781         * modules/exclude (Depends-on): Depend on verify.
59782         * modules/strtoimax (Depends-on): Likewise.
59783         * modules/utimecmp (Depends-on): Likewise.
59784
59785 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         * lib/exclude.c: Include verify.h.
59788         (verify): Remove.  All callers changed to use verify.h's version.
59789         * lib/strtoimax.c: Likewise.
59790         * lib/utimecmp.c: Likewis.e
59791
59792         Sync from coreutils.
59793         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59794         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59795         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59796         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59797         bother returning ENOSYS if settimeofday or stime fails; just let
59798         them return whatever errno they want to return.
59799         * lib/utimens.c: Include unistd.h, for dup2.
59800         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59801         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59802
59803 2005-10-02  Jim Meyering  <jim@meyering.net>
59804
59805         Sync from coreutils.
59806         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59807         from glibc-2.2.5 that fails for read-only files.
59808
59809 2005-10-02  Jim Meyering  <jim@meyering.net>
59810
59811         Sync from coreutils.
59812         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59813         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59814         `#if HAVE_CONFIG_H'.
59815         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59816         Remove AT_FDCWD test.
59817         Do not consume the fd unless successful.
59818         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59819         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59820         block, so that we don't even try to compile it if settimeofday is
59821         available.  This works around a compilation failure on OSF1 V5.1,
59822         due to stime requiring a `long int*' while tv_sec is `int'.
59823
59824 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59825
59826         Sync from coreutils.
59827         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59828         against `yes', rather than just testing for nonempty.
59829
59830 2005-10-01  Simon Josefsson  <jas@extundo.com>
59831
59832         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59833         and Darwin.
59834
59835         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59836         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59837         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59838         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59839         Check if struct addrinfo is declared.
59840
59841 2005-10-01  Simon Josefsson  <jas@extundo.com>
59842
59843         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59844         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59845         AI_* and EAI_* definitions.  Protect function declarations.
59846
59847 2005-10-01  Jim Meyering  <jim@meyering.net>
59848
59849         Sync from coreutils.
59850
59851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59852         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59853         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59855         in the inet and nsl libraries.  Required on Solaris 5.7.
59856
59857 2005-10-01  Jim Meyering  <jim@meyering.net>
59858
59859         Sync from coreutils.
59860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59861         in the inet and nsl libraries.  Required on Solaris 5.7.
59862
59863 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59864
59865         * lib/getdelim.c (getdelim): Remove unused variables.
59866
59867 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59870         so that the code works even with ancient cpp.  Portability problem
59871         with GCC 2.7.2.1 reported by Thomas M.Ott.
59872
59873 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59874
59875         * modules/regex (Depends-on): Add strcase.
59876
59877         * modules/gethostname (Licence): Change from GPL to LGPL, since
59878         gethostname.c is a trivial implementation of a standard library
59879         function.
59880         * modules/poll (License): Change from GPL to LGPL, since it's
59881         derived from LGPL code.
59882
59883 2005-09-27  Jim Meyering  <jim@meyering.net>
59884
59885         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59886         HAVE_CONFIG_H.
59887
59888         * lib/intprops.h (signed_type_or_expr__): Define.
59889         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59890         for unsigned types.
59891
59892 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * lib/verify.h (verify_expr): Remove, replacing with:
59895         (verify_true): New macro that returns true instead of void.
59896         (verify_type__): Remove.
59897         (verify): Use verify_true rather than verify_type__.
59898
59899 2005-09-26  Bruno Haible  <bruno@clisp.org>
59900
59901         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59902         is necessary.
59903         (lib_SOURCES): Remove mbchar.c.
59904         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59905         (Files): Add m4/mbrtowc.m4.
59906         * modules/mbiter: Likewise.
59907         * modules/mbuiter: Likewise.
59908
59909 2005-09-26  Bruno Haible  <bruno@clisp.org>
59910
59911         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59912         compile mbchar.c if they are not both present.
59913         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59914         * m4/mbiter.m4 (gl_MBITER): Likewise.
59915         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59916         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59917         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59918
59919 2005-09-25  Jim Meyering  <jim@meyering.net>
59920
59921         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59922         also uses socklen_t.
59923
59924 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59925
59926         * lib/utimens.c (ENOSYS): Define if not already defined.
59927         (futimens): Support having a null PATH if the file descriptor
59928         is nonnegative.
59929
59930         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59931         Remove.
59932         (__attribute): Define to empty unless GCC 3.1 or later.
59933         This works around a core dump on OpenBSD 3.4, which has GCC
59934         2.95.3, which dumps core when given __attribute__(()).  It also
59935         simplifies other tests, since we really don't want to bother with
59936         worrying about which ancient version of GCC supported what.
59937         Original problem reported by Yoann Vandoorselaere, with part of
59938         the fix suggested by Derek Price.
59939
59940 2005-09-24  Jim Meyering  <jim@meyering.net>
59941
59942         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59943         so we can once again use a positive bitfield width of 1 -- now we
59944         don't have to explain why we were using a bitfield width of 2.
59945
59946 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59949         and similarly for the other external symbols.  Problem reported
59950         by James Gallager.
59951
59952         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59953         bug reported by Jim Meyering.
59954
59955         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59957         not needed, since socklen is a prerequisite module.
59958
59959 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59960
59961         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59962         Problem reported by Eric Blake.
59963         (getaddrinfo): Initialize se so that it's not garbage.
59964         Redo internal storage allocation so that it doesn't make unportable
59965         assumptions about alignment.
59966         Fix a memory leak.
59967
59968         * lib/utimens.c (futimens): Use futimesat if available.
59969         Prefer it to futimes since it doesn't have the futimes bug.
59970
59971         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59972         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59973         Instead, declare a function that returns a pointer to an array,
59974         and use verify_type__ to declare the size of the array.
59975         Problem and germ of a solution reported by Bruno Haible.
59976         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59977         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59978
59979 2005-09-23  Jim Meyering  <jim@meyering.net>
59980
59981         Sync from coreutils.
59982         Correct build failure (socklen_t not defined) on at least
59983         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59984         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59985
59986 2005-09-23  Jim Meyering  <jim@meyering.net>
59987
59988         * modules/getaddrinfo (Depends-on): Add socklen.
59989
59990 2005-09-23  Bruno Haible  <bruno@clisp.org>
59991
59992         * tests/test-verify.c: New file.
59993
59994 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         Sync from coreutils.
59997
59998         * modules/argmatch (Depends-on): Add verify.
59999         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
60000         unistd-safer.
60001         * modules/save-cwd (Depends-on): Likewise.
60002
60003         * modules/openat (Files): Add lib/openat-die.c.
60004         (Depends-on): Remove error, exitfail.
60005         Add dirname.
60006
60007         * modules/verify: New file.
60008         * MODULES.html.sh (Diagnostics <assert.h>): New section,
60009         with "verify" module.
60010
60011 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         Sync from coreutils.
60014
60015         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
60016         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
60017         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
60018         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
60019         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
60020         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
60021         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
60022         Don't bother checking for string.h, stdlib.h, unistd.h.
60023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
60024         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
60025         module's job.
60026         * m4/jm-macros.m4 (gl_MACROS): Likewise.
60027         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
60028
60029         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
60030         (gl_GETDATE): Use it.
60031
60032         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
60033
60034 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60035
60036         Sync from coreutils.
60037
60038         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
60039         stat-time.h.
60040         * lib/argmatch.h: Include verify.h
60041         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
60042         (ARGMATCH_ASSERT): Remove; unused.
60043         * lib/canonicalize.c: Assume STDC_HEADERS.
60044         * lib/exclude.c: Include "strcase.h".
60045         * lib/regex_internal.h [!defined _LIBC]: Likewise.
60046         * lib/getusershell.c: Include stdio--.h rather than stdio.h
60047         and stdio-safer.h.
60048         (getusershell): Call fopen, not fopen_safer.
60049         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
60050         Do not include unistd-safer.h.
60051         (save_cwd): Don't call fd_safer; no longer needed
60052         now that we include fcntl--.h.
60053
60054         * lib/getdate.y (relative_time): New type.
60055         (RELATIVE_TIME_0): New constant.
60056         (parser_control): Use relative_time instead of doing it ourselves.
60057         (%union): Add new relative_time rel member.
60058         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
60059         Now typeless.
60060         (relunit, relunit_snumber): Now of type rel.
60061         (zone, rel, relunit, get_date): Adjust to above changes.
60062
60063         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
60064         Do not include unistd-safer.h.
60065         (getloadavg): Don't call fd_safer; no longer needed
60066         now that we include fcntl--.h.
60067
60068         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
60069         (make_dir_parents): Treat ENOSYS like EEXIST.
60070
60071         Improve quality of diagnostics on restore_cwd failure.
60072         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
60073         (make_dir_parents): Last arg is now int * (for errno), not bool *.
60074         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
60075         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
60076         each time through the loop.  Do not diagnose restore_cwd failure;
60077         that is the caller's job (and perhaps the caller does not care).
60078
60079         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
60080         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
60081         If the file already exists but is not a directory, don't bother
60082         to try to make its parents.
60083         Close potential file descriptor leak if we can't chdir("/") (!).
60084         Don't always return true if chdir($PWD) fails; return true only
60085         if the requested action was done successfully (except for the
60086         chdir($PWD)).
60087         Don't log final directory unless we actually made it.
60088         Refactor to avoid duplicate code to fix up permissions.
60089         Don't attempt to fix up parent permissions if chdir($PWD) fails.
60090
60091         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
60092         to make it a bit faster and (I hope) clearer.
60093         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
60094         Fix bug in formats like %2N.
60095
60096         * lib/verify.h: New file.
60097
60098 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         Sync from coreutils.
60101         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
60102
60103 2005-09-22  Jim Meyering  <jim@meyering.net>
60104
60105         Sync from coreutils.
60106
60107         * m4/lstat.m4 (gl_FUNC_LSTAT):
60108         Use AC_LIBSOURCES to require lstat.c and lstat.h.
60109         Remove obsolete comment.
60110         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
60111         * m4/xstrtod.m4: Likewise.
60112
60113         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
60114
60115 2005-09-22  Jim Meyering  <jim@meyering.net>
60116
60117         Sync from coreutils.
60118
60119         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
60120
60121         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
60122         the .tm_year member, since otherwise gcc-4.0 would now warn about
60123         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
60124
60125         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
60126         order to avoid an unsuppressible warning from gcc on 64-bit systems.
60127
60128         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
60129         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
60130         when run in a time zone for which daylight savings time is in effect
60131         for the starting date.
60132
60133         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
60134         stop us from restricting permissions of just-created absolute-named
60135         directories.
60136         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
60137         to restore initial working directory.
60138         * lib/mkdir-p.c (make_dir_parents): New parameter:
60139         different_working_dir, to tell caller if/when we change the working
60140         directory and are unable to return to the initial one.
60141         * lib/mkdir-p.h (make_dir_parents): Update prototype.
60142         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
60143         `return false'.  This fixes a bug introduced on 2004-07-30.
60144
60145         * lib/openat.c (fdopendir): Be sure to close the supplied
60146         file descriptor before returning.  This makes our replacement
60147         implementation a little closer to Solaris's, where fdopendir
60148         ties the file descriptor to the returned DIR* pointer.
60149         * lib/openat.c (unlinkat): New function.
60150         * lib/openat.h (unlinkat): Add prototype.
60151         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
60152         (openat_restore_fail): Rename from openat_restore_die.
60153         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
60154
60155         Provide an alternative to exiting immediately upon save_cwd or
60156         restore_cwd failure.  Now, an application can arrange e.g.,
60157         to perform a longjump in that case.
60158         * lib/openat.c: Include dirname.h.
60159         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
60160         (rpl_openat, fdopendir, fstatat): Call openat_save_die
60161         and openat_restore_die rather than calling error directly.
60162         Don't include "error.h" or "exitfail.h"; they're no longer needed.
60163
60164         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
60165         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
60166         define.
60167
60168         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
60169         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
60170                             int utc, int nanoseconds);
60171         Background:
60172         date should not have to allocate a megabyte of virtual memory to
60173         handle a format argument like +%1048575T.  When implemented with
60174         strftime, it must allocate such a buffer, use strftime to fill it
60175         in, print it, then free it.
60176         With fprintftime, it simply prints everything and exits.
60177         With no need for memory allocation, that's one fewer way to fail.
60178         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
60179         optional field width, not before, so we accept %9:z, not %:9z.
60180         (my_strftime): Be sure to use L_('x') for literals.
60181
60182         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
60183         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
60184         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
60185         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
60186         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
60187         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
60188         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
60189         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
60190         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
60191         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
60192         * lib/xgethostname.c, lib/xreadlink.c:
60193         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
60194
60195         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
60196         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
60197         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
60198         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60199         and don't include <sys/file.h>).
60200
60201 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
60202
60203         Sync from coreutils.
60204
60205         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
60206         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
60207         [!LDAV_DONE]: Avoid unused variable warning.
60208
60209 2005-09-21  Bruno Haible  <bruno@clisp.org>
60210
60211         * lib/unicodeio.h (unicode_to_mb): New declaration.
60212
60213 2005-09-20  Derek Price  <derek@ximbiot.com>
60214
60215         * lib/getaddrinfo.c: Don't include <netdb.h> included from
60216         getaddrinfo.h.
60217
60218 2005-09-20  Bruno Haible  <bruno@clisp.org>
60219
60220         * gnulib-tool: Remove trailing slashes from the values specified for
60221         --source-base, --m4-base, --tests-base, --aux-dir.
60222         Suggested by Simon Josefsson <jas@extundo.com>.
60223
60224 2005-09-20  Bruno Haible  <bruno@clisp.org>
60225
60226         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
60227         func_modules_to_filelist, func_import, func_create_testdir): Make all
60228         sorting results locale-independent, so that gnulib-cache.m4 doesn't
60229         change when gnulib-tool is invoked in a different locale.
60230
60231 2005-09-19  Simon Josefsson  <jas@extundo.com>
60232
60233         * m4/socklen.m4: Fix typo.
60234
60235 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60236
60237         Use a consistent style for including <config.h>.
60238         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
60239         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
60240         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
60241         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
60242         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
60243         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
60244         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
60245         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
60246         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
60247         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
60248         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
60249         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
60250         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
60251         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
60252         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
60253         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
60254         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
60255         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
60256         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
60257         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
60258         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
60259         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
60260         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
60261         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
60262         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
60263         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
60264         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
60265         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
60266         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
60267         lib/xstrtoumax.c, lib/yesno.c:
60268         Standardize inclusion of config.h.
60269         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
60270         lib/inttostr.h:  Removed inclusion of config.h from header files.
60271         * lib/inttostr.c:  Adjusted in-tree users.
60272         * lib/timespec.h: Remove superfluous warning to include config.h.
60273         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
60274         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
60275         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
60276         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
60277         config.h with HAVE_CONFIG_H.
60278
60279 2005-09-19  Jim Meyering  <jim@meyering.net>
60280
60281         * modules/pathmax (License): Change to LGPL.
60282
60283 2005-09-19  Derek Price  <derek@ximbiot.com>
60284
60285         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
60286
60287 2005-09-19  Bruno Haible  <bruno@clisp.org>
60288
60289         * gnulib-tool (import): Provide default for --tests-base.
60290
60291 2005-09-19  Bruno Haible  <bruno@clisp.org>
60292
60293         * doc/quote.texi: New file, extracted from gnulib.texi.
60294         * doc/ctime.texi: New file, extracted from gnulib.texi.
60295         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
60296         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
60297         * doc/gnulib.texi: Include them.
60298
60299 2005-09-18  Bruno Haible  <bruno@clisp.org>
60300
60301         Portability fix.
60302         * gnulib-tool (func_readlink): New function.
60303         (func_ln_if_changed): Use it.
60304
60305 2005-09-18  Bruno Haible  <bruno@clisp.org>
60306
60307         * gnulib-tool: Support --with-tests also with --import.
60308         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
60309         (func_import): Use variables $testsbase and $inctests. Emit a
60310         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
60311         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
60312         SUBDIRS += $testsdir.
60313         (func_create_testdir): Update.
60314
60315 2005-09-18  Bruno Haible  <bruno@clisp.org>
60316
60317         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
60318         instead of $dry_run.
60319         (func_cp_if_changed, func_mv_if_changed): Remove functions.
60320         (func_ln_if_changed): Don't handle dry-run here.
60321         (func_import): In dry-run mode, detect more precisely which actions
60322         would be performed, and don't use "...ing" verbs.
60323
60324 2005-09-18  Bruno Haible  <bruno@clisp.org>
60325
60326         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
60327         (func_import): Use join on two temporary files instead of three nested
60328         loops, in order to determine which files are new or old.
60329
60330 2005-09-18  Bruno Haible  <bruno@clisp.org>
60331
60332         * gnulib-tool (func_import): Comment out code that spits out the
60333         new files with --dry-run.
60334
60335 2005-09-18  Bruno Haible  <bruno@clisp.org>
60336
60337         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
60338
60339 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60340
60341         * lib/stat-time.h: New file.
60342         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
60343         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
60344         in a different way.
60345         (timespec_cmp): New function.
60346         * lib/utimecmp.c: Include stat-time.h.
60347         (SYSCALL_RESOLUTION): Depend on whether various struct stat
60348         members exist, not on the obsolescent ST_MTIM_NSEC.
60349         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
60350
60351 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60352
60353         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
60354
60355 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * MODULES.html.sh (File system functions): Add stat-time.
60358         * modules/stat-time: New file.
60359         * modules/timespec (Files): Remove m4/st_mtim.m4; this
60360         is now done in a different way, by the stat-time module.
60361         * modules/utimecmp (Depends-on): Add stat-time.
60362
60363 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60364
60365         * m4/st_mtim.m4: Remove.  Superseded by...
60366         * m4/stat-time.m4: New file.
60367         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
60368         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
60369
60370 2005-09-15  Derek Price  <derek@ximbiot.com>
60371
60372         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
60373
60374 2005-09-15  Derek Price  <derek@ximbiot.com>
60375
60376         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
60377         * lib/regex_internal.c: Ditto, using this...
60378         (__GNUC_PREREQ): ...new macro.
60379         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
60380         using...
60381         (__GNUC_PREREQ): ...this new macro.
60382
60383         * lib/strstr.h: Include string.h. Define strstr as a macro here.
60384
60385 2005-09-15  Derek Price  <derek@ximbiot.com>
60386             Paul Eggert  <eggert@cs.ucla.edu>
60387
60388         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
60389         changes, consolidating in...
60390         * lib/regex_internal.h: ...this file.
60391
60392 2005-09-13  Jim Meyering  <jim@meyering.net>
60393
60394         * lib/canon-host.c: Filter through gnu indent and reword comments
60395         slightly.
60396         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
60397
60398 2005-09-13  Derek Price  <derek@ximbiot.com>
60399
60400         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
60401         failure.
60402         Reported by Jim Meyering  <jim@meyering.net>.
60403
60404 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60405
60406         * lib/base64.c: Typo.
60407         (base64_encode): Put b64str in initialized data section.
60408
60409 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         Merge glibc and coreutils changes into gnulib, plus a few
60412         extra fixes.
60413         * lib/md5.c: Use #error rather than a string.
60414         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
60415         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
60416         (__attribute__): Define to empty for non recent-GCC.
60417         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
60418         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
60419         Renamed from their non-__ counterparts, with new macros replacing
60420         them if not _LIBC.  Add __THROW attribute.
60421         (rol): Remove.
60422         (struct md5_ctx): Align buffer if using GCC.
60423         * lib/sha1.h (struct sha1_ctx): Likewise.
60424         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
60425         The old name was backwards.
60426         (NOTSWAP): Remove; not used.
60427         (rol): New macro, moved here from md5.h.
60428         (sha1_process_block): Remove a FIXME that doesn't make sense.
60429
60430 2005-09-12  Derek Price  <derek@ximbiot.com>
60431
60432         Return usable errors from canon-host.
60433         * lib/canon-host.h: New file.
60434         * lib/canon-host.c (canon_host): Wrap...
60435         (canon_host_r): ...this new function, which now relies exclusively on
60436         getaddrinfo.
60437         (ch_strerror): New function.
60438         (last_cherror): New global.
60439         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
60440         interface.
60441         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
60442         void *.
60443         (freeaddrinfo): Free ai->ai_canonname when set.
60444
60445 2005-09-12  Derek Price  <derek@ximbiot.com>
60446
60447         Make canon-host require getaddrinfo.
60448         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
60449         AC_LIBSOURCE canon-host.h.  Call...
60450         (gl_PREREQ_CANON_HOST): ...this new function, which requires
60451         gl_GETADDRINFO.
60452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
60453
60454 2005-09-12  Derek Price  <derek@ximbiot.com>
60455
60456         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
60457         LGPL.
60458         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
60459
60460 2005-09-12  Derek Price  <derek@ximbiot.com>
60461
60462         * lib/gai_strerror.c: Include config.h when available.  Include
60463         getaddrinfo.h before other headers to test interface.
60464         Reported by Larry Jones <lawrence.jones@ugs.com>.
60465
60466 2005-09-12  Derek Price  <derek@ximbiot.com>
60467             Paul Eggert  <eggert@cs.ucla.edu>
60468
60469         * modules/glob (Files): Add glob-libc.h.
60470
60471 2005-09-12  Derek Price  <derek@ximbiot.com>
60472             Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
60475         glob_.h, glob-libc.h.
60476         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
60477
60478 2005-09-12  Derek Price  <derek@ximbiot.com>
60479             Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
60482         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
60483         protecting things that should be done only in gnulib contexts.
60484         * lib/glob_.h: New file, containing only the glob things needed for
60485         gnulib.
60486         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
60487         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
60488         (glob, globfree, glob_pattern_p): Now defined simply in terms of
60489         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
60490         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
60491         and to respect the namespace rules better.
60492
60493 2005-09-08  Simon Josefsson  <jas@extundo.com>
60494
60495         * modules/socklen: New file.
60496
60497 2005-09-08  Simon Josefsson  <jas@extundo.com>
60498
60499         * m4/socklen.m4: New file.
60500
60501 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60502
60503         * modules/utimens (Files): Add m4/utimbuf.m4, since
60504         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
60505         Reported by Sergey Poznyakoff.
60506
60507 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
60510         definitions, since that's the preferred style in glibc.
60511         Fix a minor spacing issue, and update copyright notice to match
60512         glibc's.
60513
60514 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
60517
60518 2005-09-06  Simon Josefsson  <jas@extundo.com>
60519
60520         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
60521         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
60522
60523 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
60526         warning.
60527
60528 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         * config/srclist.txt: Add glibc bug 1302.
60531
60532 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
60533
60534         Change bitset word type from unsigned int to unsigned long int,
60535         as this has better performance on typical 64-bit hosts.
60536         Port bitset code to hosts with unusual word sizes.
60537         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
60538         (build_collating_symbol):
60539         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
60540         argument is a bitset.  This is merely a style issue, but it makes
60541         it clearer that an entire array is expected.
60542         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
60543         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
60544         Port to the case where bitset_word is not the same as unsigned int.
60545         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60546         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
60547         Likewise.
60548         * lib/regexec.c (check_dst_limits_calc_pos_1,
60549         check_subexp_matching_top):
60550         (build_trtable, group_nodes_into_DFAstates):
60551         Likewise.
60552         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
60553         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
60554         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
60555         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
60556         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
60557         * lib/regcomp.c (optimize_subexps, lower_subexp):
60558         Work even if bitset_word has holes in its bitwise representation.
60559         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
60560         * lib/regexec.c (check_dst_limits_calc_pos_1,
60561         check_subexp_matching_top):
60562         Likewise.
60563         * lib/regex_internal.c (re_string_reconstruct):
60564         Don't assume UCHAR_MAX == 255.
60565         * lib/regex_internal.h (bitset_set_all): Likewise.
60566         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
60567         All uses changed.
60568         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
60569         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
60570         All uses changed.
60571         (BITSET_WORD_MAX): New macro.
60572         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60573         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60574         (bitset_empty, bitset_copy):
60575         Prefer sizeof (bitset) to multiplying it out ourselves.
60576         (bitset_not_merge): Remove; unused.
60577         (bitset_contain): Return bool, not unsigned int with one bit on.
60578         All callers changed.
60579         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60580         alignment than re_node_set; do this by defining a new internal
60581         type struct dests_alloc and using it to allocate memory.
60582
60583 2005-09-05  Bruno Haible  <bruno@clisp.org>
60584
60585         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60586         links.
60587
60588 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60589
60590         * modules/size_max (Makefile.am): Add size_max.h
60591
60592 2005-09-04  Derek Price  <derek@ximbiot.com>
60593
60594         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60595
60596 2005-09-03  Simon Josefsson  <jas@extundo.com>
60597
60598         * gnulib-tool: Fix typo.
60599
60600 2005-09-03  Simon Josefsson  <jas@extundo.com>
60601
60602         * config/srclist.txt: Add glibc bug 1293.
60603
60604 2005-09-03  Derek Price  <derek@ximbiot.com>
60605
60606         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
60607         From Larry Jones <lawrence.jones@ugs.com>.
60608
60609 2005-09-02  Simon Josefsson  <jas@extundo.com>
60610
60611         * modules/socklen: New file.
60612
60613 2005-09-02  Simon Josefsson  <jas@extundo.com>
60614
60615         * modules/havelib: New module.
60616
60617         * modules/gettext, modules/iconv, modules/lock, modules/readline:
60618         Use havelib.
60619
60620 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         Check for arithmetic overflow when calculating sizes, to prevent
60623         some buffer-overflow issues.  These patches are conservative, in the
60624         sense that when I couldn't determine whether an overflow was possible,
60625         I inserted a run-time check.
60626         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
60627         macros.
60628         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
60629         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
60630         (re_xnrealloc, re_x2nrealloc): New inline functions.
60631         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
60632         parse_bracket_exp):
60633         (build_equiv_class, build_charclass): Check for arithmetic overflow
60634         in size expression calculations.
60635         * lib/regex_internal.c (re_string_realloc_buffers):
60636         (build_wcs_upper_buffer, re_node_set_add_intersect):
60637         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
60638         (re_dfa_add_node, register_state): Likewise.
60639         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
60640         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
60641         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
60642         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
60643
60644 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60645
60646         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60647         m4/ulonglong.m4.  Problem reported by Martin Lambers.
60648
60649 2005-09-02  Bruno Haible  <bruno@clisp.org>
60650
60651         Support for lib vs. lib64 distinction on biarch platforms.
60652         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
60653         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
60654         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
60655
60656 2005-09-02  Bruno Haible  <bruno@clisp.org>
60657
60658         * gnulib-tool (import): In the other first-use case, provide defaults
60659         as well.
60660
60661 2005-09-02  Bruno Haible  <bruno@clisp.org>
60662
60663         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
60664         patches not yet found in the latest gettext release.
60665
60666 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60667
60668         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
60669         to avoid a collision with bits/local_lim.h in glibc.
60670         All uses changed.  Problem reported by Dmitry V. Levin in
60671         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
60672
60673         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
60674         bugs in int versus size_t comparisons.
60675         (re_string_context_at): Fix bug where the code assumed that
60676         Idx is signed.
60677
60678         Use bool where appropriate.
60679         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
60680         All callers changed.
60681         (calc_eclosure_iter): Likewise, for ROOT arg.
60682         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
60683         (build_charclass_op): Likewise, for NON_MATCH arg.
60684         * lib/regex_internal.c (re_string_allocate, re_string_construct):
60685         (re_string_construct_common): Likewise, for ICASE arg.
60686         * lib/regexec.c (re_search_2_stub, re_search_stub):
60687         Likewise, for RET_LEN arg.
60688         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
60689         (set_regs): Likewise, for FL_BACKTRACK arg.
60690         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
60691         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
60692         (calc_eclosure_iter, parse_bracket_exp):
60693         Use bool for internal variables that are booleans.
60694         * lib/regexec.c (re_search_internal, check_matching,
60695         proceed_next_node):
60696         (set_regs, build_sifted_states, sift_states_bkref):
60697         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
60698         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60699         (find_collation_sequence_value):
60700         Likewise.
60701         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
60702         (re_node_set_compare):
60703         Return bool, not int. All callers changed.
60704         * lib/regexec.c (check_halt_node_context, check_dst_limits):
60705         (build_trtable, check_node_accept): Likewise.
60706         * lib/regex_internal.h: Include stdbool.h.
60707
60708         Fix bugs uncovered when converting to bool.
60709         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
60710         failure instead of charging ahead blindly.
60711         * lib/regex_internal.c (register_state): Likewise.
60712         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
60713         for freeing internal storage.
60714         (group_nodes_into_DFA_states): Use unsigned int, not int, for
60715         bitset pieces used as boolean, to avoid undefined behavior
60716         on hosts that do int overflow checking.
60717
60718 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60719
60720         * config/srclist.txt: Add glibc bugs 1285-1287.
60721
60722 2005-09-01  Jim Meyering  <jim@meyering.net>
60723
60724         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
60725         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
60726         Require gl_STAT_MACROS, too.
60727
60728 2005-09-01  Bruno Haible  <bruno@clisp.org>
60729
60730         * gnulib-tool (import): In the first-use case, provide defaults.
60731
60732 2005-09-01  Bruno Haible  <bruno@clisp.org>
60733
60734         * gnulib-tool (func_import): Remove the .tmp files.
60735
60736 2005-09-01  Bruno Haible  <bruno@clisp.org>
60737
60738         * gnulib-tool (func_import): Fix handling of symbolic links.
60739
60740 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60743         old glibc regex code mishandles strings longer than 2**31 bytes.
60744         This patch fixes this when the regex code is used in gnulib
60745         (i.e., outside glibc).
60746
60747         This patch should not affect the use of the regex code inside
60748         glibc.  No doubt this problem also needs to be handled for glibc
60749         as well, but the result will be an incompatible change to the
60750         glibc ABI, and the old ABI will have to be supported too.  That
60751         can be the the subject for another patch.
60752
60753         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60754         governing whether the rest of this patch is active.  By default,
60755         the macro is disabled and the patch has no effect.
60756         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60757         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60758         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60759         (re_match_2, re_set_registers): Use the new types.
60760         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60761         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60762         New macros.
60763         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60764         (re_string_context_at, bin_tree_t, re_dfastate_t):
60765         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60766         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60767         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60768         (re_string_char_size_at, re_string_wchar_at):
60769         (re_string_elem_size_at):
60770         Use the new types and macros to port to 64-bit hosts.
60771         Use unsigned types for internal values, so that the code
60772         mostly works even for arrays larger than SSIZE_MAX.
60773         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60774         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60775         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60776         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60777         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60778         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60779         (calc_inveclosure, parse_dup_op, build_range_exp):
60780         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60781         (fetch_number, create_token_tree, mark_opt_subexp):
60782         Likewise.
60783         * lib/regex_internal.c (re_string_construct_common,
60784         create_ci_newstate):
60785         (create_cd_newstate, re_string_allocate, re_string_construct):
60786         (re_string_realloc_buffers, build_wcs_upper_buffer):
60787         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60788         (re_string_reconstruct, re_string_peek_byte_case):
60789         (re_string_fetch_byte_case, re_string_context_at):
60790         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60791         (re_node_set_init_copy, re_node_set_add_intersect):
60792         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60793         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60794         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60795         (re_acquire_state, re_acquire_state_context, register_state):
60796         Likewise.
60797         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60798         search_cur_bkref_entry):
60799         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60800         (re_search_internal, re_search_2_stub, re_search_stub)
60801         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60802         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60803         (update_cur_sifted_state, check_dst_limits):
60804         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60805         (check_subexp_limits, sift_states_bkref, merge_state_array):
60806         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60807         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60808         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60809         (expand_bkref_cache, check_node_accept_bytes):
60810         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60811         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60812         (acquire_init_state_context, check_halt_node_context):
60813         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60814         (sift_states_backward, clean_state_log_if_needed):
60815         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60816         (find_recover_state, transit_state_sb, transit_state_mb):
60817         (transit_state_bkref, build_trtable, match_ctx_clean):
60818         Likewise.
60819         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60820         to work around an assumption that REG_MISSING is negative.
60821
60822         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60823         (seek_collating_symbol_entry) [defined _LIBC]:
60824         (lookup_collation_sequence_value) [defined _LIBC]:
60825         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60826         Use prototypes rather than old-style function definitions.
60827         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60828         (transit_state_sb) [0]:
60829         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60830
60831         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60832         rm_eo.
60833
60834         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60835         (optimize_subexps, lower_subexp):
60836         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60837         since the signed shift might overflow.  Use 1u<<31 instead.
60838         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60839         Likewise.
60840         * lib/regexec.c (check_dst_limits_calc_pos_1,
60841         check_subexp_matching_top): Likewise.
60842
60843         * lib/regcomp.c (optimize_subexps, lower_subexp):
60844         Use CHAR_BIT rather than 8, for clarity.
60845         * lib/regexec.c (check_dst_limits_calc_pos_1):
60846         (check_subexp_matching_top): Likewise.
60847         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60848         have to worry about portability issues when shifting it left.
60849         Remove no-longer-needed test for table_size > 0.
60850         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60851         in a word, as the resulting behavior is undefined.
60852         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60853         in one case, a <= should have been an <, and in another case the
60854         whole test was missing.
60855         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60856         the standard name CHAR_BIT.
60857         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60858         this is not true on one's complement and signed-magnitude hosts.
60859
60860         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60861         next_last_offset.
60862         (struct re_dfa_t): Remove unused member states_alloc.
60863         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60864
60865 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60868         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60869         and large-file glibc and in 32-bit large-file Solaris.
60870
60871 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60872
60873         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60874         lengths fit in regoff_t; this isn't true if regoff_t is the same
60875         width as size_t.
60876         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60877         (= START + RANGE) instead of RANGE.  This avoids overflow
60878         problems when regoff_t is the same width as size_t.
60879         All callers changed.
60880         (re_search_2_stub): Check for overflow when adding the
60881         sizes of the two strings.
60882         (re_search_stub): Check for overflow when adding START
60883         to RANGE; if it occurs, substitute the extreme value.
60884
60885 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60886
60887         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60888
60889 2005-08-31  Jim Meyering  <jim@meyering.net>
60890
60891         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60892         a pointer-to-const.
60893         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60894         (register_state): Likewise.
60895         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60896         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60897         (group_nodes_into_DFAstates): Likewise.
60898
60899 2005-08-31  Jim Meyering  <jim@meyering.net>
60900
60901         * check-module: Add a FIXME comment.
60902
60903 2005-08-31  Eric Blake  <ebb9@byu.net>
60904
60905         * modules/unistd-safer (Files): Add unistd--.h.
60906         * modules/stdio-safer (Files): Add stdio--.h.
60907
60908 2005-08-31  Derek Price  <derek@ximbiot.com>
60909
60910         * lib/getdelim.c (getdelim): Return EOF on EOF.
60911         Reported by Larry Jones <lawrence.jones@ugs.com>.
60912
60913 2005-08-31  Bruno Haible  <bruno@clisp.org>
60914
60915         Avoid unnecessary diffs in the generated lib/Makefile.am.
60916         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60917         the generated files.
60918         (func_import): Don't set cmd.
60919
60920 2005-08-31  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/strstr.c: Include <stddef.h>, for NULL.
60923         * lib/strcasestr.c: Likewise.
60924         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60925
60926 2005-08-31  Bruno Haible  <bruno@clisp.org>
60927
60928         * gnulib-tool: New option --macro-prefix.
60929         (func_import): Use macro_prefix.
60930         (import): Handle option --macro-prefix.
60931
60932 2005-08-31  Bruno Haible  <bruno@clisp.org>
60933
60934         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60935         Also use new variables cached_lgpl, cached_libtool.
60936
60937 2005-08-31  Bruno Haible  <bruno@clisp.org>
60938
60939         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60940         always instantiating them.
60941
60942 2005-08-31  Bruno Haible  <bruno@clisp.org>
60943
60944         * gnulib-tool (func_import): Read the previous cached settings
60945         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60946         earlier added by gnulib but are now dropped. Warn when a gnulib file
60947         overwrites a non-gnulib file.
60948
60949 2005-08-31  Bruno Haible  <bruno@clisp.org>
60950
60951         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60952         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60953         projects that don't keep autogenerated files in CVS. Put into
60954         actioncmd only the specified modules, not the transitive closure.
60955
60956 2005-08-31  Bruno Haible  <bruno@clisp.org>
60957
60958         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60959         Create directories that shall be filled.
60960         (import): Don't look for gl_* macros in configure.ac. Recurse across
60961         all directories containing a gnulib-cache.m4 files, if meaningful.
60962
60963 2005-08-31  Bruno Haible  <bruno@clisp.org>
60964
60965         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60966         (import): Set seen_libtool when we see gl_LIBTOOL.
60967
60968 2005-08-31  Bruno Haible  <bruno@clisp.org>
60969
60970         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60971         declaration macro definitions from generated gnulib.m4.
60972
60973 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60974
60975         * lib/iconvme.h: Add prototype for iconv_alloc.
60976
60977 2005-08-29  Simon Josefsson  <jas@extundo.com>
60978
60979         * lib/iconvme.c: Fix errno.
60980
60981 2005-08-29  Bruno Haible  <bruno@clisp.org>
60982
60983         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60984         that it works when the directory contains spaces.
60985
60986 2005-08-29  Bruno Haible  <bruno@clisp.org>
60987
60988         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60989
60990 2005-08-29  Bruno Haible  <bruno@clisp.org>
60991
60992         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60993         Emit more advice.
60994
60995 2005-08-29  Bruno Haible  <bruno@clisp.org>
60996         and Stepan Kasal  <kasal@ucw.cz>
60997
60998         * check-module: If more parameters are given, check each of them
60999         separately; add more exceptions, as noted by Jim Meyering.
61000         (check_module): New procedure.
61001         (%exempt_header): Now contains all exceptions.
61002
61003 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
61004
61005         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
61006
61007 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61008
61009         * lib/iconvme.c: Split iconv_string into iconv_alloc.
61010
61011 2005-08-28  Bruno Haible  <bruno@clisp.org>
61012
61013         * m4/gnulib-tool.m4: New file.
61014
61015 2005-08-27  Jim Meyering  <jim@meyering.net>
61016
61017         * modules/unistd-safer (Files): Add pipe-safer.c.
61018         * modules/fcntl-safer (Files): Add creat-safer.c.
61019
61020 2005-08-27  Jim Meyering  <jim@meyering.net>
61021
61022         * m4/stdlib-safer.m4: New file.  From coreutils.
61023         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
61024         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
61025         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
61026         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
61027         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
61028
61029 2005-08-27  Jim Meyering  <jim@meyering.net>
61030
61031         * lib/fopen-safer.c: Merge minor changes from coreutils.
61032         * lib/dup-safer.c: Likewise.
61033         * lib/fd-safer.c: Likewise.
61034
61035         Merge from coreutils.
61036         * lib/stdio--.h: New file.
61037         * lib/stdlib--.h: New file.
61038         * lib/mkstemp-safer.c: New file.
61039
61040         GNU tar needs these.
61041         * lib/pipe-safer.c: New file.
61042         * lib/creat-safer.c: New file.
61043         * lib/fcntl--.h (creat): Define to creat_safer.
61044         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
61045         * lib/unistd--.h (pipe): Define to pipe_safer.
61046         * lib/unistd-safer.h: Declare pipe_safer.
61047
61048 2005-08-26  Simon Josefsson  <jas@extundo.com>
61049
61050         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
61051         Haible <bruno@clisp.org>.
61052
61053 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
61054
61055         * lib/regex_internal.h: Remove all references to
61056         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
61057         or better.
61058         (bitset_not, bitset_merge, bitset_not_merge):
61059         (bitset_mask, re_string_allocate, re_string_construct):
61060         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
61061         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
61062         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
61063         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
61064         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61065         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61066         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
61067         (re_acquire_state_context):
61068         Remove unnecessary forward decls.
61069         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
61070         Put __attribute at function definition,
61071         now that the function decl has been removed.
61072         * lib/regex_internal.c (re_string_peek_byte_case):
61073         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
61074         Likewise.
61075
61076 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
61077
61078         * m4/regex.m4: Add AC_PREREQ(2.50).
61079         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
61080
61081 2005-08-25  Simon Josefsson  <jas@extundo.com>
61082
61083         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
61084         __fsetlocking.
61085
61086 2005-08-25  Simon Josefsson  <jas@extundo.com>
61087
61088         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
61089         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
61090         GLIBC specific code.
61091
61092 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61093
61094         Make regex safe for g++.  This fixes one real bug (an "err"
61095         that should have been "*err").  g++ problem reported by
61096         Sam Steingold.
61097         * lib/regex_internal.h (re_calloc): New macro, consistent with
61098         re_malloc etc.  All callers of calloc changed to use re_calloc.
61099         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
61100         not int.  All callers changed.
61101         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
61102         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
61103         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
61104         (find_recover_state): Change "err" to "*err"; this fixes what
61105         appears to be a real bug.
61106         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
61107         versus int.
61108
61109 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61110
61111         * modules/regex (Depends-on): Add malloc, since the code
61112         assumes that !malloc(0) means failure.
61113
61114 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
61117
61118         alloca modernization/simplification for regex.
61119         * lib/regex.c: Remove portability cruft for alloca.  This no longer
61120         needs to be at the start of the file, and can be moved into
61121         regex_internal.h and simplified.
61122         * lib/regex_internal.h: Include <alloca.h>.
61123         (__libc_use_alloca) [!defined _LIBC]: New macro.
61124         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
61125         now works outside glibc.
61126
61127 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61128
61129         * config/srclist.txt: Add glibc bugs 1241, 1245.
61130
61131 2005-08-25  Jim Meyering  <jim@meyering.net>
61132
61133         * lib/open-safer.c: Include <config.h>.
61134         Otherwise, we'd lose LARGEFILE support in any file using
61135         e.g. "fcntl--.h"
61136
61137 2005-08-25  Bruno Haible  <bruno@clisp.org>
61138
61139         * m4/minmax.m4: Require autoconf 2.52.
61140         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
61141         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
61142         alternatives of translit over the alphabet.
61143         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
61144
61145 2005-08-24  Simon Josefsson  <jas@extundo.com>
61146
61147         * tests/test-getpass.c: New file.
61148
61149 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
61152         for GNU regex features.
61153
61154 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61155
61156         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
61157         * lib/regex.h (regerror): Likewise.
61158
61159         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
61160         requires this.  (The code never needed it.)
61161
61162         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
61163         All uses of recently-renamed identifiers changed to use the new,
61164         POSIX-compliant names.  The code will build and run just fine
61165         without these changes, but it's better to eat our own dog food
61166         and use the standard-conforming names.
61167
61168         * lib/regex.h: Fix a multitude of POSIX name space violations.
61169         These changes have an effect only for programs that define
61170         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
61171         do not change anything for programs compiled in the normal way.
61172         Also, there is no effect on the ABI.
61173
61174         (_REGEX_SOURCE): New macro.
61175         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
61176         defined and _GNU_SOURCE is not; this fixes a name space violation.
61177
61178         Rename the following macros to obey POSIX requirements.
61179         The old names are still visible as macros if _REGEX_SOURCE is defined.
61180         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
61181         RE_BACKSLASH_ESCAPE_IN_LISTS.
61182         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
61183         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
61184         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
61185         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
61186         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
61187         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
61188         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
61189         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
61190         (REG_INTERVALS): renamed from RE_INTERVALS.
61191         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
61192         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
61193         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
61194         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
61195         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
61196         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
61197         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
61198         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
61199         RE_UNMATCHED_RIGHT_PAREN_ORD.
61200         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
61201         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
61202         (REG_DEBUG): renamed from RE_DEBUG.
61203         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
61204         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
61205         unusual, since we can't clash with the POSIX REG_ICASE.
61206         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
61207         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
61208         (REG_NO_SUB): renamed from RE_NO_SUB.
61209         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
61210         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
61211         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
61212         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
61213         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
61214         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
61215         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
61216         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
61217         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
61218         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
61219         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
61220         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
61221         RE_SYNTAX_POSIX_MINIMAL_BASIC.
61222         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
61223         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
61224         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
61225         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
61226         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
61227         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
61228         (REG_FIXED): Renamed from REGS_FIXED.
61229         (REG_NREGS): Renamed from RE_NREGS.
61230
61231         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
61232         of other REG_* macros, since POSIX says the user is allowed to
61233         #undef these macros selectively.
61234
61235         (reg_errcode_t): Update comment stating what other tables need
61236         to be consistent.
61237
61238         Rename the following enum values to obey POSIX requirements.
61239         The old names are still visible as macros.
61240         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
61241         is not defined, since GNU is supposed to be a superset of POSIX as
61242         much as possible, and since we want reg_errcode_t to be a signed
61243         type for implementation consistency.
61244         (_REG_NOERROR): Renamed from REG_NOERROR.
61245         (_REG_NOMATCH): Renamed from REG_NOMATCH.
61246         (_REG_BADPAT): Renamed from REG_BADPAT.
61247         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
61248         (_REG_ECTYPE): Renamed from REG_ECTYPE.
61249         (_REG_EESCAPE): Renamed from REG_EESCAPE.
61250         (_REG_ESUBREG): Renamed from REG_ESUBREG.
61251         (_REG_EBRACK): Renamed from REG_EBRACK.
61252         (_REG_EPAREN): Renamed from REG_EPAREN.
61253         (_REG_EBRACE): Renamed from REG_EBRACE.
61254         (_REG_BADBR): Renamed from REG_BADBR.
61255         (_REG_ERANGE): Renamed from REG_ERANGE.
61256         (_REG_ESPACE): Renamed from REG_ESPACE.
61257         (_REG_BADRPT): Renamed from REG_BADRPT.
61258         (_REG_EEND): Renamed from REG_EEND.
61259         (_REG_ESIZE): Renamed from REG_ESIZE.
61260         (_REG_ERPAREN): Renamed from REG_ERPAREN.
61261         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
61262         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
61263         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
61264         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
61265
61266         (_REG_RE_NAME, _REG_RM_NAME): New macros.
61267         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
61268         changed.  But support the old name if the new one is not defined
61269         and if _REGEX_SOURCE.
61270
61271         Change the following member names in struct re_pattern_buffer.
61272         The old names are still supported if !_REGEX_SOURCE.
61273         The new names are always supported, regardless of _REGEX_SOURCE.
61274         (re_buffer): Renamed from buffer.
61275         (re_allocated): Renamed from allocated.
61276         (re_used): Renamed from used.
61277         (re_syntax): Renamed from syntax.
61278         (re_fastmap): Renamed from fastmap.
61279         (re_translate): Renamed from translate.
61280         (re_can_be_null): Renamed from can_be_null.
61281         (re_regs_allocated): Renamed from regs_allocated.
61282         (re_fastmap_accurate): Renamed from fastmap_accurate.
61283         (re_no_sub): Renamed from no_sub.
61284         (re_not_bol): Renamed from not_bol.
61285         (re_not_eol): Renamed from not_eol.
61286         (re_newline_anchor): Renamed from newline_anchor.
61287
61288         Change the following member names in struct re_registers.
61289         The old names are still supported if !_REGEX_SOURCE.
61290         The new names are always supported, regardless of _REGEX_SOURCE.
61291         (rm_num_regs): Renamed from num_regs.
61292         (rm_start): Renamed from start.
61293         (rm_end): Renamed from end.
61294
61295         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
61296         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
61297         Prepend __ to parameter names.
61298
61299         Undo yesterday's changes.
61300
61301 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
61304         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
61305         lib/regex.c.
61306
61307 2005-08-24  Jim Meyering  <jim@meyering.net>
61308
61309         Sync from coreutils.
61310         * m4/fcntl-safer.m4: New file.
61311
61312         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
61313         and object files for this module.
61314
61315 2005-08-24  Jim Meyering  <jim@meyering.net>
61316
61317         Sync from coreutils.
61318         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
61319
61320 2005-08-24  Jim Meyering  <jim@meyering.net>
61321
61322         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
61323         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
61324
61325 2005-08-24  Jim Meyering  <jim@meyering.net>
61326
61327         * modules/fcntl-safer: New module.
61328         * modules/fts (Depends-on): Add fcntl-safer.
61329         * MODULES.html.sh (File descriptor based Input/Output):
61330         Add fcntl-safer.
61331
61332 2005-08-24  Bruno Haible  <bruno@clisp.org>
61333
61334         Support for unit test modules.
61335         * modules/README: Mention tests modules.
61336         * modules/TEMPLATE-TESTS: New file.
61337         * gnulib-tool: New options --extract-tests-module, --with-tests and
61338         --tests-base (unused for the moment).
61339         (testsbase, inctests): New variables.
61340         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
61341         (func_verify_module): Exclude TEMPLATE-TESTS.
61342         (func_verify_nontests_module, func_verify_tests_module): New functions.
61343         (func_get_dependencies): Add implicit dependency for tests modules.
61344         (func_get_tests_module): New function.
61345         (func_modules_transitive_closure): When --with-tests was specified,
61346         include the unit tests as well, unless explicitly avoided.
61347         (func_emit_lib_Makefile_am): Ignore the tests modules here.
61348         (func_emit_tests_Makefile_am): New function.
61349         (func_create_testdir): When --with-tests was specified, emit a
61350         tests/ directory.
61351         * MODULES.html.sh (Future developments): Update.
61352
61353 2005-08-24  Bruno Haible  <bruno@clisp.org>
61354
61355         * modules/tls-tests: New file.
61356         * tests/test-tls.c: New file, from GNU gettext.
61357
61358 2005-08-24  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/lock-tests: New file.
61361         * tests/test-lock.c: New file, from GNU gettext.
61362
61363 2005-08-24  Bruno Haible  <bruno@clisp.org>
61364
61365         * lib/lock.h: Add multiple inclusion guard.
61366         * lib/tls.h: Add multiple inclusion guard.
61367
61368 2005-08-24  Bruno Haible  <bruno@clisp.org>
61369
61370         * gnulib-tool: Add support for the --aux-dir option to
61371         --create-testdir, --create-megatestdir, --test, --megatest.
61372         (func_create_testdir, func_create_megatestdir): Optionally emit a
61373         AC_CONFIG_AUX_DIR directive.
61374         (create-testdir, create-megatestdir, test, megatest): Provide a
61375         default value for $auxdir.
61376
61377 2005-08-24  Bruno Haible  <bruno@clisp.org>
61378
61379         * gnulib-tool (import): Use compound statement instead of subshell
61380         where possible.
61381
61382 2005-08-24  Bruno Haible  <bruno@clisp.org>
61383
61384         * gnulib-tool (import): Change --aux-dir default to "build-aux".
61385
61386 2005-08-24  Bruno Haible  <bruno@clisp.org>
61387
61388         * gnulib-tool (func_version): Update.
61389
61390 2005-08-24  Bruno Haible  <bruno@clisp.org>
61391
61392         * gnulib-tool (func_import, func_create_testdir,
61393         func_create_megatestdir): Quote all autoconf macro arguments.
61394
61395 2005-08-24  Bruno Haible  <bruno@clisp.org>
61396
61397         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
61398         option --force, because --force causes the aclocal.m4 of each
61399         subdirectory to be newer than the corresponding config.h.in.
61400
61401 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61402
61403         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
61404         All contents moved to gl_REGEX.
61405         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
61406         assume that it does.
61407
61408 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * lib/regex.h (REG_NOSYS)
61411         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
61412         Define, since POSIX requires it as of 2001.
61413         (_REG_ENOSYS)
61414         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
61415         New private symbol, used to keep the enum signed in all cases.
61416         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
61417         Youngman in
61418         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
61419
61420         * lib/regex_internal.c (re_string_skip_chars, register_state):
61421         (calc_state_hash):
61422         Remove forward decls; no longer needed now that we use prototypes.
61423         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
61424         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
61425         (clean_state_log_if_needed): Likewise.
61426
61427 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61428
61429         * config/srclist.txt: Add glibc bugs 1231-1233.
61430
61431 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61432
61433         Fix problems reported by Sam Steingold in
61434         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
61435         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
61436         assumed that reg_errcode_t is a signed type, which is not
61437         necessarily true if _XOPEN_SOURCE is not defined.
61438         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
61439         since some compilers warn about it otherwise.
61440
61441 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61442
61443         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
61444         (init_word_char, create_initial_state, duplicate_node_closure):
61445         (fetch_token, peek_token_bracket, build_range_exp):
61446         (build_collating_symbol): Remove forward decls; no longer needed
61447         now that we use prototypes.
61448
61449         * lib/regcomp.c:
61450         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
61451         (re_compile_fastmap_iter, regcomp, regerror, regfree):
61452         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
61453         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
61454         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
61455         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
61456         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
61457         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
61458         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
61459         (build_range_exp, build_collating_symbol, parse_bracket_exp):
61460         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
61461         (build_charclass, build_charclass_op, fetch_number, create_tree):
61462         (create_token_tree, mark_opt_subexp, duplicate_tree):
61463         Use prototypes rather than old-style definitions.
61464
61465         * lib/regex_internal.c:
61466         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
61467         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
61468         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61469         (re_string_reconstruct, re_string_peek_byte_case):
61470         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
61471         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61472         (re_node_set_init_copy, re_node_set_add_intersect):
61473         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61474         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61475         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61476         (re_acquire_state, re_acquire_state_context, register_state):
61477         (create_ci_newstate, create_cd_newstate, free_state):
61478         Likewise.
61479         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
61480         re_search_2):
61481         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
61482         (re_search_internal, prune_impossible_nodes):
61483         (acquire_init_state_context, check_matching, static):
61484         (check_halt_node_context, check_halt_state_context, proceed_next_node):
61485         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
61486         (update_regs, sift_states_backward, build_sifted_states):
61487         (clean_state_log_if_needed, merge_state_array):
61488         (update_cur_sifted_state, add_epsilon_src_nodes):
61489         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
61490         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
61491         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
61492         (find_recover_state, check_subexp_matching_top, transit_state_mb):
61493         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
61494         (check_arrival, check_arrival_add_next_nodes):
61495         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61496         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61497         (check_node_accept_bytes, check_node_accept, extend_buffers):
61498         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
61499         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
61500         (sift_ctx_init):
61501         Likewise.
61502
61503         * lib/regex_internal.h:
61504         (re_string_allocate, re_string_construct, re_string_reconstruct):
61505         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
61506         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
61507         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
61508         (re_string_context_at, re_string_peek_byte_case):
61509         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
61510         is defined, since we now use prototypes always.
61511
61512         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
61513         C89 or better.  All uses removed.
61514
61515 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61516
61517         * config/srclist.txt: Add glibc bugs 1220-1227.
61518
61519 2005-08-20  Jim Meyering  <jim@meyering.net>
61520
61521         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
61522         of unused local, dfa.
61523
61524 2005-08-20  Bruno Haible  <bruno@clisp.org>
61525
61526         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
61527
61528 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
61531         (re_node_set_insert_last, re_dfa_add_node):
61532         Rename local variables to avoid GCC shadowing warnings.
61533
61534 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61535
61536         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
61537         [defined lint]: Suppress bogus uninitialized-variable warnings.
61538
61539         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
61540         and let the caller return REG_ESPACE if out of space.  This
61541         removes an uninitialied-variable warning with GCC 4.0.1, and also
61542         avoids taking the address of a local variable.  All callers
61543         changed.
61544
61545 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
61548         $LIBCSRC/posix/regexec.c.
61549         Add glibc bug 1217 for regcomp.c.
61550
61551 2005-08-19  Jim Meyering  <jim@meyering.net>
61552
61553         * lib/regexec.c (proceed_next_node): Redo local variables to
61554         avoid GCC shadowing warnings.
61555
61556 2005-08-18  Bruno Haible  <bruno@clisp.org>
61557
61558         * lib/strstr.c (strstr): Fix return value in multibyte case.
61559         * lib/strcasestr.c (strcasestr): Likewise.
61560
61561 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61562
61563         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
61564
61565 2005-08-17  Jim Meyering  <jim@meyering.net>
61566
61567         Make the %s format (seconds since the epoch) work for a negative
61568         number and when used with a zero-padded field width, e.g. %015s.
61569
61570         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
61571         label so that it precedes the code to set `digits'.  Otherwise,
61572         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61573         print `00-22'.  Now, it prints `-0022', as it should.
61574
61575 2005-08-17  Bruno Haible  <bruno@clisp.org>
61576
61577         * modules/strstr (Files): Add m4/mbrtowc.m4.
61578         (Depends-on): Add mbuiter.
61579
61580 2005-08-17  Bruno Haible  <bruno@clisp.org>
61581
61582         * modules/strcasestr: New file.
61583         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61584         strcasestr.
61585
61586 2005-08-17  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61589
61590 2005-08-17  Bruno Haible  <bruno@clisp.org>
61591
61592         * modules/mbuiter: New file.
61593         * MODULES.html.sh (Extended multibyte and wide character utilities):
61594         Add mbuiter.
61595
61596 2005-08-17  Bruno Haible  <bruno@clisp.org>
61597
61598         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61599         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61600
61601 2005-08-17  Bruno Haible  <bruno@clisp.org>
61602
61603         * m4/strcasestr.m4: New file.
61604
61605 2005-08-17  Bruno Haible  <bruno@clisp.org>
61606
61607         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
61608         * lib/strstr.c: Completely rewritten, with multibyte locale support.
61609
61610 2005-08-17  Bruno Haible  <bruno@clisp.org>
61611
61612         * lib/strcasestr.h: New file.
61613         * lib/strcasestr.c: New file.
61614
61615 2005-08-17  Bruno Haible  <bruno@clisp.org>
61616
61617         * lib/strcasecmp.c: Use mbuiter.h.
61618
61619 2005-08-17  Bruno Haible  <bruno@clisp.org>
61620
61621         * lib/mbuiter.h: New file.
61622
61623 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
61626         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
61627         and gl_GETOPT are both invoked via different paths (as happens
61628         with GNU tar CVS because it uses both argp and getopt), the former
61629         wins.
61630
61631 2005-08-16  Bruno Haible  <bruno@clisp.org>
61632
61633         * modules/tls: New file.
61634         * MODULES.html.sh (Multithreading): Add tls.
61635
61636 2005-08-16  Bruno Haible  <bruno@clisp.org>
61637
61638         * modules/strnlen1: New file.
61639         * MODULES.html.sh (String handling): Add strnlen1.
61640
61641 2005-08-16  Bruno Haible  <bruno@clisp.org>
61642
61643         * modules/strcase (Files): Add m4/mbrtowc.m4.
61644         (Depends-on): Add strnlen1, mbchar.
61645
61646 2005-08-16  Bruno Haible  <bruno@clisp.org>
61647
61648         * modules/mbiter: New file.
61649         * MODULES.html.sh (Extended multibyte and wide character utilities):
61650         Add mbiter.
61651
61652 2005-08-16  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/mbfile: New file.
61655         * MODULES.html.sh (Extended multibyte and wide character utilities):
61656         Add mbfile.
61657
61658 2005-08-16  Bruno Haible  <bruno@clisp.org>
61659
61660         * modules/mbchar: New file.
61661         * MODULES.html.sh (Extended multibyte and wide character utilities):
61662         New section.
61663
61664 2005-08-16  Bruno Haible  <bruno@clisp.org>
61665
61666         * m4/tls.m4: New file, from GNU gettext.
61667
61668 2005-08-16  Bruno Haible  <bruno@clisp.org>
61669
61670         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
61671         always.
61672         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
61673
61674 2005-08-16  Bruno Haible  <bruno@clisp.org>
61675
61676         * m4/mbiter.m4: New file.
61677
61678 2005-08-16  Bruno Haible  <bruno@clisp.org>
61679
61680         * m4/mbfile.m4: New file.
61681
61682 2005-08-16  Bruno Haible  <bruno@clisp.org>
61683
61684         * m4/mbchar.m4: New file.
61685
61686 2005-08-16  Bruno Haible  <bruno@clisp.org>
61687
61688         * lib/tls.h: New file, from GNU gettext.
61689         * lib/tls.c: New file, from GNU gettext.
61690
61691 2005-08-16  Bruno Haible  <bruno@clisp.org>
61692
61693         * lib/strnlen1.h: New file.
61694         * lib/strnlen1.c: New file.
61695
61696 2005-08-16  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
61699         (mbi_init): Update.
61700         (mbi_avail, mbi_advance): Let the iteration end before the terminating
61701         NUL byte, not after it.
61702
61703 2005-08-16  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/strcase.h (strcasecmp): Add note in comments.
61706         * lib/strncasecmp.c: Use code from strcasecmp.c.
61707         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
61708         (strcasecmp): Work correctly in multibyte locales.
61709
61710 2005-08-16  Bruno Haible  <bruno@clisp.org>
61711
61712         * lib/mbiter.h: New file.
61713
61714 2005-08-16  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/mbfile.h: New file.
61717
61718 2005-08-16  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/mbchar.h: New file.
61721         * lib/mbchar.c: New file.
61722
61723 2005-08-16  Bruno Haible  <bruno@clisp.org>
61724
61725         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
61726         the valid ones. Makes the comparison operations transitive:
61727         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
61728         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
61729
61730 2005-08-15  Simon Josefsson  <jas@extundo.com>
61731
61732         * modules/ssize_t (License): Change to 'unlimited'.
61733
61734         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61735
61736 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61737
61738         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61739         Add comments for each pending glibc patch.
61740
61741 2005-08-15  Bruno Haible  <bruno@clisp.org>
61742
61743         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61744         __cplusplus is defined.
61745
61746 2005-08-14  Jim Meyering  <jim@meyering.net>
61747
61748         Sync from coreutils.
61749
61750         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61751         Use the hash-table-based cycle-detection code not just when
61752         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61753         Reported by James Youngman in
61754         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61755         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61756         FTS_TIGHT_CYCLE_CHECK.
61757         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61758         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61759         once again.
61760         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61761         * lib/fts.c (fd_safer): Remove decl.
61762         Include fcntl--.h rather than unistd-safer.h
61763         (fts_safe_changedir): Don't call fd_safer; no longer needed
61764         now that we include fcntl--.h.
61765
61766 2005-08-12  Simon Josefsson  <jas@extundo.com>
61767
61768         * modules/getndelim2: Use ssize_t module.
61769         * modules/getnline: Likewise.
61770         * modules/safe-read: Likewise.
61771         * modules/xreadlink: Likewise.
61772
61773         * modules/ssize_t: New file.
61774
61775 2005-08-12  Simon Josefsson  <jas@extundo.com>
61776
61777         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61778
61779 2005-08-12  Simon Josefsson  <jas@extundo.com>
61780
61781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61782         ssize_t.
61783
61784 2005-08-12  Simon Josefsson  <jas@extundo.com>
61785
61786         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61787         readline, getdelim and check_version.
61788         (Support for systems lacking ISO C 99: Sizes of integer types):
61789         Add size_max.
61790
61791 2005-08-12  Bruno Haible  <bruno@clisp.org>
61792
61793         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61794
61795 2005-08-11  Simon Josefsson  <jas@extundo.com>
61796
61797         * modules/readline: New file.
61798
61799         * modules/strnlen (Files): Add strnlen.h.
61800
61801 2005-08-11  Simon Josefsson  <jas@extundo.com>
61802
61803         * m4/readline.m4: New file.
61804
61805 2005-08-11  Simon Josefsson  <jas@extundo.com>
61806
61807         * lib/readline.h, readline.c: New file.
61808
61809 2005-08-11  Simon Josefsson  <jas@extundo.com>
61810
61811         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61812         gl_AVOID.
61813
61814 2005-08-11  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61817
61818 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61819
61820         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61821
61822 2005-08-10  Simon Josefsson  <jas@extundo.com>
61823
61824         * tests/test-iconvme.c: New file.
61825
61826 2005-08-10  Simon Josefsson  <jas@extundo.com>
61827
61828         * m4/strnlen.m4: New file.
61829
61830         * m4/strndup.m4: Don't check for strnlen declaration, done in
61831         strnlen.m4.
61832
61833 2005-08-10  Simon Josefsson  <jas@extundo.com>
61834
61835         * lib/strndup.c: Use strnlen.h.
61836
61837         * lib/strnlen.h: New file.
61838
61839 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61840
61841         * README: Typos.
61842
61843 2005-08-02  Simon Josefsson  <jas@extundo.com>
61844
61845         * modules/readline: New file.
61846
61847 2005-08-02  Simon Josefsson  <jas@extundo.com>
61848
61849         * modules/getdelim: New file.
61850
61851         * modules/getline: Rewrite, don't use getndelim2.
61852
61853 2005-08-02  Simon Josefsson  <jas@extundo.com>
61854
61855         * m4/getline.m4: Separate out getdelim stuff into separate module.
61856
61857         * m4/getdelim.m4: New file.
61858
61859 2005-08-02  Simon Josefsson  <jas@extundo.com>
61860
61861         * lib/getline.h, getline.c: Rewrite.
61862
61863         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61864
61865 2005-07-31  Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/lock.h (gl_lock_initializer): New macro.
61868         (gl_lock_define_initialized): Use it.
61869         (gl_rwlock_initializer): New macro.
61870         (gl_rwlock_define_initialized): Use it.
61871         (gl_recursive_lock_initializer): New macro.
61872         (gl_recursive_lock_define_initialized): Use it.
61873
61874 2005-07-30  Karl Berry  <karl@gnu.org>
61875
61876         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61877         Report from Ben Pfaff, regarding getopt.
61878
61879 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61882         normal way.
61883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61884         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61885         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61886         (gl_GETOPT): Use the new macros.  Most of the implementation
61887         is moved to the new macros.  This is for programs like Emacs
61888         that don't want all the functionality of gl_GETOPT.
61889
61890 2005-07-26  Bruno Haible  <bruno@clisp.org>
61891
61892         * m4/lock.m4: Update from GNU gettext.
61893
61894 2005-07-26  Bruno Haible  <bruno@clisp.org>
61895
61896         * lib/lock.h: Update from GNU gettext.
61897         * lib/lock.c: Update from GNU gettext.
61898
61899 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61902         obsolescent AC_TRY_RUN.  Include the default includes files, for
61903         'exit'.
61904
61905 2005-07-24  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/visibility: New file.
61908         * MODULES.html.sh (Misc): Add visibility.
61909
61910 2005-07-24  Bruno Haible  <bruno@clisp.org>
61911
61912         * m4/visibility.m4: New file.
61913
61914 2005-07-24  Bruno Haible  <bruno@clisp.org>
61915
61916         * doc/visibility.texi: New file.
61917
61918 2005-07-22  Bruno Haible  <bruno@clisp.org>
61919
61920         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61921         $(ALLOCA_H), redundant through BUILT_SOURCES.
61922         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61923         redundant through BUILT_SOURCES.
61924         * modules/byteswap (Makefile.am): Remove explicit dependency on
61925         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61926         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61927         $(FNMATCH_H), redundant through BUILT_SOURCES.
61928         * modules/getopt (Makefile.am): Remove explicit dependency on
61929         $(GETOPT_H), redundant through BUILT_SOURCES.
61930         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61931         redundant through BUILT_SOURCES.
61932         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61933         redundant through BUILT_SOURCES.
61934         * modules/stdbool (Makefile.am): Remove explicit dependency on
61935         $(STDBOOL_H), redundant through BUILT_SOURCES.
61936         * modules/stdint (Makefile.am): Remove explicit dependency on
61937         $(STDINT_H), redundant through BUILT_SOURCES.
61938         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61939         Remove explicit dependency on $(SYSEXITS_H).
61940         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61941
61942 2005-07-18  Simon Josefsson  <jas@extundo.com>
61943
61944         * lib/check-version.c (check_version): Accept identical versions too.
61945
61946 2005-07-18  Bruno Haible  <bruno@clisp.org>
61947
61948         * modules/lock: New file.
61949         * MODULES.html.sh (Multithreading): New section.
61950
61951 2005-07-18  Bruno Haible  <bruno@clisp.org>
61952
61953         * m4/lock.m4: New file, from GNU gettext.
61954
61955 2005-07-18  Bruno Haible  <bruno@clisp.org>
61956
61957         * lib/lock.h: New file, from GNU gettext.
61958         * lib/lock.c: New file, from GNU gettext.
61959
61960 2005-07-18  Bruno Haible  <bruno@clisp.org>
61961
61962         * lib/lock.h (gl_once_t): New type.
61963         (gl_once_define, gl_once): New macros.
61964         * lib/lock.c (fresh_once): New variable.
61965         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61966         functions.
61967
61968 2005-07-16  Simon Josefsson  <jas@extundo.com>
61969
61970         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61971         workaround, suggested by Bruno.
61972
61973 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         * modules/xalloc (Depends-on): Add xalloc-die.
61976         * modules/xvasprintf (Depends-on): Add xalloc-die.
61977
61978 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61981         with a minor change.
61982
61983 2005-07-15  Bruno Haible  <bruno@clisp.org>
61984
61985         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61986         When using lib/poll.c, define poll as rpl_poll.
61987
61988 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * modules/argp (Depends-on): Remove unlocked-io.
61991
61992 2005-07-14  Derek Price  <derek@ximbiot.com>
61993
61994         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61995         for glob symlink bug.
61996
61997 2005-07-14  Bruno Haible  <bruno@clisp.org>
61998
61999         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
62000         Instead, test for *_unlocked function declarations directly.
62001
62002 2005-07-11  Simon Josefsson  <jas@extundo.com>
62003
62004         * modules/size_max: New file.
62005
62006         * modules/xsize: Depend on size_max module for size_max.m4.
62007
62008 2005-07-11  Simon Josefsson  <jas@extundo.com>
62009
62010         * lib/size_max.h: New file.
62011
62012 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
62013
62014         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
62015         copyright symbol and the year.
62016         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
62017         (version_etc_va): Use parameterized copyright notice.
62018         Reword to conform to the current GNU coding standards.
62019
62020 2005-07-11  Karl Berry  <karl@gnu.org>
62021
62022         * doc/gnulib.texi (Quoting): new node.
62023         (Initial import): more info, from Patrice.
62024
62025 2005-07-11  Bruno Haible  <bruno@clisp.org>
62026
62027         * gnulib-tool (func_usage): Document option --avoid.
62028         (Command line options): Handle --avoid.
62029         (func_acceptable): New function.
62030         (func_modules_transitive_closure): Use it.
62031
62032 2005-07-11  Bruno Haible  <bruno@clisp.org>
62033
62034         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
62035         Reported by Jim Meyering.
62036
62037 2005-07-10  Bruno Haible  <bruno@clisp.org>
62038
62039         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
62040         Needed when size_t is smaller than 'unsigned int'.
62041         Reported by Paul Eggert.
62042
62043 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62044
62045         * modules/argp (Depends-on): Add unlocked-io
62046
62047 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62048
62049         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
62050         block of defines.
62051
62052 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62053
62054         * config/srclist.txt: Comment out regcomp.c, since we have a porting
62055         fix now.
62056
62057 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
62058         and Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
62061         in wint_t, not wchar_t.  Remove now-unnecessary cast.
62062
62063 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62064
62065         * modules/regex (Files): Add lib/regex_internal.c,
62066         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
62067         (Depends-on): Add extensions.
62068         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
62069
62070 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
62073         pathconf.
62074         * m4/same.m4 (gl_SAME): Likewise.
62075         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
62076
62077         * m4/regex.m4: Adjust to new libc regex implementation.
62078         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
62079         all the .c and .h parts of (the new) regex.
62080         Quote the m4 stuff better.
62081         Check for RE_ICASE bug of old gnulib.
62082         Check for REG_STARTEND of recent libc.
62083         Rename local variables from jm_* to gl_*.
62084         Quote operand of "test -f".
62085         Say "recent enough" version of libc, not "version 2".
62086         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
62087         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
62088         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
62089         Remove check for btowc, isascii.
62090         Require AM_LANGINFO_CODESET.
62091
62092 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62093
62094         * lib/regex.c, regex.h: Sync from libc.
62095         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
62096         * lib/regexec.c:
62097         New files, synced from libc, except that regex_internal.h
62098         currently has a small porting fix.
62099
62100 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62101
62102         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
62103         regex_internal.c, regexec.c.
62104         Add regex_internal.h too, but as a comment, since the libc version
62105         is currently broken in gnulib mode.
62106
62107 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62108
62109         Support programs like Emacs that use gnulib but not gettext.
62110         * MODULES.html.sh (Internationalization functions): Add gettext-h.
62111         * modules/gettext-h: New file.
62112         * modules/gettext (Files): Remove lib/gettext.h.
62113         (Depends-on): Add gettext-h.
62114         (Makefile.am): Remove lib_SOURCES.
62115         * modules/argmatch, modules/c-stack, modules/closeout:
62116         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
62117         * modules/execute, modules/file-type, modules/getaddrinfo:
62118         * modules/getopt, modules/human, modules/javacomp:
62119         * modules/javaexec, modules/mkdir-p, modules/obstack:
62120         * modules/openat, modules/pagealign_alloc, modules/pipe:
62121         * modules/quotearg, modules/regex, modules/rpmatch:
62122         * modules/unicodeio, modules/userspec, modules/version-etc:
62123         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
62124         * modules/xsetenv:
62125         Depend on gettext-h, not gettext.
62126
62127 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62128
62129         * gnulib-tool (func_import): Add support for 'public domain' license.
62130         * modules/alloca, modules/atexit, modules/memmove:
62131         Now public domain, not GPL.
62132         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
62133         * modules/realloc, modules/strerror, modules/strtod:
62134         Now LGPL, not GPL.
62135
62136 2005-07-05  Bruno Haible  <bruno@clisp.org>
62137
62138         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
62139         autoconf CVS. Needed for mingw.
62140
62141 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62142
62143         Remove the dependency of the strftime module on the tzset module.
62144         * modules/strftime (Depends-on): Remove dependency on tzset.
62145
62146 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62147
62148         Remove the dependency of the strftime module on the tzset module.
62149         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
62150         gl_FUNC_TZSET_CLOBBER.
62151
62152 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         Remove the dependency of the strftime module on the tzset module.
62155         * lib/strftime.c (my_strftime)
62156         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
62157         Copy the input structure, to work around some of the bug with
62158         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
62159         Solaris releases, you should also use the tzset module, but we won't
62160         require it as a dependency any more since we don't want LGPLed code
62161         to depend on GPLed code.
62162
62163 2005-07-02  Jim Meyering  <jim@meyering.net>
62164
62165         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
62166         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
62167         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
62168         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
62169
62170 2005-07-02  Jim Meyering  <jim@meyering.net>
62171
62172         * lib/backupfile.c (backup_args): Change a `0' to NULL.
62173
62174 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
62177         declares only 'struct timespec;' (!).
62178
62179 2005-07-01  Jim Meyering  <jim@meyering.net>
62180
62181         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
62182         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
62183         * lib/save-cwd.c, tempname.c:
62184         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62185         and don't include <sys/file.h>).
62186
62187 2005-06-29  Jim Meyering  <jim@meyering.net>
62188
62189         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
62190         type name.  Use the variable name instead.
62191         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
62192         Likewise.
62193
62194 2005-06-28  Simon Josefsson  <jas@extundo.com>
62195
62196         * modules/check-version (Files): Add check-version.m4.
62197
62198 2005-06-28  Simon Josefsson  <jas@extundo.com>
62199
62200         * m4/check-version.m4: New file, suggested by Jim Meyering
62201         <jim@meyering.net>.
62202
62203 2005-06-28  Simon Josefsson  <jas@extundo.com>
62204
62205         * lib/check-version.h, lib/check-version.c: New files.
62206
62207 2005-06-28  Simon Josefsson  <jas@extundo.com>
62208
62209         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
62210         collision with global variable.  Better indentation.  Don't
62211         increment buffer pointer beyond buffer end.  Based on comments
62212         from Paul Eggert <eggert@cs.ucla.edu>.
62213
62214         * lib/base64.h: Indent.
62215
62216 2005-06-28  Simon Josefsson  <jas@extundo.com>
62217
62218         * doc/gnulib.texi (Library version handling): New section.
62219
62220 2005-06-28  Jim Meyering  <jim@meyering.net>
62221
62222         * check-module (find_included_lib_files): Hard-code another
62223         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
62224         but modules/fts-lgpl (correctly) does not list those files.
62225
62226         * modules/canonicalize (Files): Add lib/pathmax.h.
62227
62228 2005-06-25  Simon Josefsson  <jas@extundo.com>
62229
62230         * modules/check-version: New file.
62231
62232 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
62233
62234         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
62235         initializer of struct addrinfo, as an indication that we don't
62236         care how many members the structure has.
62237
62238 2005-06-24  Derek Price  <derek@ximbiot.com>
62239         and Bruno Haible  <bruno@clisp.org>
62240
62241         Remove stat module & update lstat.
62242         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
62243         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62244         * m4/stat.m4: Remove this file.
62245
62246 2005-06-24  Derek Price  <derek@ximbiot.com>
62247         and Bruno Haible  <bruno@clisp.org>
62248
62249         Remove stat module & update lstat.
62250         * lib/stat.c: Remove this file...
62251         (slash_aware_lstat): ...moving this content and its support...
62252         * lib/lstat.c (rpl_lstat): ...into here.
62253         * lib/lstat.h: New file.
62254
62255 2005-06-24  Derek Price  <derek@ximbiot.com>
62256         and Bruno Haible  <bruno@clisp.org>
62257
62258         Remove stat module & update lstat.
62259         * config/srclist.txt (libc sources): Remove stat.
62260
62261 2005-06-24  Derek Price  <derek@ximbiot.com>
62262         and Bruno Haible  <bruno@clisp.org>
62263
62264         Remove stat module & update lstat.
62265         * MODULES.html.sh (stat): Remove.
62266         * MODULES.html: Regenerated.
62267         * modules/lstat (Description): Correct function name.
62268         (Files): Add "lstat.h".
62269         (Depends-on): Remove stat, add xalloc, stat-macros.
62270         * modules/stat: Remove this file.
62271         (Include): Add "lstat.h", remove <sys/stat.h>.
62272
62273 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
62276         (ranged_convert): Don't save conversion in a temporary struct.
62277         This causes a warning with GCC 4.0.0, and anyway in the typical
62278         case it's not worth the extra 100 bytes or so of code.
62279         (ranged_convert, __mktime_internal): When calling a function via a
62280         pointer P, use P () rather than (*P) (), as we now assume C89 or
62281         better.
62282
62283 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62284
62285         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
62286         "who -r" failed to give output.  Problem reported by Tim Waugh.
62287
62288         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
62289         (xcalloc): Use it to avoid needless tests.
62290         Problem reported by Jim Meyering.
62291
62292 2005-06-20  Derek Price  <derek@ximbiot.com>
62293
62294         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
62295         unnecessary for Autoconfs > 2.59c.
62296
62297 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62298
62299         * lib/argp.h (__option_is_short): Check upper limit of
62300         __key. Isprint() requires its argument to have the value
62301         of an unsigned char or EOF.
62302
62303 2005-06-16  Jim Meyering  <jim@meyering.net>
62304
62305         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
62306         when either N or S is zero.
62307
62308 2005-06-16  Derek Price  <derek@ximbiot.com>
62309
62310         * m4/bison.m4: Declare YACC & YFLAGS precious.
62311
62312 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
62315         multibyte string or pattern, fall back on unibyte matching.
62316         Problem reported by James Youngman.
62317
62318 2005-06-08  Bruno Haible  <bruno@clisp.org>
62319
62320         * modules/csharpcomp: New file.
62321         * MODULES.html.sh (C#): Add csharpcomp.
62322
62323 2005-06-08  Bruno Haible  <bruno@clisp.org>
62324
62325         * m4/csharpcomp.m4: New file, from GNU gettext.
62326
62327 2005-06-08  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/csharpcomp.h: New file, from GNU gettext.
62330         * lib/csharpcomp.c: New file, from GNU gettext.
62331         * lib/csharpcomp.sh.in: New file, from GNU gettext.
62332
62333 2005-06-08  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
62336         warning on mingw.
62337
62338 2005-06-07  Derek Price  <derek@ximbiot.com>
62339
62340         Sync from CVS.
62341         * lib/glob_.h: Indent nested #ifdef.
62342
62343 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         Sync from coreutils.
62346         Use "file name" when talking about file names, instead of "filename"
62347         or "path", as per the GNU coding standards.
62348         * lib/mkdir-p.c: Renamed from makepath.c.
62349         (make_dir_parents): Renamed from make_path.  All callers changed.
62350         * lib/mkdir-p.h: Likewise.  All includers changed.
62351         * lib/filenamecat.c: Renamed from path-concat.c.
62352         (file_name_concat): Renamed from path_concat.  All callers changed.
62353         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
62354         * lib/filenamecat.h: Likewise.  All includers changed.
62355         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
62356         in comments or local variable names.
62357         * lib/basename.c: Likewise.
62358         * lib/canonicalize.c, canonicalize.h: Likewise.
62359         * lib/dirname.c, dirname.h: Likewise.
62360         * lib/euidaccess.c: Likewise.
62361         * lib/exclude.c: Likewise
62362         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
62363         * lib/fsusage.c, fsuage.h: Likewise.
62364         * lib/fts.c, fts_.h: Likewise.
62365         * lib/getcwd.c: Likewise.
62366         * lib/getloadavg.c: Likewise.
62367         * lib/mkstemp.c: Likewise.
62368         * lib/mountlist.c, mountlist.h: Likewise.
62369         * lib/openat.c, openat.h: Likewise.
62370         * lib/readlink-stub.c: Likewise.
62371         * lib/readutmp.c, readutmp.h: Likewise.
62372         * lib/rename.c: Likewise.
62373         * lib/rmdir.c: Likewise.
62374         * lib/same.c: Likewise.
62375         * lib/savedir.c: Likewise.
62376         * lib/stripslash.c: Likewise.
62377         * lib/tempname.c: Likewise.
62378         * lib/xreadlink.c: Likewise.
62379         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
62380         All uses changed.
62381         * lib/exclude.h: Likewise.
62382
62383         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
62384         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62385         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
62386         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62387         * lib/pathmax.h: Include <limits.h> unconditionally, since other
62388         files have been getting away with it for years (MORE/BSD 4.3
62389         is extinct now).
62390         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
62391         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62392
62393         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
62394         Define to 256, not 255, as per modern POSIX.
62395
62396 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62397
62398         Sync from coreutils.
62399         Use "file name" when talking about file names, instead of "filename"
62400         or "path", as per the GNU coding standards.
62401         * MODULES.html.sh: mkdir-p renamed from makepath.
62402         filenamecat renamed from path-concat.
62403         * modules/filenamecat: Renamed from modules/path-concat.
62404         (Files): filenamecat.h and filenamecat.c renamed from
62405         path-concat.h and path-concat.c.
62406         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
62407         (Include): filenamecat.h, not path-concat.h.
62408         * modules/mkdir-p: Renamed from modules/makepath.
62409         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
62410         makepath.c.
62411         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
62412         (Include): mkdir-p.h, not makepath.h.
62413
62414 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62415
62416         Sync from coreutils.
62417         * m4/mkdir-p.m4: Renamed from makepath.m4.
62418         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
62419         Rename files from makepath.c to mkdir-p.c, and from
62420         makepath.h to mkdir-p.h.
62421         * m4/filenamecat.m4: Renamed from path-concat.m4.
62422         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
62423         Rename files from path-concat.c to filenamecat.c,
62424         and from path-concat.h to filenamecat.h.
62425         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
62426         "file name" in local variables or comments.
62427         * m4/rename.m4: Likewise.
62428
62429 2005-06-01  Bruno Haible  <bruno@clisp.org>
62430
62431         * modules/csharpexec: New file.
62432         * MODULES.html.sh (C#): New section.
62433
62434 2005-06-01  Bruno Haible  <bruno@clisp.org>
62435
62436         * m4/csharp.m4: New file, from GNU gettext.
62437         * m4/csharpexec.m4: New file, from GNU gettext.
62438
62439 2005-06-01  Bruno Haible  <bruno@clisp.org>
62440
62441         * lib/csharpexec.h: New file, from GNU gettext.
62442         * lib/csharpexec.c: New file, from GNU gettext.
62443         * lib/csharpexec.sh.in: New file, from GNU gettext.
62444
62445 2005-05-31  Derek Price  <derek@ximbiot.com>
62446             Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         Sync from cvs.
62449         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62450
62451 2005-05-31  Derek Price  <derek@ximbiot.com>
62452             Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         Sync from cvs.
62455         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62456
62457 2005-05-29  Derek Price  <derek@ximbiot.com>
62458
62459         * config/srclist.txt (glob_.h, glob.c): Add these files.
62460
62461 2005-05-29  Derek Price  <derek@ximbiot.com>
62462
62463         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
62464         * modules/glob: New file.
62465         * modules/getlogin_r: Add link to POSIX spec in description.
62466
62467 2005-05-29  Derek Price  <derek@ximbiot.com>
62468             Paul Eggert  <eggert@cs.ucla.edu>
62469
62470         * m4/glob.m4: New file.
62471
62472 2005-05-29  Derek Price  <derek@ximbiot.com>
62473             Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * lib/glob_.h, lib/glob.c: New files.
62476
62477 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * modules/fts (Files): Remove m4/inttypes-pri.m4.
62480         * modules/fts-lgpl (Depends-on): Remove gettext.
62481
62482 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62483
62484         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
62485         and don't require gt_INTTYPES_PRI.
62486
62487 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62488
62489         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
62490
62491         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
62492         the configuration hassle isn't worth it.
62493         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
62494         (LONGEST_MODIFIER, PRIuMAX): Remove.
62495
62496 2005-05-27  Bruno Haible  <bruno@clisp.org>
62497
62498         * lib/getlogin_r.h: Remove second include of <stddef.h>.
62499
62500 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
62503         _POSIX_PTHREAD_SEMANTICS for Solaris.
62504
62505 2005-05-25  Derek Price  <derek@ximbiot.com>
62506
62507         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
62508
62509 2005-05-25  Derek Price  <derek@ximbiot.com>
62510             Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         * modules/getlogin_r, m4/getlogin_r.m4: New files.
62513         * lib/getlogin_r.c, getlogin_r.h: New files.
62514
62515 2005-05-25  Bruno Haible  <bruno@clisp.org>
62516             Derek Price  <derek@ximbiot.com>
62517
62518         * lib/getlogin_r.h: Simplify API documentation.
62519
62520 2005-05-23  Derek Price  <derek@ximbiot.com>
62521
62522         * modules/minmax (Files): Add m4/minmax.m4.
62523         (configure.ac): Add gl_MINMAX.
62524
62525 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62526
62527         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
62528         so that unistd-safer.h (GPL'ed code) need not be included.
62529
62530 2005-05-22  Bruno Haible  <bruno@clisp.org>
62531
62532         * m4/minmax.m4: New file.
62533         Based on a patch by Derek Price <derek@ximbiot.com>.
62534
62535 2005-05-22  Bruno Haible  <bruno@clisp.org>
62536
62537         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
62538         (INT64_MIN): Fix definition.
62539         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
62540
62541         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
62542         NEED_SIGNED_INT_TYPES.
62543
62544         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
62545         HAVE_SYSTEM_INTTYPES.
62546
62547 2005-05-22  Bruno Haible  <bruno@clisp.org>
62548
62549         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
62550         Also include <sys/param.h> if it defines MIN, MAX.
62551         Based on a patch by Derek Price <derek@ximbiot.com>.
62552
62553 2005-05-21  Jim Meyering  <jim@meyering.net>
62554
62555         * modules/fts (Files): Add m4/inttypes-pri.m4.
62556         (Depends-on): Add lstat and remove gettext.  Alphabetize.
62557
62558 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62559
62560         New fts module.
62561         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
62562         (setup_dir, free_dir): New functions.
62563         (enter_dir, leave_dir): Define trivial
62564         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
62565         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
62566         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
62567         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
62568         Move to fts-cycle.c.
62569         (fts_open): Use setup_dir.
62570         (fts_close): Use free_dir.
62571         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62572         This adds a label and some gotos, but the alternatives were messier.
62573         Check for memory allocation failure when entering a dir.
62574         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62575         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62576         (FTS): New member fts_cycle, that is a union that contains the
62577         old active_dir_ht and cycle_state.  All uses changed to mention
62578         fts_cycle.ht and fts_cycle.state.
62579         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62580         fts.c, with the following changes:
62581         (setup_dir, free_dir): New functions.
62582         (enter_dir): Now returns bool.  Return true if successful, false
62583         if memory exhausted.  All callers changed.
62584         Do not bother partly cleaning up on
62585         memory allocation failure; that is free_dir's job.
62586         However, free ad if hash_insert fails, to avoid memory leak.
62587         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62588         fts->fts_options to see which union member to use.
62589
62590 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62591
62592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62593         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62594
62595 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62598
62599 2005-05-20  Jim Meyering  <jim@meyering.net>
62600
62601         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62602         Now a macro, to pacify GCC.
62603
62604 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62605
62606         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
62607         of -1.
62608
62609 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62610
62611         * lib/chown.c (rpl_chown): Return -1 on failure.
62612
62613 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
62616         Don't check for stddef.h.
62617         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
62618         don't use its results.
62619         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
62620         since we include them unconditionally.  Don't require
62621         AM_STDBOOL_H, since stdbool is a prerequisite.
62622         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
62623         since we assume C89 or better.
62624         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
62625         as we don't use their results.
62626         Don't check for fchdir, memmove, memset, strrchr, as we use
62627         them unconditionally.
62628         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
62629         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
62630
62631 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
62634         Include <stddef.h> unconditionally, since we assume C89 now.
62635         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
62636         * lib/fts.c: Include fts_.h first, to check interface.
62637         Do not include intprops.h; no longer needed.
62638         Include cycle-check.h and hash.h, since fts_.h no longer does.
62639         Remove unnecessary casts of closedir to void.
62640         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
62641         decide whether to decrement nlinks.
62642         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
62643         (FTS): Use struct hash_table * instead of Hash_table, so that
62644         we no longer need to include hash.h here.
62645
62646 2005-05-18  Jim Meyering  <jim@meyering.net>
62647
62648         * modules/dirfd (License): Change to LGPL.  Most of the code
62649         is already in the public domain.
62650
62651 2005-05-18  Jim Meyering  <jim@meyering.net>
62652
62653         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
62654         Reported by Yoann Vandoorselaere.
62655
62656 2005-05-17  Jim Meyering  <jim@meyering.net>
62657
62658         * m4/fts.m4: New file, from coreutils.
62659
62660 2005-05-17  Jim Meyering  <jim@meyering.net>
62661
62662         * lib/fts.c, lib/fts_.h: New files, from coreutils.
62663
62664 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62665
62666         Sync from coreutils.
62667         * m4/unlinkdir.m4: New file.
62668
62669 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         Sync from coreutils.
62672         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
62673         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
62674         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
62675         White space changes only.
62676         * lib/makepath.c (make_path): Port to hosts where leading "//" is
62677         special.
62678         * lib/yesno.c: Include getline.h, not ctype.h.
62679         (yesno): Don't remove leading white space; POSIX doesn't allow it.
62680         Use getline to remove arbitrary restriction on response length.
62681
62682 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62683
62684         * config/srclist-update: Spell out "Street" in FSF postal
62685         mail address; this is the style the FSF seems to prefer.
62686
62687         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
62688         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
62689         this updates FSF postal mail address.
62690
62691         Sync from coreutils.
62692         * modules/unlinkdir: New file.
62693         * modules/yesno (Depends-on): Add getline.
62694         * MODULES.html.sh (File system functions): Add unlinkdir.
62695
62696 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62697
62698         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
62699         lib/strsep.h:
62700         Change the initial comment to refer to GPL, not LGPL.
62701         gnulib-tool will change it to LGPL as needed.
62702
62703         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
62704         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
62705         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
62706         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
62707         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
62708         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
62709         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
62710         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
62711         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
62712         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
62713         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
62714         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
62715         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
62716         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
62717         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
62718         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
62719         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
62720         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
62721         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
62722         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
62723         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
62724         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
62725         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
62726         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
62727         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
62728         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
62729         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62730         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62731         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62732         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62733         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62734         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62735         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62736         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62737         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62738         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62739         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62740         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62741         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62742         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62743         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62744         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62745         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62746         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62747         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62748         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62749         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62750         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62751         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62752         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62753         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62754         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62755         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62756         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62757         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62758         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62759         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62760         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62761         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62762         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62763         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62764         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62765         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62766         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62767         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62768         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62769         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62770         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62771         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62772         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62773         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62774         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62775         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62776         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62777         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62778         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62779         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62780         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62781         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62782         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62783         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62784         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62785         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62786         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62787         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62788         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62789         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62790         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62791         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62792         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62793         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62794         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62795         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62796         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62797         lib/yesno.c, lib/yesno.h:
62798         Update FSF postal mail address.
62799
62800 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62803         tests/test-memmem.c, tests/test-stpncpy.c:
62804         Update FSF postal mail address.
62805
62806 2005-05-13  Bruno Haible  <bruno@clisp.org>
62807
62808         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62809         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62810         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62811         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62812         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62813         Add support for 64-bit integers in the MSVC compiler.
62814
62815 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62816
62817         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62818
62819 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62820
62821         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62822
62823 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         * doc/getdate.texi (General date syntax): Don't say that date
62826         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62827         Problem reported by Nic Ferrier.
62828
62829 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62830
62831         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62832         specified in ai_socktype. Fix invalid ai_protocol
62833         check. ai_protocol is usually set to 0 or depending on
62834         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62835         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62836         ai_socktype / ai_protocol in the returned addrinfo structure.
62837
62838 2005-05-10  Simon Josefsson  <jas@extundo.com>
62839
62840         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62841         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62842
62843 2005-05-10  Karl Berry  <karl@gnu.org>
62844
62845         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62846         (from http://www.gnu.org/licenses).
62847         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62848         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62849         fdl.texi suffices.
62850
62851 2005-05-10  Karl Berry  <karl@gnu.org>
62852
62853         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62854         (COPYING.DOC): remove.
62855
62856         * config/srclist-update: new FSF address.
62857
62858 2005-05-10  Derek Price  <derek@ximbiot.com>
62859
62860         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62861         possible.
62862
62863 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62864             Bruno Haible  <bruno@clisp.org>
62865
62866         * modules/inet_ntop: New file.
62867         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62868         inet_ntop.
62869
62870 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62871             Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/inet_ntop.m4: New file.
62874
62875 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62876             Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/inet_ntop.h: New file.
62879         * lib/inet_ntop.c: New file, from glibc with modifications.
62880
62881 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         * modules/time_r (License): Change to LGPL.
62884         * modules/extensions (License): Change to LGPL.  Actually,
62885         the license is more permissive than that, but currently gnulib-tool
62886         doesn't know how to handle more-permissive licenses.
62887
62888         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62889         Problem reported by Dave Love.
62890
62891 2005-05-08  Jim Meyering  <jim@meyering.net>
62892
62893         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62894         blank.
62895
62896 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62897
62898         * modules/argmatch (Depends-on): Add stdbool.
62899         * modules/backupfile (Depends-on): Likewise.
62900         * modules/chdir-long (Depends-on): Likewise.
62901         * modules/closeout (Depends-on): Likewise.
62902         * modules/cycle-check (Depends-on): Likewise.
62903         * modules/dirname (Depends-on): Likewise.
62904         * modules/fnmatch (Depends-on): Likewise.
62905         * modules/fsusage (Depends-on): Likewise.
62906         * modules/fwriteerror (Depends-on): Likewise.
62907         * modules/getcwd (Depends-on): Likewise.
62908         * modules/getloadavg (Depends-on): Likewise.
62909         * modules/hard-locale (Depends-on): Likewise.
62910         * modules/makepath (Depends-on): Likewise.
62911         * modules/mountlist (Depends-on): Likewise.
62912         * modules/nanosleep (Depends-on): Likewise.
62913         * modules/posixtm (Depends-on): Likewise.
62914         * modules/quotearg (Depends-on): Likewise.
62915         * modules/readtokens (Depends-on): Likewise.
62916         * modules/readtokens0 (Depends-on): Likewise.
62917         * modules/readutmp (Depends-on): Likewise.
62918         * modules/save-cwd (Depends-on): Likewise.
62919         * modules/strftime (Depends-on): Likewise.
62920         * modules/userspec (Depends-on): Likewise.
62921         * modules/utimecmp (Depends-on): Likewise.
62922         * modules/xgetcwd (Depends-on): Likewise.
62923         * modules/xnanosleep (Depends-on): Likewise.
62924         * modules/xstrtod (Depends-on): Likewise.
62925         * modules/yesno (Depends-on): Likewise.
62926
62927 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62930         needless checks.
62931
62932 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         Merge from coreutils.  Among other things,
62935         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62936         * lib/fd-safer.c: New file.
62937         * lib/fcntl-safer.h, open-safer.c: Remove.
62938         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62939         * lib/dup-safer.c: Include unistd-safer.h first.
62940         Don't include errno.h.
62941         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62942         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62943         * lib/file-type.c: Rely on file-type.h change.
62944         * lib/getloadavg.c: Include unistd-safer.h.
62945         (getloadavg): Use safer open.
62946         * lib/getusershell.c: Include "stdio-safer.h".
62947         (getusershell): Use safer fopen.
62948         * lib/long-options.c (long_options): Use NULL rather than 0.
62949         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62950         'free'.
62951         * lib/modechange.c: Likewise.
62952         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62953         (MODE_DONE): New constant.
62954         (struct mode_change): Remove 'next' member.
62955         (make_node_op_equals): New function; like the old one of the
62956         same name, except it allocates an array.
62957         (mode_compile, mode_create_from_ref): Use it.
62958         (mode_compile): Allocate result as an array, not a linked list.
62959         Parse octal string ourself, so that we catch mistakes like "+0".
62960         (mode_adjust): Arg is an array, not a linked list.
62961         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62962         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62963         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62964         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62965         Remove.  This is now stat-macros.h's job.
62966         (talloc): Remove.  All callers replaced by xalloc, so that
62967         our invokers don't have to worry about reporting memory failures.
62968         (make_node_op_equals): Remove.
62969         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62970         New constants.
62971         (struct mode_change): Moved here from modechange.h.
62972         (mode_append_entry): Remove.
62973         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62974         apps to have incorrect behavior.  Use simpler algorithm for head
62975         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62976         Detect more invalid usages rather than having somewhat-random behavior.
62977         Don't insert an "a=" action, as that leads to incorrect behavior.
62978         (mode_compile, mode_create_from_ref): Return NULL on error instead
62979         of an enum, since now there's only one way to have an error.  All
62980         callers changed.
62981         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62982         at the correct time.  Simplify calculation of "+u" and its ilk.
62983         Don't mishandle "+X".
62984         (mode_free): Remove "register" and localize decls.
62985         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62986         (struct mode_change): Move to modechange.c; callers don't
62987         need to see this stuff.
62988         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62989         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62990         (mode_change, mode_adjust): Reflect the new signatures noted above.
62991         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62992         that might redefine system include files.
62993         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62994         (my_usleep): Use NULL rather than (void *) 0.
62995         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62996         Use siginterrupt to specify that system calls should be interrupted.
62997         (rpl_nanosleep): Move initialization of suspended closer to call of
62998         my_usleep.
62999         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
63000         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
63001         (desirable_utmp_entry): New function.
63002         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
63003         using x2nrealloc, to simplify logic.
63004         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
63005         size calculation.  Do not assume utmp file is a regular file.
63006         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
63007         (READ_UTMP_CHECK_PIDS): New constant.
63008         * lib/save-cwd.c: Include unistd-safer.h.
63009         (save_cwd): Use fd_safer.
63010         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
63011         [!_LIBC] Include "stat-macros.h" instead.
63012         * lib/unistd-safer.h (fd_safer): New decl.
63013
63014 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         * modules/getloadavg (Depends-on): Add unistd-safer.
63017         * modules/getusershell (Depends-on): Add stdio-safer.
63018         * modules/lstat (Depends-on): Remove xalloc.
63019         * modules/mkstemp (Depends-on): Add stat-macros.
63020         * modules/modechange (Depends-on): Remove xstrtol.
63021         Add stat-macros, xalloc.
63022         * modules/save-cwd (Depends-on): Add unistd-safer.
63023         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
63024         * modules/unistd-safer (Files): Add lib/fd-safer.c
63025         (Makefile.am): Remove lib_SOURCES.
63026
63027         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
63028         Remove fcntl-safer; unistd-safer supersedes it.
63029
63030 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63031
63032         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
63033         AC_HEADER_STAT.
63034         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
63035         (gl_PREREQ_CHOWN): Remove.
63036         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
63037         it.  Don't require AC_HEADER_STAT.
63038         (gl_PREREQ_LSTAT): Remove.
63039         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
63040         Don't require AC_HEADER_STAT.
63041         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
63042         (gl_PREREQ_RMDIR): Remove.
63043         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
63044         mention stat-macros.h or AC_HEADER_STAT, since we'll make
63045         the stat-macros module a prerequisite.
63046         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
63047         * m4/filemode.m4 (gl_FILEMODE): Likewise.
63048         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
63049         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
63050         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
63051         variable names.
63052         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
63053         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
63054         variable prefixes.
63055         * m4/fcntl-safer.m4: Remove.
63056         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
63057         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
63058         Invoke gl_PREREQ_FD_SAFER.
63059         (gl_PREREQ_FD_SAFER): New macro.
63060         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
63061         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
63062         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
63063         Remove duplicate call to AC_LIBOBJ(readutmp).
63064         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
63065
63066         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
63067         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
63068
63069 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63070
63071         * MODULES.html.sh (Misc): Add byteswap.
63072
63073 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63074
63075         * modules/getcwd (Depends-on): Add extensions.
63076         * modules/openat (Depends-on): Likewise.
63077
63078 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63079
63080         * modules/byteswap: New file.
63081
63082 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63083
63084         * m4/byteswap.m4: New file.
63085
63086 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63087
63088         * lib/byteswap_.h: New file.
63089
63090 2005-04-25  Karl Berry  <karl@gnu.org>
63091
63092         * m4/gettext.m4: Update from GNU gettext 0.14.4.
63093
63094 2005-04-25  Albert Chin  <china@thewrittenword.com>
63095
63096         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
63097         Toolkit C bug.
63098
63099 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
63100
63101         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
63102         (func_ln_if_changed) Remove forcibly for no error message
63103         in case file does not exist.
63104
63105 2005-04-19  Simon Josefsson  <jas@extundo.com>
63106
63107         * gnulib-tool (Options): Make --symlink mean --symbolic.
63108
63109 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
63110
63111         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
63112
63113 2005-04-16  Simon Josefsson  <jas@extundo.com>
63114
63115         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
63116
63117 2005-04-15  Simon Josefsson  <jas@extundo.com>
63118
63119         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
63120
63121 2005-04-15  Simon Josefsson  <jas@extundo.com>
63122
63123         * gnulib-tool: Rename --symlink to --symbolic.
63124
63125 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
63126
63127         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
63128         symbolic links to files instead of copying/moving.  Add --aux-dir,
63129         specifying directory relative --dir where auxiliary build tools
63130         are placed.
63131
63132 2005-04-14  Bruno Haible  <bruno@clisp.org>
63133
63134         * modules/allocsa (License): Change to LGPL.
63135         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
63136
63137 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63138
63139         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
63140         that "UTC +1 second" continues to work.  Problem reported
63141         by Dmitry V. Levin.
63142         (relunit_snumber): New rule.
63143         (relunit): Use it.
63144
63145 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63146
63147         * lib/getdate.y (universal_time_zone_table): New constant.
63148         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
63149         universal_time_zone_table.
63150         (lookup_zone): Prefer universal_time_zone_table to
63151         local_time_zone_table, so that "GMT" time stamps are allowed in
63152         London during the summer.  Problem reported by Ian Abbott.
63153
63154 2005-04-12  Jim Meyering  <jim@meyering.net>
63155
63156         * lib/human.c (humblock): Set *options even when returning due to
63157         xstrtoumax conversion failure.  Thanks to a used-uninitialized
63158         warning from gcc-4.
63159
63160 2005-04-09  Jim Meyering  <jim@meyering.net>
63161
63162         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
63163         -Wuninitialized: initialize tm0.tm_year.
63164
63165 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
63168         count, since there's no maximum.  All uses changed.
63169         Add member dsts_seen.
63170         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
63171         not being INT_MAX.
63172         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
63173         Use pc_rels_seen to decide whther a date is absolute.
63174
63175         * lib/getdate.y (number): Don't overwrite year.
63176         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
63177         check.
63178
63179 2005-04-02  Simon Josefsson  <jas@extundo.com>
63180
63181         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
63182         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
63183
63184 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
63185
63186         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
63187         where no absolute path name can be longer than PATH_MAX.
63188
63189 2005-03-27  Jim Meyering  <jim@meyering.net>
63190
63191         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
63192
63193 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
63196         "one's complement" -> "ones' complement" in comment, as per Knuth.
63197         "value of type" -> "type or expression" in comment.
63198         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
63199
63200 2005-03-26  Jim Meyering  <jim@meyering.net>
63201
63202         Comment nits.
63203         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
63204         Correct typos: s/or/of/.
63205
63206 2005-03-26  Jim Meyering  <jim@meyering.net>
63207
63208         * modules/check-include-files: Move to ../ and rename to...
63209         * check-module: ...this.
63210
63211 2005-03-25  Jim Meyering  <jim@meyering.net>
63212
63213         * modules/xvasprintf (Files): Add xalloc.h.
63214
63215 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63216
63217         * modules/gettext (Files): config/config.rpath ->
63218         build-aux/config.rpath
63219         * modules/iconv (Files): Likewise.
63220         Problem reported by Oskar Liljeblad.
63221
63222 2005-03-23  Jim Meyering  <jim@meyering.net>
63223
63224         * modules/check-include-files: New script to check for
63225         missing dependencies, multiple includes, etc.
63226
63227         * modules/c-strtold (Depends-on): Add xalloc.
63228         * modules/c-strtod (Depends-on): Add xalloc.
63229         * modules/hash (Depends-on): Add xalloc.
63230         (Files): Remove lib/xalloc.h.
63231
63232         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
63233         * modules/userspec (Files): Add lib/inttostr.h.
63234
63235 2005-03-23  Jim Meyering  <jim@meyering.net>
63236
63237         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
63238
63239 2005-03-22  Jim Meyering  <jim@meyering.net>
63240
63241         * modules/stat-macros: New module.
63242         * modules/canonicalize, modules/euidaccess, modules/file-type,
63243         * modules/filemode, modules/lchown, modules/makepath,
63244         * modules/rmdir, modules/stat: Depend on new stat-macros module
63245         rather than listing lib/stat-macros.h manually.
63246         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
63247
63248 2005-03-22  Jim Meyering  <jim@meyering.net>
63249
63250         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
63251
63252 2005-03-22  Bruno Haible  <bruno@clisp.org>
63253
63254         * config/srclist.txt: Replace target directory 'config' with
63255         'build-aux'.
63256         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
63257         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
63258         ../build-aux/.
63259
63260 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * modules/chdir-long (Depends-on): Add mempcpy.
63263
63264         * modules/acl, modules/backupfile, modules/c-strtod,
63265         modules/c-strtold, modules/canon-host, modules/canonicalize,
63266         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
63267         modules/exclude, modules/exitfail, modules/file-type,
63268         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
63269         modules/getdate, modules/getline, modules/getpagesize,
63270         modules/getpass, modules/getugroups, modules/group-member,
63271         modules/hard-locale, modules/hash, modules/human, modules/idcache,
63272         modules/inttostr, modules/long-options, modules/makepath,
63273         modules/md5, modules/memcasecmp, modules/memcoll,
63274         modules/modechange, modules/mountlist, modules/path-concat,
63275         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
63276         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
63277         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
63278         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
63279         modules/strftime, modules/strndup, modules/strverscmp,
63280         modules/timespec, modules/unlocked-io, modules/userspec,
63281         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
63282         modules/yesno:
63283         Remove lib_SOURCES line from Makefile.am section, as this is now
63284         done automatically by the corresponding Autoconf macro.
63285
63286 2005-03-21  Jim Meyering  <jim@meyering.net>
63287
63288         Changes imported from coreutils.
63289
63290         * lib/cycle-check.c: Don't include xalloc.h.
63291
63292         * lib/path-concat.c: Don't include assert.h.
63293         (path_concat): Remove assertion that would have triggered
63294         for ABASE starting with more than one slash.
63295         Reported by Andreas Schwab.
63296
63297         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
63298         properly when ABASE is an absolute file name.
63299         Correct the description of this function.
63300         Include <assert.h>.
63301         Add an assertion and a test driver.
63302         This fixes a bug introduced on 2004-07-02.
63303         Andreas Schwab reported the resulting failure of cp --parents:
63304         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
63305
63306 2005-03-21  Jim Meyering  <jim@meyering.net>
63307
63308         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
63309         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
63310
63311 2005-03-21  Jim Meyering  <jim@meyering.net>
63312         and  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
63315         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
63316         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
63317         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
63318         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
63319         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
63320         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
63321         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
63322         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
63323         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
63324         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
63325         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
63326         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
63327         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
63328         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
63329         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
63330         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
63331         for these modules.
63332
63333 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
63334
63335         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
63336         (which shouldn't happen), generate nothing instead of returning 0
63337         immediately, so that nstrftime (NULL, ...) doesn't return 0.
63338
63339 2005-03-16  Bruno Haible  <bruno@clisp.org>
63340
63341         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
63342         HAVE_LONGLONG_64BIT.
63343
63344 2005-03-16  Bruno Haible  <bruno@clisp.org>
63345
63346         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
63347         HAVE_LONGLONG_64BIT.
63348
63349 2005-03-16  Bruno Haible  <bruno@clisp.org>
63350
63351         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
63352         HAVE_LONGLONG_64BIT.
63353
63354 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63355
63356         * lib/strftime.c (my_strftime): Prepend space to format so that we can
63357         reliably distinguish strftime failure from empty output on POSIX
63358         hosts.
63359
63360 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
63363         (iconv_string): Don't guess a size-zero buffer, as that might cause
63364         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
63365         result would be 'too large', where 'too large' is (heuristically)
63366         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
63367         overflow concerns.  This will prevent some unwanted malloc failures
63368         when the inputs are very large.
63369
63370 2005-03-15  Karl Berry  <karl@gnu.org>
63371
63372         * config/srclist.txt (config.rpath): from gettext.
63373         * config/config.rpath: update.
63374
63375 2005-03-15  Bruno Haible  <bruno@clisp.org>
63376
63377         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
63378         to 'negate'.
63379
63380         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
63381         variable.
63382
63383         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
63384         results.
63385
63386 2005-03-14  Simon Josefsson  <jas@extundo.com>
63387
63388         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
63389         <fx@gnu.org>.
63390
63391 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
63394         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
63395         intprops.h.
63396         * lib/strtol.c: Likewise.
63397
63398 2005-03-14  Jim Meyering  <jim@meyering.net>
63399
63400         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
63401         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
63402         to be nonzero so that we (and caller) can detect the difference
63403         between a valid zero-length expansion and an error return, even
63404         when the underlying strftime fails before writing anything into
63405         that location.
63406
63407 2005-03-14  Bruno Haible  <bruno@clisp.org>
63408
63409         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
63410         Update from GNU gettext 0.14.3.
63411
63412 2005-03-10  Jim Meyering  <jim@meyering.net>
63413
63414         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
63415
63416 2005-03-10  Jim Meyering  <jim@meyering.net>
63417
63418         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
63419         so that this module works on systems without fchdir.
63420
63421 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
63422
63423         Factor int-properties macros into a single file, except for
63424         glibc-related files.
63425         * lib/intprops.h: New file.
63426         * lib/getloadavg.c: Include it instead of limits.h.
63427         (INT_STRLEN_BOUND): Remove.
63428         * lib/human.c: Include intprops.h.
63429         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
63430         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
63431         302/1000.
63432         * lib/inttostr.h: Include intprops.h instead of limits.h.
63433         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
63434         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
63435         for consistency with intprops.h.
63436         (time_t_is_integer, twos_complement_arithmetic): Use them.
63437         * lib/sig2str.h: Include <signal.h>, intprops.h.
63438         (INT_STRLEN_BOUND): Remove.
63439         * lib/strftime.c (TYPE_SIGNED): Remove.
63440         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
63441         * lib/strtol.c: Adjust comments to match intprops.h.
63442         * lib/userspec.c: Include intprops.h.
63443         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
63444         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
63445         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
63446         instead of rolling our own expressions.
63447         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
63448
63449         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
63450         instead of int.
63451         (my_strftime): Do not mishandle years close to INT_MAX, by doing
63452         the right thing even if adding 1900 would overflow.  Similarly
63453         for tm_mon + 1 and tm_yday + 1.
63454         Make %Y always equivalent to %C%y, and similarly for %G and %g.
63455         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
63456         (DO_SIGNED_NUMBER): New macro.
63457         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
63458
63459 2005-03-07  Bruno Haible  <bruno@clisp.org>
63460
63461         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
63462
63463 2005-03-07  Bruno Haible  <bruno@clisp.org>
63464
63465         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
63466
63467 2005-03-04  Derek R. Price  <derek@ximbiot.com>
63468
63469         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
63470         (func_import): Only replace files via --import when they have actually
63471         changed.
63472
63473 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63474
63475         * m4/mmap-anon.m4: New file.
63476         * m4/pagealign_alloc.m4: New file.
63477
63478 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63479             Bruno Haible  <bruno@clisp.org>
63480
63481         * modules/pagealign_alloc: New file.
63482         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
63483
63484 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63485             Bruno Haible  <bruno@clisp.org>
63486
63487         * lib/pagealign_alloc.h: New file.
63488         * lib/pagealign_alloc.c: New file.
63489
63490 2005-03-03  Bruno Haible  <bruno@clisp.org>
63491
63492         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
63493         Use an all-permissive copyright notice, recommended by RMS.
63494
63495 2005-03-02  Bruno Haible  <bruno@clisp.org>
63496
63497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
63498         of AIX, the replacement has to be done only after <string.h> is
63499         included, therefore not in config.h. stpncpy.h does the replacement,
63500         and stpncpy.c uses it.
63501
63502 2005-03-02  Bruno Haible  <bruno@clisp.org>
63503
63504         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
63505         stpncpy.c uses it.
63506
63507 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
63510         The workaround isn't strictly needed for POSIX conformance, and
63511         it's too much of a pain to configure and maintain.  We'll ask
63512         people to fix their kernels instead.
63513         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
63514         (NANOSLEEP_BUG_WORKAROUND): Remove.
63515         (xnanosleep): Remove the workaround.
63516
63517 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
63520         Reported by Derek Price.
63521         (Include): Add "timespec.h".
63522
63523         * modules/xnanosleep (Depends-on): Remove gethrxtime.
63524
63525 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
63528         to detect nanosleep bug.
63529
63530 2005-03-01  Bruno Haible  <bruno@clisp.org>
63531
63532         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
63533
63534 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63535
63536         * modules/gethrxtime: New file.
63537         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
63538         (Depends-on): Add gethrxtime.
63539         (configure.ac): Add gl_XNANOSLEEP.
63540         (Makefile.am): Remove lib_SOURCES line.
63541
63542 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
63545         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
63546
63547 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
63550         * lib/timespec.h (gettime): Return void, since it always
63551         succeeds now.  All uses changed.
63552         * lib/gettime.c (gettime) Likewise.
63553         [HAVE_NANOTIME]: Prefer nanotime.
63554         Assume gettimeofday succeeds, as POSIX requires.
63555         Assime time () succeeds, since other code already does.
63556         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
63557         (timespec_subtract): Remove.
63558         (NANOSLEEP_BUG_WORKAROUND): New constant.
63559         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
63560         things considerably.  Use it only on GNU/Linux hosts, since the
63561         workaround shouldn't be needed elsewhere.
63562
63563 2005-02-24  Bruno Haible  <bruno@clisp.org>
63564
63565         * modules/gettext (Files): Add m4/glibc2.m4.
63566
63567 2005-02-24  Bruno Haible  <bruno@clisp.org>
63568
63569         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
63570         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
63571         * m4/progtest.m4:
63572         Update from GNU gettext 0.14.2.
63573         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63574
63575 2005-02-24  Bruno Haible  <bruno@clisp.org>
63576
63577         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63578         * lib/config.charset: Update from GNU gettext 0.14.2.
63579
63580 2005-02-24  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/gettext.h: Update from GNU gettext 0.14.2.
63583
63584 2005-02-23  Simon Josefsson  <jas@extundo.com>
63585
63586         * m4/iconvme.m4: New file.
63587
63588 2005-02-23  Jim Meyering  <jim@meyering.net>
63589
63590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63591         change.
63592         Thanks to Bruno Haible for catching it.
63593
63594 2005-02-22  Simon Josefsson  <jas@extundo.com>
63595
63596         * modules/iconvme: New file.
63597
63598         * MODULES.html.sh: Add iconvme.
63599
63600 2005-02-22  Simon Josefsson  <jas@extundo.com>
63601
63602         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63603
63604 2005-02-22  Simon Josefsson  <jas@extundo.com>
63605
63606         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
63607
63608 2005-02-22  Jim Meyering  <jim@meyering.net>
63609
63610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
63611         s/ifndef/ifdef/.
63612
63613 2005-02-20  Neil Conway  <neilc@samurai.com>
63614
63615         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
63616         returned by OSX/Darwin if the specified buffer is not large
63617         enough for the hostname.
63618
63619 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63620
63621         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
63622         pass it to _help, otherwise the latter coredumps trying to
63623         dereference state.root_argp.
63624
63625 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63626
63627         * modules/chdir-long (Depends-on): Add memrchr.
63628         * modules/memrchr (Files): Add lib/memrchr.h.
63629         (Include): "memrchr.h".
63630
63631 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
63634
63635 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         * lib/memrchr.h: New file.
63638         * lib/chdir-long.c: Include it.
63639         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
63640         Don't bother including stddef.h.
63641
63642 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63643
63644         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
63645         inclusion.
63646         Include <sys/types.h>, for dev_t.
63647         (ME_DUMMY, ME_REMOTE): Move from here....
63648         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
63649         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
63650         Dmitry V. Levin.
63651         Include mountlist.h first, to test the interface.
63652
63653 2005-01-29  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/progname.c (program_name): Initialize.
63656         Needed when linking statically on MacOS X.
63657
63658 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         Sync from coreutils.
63661         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
63662         (Depends-on): Add c-strtod.
63663         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
63664
63665 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         Sync from coreutils.
63668         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
63669
63670         Remove files that are specific to coreutils.
63671         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
63672
63673 2005-01-28  Bruno Haible  <bruno@clisp.org>
63674
63675         * modules/javacomp: New file.
63676         * MODULES.html.sh (Java): Add javacomp.
63677
63678 2005-01-28  Bruno Haible  <bruno@clisp.org>
63679
63680         * m4/javacomp.m4: New file, from GNU gettext.
63681
63682 2005-01-28  Bruno Haible  <bruno@clisp.org>
63683
63684         * lib/javacomp.sh.in: New file, from GNU gettext.
63685         * lib/javacomp.h: New file, from GNU gettext.
63686         * lib/javacomp.c: New file, from GNU gettext.
63687
63688 2005-01-26  Simon Josefsson  <jas@extundo.com>
63689
63690         * lib/gai_strerror.c: Use GPL in header.
63691
63692 2005-01-26  Bruno Haible  <bruno@clisp.org>
63693
63694         * modules/javaexec: New file.
63695         * MODULES.html.sh (Java): Add javaexec.
63696
63697 2005-01-26  Bruno Haible  <bruno@clisp.org>
63698
63699         * m4/javaexec.m4: New file, from GNU gettext.
63700
63701 2005-01-26  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/javaexec.sh.in: New file, from GNU gettext.
63704         * lib/javaexec.h: New file, from GNU gettext.
63705         * lib/javaexec.c: New file, from GNU gettext.
63706
63707 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63708
63709         * modules/lchown (Depends-on): Remove lchown.h
63710
63711 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63712
63713         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
63714         must be defined if the header file was not found, in order
63715         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
63716
63717 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63718
63719         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
63720         initializers for struct pentry_state.
63721         (__argp_error): Check return value of __asprintf
63722         (__argp_failure): Translate error message
63723
63724         * lib/argp-parse.c: Removed braces around the expansion of N_()
63725
63726 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63727
63728         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
63729         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63730         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63731         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63732         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63733         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63734         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63735         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63736         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63737         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63738         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63739         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63740         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63741         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63742         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63743         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63744         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63745         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63746         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63747         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63748         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63749         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63750         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63751         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63752         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63753         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63754         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63755         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63756         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63757         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63758         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63759         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63760         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63761         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63762         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63763         Use an all-permissive copyright notice, recommended by RMS.
63764
63765 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * modules/chdir-long (Depends-on): Remove mempcpy.
63768
63769 2005-01-21  Jim Meyering  <jim@meyering.net>
63770
63771         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63772         same value as for Solaris 9.
63773
63774         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63775         component length.  This included changing the parameter to be
63776         of type `char *' rather than `char const *'.
63777         * lib/chdir-long.h (chdir_long): Update prototype.
63778
63779         * lib/openat.c (fdopendir, fstatat): New functions.
63780         * lib/openat.h: Include headers required for use of DIR and struct
63781         stat.
63782         [AT_SYMLINK_NOFOLLOW]: Define.
63783         (fdopendir, fstatat): Add prototypes.
63784
63785 2005-01-21  Bruno Haible  <bruno@clisp.org>
63786
63787         * modules/classpath: New file.
63788         * MODULES.html.sh (Java): Add classpath.
63789
63790 2005-01-21  Bruno Haible  <bruno@clisp.org>
63791
63792         * lib/classpath.h: New file, from GNU gettext.
63793         * lib/classpath.c: New file, from GNU gettext.
63794
63795 2005-01-20  Simon Josefsson  <jas@extundo.com>
63796
63797         * modules/version-etc-fsf: New file.
63798
63799 2005-01-20  Simon Josefsson  <jas@extundo.com>
63800
63801         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63802         * lib/version-etc.c: Remove version_etc_copyright.
63803         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63804         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63805
63806 2005-01-20  Simon Josefsson  <jas@extundo.com>
63807
63808         * lib/base64.h (isbase64): Add.
63809
63810         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63811         using a unsigned prototype, don't inline.
63812         (base64_decode): Use it.
63813
63814 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63815
63816         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63817         it.
63818
63819 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63820
63821         * lib/save-cwd.c (save_cwd): Remove code to support the case
63822         where fchdir is missing or flaky.
63823
63824 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63825
63826         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63827
63828 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63831         AC_LIBSOURCES now does this.
63832         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63833         with new ullong_max module.
63834
63835 2005-01-19  Bruno Haible  <bruno@clisp.org>
63836
63837         * modules/sh-quote: New file.
63838         * MODULES.html.sh (Executing programs): Add sh-quote.
63839
63840 2005-01-19  Bruno Haible  <bruno@clisp.org>
63841
63842         * lib/sh-quote.h: New file, from GNU gettext.
63843         * lib/sh-quote.c: New file, from GNU gettext.
63844
63845 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63846
63847         Merge from coreutils.
63848         * m4/ullong_max.m4: New file.
63849         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63850         (gl_MACROS): Assume localeconv exists.
63851
63852 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63853
63854         Merge changes from coreutils, as described below in several
63855         changelogs dated today.
63856
63857         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63858         (O_DIRECTORY): Remove; not needed here, since "." must be
63859         a directory.  All uses removed.
63860         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63861         universal on Suns, and we also need to test for IRIX.
63862         Revamp code to use 'if' rather than '#if'.
63863         Avoid unnecessary comparison of cwd->desc to 0.
63864
63865         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63866         for known valid error numbers rather than observed invalid ones.
63867
63868 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63869
63870         * modules/ullong_max: New file.
63871
63872         * modules/chdir-long, modules/openat: New files.
63873         * modules/save-cwd (Depends-on): Depend on chdir-long.
63874         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63875
63876 2005-01-18  Jim Meyering  <jim@meyering.net>
63877
63878         Merge from coreutils.
63879         * m4/chdir-long.m4, m4/openat.m4: New files.
63880         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63881         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63882         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63883         is sane and DOES follow symlinks.  Besides, testing 20 different
63884         systems found no broken chown implementations.
63885         Prompted by a change in rsync's copy of this macro.
63886         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63887
63888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63889
63890         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63891         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63892         NULL-means-set-to-current-time semantics.
63893         Remove temporary file immediately, rather than waiting
63894         for configure's at-exit trap code to do it.
63895
63896 2005-01-18  Jim Meyering  <jim@meyering.net>
63897
63898         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63899
63900         * lib/utimens.c (futimens): Account for the fact that futimes
63901         can also fail with errno == ENOSYS or errno == ENOENT.
63902         Patch from Dmitry V. Levin.
63903
63904         Change the name of the robust chdir function from chdir to chdir_long.
63905         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63906         (restore_cwd): Use chdir_long, not chdir.
63907         * lib/chdir-long.c: Renamed from chdir.c.
63908         * lib/chdir-long.h: Renamed from chdir.h.
63909         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63910         Hurd.
63911
63912 2005-01-18  Bruno Haible  <bruno@clisp.org>
63913
63914         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63915         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63916         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63917         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63918         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63919         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63920         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63921         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63922         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63923         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63924         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63925         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63926         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63927         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63928         Use an all-permissive copyright notice, recommended by RMS.
63929
63930 2005-01-18  Bob Proulx  <bob@proulx.com>
63931
63932         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63933         simplify offsetof() macro construct to avoid compile failure with
63934         native HP-UX 11.0 ANSI C compiler.
63935
63936 2005-01-17  Bruno Haible  <bruno@clisp.org>
63937
63938         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63939         redundant because stpncpy.m4 takes care of it.
63940
63941 2005-01-17  Bruno Haible  <bruno@clisp.org>
63942
63943         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63944
63945 2005-01-17  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63948         used.
63949
63950 2005-01-17  Bruno Haible  <bruno@clisp.org>
63951
63952         * lib/fwriteerror.h (fwriteerror): Change specification to include
63953         fclose.
63954         * lib/fwriteerror.c: Include <stdbool.h>.
63955         (fwriteerror): At the end, close the file stream. Record whether
63956         stdout was already closed.
63957
63958 2005-01-17  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/execute.c (environ): Declare if needed.
63961         * lib/pipe.c (environ): Likewise.
63962         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63963
63964 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63965
63966         * modules/argp: Depend on vsnprintf
63967
63968 2005-01-10  Jim Meyering  <jim@meyering.net>
63969
63970         * modules/closeout (Depends-on): Add atexit.
63971
63972 2005-01-06  Bruno Haible  <bruno@clisp.org>
63973
63974         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63975
63976 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63977
63978         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63979         definitions to be after all include files, to avoid collisions.
63980         Problem reported by Bob Proulx.
63981
63982 2005-01-04  Jim Meyering  <jim@meyering.net>
63983
63984         Changes imported from coreutils.
63985         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63986         as the mkstemp template, use a temporary directory and an
63987         8.3-friendly template to avoid trouble on systems like DJGPP.
63988         Reported by Juan M. Guerrero via Stepan Kasal.
63989         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63990         close. Remove the temporary directory right away, rather than waiting
63991         for configure's at-exit trap code to do it.
63992         Suggestion from Stepan Kasal.
63993
63994 2005-01-01  Simon Josefsson  <jas@extundo.com>
63995
63996         * gnulib-tool: Print #include directives when --import'ing.
63997
63998 2004-12-28  Simon Josefsson  <jas@extundo.com>
63999
64000         * tests/test-base64.c: Include required header files.  Remove
64001         unused variables.
64002
64003 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         * modules/error (Depends-on): Remove gettext.
64006
64007 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64008
64009         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
64010         not needed.  This removes a dependency on the gettext module.
64011         [defined _LIBC]: Do not include <libintl.h>; not needed.
64012
64013 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64014
64015         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
64016         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
64017
64018 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
64021         HAVE_DECL_STRTOLD.
64022
64023 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64024
64025         * modules/getdate (Depends-on): Remove alloca-opt.
64026
64027 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
64030
64031 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64032
64033         * lib/argp-parse.c: Include <stddef.h>.
64034         (alignof, alignto): New macros.
64035         (parser_init): Don't assume that void * is aligned sufficiently
64036         for struct option.
64037
64038         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
64039         need to extend the stack.
64040         (YYINITDEPTH): New macro, so that the initial stack isn't overly
64041         large.
64042
64043 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64044
64045         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
64046
64047 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64048
64049         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
64050         (2004-10-24) change.  Apparently this was a false alarm.
64051
64052         * modules/getdate: Depend on alloca-opt, not alloca.
64053
64054 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
64057         Remove now-obsolete comment about AIX.
64058         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
64059         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
64060         (YYMAXDEPTH): New macro.
64061
64062 2004-12-18  Simon Josefsson  <jas@extundo.com>
64063
64064         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
64065
64066 2004-12-18  Bruno Haible  <bruno@clisp.org>
64067
64068         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
64069
64070 2004-12-18  Bruno Haible  <bruno@clisp.org>
64071
64072         * lib/fatal-signal.c (fatal_signals): Make non-const.
64073         (init_fatal_signals): New function.
64074         (uninstall_handlers, install_handlers): Ignore signals that were set to
64075         SIG_IGN.
64076         (at_fatal_signal): Call init_fatal_signals.
64077         (init_fatal_signal_set): Likewise. Ignore signals that were set to
64078         SIG_IGN.
64079         Reported by Paul Eggert.
64080
64081 2004-12-18  Bruno Haible  <bruno@clisp.org>
64082
64083         * doc/alloca.texi: New file.
64084         * doc/alloca-opt.texi: New file.
64085
64086 2004-12-17  Jim Meyering  <jim@meyering.net>
64087
64088         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
64089         Otherwise, install-sh could exit with improper exit status when
64090         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
64091
64092 2004-12-16  Simon Josefsson  <jas@extundo.com>
64093
64094         * tests/test-base64.c: Add license.
64095
64096 2004-12-15  Stepan Kasal  <address@hidden>
64097
64098         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
64099
64100 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
64101
64102         * modules/getcwd (Files): Add m4/d-ino.m4.
64103         Suggested by Mark D. Baushke.
64104
64105 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         * lib/getdate.y (textint): New member "negative".
64108         (time_zone_hhmm): New function.
64109         Expect 14 shift-reduce conflicts, not 13.
64110         (o_colon_minutes): New rule.
64111         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
64112         (yylex): Set the "negative" member of signed numbers.
64113
64114 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64115
64116         * doc/getdate.texi (Time of day items, Time zone items):
64117         Describe new formats +00:00, UTC+00:00.
64118
64119 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64120
64121         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
64122         spurious "-l"s.  Problem reported by Stepan Kasal.
64123
64124 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
64125
64126         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
64127         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
64128
64129 2004-12-04  Simon Josefsson  <jas@extundo.com>
64130
64131         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
64132         Vandoorselaere <yoann@prelude-ids.org>.
64133
64134 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         Changes imported from coreutils.
64137         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
64138         exist.
64139         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
64140
64141 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         Changes imported from coreutils.
64144         * lib/hard-locale.c: Assume <locale.h> exists.
64145         Include "strdup.h".
64146         (GLIBC_VERSION): New macro.
64147         (hard_locale): Assume setlocale exists.
64148         Rewrite to avoid #ifdef.
64149         Use strdup rather than malloc + strcpy.
64150         * lib/human.c: Assume <locale.h> exists.
64151         (human_readable): Assume localeconv exists.
64152
64153 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64154
64155         * modules/hard-locale (Depends-on): Add strdup.
64156
64157 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64158
64159         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
64160         convert T2, not T.  (Imported from libc.)
64161
64162 2004-11-30  Simon Josefsson  <jas@extundo.com>
64163
64164         * modules/restrict (License): Change to LGPL.
64165
64166 2004-11-30  Simon Josefsson  <jas@extundo.com>
64167
64168         * m4/restrict.m4: Add copyright and copying conditions.
64169
64170 2004-11-30  Simon Josefsson  <jas@extundo.com>
64171
64172         * m4/base64.m4: New file.
64173
64174 2004-11-30  Simon Josefsson  <jas@extundo.com>
64175
64176         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
64177         base64.
64178
64179         * tests/test-base64.c: New file.
64180
64181         * modules/base64: New file.
64182
64183 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
64186         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
64187
64188         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
64189
64190 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64191
64192         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
64193         (__getcwd.c): Don't restore errno; glibc doesn't.
64194         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
64195         first, falling back to our code only if its results look suspicious.
64196         Ensure that the resulting buffer is only as large as necessary.
64197
64198         * lib/readutmp.c: Include readutmp.h first.
64199         Include <errno.h>, since readutmp.h no longer does that.
64200         * lib/readutmp.h: Don't include <errno.h>,
64201         <sys/param.h>, <time.h>; not needed to establish interface.
64202         (errno): Remove decl.
64203         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
64204         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
64205         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
64206
64207 2004-11-28  Simon Josefsson  <jas@extundo.com>
64208
64209         * lib/base64.h, base64.c: New file.
64210
64211 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
64214
64215 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
64218         (Depends-on): Remove pathmax, same.  Add mempcpy.
64219         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
64220         (Makefile.am): Append getcwd.h to lib_SOURCES.
64221         (Include): Add getcwd.h.
64222         (Maintainer): Change from Jim Meyering to "all, glibc",
64223         since getdate now uses intended-for-glibc code.
64224         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
64225         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
64226
64227 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
64230         HP's ANSI C compiler.
64231         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
64232         Declaring int functions causes warnings on some modern systems and
64233         shouldn't be needed to compile on ancient ones.
64234         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
64235         defined.
64236
64237         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
64238         with the following changes.
64239         (__set_errno): Parenthesize properly.
64240         Include <stdbool.h>.
64241         (MIN, MAX, MATCHING_INO): New macros.
64242         (__getcwd): Define with prototype, not K&R form.
64243         Use heuristics to allocate default buffer on stack if possible.
64244         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
64245         behavior, and to avoid the PATH_MAX limit when computing
64246         ../../../../...
64247         Use MATCHING_INO to compare inode number to file.
64248         Check for arithmetic overflow in size calculations.
64249         Fix bug in reallocation of dot array that caused getcwd to fail
64250         on directories nested deeper than 75.
64251         Be more careful about saving errno on error.
64252         Do not use realloc; use only free+malloc, as this is a bit
64253         more flexible and avoids a needless copy operation.
64254         Do not inspect st_dev and st_ino for symbolic links; POSIX
64255         doesn't specify the latter.
64256         Check for closedir errors.
64257         Avoid needless casts.
64258         Use "#ifdef weak_alias" around weak_alias, to be like other
64259         glibc code.
64260         The following changes to getcwd.c have effect only when used in
64261         gnulib; they have no effect inside glibc proper.
64262         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
64263         as alloca isn't used.
64264         (alloca, __alloca): Likewise.
64265         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
64266         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64267         unconditionally, as gnulib assumes C89 or better.
64268         Do not include <sys/param.h>.
64269         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
64270         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
64271         better.
64272         (NULL) [!defined NULL]: Remove; we assume C89 or better.
64273         Include <dirent.h> in a way that is compatible with modern Autoconf.
64274         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
64275         New macros, if not already defined.
64276         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
64277         Use "_LIBC", not "defined _LIBC", for consistency.
64278         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
64279         a mempcpy module.
64280         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
64281         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
64282         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
64283         credit only to Jim Meyering and adjust the copyright dates.
64284         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
64285         <stdlib.h>, <unistd.h>, "pathmax.h".
64286         Instead, include "xgetcwd.h" (first) and "getcwd.h".
64287         (INITIAL_BUFFER_SIZE): Remove.
64288         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
64289
64290 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64291
64292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
64293         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
64294         Use the _ONCE methods, for efficiency.
64295         Check for fcntl.h.  In test program, include <errno.h>
64296         and <fcntl.h> if available.  Remove old K&R cruft from
64297         test program.  Check for common errors in GNU/Linux,
64298         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
64299         don't do AC_LIBOBJ, as that's getcwd.m4's job.
64300         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
64301         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
64302         name accordingly.
64303         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
64304         accommodate new getcwd.c.
64305         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
64306         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
64307         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
64308         that's all we need now.
64309
64310 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64311
64312         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
64313         argp-parse.c depends on getopt internals, that means we should
64314         always use our getopt, to be on the safe side.
64315         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
64316         order not to spoil the result of an eventual previous invocation
64317         of gl_GETOPT_SUBSTITUTE.
64318
64319 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64320
64321         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
64322         redefinition warnings. To avoid them, include the defines
64323         in `#if !defined __need_getopt ... #endif'. The only place
64324         where __getopt_argv_const is used is in definitions
64325         of getopt_long and getopt_long_only below, which are as well
64326         protected by `#ifndef __need_getopt'.
64327         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
64328         __need_getopt after including <stdio.h> and <unistd.h> These
64329         headers might have defined it.
64330
64331 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64332
64333         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
64334
64335 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
64338         (futimens): New function, which uses futimes if available.
64339         (futimens, utimens): Support timespec==NULL, with same semantics
64340         as utime and utimens.
64341         * lib/utimens.h (futimens): New decl.
64342
64343 2004-11-23  Jim Meyering  <jim@meyering.net>
64344
64345         * lib/getopt_.h: Remove trailing blanks.
64346
64347 2004-11-23  Jim Meyering  <jim@meyering.net>
64348
64349         * lib/__fpending.c: Add comment.
64350
64351 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         * modules/canonicalize (Depends-on): Add xreadlink.
64354         Problem reported by James Youngman.
64355
64356 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
64359         New macros.
64360         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
64361         optopt): Use them instead of invoking ## directly; otherwise, the
64362         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
64363
64364 2004-11-19  Bruno Haible  <bruno@clisp.org>
64365
64366         * lib/strtok_r.c: Move comments from here...
64367         * lib/strtok_r.h: ... to here.
64368
64369 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
64372         implementations that mishandle size_t overflow.
64373
64374 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
64377         might fail.  Problem reported by Yoann Vandoorselaere.
64378         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
64379         implementations that mishandle size_t overflow.
64380
64381 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         * modules/canon-host (Depends-on): Add strdup.
64384
64385 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64386
64387         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
64388
64389 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         * lib/canon-host.c: Include "strdup.h".
64392         (canon_host): Use getaddrinfo if available, so that IPv6 works.
64393         Use strdup instead of malloc/strcpy to duplicate strings.
64394
64395         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
64396         (human_space_before_unit): New constant.
64397         * lib/human.c (human_readable): Support it.
64398
64399         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
64400         (xgetcwd): Set errno correctly when failing.
64401         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
64402         the failure is actually due to a PATH_MAX problem.
64403
64404         Further getopt changes to make it more likely that glibc will
64405         buy the changes back.
64406         * lib/getopt.c (POSIXLY_CORRECT): New constant.
64407         (getopt): Use it, so to preserve glibc semantic
64408         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
64409         when compiling for libc.
64410         * lib/getopt_.h (__getopt_argv_const): Bring it back.
64411         (getopt_long, getopt_long_only): Use it.
64412
64413         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64414         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
64415         (getopt): Argv is now char * const *, as per standard.
64416         (_getopt_internal_r, _getopt_internal): Argv is now char **,
64417         not char *__getopt_argv_const *.
64418         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64419         _getopt_long_only_r): Likewise.
64420         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
64421         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64422         _getopt_long_r, _getopt_long_only_r): Likewise.
64423         * lib/getopt_.h (__getopt_argv_const): Remove.
64424         (getopt): Argv is now char * const *, as per standard.
64425
64426         * lib/getdate.y (tORDINAL): New token.
64427         (day, relunit): Allow it for relative times.
64428         (relative_time_table): Use tORDINAL for ordinals.
64429
64430 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64431
64432         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
64433         Document that "second" isn't allowed as an ordinal number.
64434
64435 2004-11-16  Jim Meyering  <jim@meyering.net>
64436
64437         * modules/closeout (Depends-on): Add fpending.
64438
64439 2004-11-15  Jim Meyering  <jim@meyering.net>
64440
64441         * lib/closeout.c: Include "__fpending.h" once again.
64442         Include <stdbool.h>.
64443         (close_stdout): Don't fail just because stdout was closed initially,
64444         since some programs don't write to stdout in the normal course of
64445         operation (other than --version and --help), and we don't want this
64446         function to make e.g. `touch file >&-' fail.
64447         But do fail if it was closed and someone has tried to write to it.
64448         E.g., `printf foo >&-' must fail.
64449
64450 2004-11-13  Jim Meyering  <jim@meyering.net>
64451
64452         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
64453
64454 2004-11-12  Simon Josefsson  <jas@extundo.com>
64455
64456         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
64457         small doc fix is still pending.
64458
64459 2004-11-11  Simon Josefsson  <jas@extundo.com>
64460
64461         * modules/strtok_r: New file.
64462
64463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64464         strtok_r.
64465
64466 2004-11-11  Simon Josefsson  <jas@extundo.com>
64467
64468         * m4/strtok_r.m4: New file.
64469
64470         * m4/getopt.m4: Replace opterr.
64471
64472 2004-11-11  Simon Josefsson  <jas@extundo.com>
64473
64474         * lib/strtok_r.h, strtok_r.c: New file.
64475
64476 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
64479         of replacing opterr, getopt, etc.  This should handle the
64480         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
64481
64482 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
64485         we can stop lying to compilers about the constness of argv when we
64486         are compiled outside glibc.
64487         (getopt, getopt_long, getopt_long_only): Use it.
64488         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64489         _getopt_internal, getopt): Likewise.
64490         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64491         _getopt_long_only_r): Likewise.
64492         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64493         _getopt_long_r, _getopt_long_only_r): Likewise.
64494
64495         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
64496         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
64497         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
64498         the other external symbols.
64499         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
64500         declaration, since the above renaming now works around collisions.
64501
64502 2004-11-11  Jim Meyering  <jim@meyering.net>
64503
64504         * lib/linebreak.c: Remove trailing blanks.
64505         * lib/alloca_.h: Likewise.
64506         * lib/acosl.c: Likewise.
64507         * lib/euidaccess.c: Likewise.
64508         * lib/allocsa.h: Likewise.
64509
64510 2004-11-10  Simon Josefsson  <jas@extundo.com>
64511
64512         * m4/getaddrinfo.m4: New file.
64513
64514 2004-11-10  Simon Josefsson  <jas@extundo.com>
64515
64516         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
64517
64518 2004-11-10  Simon Josefsson  <jas@extundo.com>
64519
64520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64521         getaddrinfo.
64522
64523         * modules/getaddrinfo: New file.
64524
64525 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64526
64527         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
64528
64529 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64530
64531         * lib/mktime.c (SHR): New macro, which is a portable
64532         substitute for >> that should work even on Crays.
64533         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
64534         Problem reported by Mark D. Baushke in
64535         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
64536         * lib/getdate.y (SHR): Likewise.
64537         (tm_diff): Use it.
64538         * lib/strftime.c (SHR): Likewise.
64539         (tm_diff): Use it.
64540         * lib/quotearg.c (struct quoting_options): Use unsigned int for
64541         quote_these_too, so that right shifts are well defined.  All uses
64542         changed.
64543
64544 2004-11-10  Jim Meyering  <jim@meyering.net>
64545
64546         Ensure that no close failure goes unreported.
64547         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
64548         return early when it seems there's nothing to flush.
64549         Don't include __fpending.h.
64550
64551 2004-11-10  Jim Meyering  <jim@meyering.net>
64552
64553         * modules/closeout (Depends-on): Remove fpending.
64554
64555 2004-11-10  Jim Meyering  <jim@meyering.net>
64556
64557         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
64558
64559 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
64562         gl_FUNC_STRFTIME.
64563         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
64564         and AC_REQUIRE when possible, to avoid duplicate checks.
64565         Check for <wchar.h>.
64566
64567 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
64570
64571 2004-11-09  Bruno Haible  <bruno@clisp.org>
64572
64573         * m4/sockpfaf.m4: New file.
64574
64575 2004-11-05  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64578         Reported by Mark D. Baushke <mdb@cvshome.org>.
64579
64580 2004-11-04  Bruno Haible  <bruno@clisp.org>
64581
64582         2004-09-11  Bruno Haible  <bruno@clisp.org>
64583                 * allocsa.valgrind: New file.
64584         2004-02-06  Bruno Haible  <bruno@clisp.org>
64585                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64586                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64587                 Reported by Christopher Seip <chris.seip@hp.com>.
64588
64589 2004-11-04  Bruno Haible  <bruno@clisp.org>
64590
64591         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64592         (Makefile.am): Distribute it.
64593
64594 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64595
64596         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64597         with errno == ERANGE if the buffer is too small.
64598         Problem reported by Mark D. Baushke.
64599
64600 2004-11-03  Albert Chin  <china@thewrittenword.com>
64601             Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64604         equivalent, substitute $ac_type for equivalent type rather than
64605         blindly using uint32_t *always* which won't work if uint32_t is not
64606         available.  Define _UINT32_T to work around typedef of uint32_t if
64607         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
64608         2.5.1.
64609
64610 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64611
64612         * m4/jm-macros.m4: Sync from coreutils.
64613         (gl_MACROS): Check for mbrlen, for pathchk.
64614         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
64615
64616 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         * lib/xreadlink.c (MAXSIZE): New macro.
64619         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
64620         size does not exceed MAXSIZE.  Avoid cast.
64621         As suggested by Mark D. Baushke in
64622         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
64623         if readlink fails with buffer size just under MAXSIZE, try again
64624         with MAXSIZE.
64625
64626 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
64629
64630 2004-11-02  Derek R. Price  <derek@ximbiot.com>
64631         and  Paul Eggert  <eggert@cs.ucla.edu>
64632
64633         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
64634         (get_date): Overparenthesize to avoid GCC warning.
64635
64636 2004-11-02  Bruno Haible  <bruno@clisp.org>
64637
64638         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
64639         returns void.
64640
64641 2004-11-02  Bruno Haible  <bruno@clisp.org>
64642
64643         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
64644         function returns void.
64645
64646 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
64649         fflush_unlocked, flockfile, funlockfile, funlockfile,
64650         fputs_unlocked, putc_unlocked.
64651
64652 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64655         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
64656         already declared.
64657
64658 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64659
64660         * modules/getdate (Files): Add doc/getdate.texi.
64661         (Depends-on): Add setenv, xalloc.
64662
64663 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64664
64665         * lib/getdate.y: Add support for TZ="foo" within a date string.
64666         Fix some bugs near time_t boundaries.  Reject dates with
64667         out-of-range components, e.g., "Sept 31".
64668         Include <stdlib.h>, "setenv.h", "xalloc.h".
64669         (ISDIGIT_LOCALE): Remove; unused.
64670         Note that the TZ and time functions used here are not reentrant.
64671         (mktime_ok, get_tz): New functions.
64672         (TZBUFSIZE): New constant.
64673         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
64674         This requires that we sometimes generate our own TZ="XXX..." setting.
64675
64676 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         * doc/getdate.texi: New file, from coreutils with modifications for
64679         the new TZ parsing.
64680
64681 2004-10-27  Derek R. Price  <derek@ximbiot.com>
64682
64683         * lib/mktime.c (not_equal_tm): Remove redundant check.
64684
64685 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64686
64687         * modules/regex (lib_SOURCES): Add regex.c.
64688         Reported by James Youngman in
64689         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
64690
64691 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64692
64693         * lib/getdate.y: Use Bison 1.875 features, and some minor
64694         code cleanups.  This change does not affect semantics.
64695         Don't include <stdlib.h>; no longer needed.
64696         Don't include unlocked-io.h; only the "#if TEST" code uses
64697         stdio, and performance isn't crucial there.
64698         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
64699         Bison 1.875 features as described below.
64700         All uses of "PC." replaced by "pc->".
64701         (YYSTYPE): Add a forward declaration.
64702         (yylex, yyerror): Use full prototypes in forward decls.
64703         Use "%pure-parser" rather than obsolescent "%pure_parser".
64704         Use %parse-param and %lex-param instead of obsolescent
64705         YYPARSE_PARAM and YYLEX_PARAM.
64706         (meridian_table, month_and_day_table, time_units_table,
64707         relative_time_table, time_zone_table, military_table,
64708         lookup_zone, lookup_word, get_date):
64709         Use NULL instead of 0 where appropriate.
64710         (to_hour): Avoid abort (), to avoid a dependency on
64711         stdlib.h.
64712         (yyerror, yylex): Now accepts parser_control * arg.
64713         (main) [TEST]: Use '\0' rather than 0 for char.
64714
64715 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64716
64717         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
64718
64719 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64720
64721         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
64722         It's now the caller's responsibility to handle the case where
64723         !HAVE_GETPAGESIZE && !defined getpagesize.
64724
64725         * lib/mktime.c (leapyear): Arg is long int, not int.
64726
64727 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64730
64731 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64734         missing.  Problem reported by James Youngman.
64735
64736 2004-10-16  Simon Josefsson  <jas@extundo.com>
64737
64738         * gnulib-tool: Fix comments.  Fix parse problem.
64739         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64740
64741 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64744         implementation of getopt_long.  Problem reported by Alexander Taler in:
64745         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64746
64747 2004-10-15  Bruno Haible  <bruno@clisp.org>
64748
64749         * gnulib-tool: Untabify. Initialize supplied_libname.
64750         (func_usage): More homogenous output.
64751         (func_modules_transitive_closure, func_modules_to_filelist,
64752         func_emit_lib_Makefile_am): New functions.
64753         (func_import): New function, extracted from big case statement. Use
64754         func_get_license, func_modules_transitive_closure,
64755         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64756         opt_lgpl. Don't use test -a, as it's not portable.
64757         (func_create_testdir): Use func_modules_transitive_closure,
64758         func_modules_to_filelist, func_emit_lib_Makefile_am.
64759
64760 2004-10-15  Bruno Haible  <bruno@clisp.org>
64761
64762         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64763
64764 2004-10-15  Bruno Haible  <bruno@clisp.org>
64765
64766         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64767         the portions belonging to each module.
64768         Suggested by Derek Robert Price <derek@ximbiot.com>.
64769
64770 2004-10-12  Simon Josefsson  <jas@extundo.com>
64771
64772         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64773         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64774         to real functions.
64775
64776 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64777
64778         * modules/vsnprintf: New file.
64779
64780 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64781
64782         * m4/vsnprintf.m4: New file.
64783
64784 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64785
64786         * lib/vsnprintf.h: New file.
64787         * lib/vsnprintf.c: New file.
64788
64789 2004-10-11  Bruno Haible  <bruno@clisp.org>
64790
64791         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64792         vsnprintf.
64793
64794 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64795
64796         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64797
64798 2004-10-07  Bruno Haible  <bruno@clisp.org>
64799
64800         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64801         fits into the provided buffer.
64802
64803 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * lib/diacrit.c, diacrit.h: Add GPL notice.
64806
64807         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64808         notice.
64809         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64810         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64811         This avoids a potential constant-folding bug.
64812
64813 2004-10-05  Bruno Haible  <bruno@clisp.org>
64814
64815         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64816         for the declaration of strsep.
64817
64818 2004-10-05  Bruno Haible  <bruno@clisp.org>
64819
64820         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64821
64822 2004-10-04  Simon Josefsson  <jas@extundo.com>
64823
64824         * modules/memmem: New file.
64825         * tests/test-memmem.c: New file.
64826         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64827
64828 2004-10-04  Simon Josefsson  <jas@extundo.com>
64829
64830         * m4/memmem.m4: New file.
64831
64832 2004-10-04  Simon Josefsson  <jas@extundo.com>
64833
64834         * lib/memmem.h: New file.
64835         * lib/memmem.c: New file, taken from glibc.
64836
64837 2004-10-04  Simon Josefsson  <jas@extundo.com>
64838
64839         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64840         '#ifdef USE_UNLOCKED_IO'.
64841
64842 2004-10-04  Simon Josefsson  <jas@extundo.com>
64843
64844         * config/srclist.txt: Add memmem from glibc.
64845
64846 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64849
64850         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64851         modules/exclude, modules/getdate, modules/getline,
64852         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64853         modules/getusershell, modules/linebuffer, modules/md5,
64854         modules/mountlist, modules/posixtm, modules/readtokens,
64855         modules/readutmp, modules/regex, modules/sha1,
64856         modules/version-etc, modules/yesno:
64857         Remove dependency on unlocked-io.
64858
64859 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64862
64863         * m4/unlocked-io.m4: Add copyright notice.
64864         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64865
64866 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64869         * lib/xmalloc.c (xmemdup): Likewise.
64870         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64871         XFREE): Remove these long-obsolescent macros.
64872         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64873         * lib/xstrdup.c: Remove.
64874
64875         * lib/regex.c (re_comp): Cast gettext return value to char *,
64876         Problem reported by Martin Neitzel via Mark D. Baushke.
64877
64878 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64879
64880         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64881         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64882         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64883         regex.c, sha1.c, version-etc.c, yesno.c:
64884         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64885         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64886         the includer's responsibility.
64887
64888         Sync from coreutils.
64889
64890         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64891         points to the start of a string, as the C Standard says the
64892         resulting behavior is undefined.
64893
64894         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64895         simple -> simple_backups, numbered_existing ->
64896         numbered_existing_backups, numbered -> numbered_backups
64897         to avoid shadowing problems.  All uses changed.
64898         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64899         * lib/backupfile.c (check_extension, numbered_backup):
64900         Rename locals to avoid shadowing 'basename'.
64901         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64902         once.
64903
64904         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64905         * lib/.cvsignore: Add getopt.h.
64906
64907 2004-10-04  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/README: New file.
64910         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64911         not a module.
64912
64913 2004-10-02  Jim Meyering  <jim@meyering.net>
64914
64915         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64916
64917 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64918
64919         * modules/strsep: New file.
64920
64921 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64922
64923         * m4/strsep.m4: New file.
64924
64925 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64926
64927         * lib/strsep.h: New file.
64928         * lib/strsep.c: New file.
64929
64930 2004-10-01  Simon Josefsson  <jas@extundo.com>
64931
64932         * lib/snprintf.c (snprintf): Handle size==0.
64933
64934 2004-10-01  Simon Josefsson  <jas@extundo.com>
64935             Bruno Haible  <bruno@clisp.org>
64936
64937         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64938         (snprintf): Declare 'args'.
64939
64940 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * lib/snprintf.c: Remove comments as to why each header is needed.
64943
64944 2004-10-01  Bruno Haible  <bruno@clisp.org>
64945
64946         * MODULES.html.sh: Add strsep.
64947
64948 2004-09-30  Simon Josefsson  <jas@extundo.com>
64949
64950         * modules/snprintf: New file.
64951
64952 2004-09-30  Simon Josefsson  <jas@extundo.com>
64953
64954         * m4/snprintf.m4: New file.
64955
64956 2004-09-30  Simon Josefsson  <jas@extundo.com>
64957
64958         * lib/snprintf.h, lib/snprintf.c: New files.
64959
64960 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64961
64962         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64963         (hol_entry_help): Never translate an empty string.
64964         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64965         * lib/argp.h (OPTION_NO_TRANS): New option.
64966
64967 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64968
64969         * modules/argp (Maintainer): Replace Simon Josefsson
64970         by Sergey Poznyakoff.
64971
64972 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64973
64974         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64975         changes merged back into glibc.
64976
64977 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64978
64979         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64980
64981 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64982
64983         * lib/xvasprintf.c: Include xalloc.h.
64984         (xvasprintf): Use xalloc_die, not xmalloc_die.
64985
64986 2004-09-29  Bruno Haible  <bruno@clisp.org>
64987
64988         * modules/alloca-opt: New file, derived from modules/alloca.
64989         * modules/allocsa: Depend on alloca-opt instead of alloca.
64990         * modules/setenv: Likewise.
64991         * modules/vasnprintf: Likewise.
64992         * MODULES.html.sh: Add alloca-opt.
64993
64994 2004-09-28  Simon Josefsson  <jas@extundo.com>
64995
64996         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64997         LGPL, and to replace license template from GPL to LGPL.
64998
64999 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * modules/dummy: Change license to LGPL.
65002
65003 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65004
65005         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
65006
65007 2004-09-24  Simon Josefsson  <jas@extundo.com>
65008
65009         * modules/minmax (License): Change from GPL to LGPL.
65010
65011 2004-09-23  Simon Josefsson  <jas@extundo.com>
65012
65013         * gnulib-tool (--import): Typo.
65014
65015 2004-09-23  Simon Josefsson  <jas@extundo.com>
65016
65017         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
65018
65019 2004-09-22  Bruno Haible  <bruno@clisp.org>
65020
65021         * modules/*: Add 'License' field.
65022         * gnulib-tool: Accept --extract-license option.
65023         (func_get_license): New function.
65024
65025 2004-09-21  Bruno Haible  <bruno@clisp.org>
65026
65027         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
65028         Reported by Simon Josefsson.
65029
65030 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
65033         gl_AC_TYPE_LONG_LONG.
65034
65035 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65036
65037         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
65038
65039 2004-09-18  Simon Josefsson  <jas@extundo.com>
65040         and  Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
65043         calls with autoreconf.  Define GL_LIB.
65044
65045 2004-09-14  Karl Berry  <karl@gnu.org>
65046
65047         * config/srclist.txt: unsync setenv.c, sigh.
65048
65049 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
65052         Problem reported by Bruno Haible in:
65053         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
65054
65055 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65056
65057         * config/srclist.txt: Comment out argp-pvh.c.
65058
65059 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
65062         in case some system header has #define'd it.  Problem reported by
65063         Soeren D. Schulze in
65064         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
65065
65066 2004-09-09  Karl Berry  <karl@gnu.org>
65067
65068         * regex.[ch]: delete from the root.  These were supposed to be
65069                 synced with emacs cvs, but this has not happened for about
65070                 a year, and anyway nothing else uses emacs regex.[ch].
65071                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
65072                 lib/regex[.ch] is untouched.
65073
65074 2004-09-09  Bruno Haible  <bruno@clisp.org>
65075
65076         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
65077
65078 2004-09-09  Bruno Haible  <bruno@clisp.org>
65079
65080         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
65081         modifications.
65082         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
65083
65084 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65085
65086         * modules/xvasprintf: New file.
65087         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
65088
65089 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65090
65091         * lib/xvasprintf.h: New file.
65092         * lib/xvasprintf.c: New file.
65093         * lib/xasprintf.c: New file.
65094
65095 2004-09-08  Bruno Haible  <bruno@clisp.org>
65096
65097         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
65098
65099 2004-09-08  Bruno Haible  <bruno@clisp.org>
65100
65101         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
65102         length is > INT_MAX.
65103         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
65104         more.
65105
65106 2004-09-08  Bruno Haible  <bruno@clisp.org>
65107
65108         * lib/stdint_.h: New file, taken from GNU clisp.
65109
65110 2004-09-08  Bruno Haible  <bruno@clisp.org>
65111             Oskar Liljeblad  <oskar@osk.mine.nu>
65112
65113         * modules/stdint: New file.
65114         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
65115
65116 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         Import from coreutils.
65119         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
65120         strings on unbounded length.  alloca's performance benefits aren't
65121         that important here.
65122         (V_STRDUP): Remove.
65123         (parse_with_separator): New function, with most of the internals
65124         of the old parse_user_spec.  Allow user to omit both user and group,
65125         for compatibility with FreeBSD.
65126         Clone only the user name, not the entire spec.
65127         Do not set *uid, *gid unless entirely successful.
65128         Avoid memory leak in some failing cases.
65129         Fix regression for USER.GROUP reported by Dmitry V. Levin in
65130         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
65131         (parse_user_spec): Rewrite to use parse_with_separator.
65132
65133 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65134
65135         * modules/userspec: Don't depend on alloca.
65136
65137 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
65140
65141 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
65144         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
65145         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
65146
65147 2004-08-16  Simon Josefsson  <jas@extundo.com>
65148
65149         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
65150         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
65151         Add --dry-run for --import.
65152         Let user provided command line parameters override configure.ac
65153         settings.
65154
65155 2004-08-12  Simon Josefsson  <jas@extundo.com>
65156
65157         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
65158         as discussed with Paul Eggert in threads rooted at
65159         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
65160         and
65161         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
65162         Before, the test was empty, and relied on ELIDE_CODE in source
65163         code.)
65164         (gl_PREREQ_GETOPT): New macro.
65165         (gl_GETOPT): Use them.
65166
65167 2004-08-12  Simon Josefsson  <jas@extundo.com>
65168
65169         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
65170         * lib/getopt_.h: Renamed from getopt.h.
65171
65172 2004-08-12  Simon Josefsson  <jas@extundo.com>
65173
65174         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
65175         Change default library name from libfoo to libgnu.
65176         Now, if you have a configure.ac that says:
65177                 gl_SOURCE_BASE(gl)
65178                 gl_M4_BASE(gl/m4)
65179                 gl_MODULES(error getopt etcetera)
65180                 gl_INIT
65181         you can import all you need by running:
65182                 ../gnulib/gnulib-tool --import
65183
65184         * modules/getopt (Files): Rename getopt.h to getopt_.h.
65185         (Makefile.am): Rewrite, use logic from argz.
65186         (Include): Use <getopt.h> instead of "getopt.h".
65187
65188 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * modules/argp (Files): Add m4/unlocked-io.m4.
65191         (Depends-on): Add extensions.
65192
65193 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65194
65195         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
65196         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
65197         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
65198         Check for program_invocation_name, program_invocation_short_name,
65199         flockfile, funlockfile, features.h, _getopt_long_only_r.
65200
65201 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
65204         its complicated substitute.
65205         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
65206         and program_invocation_name.
65207         (__argp_basename) [!_LIBC]: Remove; the only use was
65208         replaced by its body.
65209         (__argp_short_program_name): Change condition from
65210         !defined __argp_short_program_name to
65211         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
65212         to match argp-namefrob.h.
65213         (__argp_failure): Don't assume strerror_r returns char *.
65214         * lib/argp-parse.c (N_): Define unconditionally.
65215         (argp_default_options): Fill out initializers with 0 to avoid
65216         gcc warnings.
65217
65218 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
65221         getopt1.c.
65222
65223 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65224
65225         Merge from coreutils.
65226
65227         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
65228
65229         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
65230         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
65231
65232 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65233
65234         Merge from coreutils.
65235
65236         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
65237         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
65238         for Reliant Unix 5.43.
65239
65240         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
65241         (union fooround): Use uintmax_t, not long int.
65242         The rest is a merge from libc:
65243         [defined _LIBC]: Include <shlib-compat.h>.
65244         (_obstack) [defined _LIBC]: Remove after 2.3.4.
65245
65246         * lib/settime.c (settime): Recode to avoid warning with
65247         Sun Forte C 6U2.
65248
65249         * lib/strverscmp.c: Convert to UTF-8.
65250
65251 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65254         m4/uintmax_t.m4.
65255
65256 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65257
65258         * modules/xalloc-die: New file.
65259         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
65260
65261         * modules/md5 (Files): Add m4/uint32_t.m4.
65262         * modules/sha1: Renamed from modules/sha.
65263         (Files):
65264         Rename lib/sha.h to lib/sha1.h.
65265         Rename lib/sha.c to lib/sha1.c.
65266         Rename m4/sha.m4 to m4/sha1.m4.
65267         (lib_SOURCES): Likewise.
65268         (configure.ac): Rename gl_SHA to gl_SHA1.
65269         (Include): sha.h -> sha1.h.
65270
65271 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65272
65273         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
65274         * m4/sha1.m4: Renamed from sha.m4.
65275         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
65276
65277 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65278
65279         * lib/obstack.h (obstack_empty_p):
65280         Don't assume that chunk->contents is suitably aligned.
65281         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
65282         Likewise. Problem reported by Benno in
65283         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
65284
65285         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
65286         readable.  This could be improved further but it'd take some work.
65287
65288 2004-08-08  Simon Josefsson  <jas@extundo.com>
65289
65290         * modules/xgethostname (Depends-on): Remove exit and error (not
65291         used).
65292
65293         * modules/getpass-gnu: Add getpass.h.
65294         (Depends-on): Add stdbool.
65295         * modules/getpass: Add getpass.h.
65296
65297 2004-08-08  Simon Josefsson  <jas@extundo.com>
65298
65299         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
65300         Check getpass declaration.
65301
65302 2004-08-08  Simon Josefsson  <jas@extundo.com>
65303
65304         * lib/xgethostname.c: Don't include error.h (not used).
65305
65306         * lib/getpass.h: Add.
65307         * lib/getpass.c: Include getpass.h first.
65308
65309 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * lib/xalloc-die.c: New file.
65312         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
65313         All uses removed.
65314         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
65315         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
65316         xalloc-die.c.
65317         (_, N_, xalloc_die): Move to xalloc-die.c.
65318         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
65319         so that we needn't mess with xalloc_msg_memory_exhausted.
65320
65321         * lib/sha1.h: Renamed from sha.h.
65322         (SHA1_H): Renamed from _SHA_H.
65323         (sha1_ctx): Renamed from sha_ctx.
65324         (sha1_init_ctx): Renamed from sha_init_ctx.
65325         (sha1_process_block): Renamed from sha_process_block.
65326         (sha1_process_bytes): Renamed from sha_process_bytes.
65327         (sha1_finish_ctx): Renamed from sha_finish_ctx.
65328         (sha1_read_ctx): Renamed from sha_read_ctx.
65329         (sha1_stream): Renamed from sha_stream.
65330         (sha1_buffer): Renamed from sha_buffer.
65331         * lib/sha1.c: Likewise; renamed from sha.c.
65332         Do not include <sys/types.h>.
65333         Include <stddef.h> rather than <stdlib.h>.
65334
65335 2004-08-08  Bruno Haible  <bruno@clisp.org>
65336
65337         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
65338         FILESYSTEM_PREFIX_LEN.
65339         * lib/progreloc.c: Likewise.
65340         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
65341
65342 2004-08-06  Simon Josefsson  <jas@extundo.com>
65343
65344         * modules/progname (Depends-on): Don't depend on stdbool.
65345
65346 2004-08-06  Simon Josefsson  <jas@extundo.com>
65347
65348         * modules/getsubopt: New file.
65349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65350         getsubopt.
65351
65352 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65353
65354         More merge from coreutils.
65355
65356         * m4/utimens.m4, m4/utimecmp.m4: New files.
65357         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
65358         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
65359         prereq.m4, sha.m4: Import changes from coreutils.
65360
65361 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         More merge from coreutils.
65364         * modules/raise, modules/readtokens0, modules/utimens:
65365         * modules/utimecmp, module/xnanosleep: New files.
65366         * modules/strftime: Add lib/strftime.h.
65367         Change include from <time.h> to "strftime.h".
65368         * modules/yesno: Add lib/yesno.h.
65369         * modules/backupfile: Remove lib/addext.c.
65370         * modules/euidaccess: Add stat-macros.h.
65371         * modules/canonicalize, modules/euidaccess,
65372         modules/filemode, modules/lchown, modules/makepath,
65373         modules/rmdir, modules/stat: Likewise.
65374
65375 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65376
65377         Merge from tar.
65378         * lib/argp-help.c (make_hol, hol_append): Don't assume that
65379         SIZE_MAX is a valid preprocessor constant.
65380         (__argp_basename): Change from "#ifndef _LIBC"
65381         to "#ifndef __argp_short_program_name", so that
65382         we don't compile these functions for tar.
65383
65384         More merges from coreutils.
65385         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
65386         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
65387         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
65388         * lib/addext.c: Remove; no longer needed.
65389         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
65390         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
65391         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
65392         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
65393         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
65394         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
65395         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
65396         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
65397         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
65398         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65399         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
65400         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
65401         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
65402         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
65403         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
65404         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
65405         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
65406         Import changes from coreutils.
65407
65408 2004-08-05  Simon Josefsson  <jas@extundo.com>
65409
65410         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
65411
65412 2004-08-05  Simon Josefsson  <jas@extundo.com>
65413
65414         * m4/getsubopt.m4: New file.
65415
65416 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65417
65418         Merge from coreutils.
65419
65420         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
65421         * m4/getcwd-path-max.m4: New files.
65422
65423         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
65424         FILESYSTEM_PREFIX_LEN ->
65425         FILE_SYSTEM_PREFIX_LEN.
65426         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
65427         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
65428         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
65429         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
65430
65431         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
65432         prerequisite modules now handle the DOS stuff.
65433         Don't check for unistd.h.
65434
65435 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65436
65437         Merge from coreutils.
65438
65439         * lib/.gdb-history: Remove; this doesn't belong here.
65440
65441         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
65442         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
65443         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
65444         * lib/getcwd.c: New files.
65445
65446         * lib/dirname.h: Include <stdbool.h>.
65447         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
65448         for consistency with POSIX terminology.  All uses changed.
65449         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
65450         (strip_trailing_slashes): Use bool for booleans.
65451         * lib/stripslash.c (strip_trailing_slashes): Likewise.
65452
65453         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
65454         sometimes returns a positive errno value even when it succeeds.
65455         (print_errno_message) [!LIBC]: Fall back on strerror if
65456         __strerror_r fails.
65457
65458         * lib/path-concat.c (mempcpy): Don't define if a system header defines
65459         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
65460         (longest_relative_suffix): New function.
65461         (path_concat): Use it.  Assume first argument is not NULL.
65462         Port to DOS.  Omit redundant separators.
65463         Report an error instead of returning NULL.
65464         Use mempcpy instead of memcpy.
65465         (xpath_concat): Remove: not declared or used.
65466
65467         * lib/same.h: Include <stdbool.h>
65468         (same_name): Return bool, not int.
65469         * lib/same.c (same_name): Likewise.
65470         (errno): Don't declare; we assume C89 or better now.
65471
65472         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
65473         if not already defined.
65474
65475         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
65476         * lib/dup-safer.c (errno): Likewise.
65477
65478 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         Merge from coreutils.
65481         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
65482         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
65483         * modules/path-concat: Don't depend on strdup.
65484
65485 2004-08-03  Simon Josefsson  <jas@extundo.com>
65486
65487         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
65488         * lib/progname.h: Don't include stdbool.h.
65489
65490 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65491
65492         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
65493         * MODULES.html.sh (func_all_modules): Remove fatal.
65494
65495 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
65498
65499 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
65502         working.
65503
65504 2004-08-02  Simon Josefsson  <jas@extundo.com>
65505
65506         * lib/getsubopt.h: New file, with comments from Bruno Haible.
65507         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
65508         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
65509
65510 2004-08-01  Simon Josefsson  <jas@extundo.com>
65511
65512         * lib/xgetdomainname.c: Include stdlib.h, for free().
65513
65514 2004-07-19  Bruno Haible  <bruno@clisp.org>
65515
65516         * MODULES.html.sh (func_all_modules): Add dummy.
65517
65518 2004-07-16  Simon Josefsson  <jas@extundo.com>
65519
65520         * modules/dummy: New file.
65521
65522 2004-07-16  Simon Josefsson  <jas@extundo.com>
65523
65524         * lib/dummy.c: New file.
65525
65526 2004-07-16  Bruno Haible  <bruno@clisp.org>
65527
65528         * lib/backupfile.h: Add extern "C" for C++.
65529         * lib/closeout.h: Likewise.
65530         * lib/copy-file.h: Likewise.
65531         * lib/findprog.h: Likewise.
65532         * lib/full-write.h: Likewise.
65533         * lib/pathname.h: Likewise.
65534         * lib/progname.h: Likewise.
65535         * lib/stpcpy.h: Likewise.
65536         * lib/stpncpy.h: Likewise.
65537         * lib/strcase.h: Likewise.
65538         * lib/strstr.h: Likewise.
65539         * lib/xalloc.h: Likewise.
65540
65541         * lib/mbswidth.h: Add extern "C" for C++.
65542         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
65543
65544 2004-07-13  Robert Millan  <robertmh@gnu.org>
65545
65546         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
65547
65548 2004-07-09  Simon Josefsson  <jas@extundo.com>
65549
65550         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
65551         failed without this.)
65552
65553 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * modules/chown (Files): Add lib/fchown-stub.c, since
65556         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
65557
65558 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * lib/fchown-stub.c: New file.
65561
65562 2004-06-24  Jim Meyering  <jim@meyering.net>
65563
65564         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
65565
65566 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         * modules/argz: Omit "#include".
65569
65570         * MODULES.html.sh (func_all_modules): Add calloc, to match
65571         2004-06-01 addition of calloc module.
65572
65573 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65574
65575         * m4/argz.m4: New file, which is autoupdated from libtool.
65576
65577 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65580         libtool.
65581
65582 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * config/srclist-update: Don't insist on "USA." before the
65585         close-comment, as libtool omits the period and puts the */ on a
65586         separate line.
65587         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65588         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65589
65590 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65591
65592         * modules/argz: New file.
65593         * MODULES.html.sh (func_all_modules): Add argz.
65594
65595 2004-06-12  Jim Meyering  <jim@meyering.net>
65596         and  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * modules/hash (Files): Add lib/xalloc.h.
65599         * modules/pipe (Depends-on): Add wait-process.
65600         * modules/stat (Depends-on): Add xalloc.
65601         * modules/userspec (Files): Add lib/userspec.h.
65602         * modules/xstrto
65603
65604         Upgrade from gettext-0.13.
65605         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
65606         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
65607         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
65608
65609 2004-06-10  Jim Meyering  <jim@meyering.net>
65610
65611         * lib/calloc.c: New file.
65612
65613 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * lib/getdate.y (yylex): Allow space between sign and number.
65616         Problem reported by Dan Jacobson.
65617
65618 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65619
65620         Merge from coreutils CVS.
65621
65622         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
65623         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
65624         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
65625         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
65626         xstrtol.m4: Fix copyright date and/or serial number.
65627
65628         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
65629         See if we need an fchown replacement.
65630         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
65631         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
65632         and use the replacement function if we detect either defect.
65633
65634         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
65635         gl_UTIMECMP.
65636
65637 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65638         and  Jim Meyering  <jim@meyering.net>
65639
65640         Merge from coreutils CVS.
65641
65642         * lib/stat-macros.h: New file, with contents from file-type.h
65643         and coreutils' system.h.
65644         * lib/file-type.c: Include "stat-macros.h".
65645         * lib/file-type.h (file_type): Move all macro definitions to new file,
65646         stat-macros.h.
65647
65648         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
65649         Wrap old code with this conditional.
65650         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
65651         function that does not dereference symlinks.
65652         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
65653
65654         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
65655         dependency problems.
65656         (xreadlink): Accept new arg SIZE, for efficiency.
65657         All decls and uses changed.
65658         * lib/xreadlink.h: Include <stddef.h>, for size_t.
65659
65660         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
65661         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
65662
65663         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
65664         sysexits.h.
65665
65666 2004-06-01  Jim Meyering  <jim@meyering.net>
65667
65668         * m4/calloc.m4: New file.
65669
65670 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
65671
65672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
65673         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
65674         Also, fix a typo in a diagnostic.
65675
65676 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
65679         or AC_FUNC_REALLOC.
65680
65681 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65682
65683         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
65684         macros to be defined.
65685         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
65686         the allocator returns NULL because the requested size is zero.
65687
65688 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65689
65690         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
65691         var.  Add comment explaining why libc still defines it.  This
65692         merges the following patch from glibc:
65693         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
65694
65695 2004-05-20  Andreas Schwab  <schwab@suse.de>
65696
65697         * m4/free.m4: Replace free if it not known to work, not the other
65698         way round.
65699
65700 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65701
65702         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
65703         present in glibc since revision 1.1 of this file.
65704         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
65705         obstack_alignment_mask, obstack_alloc, obstack_base,
65706         obstack_blank, obstack_blank_fast, obstack_chunk_size,
65707         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
65708         obstack_grow0, obstack_init, obstack_int_grow,
65709         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
65710         obstack_next_free, obstack_object_size, obstack_ptr_grow,
65711         obstack_ptr_grow_fast, obstack_room): Remove declarations of
65712         nonexistent functions.
65713
65714 2004-05-18  Karl Berry  <karl@gnu.org>
65715
65716         * config/srclist.txt: break link for vasnprintf.c.
65717
65718 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65719
65720         Port obstack to the AS/400, where pointers are 16 bytes wide and
65721         you cannot cast an integer to a valid pointer.  This patch is
65722         currently waiting to be integrated into glibc; see
65723         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
65724
65725         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
65726         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
65727         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
65728         (struct obstack): temp member is now a union of a pointer and
65729         an integer, instead of an integer.  All integer uses changed.
65730         This does not affect the physical layout of struct obstack,
65731         except on hosts (like the AS/400) where the size or alignment of
65732         void * is greater than that of ptrdiff_t.
65733         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65734         __STDC__)]: Store temporary in pointer member of union, not
65735         integer member.
65736         * lib/obstack.c: Include <stddef.h>, for offsetof.
65737         (struct fooalign): Remove; it doesn't need a name.
65738         (union fooround): Change double to long double, and add void *.
65739         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65740         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65741         not a macro.  Hence the values are always int; so remove all
65742         casts-to-int in uses.
65743
65744 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65747         we can get this patch merged into glibc.
65748
65749 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65750             Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * m4/argp: Depend on alloca.
65753
65754 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65755             Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65758         freecoding.
65759
65760 2004-05-17  Bruno Haible  <bruno@clisp.org>
65761
65762         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65763         precision that consists of a '.' followed by an empty digit string.
65764         Patch by Tor Lillqvist <tml@iki.fi>.
65765
65766 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65769         for backward compatibility with older code.  We need our own
65770         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65771         it under some other name, and our alloca.h will define it.
65772
65773 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65774             Derek Price  <derek@ximbiot.com>
65775
65776         * lib/alloca.c: Include <alloca.h>, to get our interface.
65777         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65778         include <alloca.h> first.  Use C89 prototype for alloca; this
65779         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65780         Use #elif for simplicity, since we can assume C89 now.
65781         Don't try to source the system alloca.h since it will not be found
65782         and to prevent recursively including its replacement.
65783         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65784         * lib/regex.c: Likewise.
65785
65786 2004-05-16  Derek Price  <derek@ximbiot.com>
65787             Paul Eggert  <eggert@cs.ucla.edu>
65788
65789         getline cleanup.  This changes the getndelim2 API: both order of
65790         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65791         no delimiter).
65792
65793         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65794         interface does that.
65795         (getline): Always use getdelim, so that we don't have two
65796         copies of this code.
65797         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65798         if available.
65799         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65800         (GETNDELIM2_MAXIMUM): New macro.
65801         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65802         instead of the old practice of delim2==0.  All callers changed.
65803         Return -1 on overflow, instead of returning junk.
65804         Do not set *linesize unless allocation succeeds.
65805         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65806         that we include sys/types.h.
65807         * lib/getnline.h: Likewise.
65808         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65809         (getndelim2): Reorder arguments.
65810         * lib/getnline.c (getnline, getndelim):
65811         Don't discard the NMAX argument.
65812         (getnline): Invoke getndelim, to avoid code duplication.
65813         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65814         of (size_t) -1 by callers of the getnline family.
65815
65816 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65819         Check for gettimeofday.
65820         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65821         Check for settimeofday, stime.
65822
65823 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/nanosleep.c (suspended): Change its type from int to
65826         sig_atomic_t volatile.
65827         (first_call): Make it private to rpl_nanosleep, and have it
65828         be zero initially as that's a bit faster.
65829         (my_usleep): Round up fractional times instead of truncating them,
65830         as this is the usual meaning for 'sleep'.
65831
65832         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65833         doesn't work.
65834         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65835         (ENOSYS): Define if not defined.
65836         (settime): Fall back on stime if it exists and settimeofday fails.
65837         But don't bother with fallbacks if a method fails with errno == EPERM.
65838
65839 2004-05-11  Jim Meyering  <jim@meyering.net>
65840
65841         Prior to this change, the save_cwd caller required read access to the
65842         current directory on most systems (ones with the fchdir function).
65843
65844         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65845         fails, try write-only, and finally, resort to using xgetcwd.
65846
65847 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         * lib/obstack.c, obstack.h: Import changes from libc.
65850
65851 2004-04-28  Bruno Haible  <bruno@clisp.org>
65852
65853         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65854         also implicitly appends .exe to executables.
65855         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65856         accepts Windows pathnames.
65857         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65858         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65859         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65860         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65861         Reported by Derek Robert Price <derek@ximbiot.com>.
65862
65863 2004-04-21  Karl Berry  <karl@gnu.org>
65864
65865         * config/srclist.txt (localcharset.c): break sync.
65866
65867 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65868
65869         * m4/host-os.m4: Add a copyright notice.
65870
65871 2004-04-20  Jim Meyering  <jim@meyering.net>
65872
65873         Change UTILS_ to gl_ in AC_DEFINE'd names.
65874         Change utils_- and jm_-prefixed variables, too.
65875         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65876         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65877         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65878
65879         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65880         Don't emit trailing blanks.
65881         Also rename jm_-prefixed variables to have gl_ prefix.
65882
65883         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65884         Also rename jm_-prefixed variables to have gl_ prefix.
65885
65886         * m4/jm-macros.m4: Reflect the renamings.
65887         * m4/prereq.m4: Likewise.
65888
65889 2004-04-20  Jim Meyering  <jim@meyering.net>
65890
65891         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65892         memory.
65893
65894 2004-04-20  Jim Meyering  <jim@meyering.net>
65895             Bruno Haible  <bruno@clisp.org>
65896
65897         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65898         memory when realloc fails.
65899
65900 2004-04-19  Jim Meyering  <jim@meyering.net>
65901
65902         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65903         now that readutmp.c may call `free (0)'.
65904
65905 2004-04-19  Bruno Haible  <bruno@clisp.org>
65906
65907         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65908         * m4/inttypes_h.m4: Likewise.
65909         * m4/stdint_h.m4: Likewise.
65910         * m4/intmax_t.m4: Likewise.
65911         * m4/uintmax_t.m4: Likewise.
65912
65913 2004-04-18  Jim Meyering  <jim@meyering.net>
65914
65915         * m4/prereq.m4: Don't forbid jm_ prefix.
65916
65917         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65918         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65919         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65920         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65921         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65922         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65923         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65924         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65925         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65926         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65927         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65928         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65929         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65930         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65931         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65932         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65933         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65934         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65935         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65936
65937 2004-04-18  Jim Meyering  <jim@meyering.net>
65938
65939         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65940         failure, don't leak memory and do call END_UTMP_ENT.
65941
65942 2004-04-16  Jim Meyering  <jim@meyering.net>
65943
65944         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65945         coreutils' stat program.
65946         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65947
65948 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65949
65950         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65951         C89.
65952         (CHAR_BIT): Remove, since we assume C89.
65953         Include <stdint.h> if available, as per current Autoconf CVS advice.
65954
65955 2004-03-31  Jim Meyering  <jim@meyering.net>
65956
65957         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65958         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65959         * m4/xalloc.m4: Likewise.
65960
65961 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65962
65963         Merge from coreutils.
65964
65965         * m4/inttostr.m4: New file.
65966         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65967         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65968         Require gl_CLOCK_TIME.
65969         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65970
65971 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65972
65973         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65974         not bool, to be more consistent with Unix conventions.
65975         Suggested by Bruno Haible.
65976
65977         Merge from coreutils.
65978
65979         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65980         * lib/umaxtostr.c: New files.
65981
65982         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65983         the usual <time.h> dance.
65984         (get_date): Change signature to support fractional time stamps.
65985         All callers changed.
65986         * lib/getdate.y: Include "getdate.h" first, as we can now
65987         assume C89 and don't need to worry about 'const'.
65988         Similarly, include "unlocked-io.h" near start, not in middle.
65989         Include <limits.h>.
65990         (textint.value): Use long int rather than int.
65991         (textint.digits): Use size_t rather than int.
65992         (BILLION, LOG10_BILLION): New constants.
65993         (parser_control): New member rel_ns.  Members day_ordinal,
65994         time_zone, month, day, hour, minutes, rel_year, rel_month,
65995         rel_day, rel_hour, rel_minutes, rel_seconds
65996         are now long int, not int.  Member seconds is now struct timespec,
65997         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65998         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65999         not int.
66000         (%union.intval): Now long int, not int.
66001         New member timespec.
66002         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
66003         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
66004         (spec): Now is a timespec or an item list.
66005         (timespec, items): New nonterminals.
66006         (time, rel, relunit, number, get_date):
66007         Add support for fractional seconds.
66008         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
66009         (gmtime, localtime, mktime): Remove decls; not needed with C89.
66010         (to_hour): First arg is now long int, not int.
66011         (to_year): Returns long int, not int.
66012         Don't treat year -70 like 70.
66013         (tm_diff): Returns long int, not int.
66014         (lookup_word): Use bool instead of int when appropriate.
66015         (yylex): Use size_t for count, not int.
66016         Detect overflow when parsing large integer constants.
66017         Add support for fractions.
66018         (get_date): Make pointers 'const' if possible.
66019         Use more-portable code to detect integer overflow.
66020         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
66021         Don't use ctime; it's not reliable if the year has >4 digits.
66022
66023         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
66024         This is for compatibility with BSD.
66025
66026         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
66027         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
66028         From coreutils' system.h.
66029
66030         * lib/userspec.c: Don't include "posixver.h".
66031         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
66032         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
66033         compatible extension.  Simplify code by removing a boolean int
66034         that was always nonzero if a string was nonnull.
66035
66036 2004-03-30  Jim Meyering  <jim@meyering.net>
66037
66038         Merge from coreutils.
66039
66040         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
66041         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
66042         on some systems one must include <grp.h> before it.
66043         Reported by Christian Krackowizer.
66044
66045 2004-03-30  Jim Meyering  <jim@meyering.net>
66046
66047         Merge from coreutils.
66048
66049         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
66050
66051         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
66052         an empty input stream.
66053
66054         * lib/readtokens.c: Include <stdbool.h>.
66055         (readtoken): Use `size_t' rather than int/long.
66056         All callers adjusted.
66057         Use `bool' rather than `int' where appropriate.
66058         Use memset rather than an explicit loop.
66059         Use x2nrealloc rather than xrealloc.
66060         Allow the use of `\0' as a delimiter.
66061         (readtokens): Likewise.
66062         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
66063
66064 2004-03-30  Jim Meyering  <jim@meyering.net>
66065
66066         * m4/realloc.m4: Remove file, since now it does no more than
66067         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
66068         the `configure.ac' section of module/realloc.
66069         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
66070
66071 2004-03-30  Bruno Haible  <bruno@clisp.org>
66072
66073         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
66074         nonnull.
66075
66076 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66077
66078         Merge changes to getloadavg.c from coreutils and Emacs.
66079
66080         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
66081         Define to an expression, not to the empty string.
66082         Include cloexec.h and xalloc.h.
66083         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
66084         Use set_cloexec_flag rather than rolling our own.
66085         * lib/cloexec.c, lib/cloexec.h: New files.
66086
66087 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66088
66089         * m4/cloexec.m4: New file.
66090
66091 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66092
66093         * lib/getopt.h: Sync with libc CVS.
66094
66095 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66096             Bruno Haible  <bruno@clisp.org>
66097
66098         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
66099         mbswidth.
66100
66101 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66102             Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/mbswidth.h: Include <wchar.h> only if
66105         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
66106         <wchar.h>.
66107         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
66108
66109 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66110
66111         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
66112         Sync with libc CVS.
66113         * lib/getopt_int.h: New file, also synced from libc.
66114
66115 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66116
66117         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
66118         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
66119         Bring back getopt.c, getopt.h, getopt1.c.
66120
66121 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66122
66123         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
66124         All uses changed.  Check for sa_sigaction member; this fixes
66125         a bug first reported by Jason Andrade in
66126         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66127
66128 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66129
66130         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
66131         '#if' expressions.  Unlike the code it replaces, it does not
66132         depend on (defined _SC_PAGESIZE).  However, it does depend on
66133         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
66134         first reported by Jason Andrade in
66135         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66136
66137 2004-02-25  Simon Josefsson  <jas@extundo.com>
66138
66139         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
66140
66141 2004-02-25  Simon Josefsson  <jas@extundo.com>
66142
66143         * lib/strdup.h: New file.
66144         * lib/strdup.c: Include it.
66145         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
66146         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
66147
66148 2004-02-23  Karl Berry  <karl@gnu.org>
66149
66150         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
66151         (from fencepost.gnu.org:/gd/gnuorg).
66152
66153 2004-02-23  Karl Berry  <karl@gnu.org>
66154
66155         * config/srclistvars.sh (GNUORG) [karl]: redefine.
66156         * config/srclist.txt: add maintain/standards documents.
66157
66158 2004-02-18  Bruno Haible  <bruno@clisp.org>
66159
66160         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
66161         Reported by Derek Robert Price <derek@ximbiot.com>.
66162
66163 2004-02-16  Karl Berry  <karl@gnu.org>
66164
66165         * config/mkinstalldirs, install-sh: update from automake.
66166
66167 2004-02-06  Karl Berry  <karl@gnu.org>
66168
66169         * m4/po.m4: update from gettext 0.14.1.
66170
66171 2004-02-06  Karl Berry  <karl@gnu.org>
66172
66173         * lib/config.charset: update from gettext 0.14.1.
66174
66175 2004-02-05  Paul Eggert  <eggert@twinsun.com>
66176
66177         Add comments and code, prompted by suggestions from Bruno Haible
66178         for sh-quote.
66179         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
66180         describing the enum quoting_style values.
66181         * lib/quotearg.c (quotearg_alloc): New function.
66182         (quotearg_buffer_restyled): Treat lone { and } as special.
66183         Treat = as special.  Work around bug with older shells
66184         that "see" a '\' that is really the 2nd byte of a multibyte char.
66185         Quote empty string with shell_quoting_style.
66186
66187 2004-02-03  Bruno Haible  <bruno@clisp.org>
66188
66189         * m4/pipe.m4: New file, from GNU gettext.
66190
66191 2004-02-03  Bruno Haible  <bruno@clisp.org>
66192
66193         * lib/pipe.h: New file, from GNU gettext.
66194         * lib/pipe.c: New file, from GNU gettext.
66195
66196 2004-01-27  Bruno Haible  <bruno@clisp.org>
66197
66198         * m4/execute.m4: New file, from GNU gettext.
66199
66200 2004-01-27  Bruno Haible  <bruno@clisp.org>
66201
66202         * lib/execute.h: New file, from GNU gettext.
66203         * lib/execute.c: New file, from GNU gettext.
66204         * lib/w32spawn.h: New file, from GNU gettext.
66205
66206 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66207
66208         Merge from diffutils.
66209
66210         * lib/file-type.c (file_type): Add typed memory objects.
66211         * lib/file-type.h (S_TYPEISTMO): New macro.
66212
66213         * lib/c-stack.h (c_stack_action): Remove argv argument.
66214         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
66215         (die): Don't calculate message unless segv_action returns.
66216         (get_stack_location, min_address_from_argv, max_address_from_argv,
66217         volatile stack_base, volatile_stack_size): Remove.
66218         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
66219         that every segmentation violation is a stack overflow.  (Ouch!)
66220         See Debian bug 136249 (still outstanding) for more info about why
66221         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
66222
66223 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66224
66225         Exit-status fix from coreutils.
66226
66227         Use exit_failure consistently in place of EXIT_FAILURE,
66228         so that program exit statuses are consistent on failure.
66229
66230         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
66231         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
66232         * lib/argmatch.h: Comment fix to match the above.
66233         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
66234         Now a macro referring to exit_failure, instead of a separate
66235         variable.  Include "exitfail.h" to get it.
66236         * lib/xstrtol.h: Include "exitfail.h".
66237         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
66238
66239         * lib/long-options.c (parse_long_options): Use prototype
66240         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
66241         for clarity.
66242
66243 2004-01-21  Jim Meyering  <jim@meyering.net>
66244
66245         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
66246         so as not to conflict with a different-sized __mktime_internal
66247         function in GNU libc.
66248         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
66249         Problem building statically-linked `ls' reported by Michael Brunnbauer.
66250
66251 2004-01-20  Karl Berry  <karl@gnu.org>
66252
66253         * config/config.guess: update from config.
66254
66255         * config/srclistvars.sh: GNUWWWLICENSES for karl.
66256
66257 2004-01-20  Bruno Haible  <bruno@clisp.org>
66258
66259         Safer stack allocation.
66260         * lib/setenv.c: Include allocsa.h.
66261         (alloca): Remove fallback definition.
66262         (freea): Remove macro.
66263         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
66264         instead of freea.
66265
66266 2004-01-20  Bruno Haible  <bruno@clisp.org>
66267
66268         * m4/eealloc.m4: New file, from GNU gettext.
66269
66270 2004-01-20  Bruno Haible  <bruno@clisp.org>
66271
66272         * m4/allocsa.m4: New file, from GNU gettext.
66273
66274 2004-01-20  Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/xallocsa.h: New file, from GNU gettext.
66277         * lib/xallocsa.c: New file, from GNU gettext.
66278
66279 2004-01-20  Bruno Haible  <bruno@clisp.org>
66280
66281         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
66282
66283 2004-01-20  Bruno Haible  <bruno@clisp.org>
66284
66285         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
66286         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
66287         specially.
66288
66289 2004-01-20  Bruno Haible  <bruno@clisp.org>
66290
66291         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
66292         patch.
66293
66294 2004-01-20  Bruno Haible  <bruno@clisp.org>
66295
66296         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
66297
66298 2004-01-20  Bruno Haible  <bruno@clisp.org>
66299
66300         * lib/eealloc.h: New file.
66301
66302 2004-01-20  Bruno Haible  <bruno@clisp.org>
66303
66304         * lib/binary-io.h: Avoid warnings on Cygwin.
66305
66306 2004-01-20  Bruno Haible  <bruno@clisp.org>
66307
66308         * lib/allocsa.h: New file, from GNU gettext.
66309         * lib/allocsa.c: New file, from GNU gettext.
66310
66311 2004-01-18  Karl Berry  <karl@gnu.org>
66312
66313         * doc/gpl.texi, doc/lgpl.texi: new files.
66314
66315 2004-01-18  Karl Berry  <karl@gnu.org>
66316
66317         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
66318         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
66319
66320 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66321
66322         Merge from coreutils.
66323
66324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
66325         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
66326         (gl_DEFAULT_POSIX2_VERSION): Move
66327         the documentation from 'configure' into 'config.hin',
66328         so that 'configure --help' isn't burdened by it and
66329         we don't have to worry about its formatting there.
66330         Reword the documentation so that it's more succinct
66331         and can be run together into a single paragraph.
66332         * m4/same.m4 (gl_SAME): Check for pathconf.
66333
66334 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66335
66336         Merge from coreutils.
66337
66338         * lib/posixver.c: Include posixver.h.
66339
66340         * lib/same.c: Include <stdbool.h>, <limits.h>.
66341         (_POSIX_NAME_MAX): Define if not defined.
66342         (MIN): New macro.
66343         (same_name): If file names are silently truncated, report
66344         that the file names are the same if they are the same after
66345         the silent truncation.
66346
66347         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
66348         conversion function.
66349         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
66350         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
66351         longer needed.
66352
66353 2004-01-15  Jim Meyering  <jim@meyering.net>
66354
66355         Merge from coreutils.
66356
66357         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
66358         if no library is required.
66359         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
66360         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
66361         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
66362         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
66363         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
66364         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
66365         value, $ac_cv_search_crypt, if it's "none required".
66366         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
66367         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
66368         not gl_FUNC_GETLOADAVG.
66369         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
66370         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
66371
66372 2004-01-15  Jim Meyering  <jim@meyering.net>
66373
66374         Merge from coreutils.
66375
66376         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
66377         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
66378         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
66379
66380         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
66381         optional configure-time default.
66382
66383         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66384
66385         * lib/xreadlink.c (xreadlink): Correct outdated comment.
66386
66387 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
66388
66389         Merge from coreutils.
66390
66391         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
66392         value, $ac_cv_search_nanosleep, if it's "none required".
66393
66394 2004-01-14  Paul Eggert  <eggert@twinsun.com>
66395
66396         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
66397         with like-named macro in fnmatch.c.
66398         (EXT): Use an internal constant instead.
66399
66400         Merge fnmatch patches from glibc.
66401         * lib/fnmatch.c (mbsinit): Remove define.
66402         Add libc_hidden_ver (__fnmatch, fnmatch).
66403         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
66404         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
66405
66406 2004-01-14  Karl Berry  <karl@gnu.org>
66407
66408         * config/install-sh: update from automake.
66409
66410 2004-01-13  Karl Berry  <karl@gnu.org>
66411
66412         * config/install-sh: update from automake.
66413
66414 2004-01-09  Karl Berry  <karl@gnu.org>
66415
66416         * config/install-sh: update from automake.
66417
66418 2004-01-05  Karl Berry  <karl@gnu.org>
66419
66420         * config/config.{sub,guess}: update from config.
66421
66422 2003-12-31  Karl Berry  <karl@gnu.org>
66423
66424         * config/depcomp: update from automake.
66425
66426 2003-12-14  Karl Berry  <karl@gnu.org>
66427
66428         * lib/config.charset: update from gettext-runtime.
66429
66430 2003-12-03  Paul Eggert  <eggert@twinsun.com>
66431
66432         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
66433         Bug reported by Alfred M. Szmidt.
66434
66435 2003-12-03  Bruno Haible  <bruno@clisp.org>
66436
66437         * m4/gettext.m4: Upgrade from gettext-0.13.
66438         * m4/po.m4: Upgrade from gettext-0.13.
66439         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
66440         * m4/intmax.m4: New file, from gettext-0.13.
66441         * m4/printf-posix.m4: New file, from gettext-0.13.
66442
66443 2003-11-29  Karl Berry  <karl@gnu.org>
66444
66445         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
66446
66447 2003-11-25  Paul Eggert  <eggert@twinsun.com>
66448             Bruno Haible  <bruno@clisp.org>
66449
66450         * lib/printf-parse.h: Don't include sys/types.h.
66451         (ARG_NONE): New macro.
66452         (char_directive): Change type of *arg_index fields to size_t.
66453         * lib/printf-parse.c: Don't include sys/types.h.
66454         (SSIZE_MAX): Remove macro.
66455         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
66456         Remove unnecessary overflow check.
66457         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
66458         fields.
66459
66460 2003-11-25  Bruno Haible  <bruno@clisp.org>
66461
66462         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
66463
66464 2003-11-25  Bruno Haible  <bruno@clisp.org>
66465
66466         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
66467         gt_TYPE_SSIZE_T.
66468
66469 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66470
66471         * modules/alloca: Remove dependency on xalloc.
66472
66473 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66474
66475         * lib/alloca.c: Remove dependency on xalloc module.
66476         (xalloc_die): Remove.
66477         (memory_full) [!defined emacs]: New macro.
66478         [!defined emacs]: Don't include xalloc.h.
66479         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
66480         address arithmetic overflows.  Change datatypes a bit to avoid
66481         unnecessary casts.
66482
66483 2003-11-22  Jim Meyering  <jim@meyering.net>
66484
66485         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
66486         s/size/size_t/.
66487
66488 2003-11-21  Karl Berry  <karl@gnu.org>
66489
66490         * config/config.{sub,guess}: update from config.
66491
66492 2003-11-18  Karl Berry  <karl@gnu.org>
66493
66494         * config/config.{sub,guess}: update from config.
66495
66496         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
66497
66498 2003-11-17  Paul Eggert  <eggert@twinsun.com>
66499
66500         * README: Mention that S+T cannot overflow if S is the size of
66501         an existing object and T is sufficiently small.
66502
66503 2003-11-17  Jim Meyering  <jim@meyering.net>
66504
66505         On systems without utime and without a utimes function capable of
66506         dealing with a NULL struct utimbuf* argument, this utime replacement
66507         could -- in unusual circumstances -- leak a file descriptor.
66508         * lib/utime.c: Include <unistd.h> and <errno.h>.
66509         (utime_null): Be sure to close `fd' and to preserve errno.
66510         Reported by Geoff Collyer via Arnold Robbins.
66511
66512 2003-11-17  Bruno Haible  <bruno@clisp.org>
66513
66514         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
66515         (Depends-on): Add xsize.
66516
66517 2003-11-17  Bruno Haible  <bruno@clisp.org>
66518
66519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
66520
66521 2003-11-17  Bruno Haible  <bruno@clisp.org>
66522
66523         * lib/vasnprintf.c (alloca): Remove fallback definition.
66524         (freea): Remove definition.
66525         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
66526         Reported by Paul Eggert.
66527
66528 2003-11-16  Paul Eggert  <eggert@twinsun.com>
66529             Bruno Haible  <bruno@clisp.org>
66530
66531         Protect against address arithmetic overflow.
66532         * lib/printf-args.h: Include stddef.h.
66533         (arguments): Change type of field 'count' to size_t.
66534         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
66535         'unsigned int' where appropriate.
66536         * lib/printf-parse.h: Include sys/types.h.
66537         (char_directive): Change type of *arg_index fields to ssize_t.
66538         (char_directives): Change type of fields 'count', max_*_length to
66539         size_t.
66540         * lib/printf-parse.c: Include sys/types.h and xsize.h.
66541         (SSIZE_MAX): Define fallback value.
66542         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
66543         instead of 'int' where appropriate. Check a_allocated, d_allocated
66544         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
66545         * lib/vasnprintf.c: Include xsize.h.
66546         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
66547         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
66548         overflow. Avoid wraparound when converting a width or precision from
66549         decimal to binary.
66550
66551 2003-11-16  Bruno Haible  <bruno@clisp.org>
66552
66553         Update from GNU gettext.
66554         * lib/printf-parse.c: Generalize to it can be compiled for wide
66555         strings.
66556         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
66557         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
66558         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
66559         SNPRINTF): New macros.
66560         Don't include <alloca.h> if the file is used inside libintl.
66561         (local_wcslen): New function, for Solaris 2.5.1.
66562         (VASNPRINTF): Use it instead of wcslen.
66563
66564 2003-11-16  Bruno Haible  <bruno@clisp.org>
66565
66566         * lib/xsize.h (xmax): New function.
66567         (xsum, xsum3, xsum4): Declare as "pure" functions.
66568
66569 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66570
66571         * modules/xalloc (Files): Undo latest change, since xalloc.h
66572         no longer needs SIZE_MAX or PTRDIFF_MAX.
66573
66574 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66575
66576         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66577         gl_PTRDIFF_MAX.
66578
66579 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66580
66581         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66582         "return", to pacify some unknown compiler.  Problem reported
66583         by Joerg Schilling.
66584
66585 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66586
66587         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66588         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66589         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66590         heuristic is just as accurate as far as we know, and it removes a
66591         dependency on size_max.m4 and ptrdiff_max.m4.
66592
66593 2003-11-11  Bruno Haible  <bruno@clisp.org>
66594
66595         * modules/xsize (Files): Add m4/size_max.m4.
66596         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66597
66598 2003-11-11  Bruno Haible  <bruno@clisp.org>
66599
66600         * m4/size_max.m4: New file.
66601         * m4/ptrdiff_max.m4: New file.
66602         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66603         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66604         (gl_XALLOC): Invoke it.
66605
66606 2003-11-11  Bruno Haible  <bruno@clisp.org>
66607
66608         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
66609         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
66610         defined.
66611
66612 2003-11-10  Paul Eggert  <eggert@twinsun.com>
66613
66614         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
66615         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
66616         rejected some allocations of exactly SIZE_MAX - 2 bytes.
66617         From Bruno Haible.
66618         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
66619         not (size_t) -1, since it's defined here.
66620
66621 2003-11-09  Karl Berry  <karl@gnu.org>
66622
66623         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
66624
66625 2003-11-06  Paul Eggert  <eggert@twinsun.com>
66626
66627         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
66628         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
66629         Reject sizes of exactly SIZE_MAX bytes.
66630         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
66631         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
66632
66633 2003-11-05  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/xsize.h: Include limits.h, to avoid a possible collision with
66636         SIZE_MAX defined in <limits.h> on Solaris.
66637
66638 2003-11-04  Jim Meyering  <jim@meyering.net>
66639
66640         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
66641         variable names, rather than @VAR@.
66642         * modules/poll: Likewise.
66643
66644 2003-11-04  Bruno Haible  <bruno@clisp.org>
66645
66646         * modules/xsize: New file.
66647         * modules/linebreak: Depend on xsize.
66648         * MODULES.html.sh (func_all_modules): Add xsize.
66649
66650 2003-11-04  Bruno Haible  <bruno@clisp.org>
66651
66652         * m4/xsize.m4: New file.
66653
66654 2003-11-04  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/xsize.h: New file.
66657         * lib/linebreak.c: Include xsize.h.
66658         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
66659         argument for overflow.
66660         Suggested by Paul Eggert.
66661
66662 2003-11-03  Karl Berry  <karl@gnu.org>
66663
66664         * config/config.{guess,sub}: update from config.
66665
66666 2003-11-03  Jim Meyering  <jim@meyering.net>
66667
66668         * modules/userspec (lib_SOURCES): Add userspec.h.
66669         (Include): Add "userspec.h".
66670         Improve description.
66671
66672 2003-11-03  Jim Meyering  <jim@meyering.net>
66673
66674         * lib/userspec.c: Include "userspec.h".
66675         * lib/userspec.h: New file.
66676
66677 2003-11-03  Bruno Haible  <bruno@clisp.org>
66678
66679         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
66680
66681 2003-11-03  Bruno Haible  <bruno@clisp.org>
66682
66683         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
66684         available, to avoid (extremely rare) race condition.
66685         Suggested by Paul Eggert.
66686
66687 2003-11-02  Karl Berry  <karl@gnu.org>
66688
66689         * config/srclist.txt (vasprintf.c): sync broken, sigh.
66690
66691 2003-10-31  Paul Eggert  <eggert@twinsun.com>
66692
66693         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
66694         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
66695         (read_filesystem_list): Set and use me_type_malloced.
66696         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
66697         whatever the type happens to be), for brevity and consistency.
66698         Check for size calculation overflow on Alphas running OSF/1.
66699
66700 2003-10-31  Jim Meyering  <jim@meyering.net>
66701
66702         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
66703
66704         * lib/linebuffer.c: Include <string.h> for declaration of memset.
66705
66706 2003-10-30  Paul Eggert  <eggert@twinsun.com>
66707             Bruno Haible  <bruno@clisp.org>
66708
66709         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
66710         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
66711
66712 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
66715         netbsd*-gnu*.  Suggested by Robert Millan.
66716
66717 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66718
66719         * modules/group-member: Depend on stdbool.
66720
66721 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66722
66723         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
66724
66725 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66726
66727         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
66728         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
66729         after the 'gnu' in these cases.  This fixes some bugs in the
66730         previous change, and is based on suggestions by Robert Millan.
66731
66732 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66733
66734         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66735         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66736         no longer needed.
66737         * lib/quotearg.c (quotearg_n_options): Use it.
66738         * lib/group-member.c: Include <stdbool.h>.
66739         (free_group_info): Arg is now const *; don't free arg.
66740         (get_group_info): Now returns bool and accepts struct group_info *,
66741         rather than returning a malloc'ed struct group_info *.
66742         All uses changed.  Check for overflow in internal size calculation.
66743
66744         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66745         rather than xmalloc/xrealloc.
66746         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66747         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66748         conformance bug: the old code used a pointer after freeing the
66749         storage that it addressed.
66750         * lib/hash.c (hash_initialize): Simplify the code by using
66751         xalloc_oversized rather than doing it by hand.
66752         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66753         the buffer preserved.  Use free and xmalloc instead.
66754         * lib/quotearg.c (quotearg_n_options): Likewise.
66755         Use a simpler test for size overflow.  Don't use xalloc_oversized
66756         because unsigned int might be wider than size_t (!); this suggests
66757         that we should switch from unsigned int to size_t for slot numbers.
66758
66759 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66760
66761         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66762         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66763         NetBSD kernels.  Requested by Richard Stallman.
66764
66765 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66766
66767         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66768         to allocate the returned structure.  Do not allocate a subarray,
66769         as x2nrealloc will do that.
66770         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66771         instead of xnrealloc.
66772         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66773
66774 2003-10-27  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/stdbool_.h: Better support for BeOS.
66777
66778 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66779
66780         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66781         now uses inline.
66782
66783 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66784
66785         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66786         callers that want to do their own size-overflow checking.  Include
66787         <stdbool.h>, since xalloc_oversized returns bool.
66788         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66789         to use xalloc_oversized.
66790
66791         Add two functions x2realloc, x2nrealloc, for programs that grow
66792         arrays dynamically by doubling their sizes.
66793         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66794         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66795         New functions.
66796
66797         Port to C99 semantics for 'inline' of external functions.
66798         Bug reported by Bruno Haible.
66799         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66800         with the old contents of xnmalloc.
66801         (xnmalloc, xmalloc): Use it.
66802         (xnrealloc_inline): New static inline function,
66803         with the old contents of xnrealloc.
66804         (xnrealloc, xrealloc): Use it.
66805
66806         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66807         that.
66808
66809 2003-10-26  Karl Berry  <karl@gnu.org>
66810
66811         * config/srclist.txt (COPYING.DOC): no longer available from
66812         /gd/gnuorg; don't know where the ultimate source is.
66813
66814 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66815
66816         Fix several address-calculation bugs in the hash modules,
66817         plus some minor code cleanup.
66818
66819         * lib/hash.h: Include <stdbool.h>, for bool.
66820         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66821         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66822         hash_get_n_entries, hash_get_max_bucket_length,
66823         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66824         hash_rehash): Use size_t rather than unsigned.
66825         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66826         hash_get_n_buckets_used, hash_get_n_entries,
66827         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66828         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66829         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66830         Likewise.
66831         (SIZE_MAX): Define if not defined.
66832         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66833         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66834         hash_print):
66835         Use const * when possible.
66836         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66837         (check_tuning): Fix bug: if tuning parameters were very close to
66838         0 or 1, rounding errors could have caused subscript violations.
66839         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66840         (hash_initialize): Add 'fail:' label
66841         to free table and return NULL, and use it to simplify code.
66842         Use calloc rather than clearing the storage ourself.
66843         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66844         buffer size calculations.
66845         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66846         Include <stddef.h>, for size_t.
66847         * lib/hash-pjw.c (hash_pjw): Likewise.
66848         Switch to method described by Bruno Haible.
66849         Include <limits.h>, for CHAR_BIT.
66850         (SIZE_BITS): New macro.
66851
66852 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66853
66854         * m4/getline.m4 (AM_FUNC_GETLINE):
66855         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66856         hosts.  Problem reported by Derek Robert Price in
66857         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66858         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66859         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66860
66861 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66862
66863         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66864         ceiling the allocation at NMAX bytes rather than silently
66865         discarding input bytes before NMAX is reached.  This makes
66866         a difference only if NMAX exceeds SIZE_MAX / 2.
66867
66868         * lib/obstack.c: Merge from glibc.
66869         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66870         Add libc_hidden_def (_obstack_newchunk).
66871         (_obstack_free) [! defined _LIBC]: Remove.
66872         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66873         a clone of the function body.
66874         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66875         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66876
66877         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66878         glibc.
66879         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66880         arg to memcpy.
66881
66882         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66883         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66884         Don't use lvalue casts, as GCC plans to remove support for them
66885         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66886         was also present in the non-GCC version, indicating that this
66887         code had always been buggy and had never been widely used.
66888         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66889         Use the fast variant of each macro, rather than copying the
66890         definiens of the fast variant; that way, we'll be more likely to
66891         catch future bugs in the fast variants.
66892
66893 2003-10-20  Bruno Haible  <bruno@clisp.org>
66894
66895         * modules/wait-process: New file.
66896         * MODULES.html.sh (func_all_modules): Add wait-process.
66897
66898 2003-10-20  Bruno Haible  <bruno@clisp.org>
66899
66900         * m4/wait-process.m4: New file.
66901
66902 2003-10-20  Bruno Haible  <bruno@clisp.org>
66903
66904         * lib/wait-process.h: New file, from GNU gettext.
66905         * lib/wait-process.c: New file, from GNU gettext.
66906
66907 2003-10-19  Jim Meyering  <jim@meyering.net>
66908
66909         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66910         HPUX 10.20.
66911
66912 2003-10-18  Karl Berry  <karl@gnu.org>
66913
66914         * config/config.guess: update from config.
66915
66916 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66917
66918         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66919         (getgroups): First arg is int, not size_t.
66920         Don't let 'free' mangle errno.
66921
66922 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66923
66924         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66925
66926 2003-10-16  Karl Berry  <karl@gnu.org>
66927
66928         * config/config.{guess,sub}: update from config.
66929
66930 2003-10-16  Jim Meyering  <jim@meyering.net>
66931
66932         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66933         memcpy.
66934
66935 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66936
66937         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66938         (SIZE_MAX): Remove.
66939         (new_exclude, add_exclude_file): Initial size no longer needs to
66940         be a power of 2.
66941         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66942         our own address arithmetic overflow checking.
66943
66944         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66945         (fnmatch): Do not alloca more than 2000 wide characters;
66946         instead, use malloc for large buffers.
66947         Check for address arithmetic overflow, and return -1
66948         with errno set to ENOMEM in that case.
66949         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66950         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66951         instead, return -1.  Check for address arithmetic overflow.
66952
66953 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66954
66955         Handle invalid suffixes and overflow independently, so that
66956         callers can treat them independently as needed.  Fix some bugs in
66957         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66958         suffix for a human-readable blocksize.  The major caller-visible
66959         change is the addition of a new
66960         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66961         that both overflow and suffix chars were found.
66962
66963         * lib/human.c (humblock): Don't check separately for invalid suffix
66964         char; that is xstrtoumax's job (now that its bug is fixed).
66965         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66966         INTMAX_MAX]: New macros.
66967         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66968         TYPE_MAXIMUM): New macros.
66969         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66970         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66971         if overflow occurs, as it's what __strtol does and it's more useful
66972         in practice.
66973         (__xstrtol): If __strtol reports some error other than ERANGE,
66974         reflect it to the caller as LONGINT_INVALID.  If it reports
66975         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66976         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66977         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66978         value.
66979         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66980         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66981         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66982         [defined UINTMAX_MAX]: New macros.
66983
66984 2003-10-14  Bruno Haible  <bruno@clisp.org>
66985
66986         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66987
66988 2003-10-14  Bruno Haible  <bruno@clisp.org>
66989
66990         * m4/sig_atomic_t: New file, from GNU gettext.
66991         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66992
66993 2003-10-14  Bruno Haible  <bruno@clisp.org>
66994
66995         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66996         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66997         Also use volatile where needed.
66998
66999 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67000
67001         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
67002         Change maintainer from Bruno Haible to 'all'.
67003
67004 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67005
67006         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
67007
67008 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67009
67010         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
67011         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
67012         and define in terms of the other primitives.
67013         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
67014         (SIZE_MAX): Define if not already defined.
67015         (array_size_overflow): New function.
67016         (xalloc_die): Abort instead of exiting if 'error' returns.
67017         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
67018         (xmalloc, xrealloc): Use them.
67019         (xcalloc): Check for address arithmetic overflow.
67020         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
67021         a bit faster than strcpy.
67022
67023 2003-10-10  Simon Josefsson  <jas@extundo.com>
67024
67025         * modules/argp (Depends-on): Add restrict and strcase.
67026
67027 2003-10-10  Simon Josefsson  <jas@extundo.com>
67028
67029         * m4/argp.m4: Add AC_C_INLINE.
67030
67031 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67032
67033         Merge getpass from libc, plus a few fixes.
67034
67035         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
67036         Include <stdbool.h>.
67037         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
67038         __fsetlocking to empty.
67039         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
67040         do include <bits/libc-lock.h>.
67041         Do not include <fcntl.h>; not needed.
67042         [_LIBC]: Include <wchar.h>.
67043         (NOTCANCEL_MODE): New macro.
67044         (flockfile, funlockfile) [_LIBC]: New macros.
67045         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
67046         [!_LIBC]: New macros.
67047         (call_fclose): New function.
67048         (getpass): Use it.  Save tty stream separately; this simplifies the
67049         code and makes it more reliable if stdin happens to equal stdout.
67050         Invoke __fsetlocking on tty.
67051         Handle thread cancellation if needed.
67052         Namespace cleanup (use __tcgetattr, __getline).
67053         Use bool for Booleans.
67054         [USE_IN_LIBIO]: Handle wide streams.
67055         [!_LIBC]: Unconditionally do the fseek, since we don't know what
67056         stream might go where.
67057
67058         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
67059         doesn't have to include <stdio.h> before us.
67060         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
67061         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
67062         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
67063         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
67064         if not declared, so that we can use getpass.c code from libc without
67065         rewriting it.
67066         (flockfile, ftrylockfile, funlockfile): New macros.
67067
67068 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67069
67070         * modules/getpass: Depend on stdbool.
67071
67072 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67073
67074         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
67075
67076 2003-10-07  Karl Berry  <karl@gnu.org>
67077
67078         * config/config.{guess,sub}: update from config.
67079
67080 2003-10-06  Jim Meyering  <jim@meyering.net>
67081             Bruno Haible  <bruno@clisp.org>
67082
67083         This lets translators provide better translations for the
67084         "Written by ..." part of --version output.
67085         * lib/version-etc.h: Include stdarg.h.
67086         (version_etc_copyright): Declare as readonly.
67087         (version_etc): Make this function variadic with a NULL-terminated list
67088         of author name strings.
67089         (version_etc_va): New declaration.
67090         * lib/version-etc.c: Include stdarg.h, stdlib.h.
67091         (version_etc_copyright): Declare as readonly.
67092         (version_etc_va): New function. Provide a different translatable string
67093         for each possible number of authors < 10. Abbreviate when there are 10
67094         authors or more.
67095         (version_etc): Make this function variadic. Call version_etc_va.
67096         Suggestion from Gary V. Vaughan.
67097
67098         * lib/long-options.h (parse_long_options): Change prototype: the
67099         authors string is moved to the end and becomes variadic.
67100         * lib/long-options.c: Include stdarg.h.
67101         (parse_long_options): Make this function variadic, too.
67102         Call version_etc_va, not version_etc.
67103
67104 2003-10-06  Bruno Haible  <bruno@clisp.org>
67105
67106         * modules/version-etc-2: Remove file.
67107         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
67108
67109 2003-10-06  Bruno Haible  <bruno@clisp.org>
67110
67111         * modules/fatal-signal: New file.
67112         * MODULES.html.sh (func_all_modules): Add fatal-signal.
67113
67114 2003-10-06  Bruno Haible  <bruno@clisp.org>
67115
67116         * m4/fatal-signal.m4: New file.
67117         * m4/signalblocking.m4: New file, from GNU gettext.
67118
67119 2003-10-06  Bruno Haible  <bruno@clisp.org>
67120
67121         * lib/version-etc-2.h: Remove file.
67122         * lib/version-etc-2.c: Remove file.
67123
67124 2003-10-06  Bruno Haible  <bruno@clisp.org>
67125
67126         * lib/fatal-signal.h: New file, from GNU gettext.
67127         * lib/fatal-signal.c: New file, from GNU gettext.
67128
67129 2003-10-05  Paul Eggert  <eggert@twinsun.com>
67130
67131         * README: Rework advice for preventing empty .o files.
67132         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
67133         not <sys/types.h>.
67134
67135 2003-10-04  Karl Berry  <karl@gnu.org>
67136
67137         * lib/argp*: update from libc.
67138
67139 2003-10-04  Karl Berry  <karl@gnu.org>
67140
67141         * config/config.{guess,sub}: update from config.
67142
67143 2003-10-02  Bruno Haible  <bruno@clisp.org>
67144
67145         * modules/lchown (Include): Add lchown.h.
67146         * modules/time_r (Include): Use "..." syntax.
67147         * modules/xgetdomainname (Include): Add xgetdomainname.h.
67148
67149 2003-10-01  Simon Josefsson  <jas@extundo.com>
67150
67151         * MODULES.html.sh (func_all_modules): Move gethostname from section
67152         'based on' to section 'lacking' POSIX:2001.
67153
67154 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
67155
67156         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
67157         to output mode on the same stream.
67158
67159 2003-09-29  Paul Eggert  <eggert@twinsun.com>
67160
67161         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
67162         Fix arg typo in previous patch.
67163
67164 2003-09-28  Jim Meyering  <jim@meyering.net>
67165
67166         * lib/error.c: Correct cpp indentation.
67167
67168 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67169
67170         * modules/free: New file.
67171
67172 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67173
67174         * m4/free.m4: New file.
67175
67176 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67177
67178         * lib/minmax.h (MIN, MAX)
67179         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
67180         Omit the special code that used __typeof__, since we worry that
67181         it could be more trouble than it's worth.  See:
67182         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
67183         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
67184
67185         * lib/free.c: New file.
67186
67187 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
67188
67189         Trivial fixes to Makefile.am parts of module listings.
67190         * modules/strstr: Append strstr.h to lib_SOURCES.
67191         * modules/strcase: Likewise, for strcase.h.
67192
67193 2003-09-27  Karl Berry  <karl@gnu.org>
67194
67195         * config/mkinstalldirs: update from automake.
67196
67197 2003-09-26  Paul Eggert  <eggert@twinsun.com>
67198
67199         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
67200         (error_tail): Do not loop, reallocating temporary buffer, since
67201         the output cannot contain more wide characters than the input
67202         contains bytes, the size must be big enough already.  This avoids
67203         one potential size overflow calculation.  Check for size overflow
67204         when calculating temporary buffer size.  Free temporary buffer
67205         when done, if it was allocated with malloc; this plugs a memory
67206         leak.  Remove casts from void * to pointers, that are no longer
67207         needed now that we're assuming C89 or better.
67208
67209         Merge error changes from glibc.
67210
67211         * lib/error.c, error.h: Update copyright notice header to match glibc.
67212         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
67213         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
67214         Disable cancellation while printing error.
67215         * lib/error.h: Prepend __ to parameter names.
67216
67217 2003-09-26  Jim Meyering  <jim@meyering.net>
67218
67219         * lib/error.c (error_tail): Move some declarations
67220         into inner scope where the local variables are used.
67221
67222 2003-09-26  Bruno Haible  <bruno@clisp.org>
67223
67224         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
67225         stpncpy().
67226         Don't define stpncpy through config.h; it's now done through stpncpy.h.
67227
67228 2003-09-26  Bruno Haible  <bruno@clisp.org>
67229
67230         * lib/stpncpy.h (gnu_stpncpy): New declaration.
67231         (stpncpy): Define as alias for gnu_stpncpy.
67232         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
67233
67234 2003-09-25  Simon Josefsson  <jas@extundo.com>
67235
67236         * lib/xgetdomainname.h: New file.
67237         * lib/xgetdomainname.c: New file.
67238
67239 2003-09-25  Simon Josefsson  <jas@extundo.com>
67240             Bruno Haible  <bruno@clisp.org>
67241
67242         * modules/getdomainname: New file.
67243         * modules/xgetdomainname: New file.
67244         * MODULES.html.sh (func_all_modules): Add getdomainname,
67245         xgetdomainname.
67246
67247 2003-09-25  Simon Josefsson  <jas@extundo.com>
67248             Bruno Haible  <bruno@clisp.org>
67249
67250         * m4/getdomainname.m4: New file.
67251
67252 2003-09-25  Simon Josefsson  <jas@extundo.com>
67253             Bruno Haible  <bruno@clisp.org>
67254
67255         * lib/getdomainname.h: New file.
67256         * lib/getdomainname.c: New file.
67257
67258 2003-09-25  Karl Berry  <karl@gnu.org>
67259
67260         * lib/argp-fmtstream.c, argp-help.c: update from libc.
67261
67262 2003-09-25  Karl Berry  <karl@gnu.org>
67263
67264         * config/install-sh: update from automake.
67265
67266 2003-09-25  Bruno Haible  <bruno@clisp.org>
67267
67268         * modules/version-etc-2: New file, from modules/version-etc with
67269         modifications.
67270         * MODULES.html.sh (func_all_modules): Add version-etc-2.
67271
67272 2003-09-25  Bruno Haible  <bruno@clisp.org>
67273
67274         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
67275         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
67276
67277 2003-09-24  Simon Josefsson  <jas@extundo.com>
67278
67279         * modules/xgethostname: Add xgethostname.h.
67280
67281 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67282
67283         * lib/linebuffer.c (freebuffer): Don't free the argument, just
67284         the buffer associated with the argument.  Bug reported by
67285         Simon Josefsson.
67286
67287 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67288
67289         * README: Document assumptions that 'int' is at least 32 bits
67290         wide, that integer arithmetic is 2's complement without overflow,
67291         that there are no holes in integer values, that adding sizes of
67292         two nonoverlapping objects can't overflow, and that all-bits-zero
67293         yields scalar zero.  Fix spelling and capitalization typos.
67294
67295 2003-09-19  Karl Berry  <karl@gnu.org>
67296
67297         * lib/argp.h: update from libc.
67298
67299 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67300
67301         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
67302         to avoid spurious warnings like "AC_RUN_IFELSE was called before
67303         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
67304
67305 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67306
67307         * gnulib-tool: Use "test -h", not "test -L", for portability
67308         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
67309         (tags_regexp): Remove, since \| doesn't conform to POSIX.
67310         (sed_extract_prog): Issue s commands one-by-one, rather than
67311         using \| in one s command.
67312
67313 2003-09-16  Paul Eggert  <eggert@twinsun.com>
67314
67315         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
67316         input error, instead of returning NULL the next time we are called
67317         (and therefore losing track of errno).
67318
67319 2003-09-16  Bruno Haible  <bruno@clisp.org>
67320
67321         * gnulib-tool (func_create_testdir): Warn about duplicated
67322         dependencies.
67323
67324 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67325
67326         * modules/argmatch, modules/fatal, modules/obstack,
67327         modules/xalloc, modules/xgethostname: Sort dependencies by
67328         importance, not alphabetically.
67329
67330 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67331
67332         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
67333         fails, so that the caller gets the proper errno.
67334
67335         * lib/readutmp.c (read_utmp): Likewise.
67336         Check for fstat error.  Close stream and free storage
67337         when failing.
67338
67339 2003-09-14  Karl Berry  <karl@gnu.org>
67340
67341         * config/srclist.txt (strdup.c): disable for c89 changes.
67342
67343 2003-09-14  Jim Meyering  <jim@meyering.net>
67344
67345         * lib/getloadavg.c: Correct cpp indentation.
67346         * lib/strdup.c: Likewise.
67347         * lib/vasnprintf.c: Likewise.
67348
67349 2003-09-14  Bruno Haible  <bruno@clisp.org>
67350
67351         * modules/fwriteerror: New file.
67352         * MODULES.html.sh (func_all_modules): Add fwriteerror.
67353
67354 2003-09-14  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/fwriteerror.h: New file.
67357         * lib/fwriteerror.c: New file.
67358
67359 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67360
67361         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
67362         modules/xgethostname, modules/xalloc: Depend on exit.
67363
67364 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67365
67366         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
67367
67368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
67369         and AC_MINIX, too, so that their extensions are available.
67370
67371         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
67372         This macro has been superseded by gl_BACKUPFILE.
67373
67374         More patches to assume C89 or better.
67375
67376         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
67377
67378         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
67379         unconditionally.
67380         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
67381         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
67382         Include <string.h>, <stdlib.h> unconditionally.
67383         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
67384         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
67385         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
67386         headers or for string.h.
67387         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
67388         or strtoul.
67389
67390         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
67391         headers.
67392         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
67393         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67394         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
67395         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
67396         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67397         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
67398         memcpy, memset.
67399         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
67400         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
67401         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
67402         strtol.
67403         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
67404         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
67405         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
67406         strtoul.
67407
67408 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67409
67410         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
67411         * lib/obstack.c [!defined _LIBC]: Likewise.
67412         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
67413         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
67414         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
67415
67416         More changes to assume C89 or better.
67417
67418         * lib/error.c (error_tail): Assume vprintf.
67419
67420         * lib/argmatch.c (getenv): Remove decl.
67421         * lib/progreloc.c (get_full_program_name): Define via prototype.
67422         * lib/setenv.c (clearenv): Likewise.
67423         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
67424         needed.
67425         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
67426         (malloc, memcpy): Remove decls.
67427         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
67428         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
67429         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67430         (memcpy): Remove macro.
67431         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
67432         (__P): Remove.  All uses removed.
67433         (PTR): Remove.  All uses changed to void *.
67434         (CHAR_BIT, NULL): Remove.
67435         (spaces, zeros, memset_space, memset_zero)
67436         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
67437         Remove.
67438         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
67439         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
67440         Define with prototype.
67441         Remove now-unnecessary prototype decl.
67442         (extra_args_spec): Assume ANSI C.  All uses changed.
67443         (extra_args_spec_iso): Remove.
67444         (my_strftime, emacs_strftimeu): Define via prototype.
67445         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
67446         unconditionally.
67447         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
67448         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
67449         (strtoul, strtol): Remove decls.
67450         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
67451         LONG_MAX): Remove.
67452         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67453         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
67454         (LOCALE_PARAM_PROTO): New macro.
67455         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
67456         (INTERNAL (strtol), strtol): Define with a prototype.
67457         (PARAMS): Remove.  All uses removed.
67458         * lib/tempname.c: Include <string.h> unconditionally.
67459         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
67460         * lib/xgethostname.c (main): Define with a prototype.
67461         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
67462         Include <stdlib.h> unconditionally.
67463         (calloc, malloc, realloc, free): Remove decls.
67464         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
67465         Include <stdlib.h> unconditionally.  Sort include file names.
67466         (strtod): Remove.
67467         (xstrtod): Define with a prototype.
67468         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
67469         (strtol, strtoul): Remove decls.
67470
67471 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67472
67473         More patches to assume C89 or better.
67474         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
67475         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
67476         string.h, memchr, STDC_HEADERS.
67477
67478 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67479
67480         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
67481         Include <stdlib.h>, <string.h> unconditionally.
67482         Remove now-unnecessary cast to char *.
67483         * lib/strnlen.c: Include <string.h> unconditionally.
67484         * lib/yesno.c (yesno): Define with a prototype.
67485
67486 2003-09-11  Bruno Haible  <bruno@clisp.org>
67487
67488         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
67489
67490 2003-09-10  Jim Meyering  <jim@meyering.net>
67491
67492         * lib/error.c: Correct indentation of cpp directives.
67493
67494 2003-09-10  Bruno Haible  <bruno@clisp.org>
67495
67496         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
67497         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
67498         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
67499         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
67500         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
67501         <stdlib.h> and <string.h> checks.
67502         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
67503         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
67504
67505 2003-09-10  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/strcspn.c: Include <string.h> unconditionally.
67508         * lib/strpbrk.c: Include <string.h> unconditionally.
67509         * lib/strstr.c: Include <string.h> unconditionally.
67510         * lib/unicodeio.c: Include <string.h> unconditionally.
67511         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
67512         * lib/unsetenv.c: Likewise.
67513         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
67514         * lib/yesno.c: Include <stdlib.h> unconditionally.
67515         (rpmatch): Add prototype.
67516
67517 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67518
67519         More patches to assume C89 or better.
67520         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
67521         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
67522         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
67523         or for string.h.
67524         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
67525         stdlib.h.
67526         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
67527         C headers.
67528         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
67529         string.h.
67530         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
67531         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
67532         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
67533         or for string.h.
67534         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
67535         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
67536         C headers.
67537         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
67538         memcpy.
67539         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
67540         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
67541         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
67542         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
67543         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
67544         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
67545         string.h, free.
67546         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
67547         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
67548         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
67549         C headers, or for string.h.
67550         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
67551         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
67552         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
67553         headers, memory.h, stdlib.h, string.h, strings.h.
67554         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
67555         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
67556         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
67557         strchr.
67558         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
67559         headers, memory.h, string.h.
67560         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
67561         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
67562         free.
67563         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
67564         headers.
67565         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
67566         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
67567         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
67568         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
67569         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
67570
67571 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67572
67573         More K&R removal.
67574
67575         * lib/acosl.c (main): Use a prototype.
67576         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67577         tanl.c: Likewise.
67578
67579         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67580
67581         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67582         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67583         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67584         with a prototype.
67585         * lib/getopt.c (const): Remove macro.
67586         Include <string.h> unconditionally.
67587         (my_index): Remove; all uses changed to strchr.
67588         (strlen): Remove decl.
67589         (exchange): Remove forward decl; no longer needed.
67590         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67591         Define with prototype.
67592         * lib/getopt1.c (const): Remove macro.
67593         (getopt_long, getopt_long_only, main): Define with prototype.
67594
67595         * lib/getugroups.c: Include <string.h> unconditionally.
67596
67597         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67598         (getusershell, setusershell, endusershell, readname, main):
67599         Define with prototypes.
67600
67601         * lib/group-member.c: Include group-member.h first.
67602         Include <stdlib.h> unconditionally.
67603
67604         * lib/hard-locale.c: Include hard-locale.h first.
67605         Include <stdlib.h>, <string.h> unconditionally.
67606
67607         * lib/hash.c (free, malloc): Remove decls.
67608         Include <stdlib.h> unconditionally.
67609
67610         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
67611         (getenv): Do not declare.
67612
67613         * lib/idcache.c: Include <string.h> unconditionally.
67614
67615         * lib/long-options.c: Include long-options.h first, to test interface.
67616         Include <stdlib.h> unconditionally.
67617
67618         * lib/makepath.c: Include makepath.h first, to test interface.
67619         Include <stdlib.h> and <string.h> unconditionally.
67620
67621         * lib/linebuffer.c: Include <stdlib.h>.
67622         (free): Remove decl.
67623
67624         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
67625         stddef.h. rpl_malloc returns void *, not char *.
67626         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
67627         prototype.
67628
67629         * lib/md5.h: Include <limits.h> unconditionally.
67630         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
67631         (__P): Remove; all uses removed.
67632         * lib/md5.c: Include "md5.h" first.
67633         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
67634         md5_buffer, md5_process_bytes, md5_process_block):
67635         Define with prototypes.
67636         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
67637         * lib/sha.c: Include "sha.h" first.
67638         Include <stdlib.h>, <string.h> unconditionally.
67639
67640         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
67641         * lib/memcmp.c (__ptr_t): Likewise.
67642         * lib/memrchr.c (__ptr_t): Likewise.
67643         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
67644         Include <string.h> unconditionally.
67645         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
67646         * lib/memchr.c: Include <stdlib.h> unconditionally.
67647         * lib/memchr.c (LONG_MAX): Remove.
67648         * lib/memrchr.c (LONG_MAX): Likewise.
67649         * lib/memchr.c (__memchr): Define via a prototype.
67650         * lib/memrchr.c (__memrchr): Likewise.
67651         * lib/memcmp.c (__P): Remove, and remove all uses.
67652         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
67653         Remove forward decls; no longer needed.
67654         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
67655         Use types required by C89 in prototype.
67656
67657         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
67658         * lib/savedir.c: Likewise.
67659         * lib/mkdir.c (free): Remove decl.
67660         * lib/rmdir.c (rmdir): Define with a prototype.
67661         * lib/savedir.c: Include savedir.h first, to test interface.
67662
67663         * lib/mktime.c (STDC_HEADERS): Remove.
67664         Include <stdlib.h>, <string.h> unconditionally.
67665
67666         * lib/modechange.c: Include <stdlib.h> unconditionally.
67667         (malloc): Remove decl.
67668
67669         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
67670         (free): Remove decl.
67671
67672         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
67673         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
67674         (This type really should be intptr_t, but that's a C99ism.)
67675         (_obstack_memcpy): Remove: all uses changed to memcpy.
67676         Include <string.h> unconditionally.
67677         (struct obstack): Assume __STDC__ for types of members
67678         chunkfun, freefun, extra_arg.
67679         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
67680         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
67681         obstack_begin, obstack_specify_allocation,
67682         obstack_specify_allocation_with_arg, obstack_chunkfun,
67683         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
67684         Remove unprototyped decls and the macros that use them.
67685         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
67686         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
67687         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
67688         (defined __STDC__ && __STDC__)]:
67689         Remove nonprototyped code.
67690         Include <stdlib.h> unconditionally.
67691         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
67692         _obstack_allocated_p, _obstack_free, obstack_free,
67693         _obstack_memory_used, print_and_abort):
67694         Define using prototypes.
67695         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
67696         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
67697         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
67698         obstack_next_free, obstack_object_size, obstack_room) [0]:
67699         Remove unused, unprototyped code.
67700
67701         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
67702
67703         * lib/physmem.c (physmem_total, physmem_available, main): Define
67704         with prototypes.
67705
67706         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
67707         (main): Define with a prototype.
67708
67709         * lib/posixver.c (getenv): Remove decl.
67710
67711         * lib/putenv.c (malloc): Returns void *, not char *.
67712         Include <string.h> unconditionally.
67713         (strchr, memcpy, NULL): Do not define.
67714
67715         * lib/readtokens.c: Include readtokens.h first, to test interface.
67716         Include <stdlib.h>, <string.h> unconditionally.
67717         (init_tokenbuffer): Define with a prototype.
67718
67719         * lib/regex.c (PARAMS): Remove.  All uses removed.
67720         All uses of _RE_ARGS removed, too.
67721         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67722         unconditionally.
67723         (bzero): Assume memset exists.
67724         (memcmp, memcpy, NULL): Remove.
67725         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
67726         char, or assignments to local vars of type signed char.
67727         (init_syntax_once, PREFIX(extract_number_and_incr),
67728         PREFIX(print_partial_compiled_pattern),
67729         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67730         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67731         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67732         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67733         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67734         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67735         wcs_compile_range, byte_compile_range, truncate_wchar,
67736         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67737         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67738         count_mbs_length, wcs_re_match_2_internal,
67739         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67740         PREFIX(alt_match_null_string_p),
67741         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67742         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67743         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67744         now-unnecessary declaration, if any.
67745         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67746         regcomp, regexec):
67747         Remove now-unnecessary casts among pointer types.
67748         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67749
67750         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67751         (free): Remove decl.
67752
67753         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67754
67755         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67756         (free): Remove decl.
67757
67758         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67759         * lib/xgetcwd.c: Likewise.
67760
67761         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67762         (free): Remove decl.
67763
67764         * lib/strchrnul.c (strchrnul): Define with a prototype.
67765         Fix bug: c_in was not converted to char before searching.
67766
67767         The following changes are not K&R related:
67768
67769         * lib/group-member.h: Include <sys/types.h>, so that this file is
67770         self-contained.
67771         * lib/makepath.h: Likewise.
67772
67773         * lib/getusershell.c (readname, default_index, line_size, readname):
67774         Use size_t, not int, for sizes.
67775         (readname): If the size overflows, report an error instead of
67776         looping forever.
67777
67778 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67779
67780         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67781         libc.
67782
67783 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67784
67785         * README: New section: portability guidelines.
67786
67787 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67788
67789         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67790         C89 spec.
67791
67792 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67793
67794         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67795
67796 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67797
67798         Assume C89 or better; remove K&R cruft.
67799         A few of these changes were first proposed by Derek Robert Price
67800         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67801
67802         * lib/addext.c: Include <string.h> unconditionally.
67803         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67804         Don't declare getenv or malloc.
67805
67806         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67807         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67808         (NULL): Remove.
67809         (find_stack_direction, alloca): Use prototypes.
67810
67811         * lib/atexit.c (atexit): Define using a prototype.
67812
67813         * lib/basename.c, dirname.c, stripslash.c:
67814         Include <string.h> unconditionally.
67815
67816         * lib/bcopy.c: Include <stddef.h>.
67817         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67818
67819         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67820
67821         * lib/error.h (error, error_at_line, error_print_progname)
67822         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67823         * lib/error.c: Include error.h first, to check interface.
67824         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67825         (VA_START): Remove; all uses changeed to va_start.
67826         (exit, strerror): Remove decls.
67827         (error_print_progname): Prototype uncondionally.
67828         Don't include <errno.h>; no longer needed.
67829         (private_strerror): Remove.
67830         (error_tail): Always define.
67831         (error, error_at_line): Assume C89 or better; always use prototypes.
67832         * lib/fatal.c: Include "fatal.h" first, to test interface.
67833         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67834         (VA_START): Remove; all uses changed to va_start.
67835         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67836         this case.
67837         (exit): Remove decl.
67838         (fatal): Prototype unconditionally.  Assume va_start works.
67839         Abort at end, to pacify gcc.
67840
67841         * lib/euidaccess.c (main): Define with a prototype.
67842
67843         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67844
67845         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67846
67847         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67848         prototypes.
67849         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67850         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67851         (getenv): Remove decl.
67852         (fnmatch): Define using a prototype.
67853         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67854         (FCT): Define using a prototype.
67855
67856         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67857
67858         * lib/gethostname.c: Include <stddef.h>.
67859         (gethostname): Define with prototype.  Length is size_t, not int.
67860
67861 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67862
67863         Assume C89 or better; remove K&R cruft.
67864         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67865         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67866         string.h, getenv, malloc.
67867         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67868         headers.
67869         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67870         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67871         do not check for strerror.
67872         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67873         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67874         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67875         do not check for doprnt or vprintf.
67876         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67877         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67878
67879 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67880
67881         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67882         getversion.c should have been removed then, but was accidentally
67883         preserved.
67884
67885         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67886         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67887
67888 2003-09-08  Karl Berry  <karl@gnu.org>
67889
67890         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67891                 config, forget about prep.
67892
67893         * config/depcomp, missing: update from automake.
67894
67895 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67896
67897         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67898         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67899
67900 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67901
67902         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67903         copy_tm_result.  Bug reported by Simon Josefsson in
67904         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67905
67906 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67907
67908         * m4/time_r.m4: New file.
67909         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67910         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67911         is. Check for timegm declaration.
67912         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67913         Do not check for gmtime_r.
67914         Replace mktime if __mktime_internal does not exist and if mktime
67915         hasn't been replaced already.
67916
67917 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67918
67919         * lib/time_r.c, lib/time_r.h: New files.
67920
67921         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67922         __localtime_r.
67923         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67924         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67925
67926         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67927         __gmtime_r.
67928         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67929         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67930         Include <time_r.h>.
67931
67932         * lib/timegm.c: Switch to glibc implementation, with the following
67933         changes:
67934         [defined HAVE_CONFIG_H]: Include <config.h>.
67935         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67936         (__mktime_internal) [!defined _LIBC]: New decl.
67937         (__gmtime_r) [!defined _LIBC]: New macro and function.
67938         (timegm): Use a prototype, since gnulib assumes C89.
67939         Do not bother declaring tmp to be const, as it's not really usefu.
67940         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67941         (timegm): Declare only if HAVE_DECL_TIMEGM.
67942
67943 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67944
67945         * MODULES.html.sh (func_all_modules): Add time_r.
67946         * modules/time_r: New file.
67947         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67948         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67949
67950 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67951
67952         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67953         Bug reported by Lute Kamstra in
67954         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67955
67956         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67957         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67958         course with correspondingly smaller numbers for tomorrow and
67959         yesterday.  From Tadayoshi Funaba.  Originally installed into
67960         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67961         coreutils merge?).
67962
67963 2003-08-31  Simon Josefsson  <jas@extundo.com>
67964
67965         * modules/timegm: New file.
67966         * MODULES.html.sh (func_all_modules): Add timegm.
67967
67968 2003-08-31  Simon Josefsson  <jas@extundo.com>
67969
67970         * m4/timegm.m4: New file.
67971
67972 2003-08-31  Simon Josefsson  <jas@extundo.com>
67973
67974         * lib/timegm.h: New file.
67975         * lib/timegm.c: New file.  Based on
67976         wget-1.8.2/src/http.c:mktime_from_utc.
67977
67978 2003-08-31  Karl Berry  <karl@gnu.org>
67979
67980         * lib/argp.h: update from libc.
67981
67982 2003-08-28  Bruno Haible  <bruno@clisp.org>
67983
67984         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67985         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67986         followed by '#define fnmatch fnmatch_posix' gives an error.
67987
67988 2003-08-28  Bruno Haible  <bruno@clisp.org>
67989
67990         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67991         warning on QNX, which defines O_BINARY to 000000.
67992
67993 2003-08-27  Jim Meyering  <jim@meyering.net>
67994
67995         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67996         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67997         would fail after 32.  Reported by Danny Levinson.  Details here:
67998         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67999
68000 2003-08-24  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
68003         MSVC7 <stdio.h> is included later.
68004
68005 2003-08-22  Simon Josefsson  <jas@extundo.com>
68006
68007         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
68008
68009 2003-08-20  Karl Berry  <karl@gnu.org>
68010
68011         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
68012
68013 2003-08-20  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/progname: New file.
68016         * MODULES.html.sh (func_all_modules): Add progname.
68017
68018 2003-08-20  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/progname.h: New file, from GNU gettext.
68021         * lib/progname.c: New file, from GNU gettext.
68022         * lib/progreloc.c: New file, from GNU gettext.
68023
68024 2003-08-19  Jim Meyering  <jim@meyering.net>
68025
68026         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
68027         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
68028
68029 2003-08-19  Bruno Haible  <bruno@clisp.org>
68030
68031         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
68032         more.
68033
68034 2003-08-19  Bruno Haible  <bruno@clisp.org>
68035
68036         * lib/xstrdup.c: Assume <string.h> exists.
68037
68038 2003-08-18  Paul Eggert  <eggert@twinsun.com>
68039
68040         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
68041         in makefile rules.
68042
68043 2003-08-18  Jim Meyering  <jim@meyering.net>
68044
68045         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
68046         * m4/lib-ld.m4: Likewise.
68047
68048 2003-08-18  Jim Meyering  <jim@meyering.net>
68049
68050         * lib/setenv.h: Indent nested cpp directive.
68051         * lib/vasnprintf.c: Remove trailing blanks.
68052
68053 2003-08-17  Simon Josefsson  <jas@extundo.com>
68054
68055         * modules/xstrndup: New file.
68056         * MODULES.html.sh (func_all_modules): Add xstrndup.
68057
68058 2003-08-17  Simon Josefsson  <jas@extundo.com>
68059
68060         * modules/argp: Fix autoconf macro name. Add more dependencies.
68061
68062 2003-08-17  Simon Josefsson  <jas@extundo.com>
68063
68064         * m4/xstrndup.m4: New file.
68065
68066 2003-08-17  Simon Josefsson  <jas@extundo.com>
68067
68068         * m4/argp.m4: New file.
68069
68070 2003-08-17  Simon Josefsson  <jas@extundo.com>
68071             Bruno Haible  <bruno@clisp.org>
68072
68073         * lib/xstrndup.h: New file.
68074         * lib/xstrndup.c: New file.
68075
68076 2003-08-17  Bruno Haible  <bruno@clisp.org>
68077
68078         * modules/strndup (Files, Include): Add lib/strndup.h.
68079
68080 2003-08-17  Bruno Haible  <bruno@clisp.org>
68081
68082         * modules/euidaccess (Files): Add lib/euidaccess.h.
68083
68084 2003-08-17  Bruno Haible  <bruno@clisp.org>
68085
68086         * lib/strndup.h: New file.
68087
68088 2003-08-17  Bruno Haible  <bruno@clisp.org>
68089
68090         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
68091         like AC_GNU_SOURCE.
68092         * modules/extensions (configure.ac): Comment out the invocation of
68093         gl_USE_SYSTEM_EXTENSIONS.
68094
68095 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68096
68097         Merges from coreutils, etc.
68098         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
68099         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
68100         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
68101         fixing a typo.
68102         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
68103         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
68104
68105 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68106
68107         Document merge from coreutils.
68108         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
68109         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
68110         * modules/utime: Add m4/utimes-null.m4.
68111
68112 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68113
68114         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
68115         space, undoing this 2003-08-12 change:
68116         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68117
68118 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68119
68120         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
68121         strtoul.c from libc, undoing this 2003-08-12 change:
68122         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68123
68124 2003-08-16  Jim Meyering  <jim@meyering.net>
68125
68126         Merges from coreutils.
68127         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
68128         prefix.  Adjust cache variables similarly.  Create 500 rather than
68129         just 300 files, to exercise bug on Darwin6.5, too.
68130         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
68131         $missing_dir.
68132         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
68133         AM_SYS_POSIX_TERMIOS.
68134         Reported by mkc@mathdogs.com.
68135         Also change use of $am_cv_sys_posix_termios
68136         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
68137         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
68138         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
68139         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
68140         in /proc/mounts until it finds one with matching device number.  This
68141         is unnecessary when the FILE argument *is* a mount point.  No stat call
68142         is necessary in that case.  So, disable the statvfs-testing code on
68143         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
68144         as RedHat bug# 84846.
68145         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68146         to 1MB, so as not to render systems with no stack size limit (e.g.,
68147         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68148         Include <unistd.h>.  On some systems,
68149         it is required for the definition of _SC_PAGESIZE.
68150
68151 2003-08-16  Jim Meyering  <jim@meyering.net>
68152
68153         Merge from coreutils.
68154         * lib/xstrtoimax.c: #else #if -> #elif.
68155         * lib/xstrtoumax.c: Likewise.
68156
68157 2003-08-16  Jim Meyering  <jim@meyering.net>
68158
68159         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
68160         * m4/utimes.m4: Removed.
68161         * m4/utimes-null.m4: Renamed from utimes.m4.
68162
68163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68164         to 1MB, so as not to render systems with no stack size limit (e.g.,
68165         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68166         Include <unistd.h>.  On some systems,
68167         it is required for the definition of _SC_PAGESIZE.
68168
68169 2003-08-16  Jim Meyering  <jim@meyering.net>
68170         and Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         Merges from coreutils, etc.
68173
68174         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
68175         using the latest version from cvs.  This avoids problems with #line
68176         directives using a vendor (Sun) compiler.
68177         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
68178         Don't set GETGROUPS_LIB here; now it's
68179         done via getgroups.m4's wrapper function.
68180         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
68181         rather than just in sh-util/configure.in, so that the
68182         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
68183         same.
68184         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
68185         AC_FUNC_GETLOADAVG where to find getloadavg.c.
68186         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
68187         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
68188         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
68189         Remove code that is now done by the newly-required macros.
68190         Append $(EXEEXT) to DF_PROG.
68191         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
68192         Do not invoke or require the following here,
68193         since prereq.m4 or some gnulib .m4 now does this for us:
68194         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
68195         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
68196         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
68197         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
68198         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
68199         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
68200         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
68201         AC_FUNC_OBSTACK.
68202         Do not replace the following functions, as this is now the job
68203         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
68204         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
68205         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
68206         atexit getpass, strdup, getpagesize.
68207         Replace 'raise'.
68208         Do not check for the following functions, as this is now the job
68209         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
68210         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
68211         setregid.
68212         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
68213         Check for sys/sysctl.h.
68214         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
68215         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
68216         of checking for ssize_t ourselves.
68217
68218         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
68219         Require every macro that gnulib/modules/* suggests for us.
68220         (jm_PREREQ_ADDEXT): New macro.
68221         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
68222         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
68223
68224         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
68225         (gl_PHYSMEM): Use it.
68226         Also check for `table' function.
68227         Check for new headers and functions.
68228         Add check for sys/sysmp.h.
68229         With suggestions from Kaveh Ghazi.
68230         Ignore headers that are present but cannot be compiled.  This
68231         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
68232         C 5.4.
68233
68234 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68235
68236         Document merge from coreutils.
68237         * modules/userspec: Depend on posixver.
68238         * modules/strftime: Depend on tzset.
68239
68240 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68241
68242         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
68243         rather than tab, after '#' in shell-script copyright notices.
68244         Suggested by Bruno Haible.
68245
68246 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68247
68248         * config/srclist-update: Use three spaces, rather than tab, after '#'
68249         in shell-script copyright notices.  Suggested by Bruno Haible.
68250         Remove unnecessary parenthesization in regular expression.
68251
68252 2003-08-15  Jim Meyering  <jim@meyering.net>
68253
68254         Merge from coreutils.
68255         * lib/xgethostname.c: Include <stdlib.h>.
68256         (xghostname): Don't exit for anything other than memory-related
68257         failure; just return NULL.
68258         * lib/userspec.c: Include "posixver.h".
68259         (parse_user_spec): Accept `.' as a separator only
68260         in pre-POSIX-200112 mode.
68261         * lib/strtoimax.c: Use #elif rather than #else #if.
68262         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
68263         Remove function, now that we can rely on a working tzset function.
68264         [!_LIBC]: Ensure that the required autoconf test has been run.
68265         [!defined _NL_CURRENT && HAVE_STRFTIME]:
68266         Use underlying_strftime for %r.
68267         * lib/sha.c: Merge in some clean-up and optimization changes from
68268         glibc.
68269         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
68270         Ensure that it is a multiple of 64.
68271         Rearrange loop exit tests so as to avoid performing an
68272         additional fread after encountering an error or EOF.
68273         * lib/realloc.c: Update copyright date.
68274
68275 2003-08-15  Jim Meyering  <jim@meyering.net>
68276         and Paul Eggert  <eggert@twinsun.com>
68277
68278         Merge from coreutils.
68279         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
68280         member but strut utmpx does not.  Needed for AIX 4.3.3.
68281         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
68282
68283 2003-08-15  Jim Meyering  <jim@meyering.net>
68284         and Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         Merges from coreutils, etc.
68287         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
68288         Require gl_FUNC_TZSET_CLOBBER.
68289         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
68290         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
68291         members.
68292
68293 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68294
68295         Help the merge from coreutils.
68296         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
68297         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
68298         * m4/tzset.m4: Use it too.
68299
68300 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68301
68302         * modules/tzset: New file.
68303
68304 2003-08-14  Jim Meyering  <jim@meyering.net>
68305
68306         Merges from coreutils.
68307         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
68308         variable names, rather than @FNMATCH_H@.
68309         * modules/alloca: Likewise for $(ALLOCA_H).
68310
68311         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
68312         the three copies of the literal target, `fnmatch.h'.
68313         * modules/alloca (alloca.h): Likewise.
68314
68315 2003-08-14  Jim Meyering  <jim@meyering.net>
68316
68317         Merge from coreutils.
68318         * m4/tzset.m4: New file.
68319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
68320         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
68321         otherwise, AIX 5.1 systems would end up using the latter.
68322         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
68323         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
68324         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
68325         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
68326
68327 2003-08-14  Jim Meyering  <jim@meyering.net>
68328
68329         Merge from coreutils.
68330         * lib/obstack.h: Whitespace changes.
68331         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
68332         and xcalloc return values.
68333         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
68334         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
68335         hang on OSF/1 5.1 for DIR on both local and remote file systems.
68336         Reported by (and fix confirmed by) Nelson H. F. Beebe.
68337         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68338         error from mntctl.
68339         Use mntctl's return value to drive the entry-processing loop, since
68340         we can't rely on the value of the vmt_length member in the last
68341         entry.  On some systems doing so could result in exhausting
68342         virtual memory.  Based in part on a patch from Mike Jetzer.
68343
68344 2003-08-14  Jim Meyering  <jim@meyering.net>
68345         and Paul Eggert  <eggert@twinsun.com>
68346
68347         Merges from coreutils, plus other fixes.
68348         * lib/physmem.c: Merge in portability changes from gcc/libiberty
68349         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
68350         for credits and details.  Thanks to Kaveh Ghazi for helping
68351         to keep these files in sync.
68352         (ARRAY_SIZE): Define it.
68353         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
68354         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
68355         (memcasecmp): Don't assume size_t fits in unsigned int.
68356         Remove casts and duplicate code.
68357         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
68358         (memcpy): Remove definition.
68359         Merge in some clean-up and optimization changes from glibc.
68360         [BLOCKSIZE]: Move definition to top of file.
68361         Ensure that it is a multiple of 64.
68362         Rearrange loop exit tests so as to avoid performing an
68363         additional fread after encountering an error or EOF.
68364         * lib/md5.h (md5_uintptr): Define.
68365         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
68366         return to the initial working directory.  Preserve errno
68367         for caller.
68368         * lib/idcache.c: Include "xalloc.h".
68369         (xmalloc, xrealloc): Remove decls.
68370         (getuser): Remove casts no longer required in C89.
68371         * lib/human.c: Include stdio.h, for sprintf.
68372         * lib/group-member.c: Include "xalloc.h".
68373         (xmalloc, xrealloc): Remove decls.
68374         (get_group_info): Remove casts no longer required in C89.
68375         * lib/getusershell.c (readname): Remove casts no longer required in
68376         C89.
68377         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
68378         * lib/getline.c: Whitespace fix, from coreutils.
68379
68380 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68381
68382         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
68383         Check for isascii.
68384
68385         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68386         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68387         Undo previous (whitespace-only) change.
68388
68389 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68390
68391         * lib/exclude.c: Include <ctype.h>
68392         (IN_CTYPE_DOMAIN): New macro.
68393         (is_space): New fn.
68394         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
68395         and empty lines.
68396
68397         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68398         Undo previous (whitespace-only) change.
68399
68400 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68401
68402         * config/srclist-update: Change update back to the old behavior,
68403         leaving whitespace alone.  Use one 'sed' command rather than a
68404         pipeline.
68405         (fixlicense): Now a variable, not a function.
68406         (remove_trailing_blanks): Remove.
68407         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
68408         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68409         Undo previous (whitespace-only) change.
68410
68411 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68412
68413         Merge from coreutils.
68414         * modules/euidaccess: Add lib_SOURCES, include for new
68415         file euidaccess.h
68416
68417 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68418
68419         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68420         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68421         Normalize leading white space and remove trailing white space.
68422
68423         Merge from coreutils
68424         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
68425
68426         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
68427         0.12.1.  These files are now being upgraded automatically by
68428         ../config/srclist-update.
68429
68430 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68431
68432         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68433         Normalize leading white space and remove trailing white space.
68434         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
68435         notice, as per ../config/srclist-update.
68436
68437         Merge from coreutils.
68438         * lib/euidaccess.h: New file.
68439         * lib/euidaccess.c: Include it.
68440         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
68441         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
68442         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
68443
68444 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68445
68446         * config/srclist-update: Add copyright notice.
68447         (remove_id_lines, remove_trailing_blanks): New constants.
68448         (fixfile): Use them to normalize spacing a bit in copied files.
68449         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68450         Normalize leading white space and remove trailing white space.
68451
68452         * config/texinfo.tex: Sync with texinfo.
68453
68454         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
68455         strtoul.c from libc, to merge coreutils whitespace changes.
68456
68457         * config/srclist.txt: Get the following m4 files from gettext:
68458         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
68459         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
68460         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
68461         wint_t.m4.
68462
68463 2003-08-12  Karl Berry  <karl@gnu.org>
68464
68465         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
68466         been made.
68467
68468 2003-08-11  Paul Eggert  <eggert@twinsun.com>
68469
68470         * modules/gnu-source, m4/gnu-source.m4:
68471         Remove; we're assuming Autoconf 2.54 or later now.
68472         Suggested by Bruno Haible.
68473         * MODULES.html.sh (func_all_modules): Remove gnu-source.
68474
68475 2003-08-11  Bruno Haible  <bruno@clisp.org>
68476
68477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
68478
68479 2003-08-11  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
68482         (vasnprintf): Use it instead of wcslen.
68483
68484 2003-08-11  Bruno Haible  <bruno@clisp.org>
68485
68486         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
68487         value to ensure that _Bool promotes to int. Use #define for _Bool when
68488         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
68489
68490 2003-08-10  Karl Berry  <karl@gnu.org>
68491
68492         * lib/regex.h: update from libc (whitespace fix).
68493
68494 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68495
68496         Merge some files from coreutils.  These changes were
68497         originally made by Jim Meyering.
68498         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
68499         many older Unixes require this.
68500         * lib/alloca.c (alloca): Remove cast to argument of free;
68501         no longer needed in C89.
68502         * lib/alloca_.h, regex.h: Fix white space to match
68503         what GNU indent does.
68504
68505 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68506
68507         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
68508         apparently Emacs's Unicode mode got confused before my 2003-08-05
68509         checkin.
68510
68511 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68512
68513         * m4/extensions.m4: New file.
68514         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
68515         Require gl_USE_SYSTEM_EXTENSIONS.
68516         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
68517         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
68518
68519 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68520
68521         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
68522         * modules/extensions, modules/gnu-source: New files.
68523         * modules/timespec, modules/unlocked-io: Depend on extensions.
68524
68525 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68526
68527         * modules/restrict: New file.
68528         * MODULES.html.sh (func_all_modules): Add restrict.
68529         * modules/regex: Depend on restrict.
68530
68531 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68532
68533         * m4/restrict.m4: New file.
68534         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
68535
68536 2003-08-07  Bruno Haible  <bruno@clisp.org>
68537
68538         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
68539         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
68540
68541 2003-08-07  Bruno Haible  <bruno@clisp.org>
68542
68543         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
68544         makes the module 'getndelim2' compatible with the module 'getline'.
68545
68546 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68547
68548         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
68549         byte with "\201" to avoid glitches when editing that source file
68550         with multi-gnome-terminal.
68551
68552 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68553
68554         * lib/bumpalloc.h: Remove.
68555
68556 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68557
68558         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
68559         * modules/bumpalloc: Remove.
68560
68561 2003-08-04  Paul Eggert  <eggert@twinsun.com>
68562
68563         * lib/getloadavg.c: Change copyright notice and spacing to conform to
68564         GNU coding style.
68565
68566         Merge from coreutils.
68567         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
68568         1. From glibc.
68569         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
68570         from Karl Berry, implemented by Jim Meyering.
68571         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68572         from Dmitry V. Levin.
68573         Remove anachronistic cast of xrealloc.
68574         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68575         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68576         type. Otherwise, it wouldn't compile with at least /bin/cc on
68577         ymp-cray-unicos9.0.2.X.
68578         Combine two mostly-identical uses of alloca into one.
68579         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68580
68581 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68582
68583         [From Emacs.]
68584
68585         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68586         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68587         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68588         obsolete NLIST_NAME_UNION.
68589         [__GNU__]: Undef BSD and FSCALE.
68590         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68591
68592 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68593
68594         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68595         an enum type, so that it's guaranteed to promote to int.  See:
68596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68597
68598 2003-08-03  Karl Berry  <karl@gnu.org>
68599
68600         * config/depcomp: update from automake.
68601
68602 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68603
68604         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68605         (strerror): Don't assume that a printable int fits in 14 bytes.
68606
68607 2003-07-31  Bruno Haible  <bruno@clisp.org>
68608
68609         * modules/getpass-gnu: New file.
68610         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
68611
68612 2003-07-31  Bruno Haible  <bruno@clisp.org>
68613
68614         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
68615
68616 2003-07-24  Karl Berry  <karl@gnu.org>
68617
68618         * config/missing: update from automake.
68619
68620 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
68621             Bruno Haible  <bruno@clisp.org>
68622
68623         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
68624         * lib/getline.c (getline, getdelim): Likewise.
68625         Remove _GNU_SOURCE define; now it's defined in config.h through
68626         m4/getline.m4.
68627
68628 2003-07-23  Karl Berry  <karl@gnu.org>
68629
68630         * config/config.sub: update from prep.
68631
68632 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68633
68634         * modules/xalloc (Depends-on): Add exitfail.
68635         * modules/xmemcoll: Likewise.
68636
68637 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68638
68639         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
68640         over-parenthesization in macros.
68641
68642         Sync with coreutils.
68643
68644         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
68645         required by C99.
68646
68647         Use `exit_failure' for xalloc and xmemcoll instead of their own
68648         private exit-failure variables.
68649         * lib/xalloc.h (xalloc_exit_failure): Remove.
68650         * lib/xmalloc.c: Likewise.  Include exitfail.h.
68651         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
68652         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
68653         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
68654         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
68655
68656 2003-07-20  Jim Meyering  <jim@meyering.net>
68657
68658         * modules/closeout (Depends-on): Add exitfail.
68659         Suggestion from Bruno Haible.
68660
68661 2003-07-19  Karl Berry  <karl@gnu.org>
68662
68663         * config/config.sub: update from prep.
68664
68665 2003-07-18  Paul Eggert  <eggert@twinsun.com>
68666
68667         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
68668         Remove.
68669         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
68670         to test that it can stand by itself.  Include "exitfail.h".
68671         Clients should set exit_failure instead.
68672         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
68673
68674 2003-07-18  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/getndelim2: New file.
68677         * modules/getline: Share files with module getndelim2.
68678         * modules/getnline: Depend on getndelim2 instead of sharing files with
68679         it. Add getnline.c to lib_SOURCES.
68680         * MODULES.html.sh (func_all_modules): Add getndelim2.
68681
68682 2003-07-18  Bruno Haible  <bruno@clisp.org>
68683
68684         * m4/getndelim2.m4: New file.
68685         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
68686         invoke gl_PREREQ_GETNDELIM2.
68687         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
68688         gl_PREREQ_GETNDELIM2.
68689         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
68690         gl_GETNDELIM2.
68691
68692 2003-07-18  Bruno Haible  <bruno@clisp.org>
68693
68694         * lib/getndelim2.h: New file.
68695         * lib/getndelim2.c: Make into a module of its own. Include config.h,
68696         getndelim2.h.
68697         (getndelim2): Make non-static. Change return type to ssize_t.
68698         * lib/getline.h: Change argument names.
68699         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
68700         * lib/getnline.c: Include getndelim2.h.
68701
68702 2003-07-18  Andreas Schwab  <schwab@suse.de>
68703
68704         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
68705
68706 2003-07-17  Karl Berry  <karl@gnu.org>
68707
68708         * config/config.sub: update from prep.
68709
68710 2003-07-17  Bruno Haible  <bruno@clisp.org>
68711
68712         * modules/getnline: New file.
68713         * modules/getline: Add lib/getndelim2.c to source file list.
68714         * MODULES.html.sh (func_all_modules): Add getnline.
68715
68716 2003-07-17  Bruno Haible  <bruno@clisp.org>
68717
68718         * m4/getnline.m4: New file.
68719
68720 2003-07-17  Bruno Haible  <bruno@clisp.org>
68721
68722         * m4/Makefile.am.in: Remove file.
68723         * m4/Makefile.am: Remove file.
68724         * m4/Makefile.in: Remove file.
68725
68726 2003-07-17  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/getnline.h: New file.
68729         * lib/getnline.c: New file.
68730         * lib/getndelim2.c: New file, extracted from getline.c.
68731         (getndelim2): Renamed from getdelim2, with added nmax argument.
68732         * lib/getline.c: Include getndelim2.c.
68733         (getdelim2): Moved out to getndelim2.c.
68734         (getline, getdelim): Update.
68735
68736 2003-07-17  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/Makefile.am: Remove file.
68739         * lib/Makefile.in: Remove file.
68740
68741 2003-07-17  Bruno Haible  <bruno@clisp.org>
68742
68743         * configure.in: Remove file.
68744         * Makefile.in: Remove file.
68745
68746 2003-07-17  Bruno Haible  <bruno@clisp.org>
68747
68748         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68749
68750 2003-07-16  Karl Berry  <karl@gnu.org>
68751
68752         * config/srclist-update: was running fixlicense twice, which caused
68753                 texinfo.tex to be nullified for some reason.  Simplify,
68754                 $gplsrc is no longer needed as far as I can see?
68755
68756 2003-07-16  Jim Meyering  <jim@meyering.net>
68757
68758         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68759
68760 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68761
68762         * config/srclist.txt: Get the following files from gettext-runtime/intl
68763         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68764         ref-del.sin.  From Bruno Haible.
68765         * config/srclist-update (fixfile): Change grep pattern again, since the
68766         previous fix didn't work (there was another trailing $).  Use
68767         '[$]' to escape the $s.
68768
68769 2003-07-15  Karl Berry  <karl@gnu.org>
68770
68771         * lib/vasnprintf.c: update from gettext.
68772
68773 2003-07-15  Karl Berry  <karl@gnu.org>
68774
68775         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68776         gets expanded when surrounded by '$'.
68777
68778 2003-07-15  Jim Meyering  <jim@meyering.net>
68779
68780         * modules/save-cwd: Don't depend on error.  From Derek Price.
68781
68782 2003-07-15  Jim Meyering  <jim@meyering.net>
68783
68784         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68785
68786 2003-07-14  Simon Josefsson  <jas@extundo.com>
68787
68788         * modules/mempcpy: New file.
68789         * MODULES.html.sh (func_all_modules): Add mempcpy.
68790
68791 2003-07-14  Simon Josefsson  <jas@extundo.com>
68792
68793         * m4/mempcpy.m4: New file.
68794
68795 2003-07-14  Simon Josefsson  <jas@extundo.com>
68796
68797         * lib/mempcpy.h: New file.
68798         * lib/mempcpy.c: New file.
68799
68800 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68801
68802         * modules/getdate, modules/posixtm: Depend on mktime.
68803
68804 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68805
68806         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68807         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68808         unicodeio.c, unicodeio.h, unlocked-io.h:
68809         Switch from LGPL to GPL.
68810
68811 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68812
68813         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68814         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68815         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68816         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68817         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68818         updated automatically by ../config/srclist-update.  This changes
68819         their license from LPGL to GPL.
68820
68821 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68822
68823         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68824         assumed to refer to the root of the most recent stable gettext version.
68825         * config/srclistvars.sh: Add defaults for eggert.
68826         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68827         Match "This program" as well as "The program".  This is needed
68828         for gettext.
68829
68830 2003-07-14  Jim Meyering  <jim@meyering.net>
68831
68832         Don't emit diagnostics.  Let callers do that.
68833         * lib/save-cwd.c: Don't include "error.h".
68834         (save_cwd): Don't call error.  Ensure that errno is valid
68835         when returning nonzero.
68836
68837         * lib/save-cwd.h (restore_cwd): Update prototype.
68838         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68839         Simplify.  Don't call error upon failure.  Let callers do that.
68840         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68841         when auditing is enabled.  But don't bother updating the #if.
68842
68843 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68844
68845         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68846         it breaks C++ compilation.
68847         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68848
68849 2003-07-10  Simon Josefsson  <jas@extundo.com>
68850
68851         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68852
68853 2003-07-10  Jim Meyering  <jim@meyering.net>
68854
68855         * m4/clock_time.m4: Remove trailing blank.
68856         * m4/intmax_t.m4: Likewise.
68857
68858 2003-07-10  Jim Meyering  <jim@meyering.net>
68859
68860         * lib/vasnprintf.c: Remove trailing blanks.
68861         Make cpp indentation consistent.
68862
68863 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68864
68865         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68866         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68867         Switch from LGPL to GPL.
68868
68869 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68870
68871         * config/srclist.txt: Sort sublists.  Add
68872         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68873         that differ from gnulib for one reason or another; we'd like this list
68874         to be smaller but for now let's document what we have.
68875
68876 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68877
68878         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68879         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68880         and sweeter "eval x=$x".
68881         * config/srclist.txt: Get lib/argp* from glibc.
68882
68883 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68884
68885         * lib/mktime.c: Fix some boundary cases and remove need for floating
68886         point.
68887
68888         Issue a compile-time diagnostic if time_t is floating point, or if
68889         two's complement arithmetic is not in effect, or if arithmetic
68890         right shift does not propagate the sign.  These assumptions were
68891         all in the original code but they weren't checked.
68892
68893         (TIME_T_MIDPOINT, verify): New macros.
68894         (__isleap): Remove; it has integer overflow problems.
68895         (leapyear): New function, without those problems.
68896         (ydhms_tm_diff): Remove; splitting into two parts.
68897         (ydhms_diff): New function, containing the arithmetic part of
68898         the old ydhms_tm_diff function.  Issue a compile-time
68899         diagnostic if we are not using C99 integer division.
68900         Avoid casts when possible.
68901         (guess_time_tm): New function, containing the checking part of
68902         the old ydhms_tm_diff function.  Return the new value, rather than
68903         the difference between it and the old.  Accept a new argument T
68904         so that *T specifies the old value.  Check for overflow in the result.
68905
68906         (__mktime_internal): Use a time_t offset, not a long int offset.
68907         This undoes the 2003-06-04 change, which is no longer needed now
68908         that we have better overflow checking.
68909         (localtime_offset): Likewise.
68910
68911         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68912         and long are 64-bit but int is only 32-bit.
68913         (ydhms_diff): Use long int to store year1 and yday1.
68914         Issue a compile-time diagnostic if long int is not wide enough.
68915
68916         (__mktime_internal): Use long int to store adjusted year and yday.
68917         Use plain C rather than preprocessor commands, if that doesn't
68918         affect efficiency.
68919         Check for overflow (and try to repair) after each probe
68920         rather than checking only at the very end.  This avoids some bugs
68921         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68922         does not equal GMT offset at maximum time).
68923         Use integer to check for overflow rather than floating point; this
68924         is more portable to non-IEEE hosts, and is a tad faster.
68925         When we detect that we are oscillating between two values,
68926         don't check whether tm_isdst has the requested value, since
68927         we already know the answer.  When tm_isdst has the wrong value,
68928         use a different heuristic to find the right one, based on the
68929         extreme values actually observed in practice in tz2003a,
68930         rather than the (overly optimistic) "previous 3 calendar quarters".
68931
68932         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68933         "T const" to accommodate glibc style.
68934         (check_result): Use less-confusing report format.  "long" -> "long int.
68935         (main): Likewise.
68936         Don't loop if the iteration overflows time_t.
68937         Allow a negative step in the iteration.
68938
68939 2003-07-06  Karl Berry  <karl@gnu.org>
68940
68941         * config/depcomp: update from automake.
68942         * config/config.sub: update from prep.
68943
68944 2003-07-03  Karl Berry  <karl@gnu.org>
68945
68946         * config/config.guess: update from prep.
68947
68948 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68949
68950         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68951         xreadlink.c now includes it unconditionally.
68952
68953 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68954
68955         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68956         having it depend on HAVE_SYS_TYPES_H.
68957
68958 2003-07-01  Bruno Haible  <bruno@clisp.org>
68959
68960         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68961         <sys/types.h> should be sufficient.
68962         Reported by Paul Eggert.
68963
68964 2003-06-26  Karl Berry  <karl@gnu.org>
68965
68966         * config/depcomp: update from automake.
68967
68968 2003-06-26  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/human: Depend on module stdbool.
68971
68972 2003-06-25  Bruno Haible  <bruno@clisp.org>
68973
68974         * modules/readlink: New file.
68975         * modules/xreadlink: Depend on it.
68976         * MODULES.html.sh (func_all_modules): Add readlink.
68977
68978 2003-06-25  Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/readlink.m4: New file.
68981
68982 2003-06-25  Bruno Haible  <bruno@clisp.org>
68983
68984         * lib/readlink.c: New file.
68985
68986 2003-06-22  Karl Berry  <karl@gnu.org>
68987
68988         * config/srclist.txt: update mkinstalldirs from automake.
68989         * config/mkinstalldirs: update.
68990
68991 2003-06-22  Bruno Haible  <bruno@clisp.org>
68992
68993         Portability to mingw32.
68994         * m4/ssize_t.m4: New file, from GNU gettext.
68995         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68996         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68997
68998 2003-06-22  Bruno Haible  <bruno@clisp.org>
68999
69000         * modules/safe-read: Add m4/ssize_t.m4.
69001         * modules/xreadlink: Add m4/ssize_t.m4.
69002
69003 2003-06-20  Bruno Haible  <bruno@clisp.org>
69004
69005         Assume C89, so PARAMS isn't needed.
69006         * lib/unicodeio.h (PARAMS): Remove.
69007         * lib/unicodeio.c: Don't use PARAMS.
69008
69009 2003-06-18  Karl Berry  <karl@gnu.org>
69010
69011         * config/config.{guess,sub}: update from prep.
69012
69013 2003-06-18  Jim Meyering  <jim@meyering.net>
69014
69015         Merge changes from coreutils.
69016         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
69017         Remove explicit declarations of xmalloc and realloc.
69018         Include xalloc.h.
69019         (read_utmp): Remove anachronistic cast of xmalloc.
69020
69021 2003-06-17  Paul Eggert  <eggert@twinsun.com>
69022
69023         Assume C89, so PARAMS isn't needed.
69024         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
69025         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
69026         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
69027         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
69028         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
69029         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
69030         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
69031         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
69032         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
69033         lib/xstrtod.h, lib/xstrtol.h: Likewise.
69034         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
69035         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
69036         no longer needed. Anyway, config.h should always be included before any
69037         other file.
69038
69039 2003-06-11  Simon Josefsson  <jas@extundo.com>
69040
69041         * modules/sysexits: New file.
69042         * MODULES.html.sh (func_all_modules): Add sysexits.
69043
69044 2003-06-11  Simon Josefsson  <jas@extundo.com>
69045
69046         * lib/sysexit_.h: New file.
69047
69048 2003-06-11  Derek Price  <derek@ximbiot.com>
69049
69050         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
69051         necessary.
69052
69053 2003-06-11  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/sysexits.m4: New file.
69056
69057 2003-06-10  Simon Josefsson  <jas@extundo.com>
69058
69059         * lib/argp.h: New file, from glibc.
69060         * lib/argp-ba.c: New file, from glibc.
69061         * lib/argp-eexst.c: New file, from glibc.
69062         * lib/argp-fmtstream.c: New file, from glibc.
69063         * lib/argp-fmtstream.h: New file, from glibc.
69064         * lib/argp-fs-xinl.c: New file, from glibc.
69065         * lib/argp-help.c: New file, from glibc.
69066         * lib/argp-namefrob.h: New file, from glibc.
69067         * lib/argp-parse.c: New file, from glibc.
69068         * lib/argp-pv.c: New file, from glibc.
69069         * lib/argp-pvh.c: New file, from glibc.
69070         * lib/argp-xinl.c: New file, from glibc.
69071
69072 2003-06-10  Simon Josefsson  <jas@extundo.com>
69073
69074         * modules/strchrnul: New file.
69075
69076 2003-06-10  Simon Josefsson  <jas@extundo.com>
69077
69078         * modules/argp: New file.
69079
69080 2003-06-10  Simon Josefsson  <jas@extundo.com>
69081
69082         * m4/strchrnul.m4: New file.
69083
69084 2003-06-10  Simon Josefsson  <jas@extundo.com>
69085
69086         * lib/strchrnul.h: New file.
69087         * lib/strchrnul.c: New file.
69088
69089 2003-06-10  Bruno Haible  <bruno@clisp.org>
69090
69091         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
69092
69093 2003-06-07  Karl Berry  <karl@gnu.org>
69094
69095         * config/config.{guess,sub}: update from prep.
69096
69097 2003-06-07  Jim Meyering  <jim@meyering.net>
69098
69099         * modules/strtod: Use $(...) notation, not @...@ for
69100         AC_REPLACE'd variables.
69101         * modules/localcharset: Likewise.
69102
69103 2003-06-07  Jim Meyering  <jim@meyering.net>
69104
69105         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
69106         in place of my name in the copyright comment.
69107         Remove definition and uses of __P.
69108
69109         From coreutils.
69110         * lib/stat.c: Don't declare xmalloc explicitly.
69111         Instead, include "xalloc.h".
69112         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
69113         xrealloc, and xcalloc return values.
69114         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
69115         Improve comment.
69116         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
69117
69118 2003-06-07  Bruno Haible  <bruno@clisp.org>
69119
69120         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
69121         avoid AC_CONFIG_LINKS.
69122         * modules/fnmatch (Makefile.am): Use explicit creation rule for
69123         fnmatch.h, to avoid AC_CONFIG_LINKS.
69124         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
69125
69126 2003-06-07  Bruno Haible  <bruno@clisp.org>
69127
69128         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
69129         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
69130         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69131         directory.
69132         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
69133         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69134         directory.
69135
69136 2003-06-06  Jim Meyering  <jim@meyering.net>
69137
69138         Merge from coreutils.
69139         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
69140         Consolidate declarations and initializations of *_base* locals.
69141
69142         Merge from coreutils.
69143         This avoids a core dump on systems without GNU putenv,
69144         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
69145         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
69146         (unsetenv): New static function, from GNU libc.
69147         (rpl_putenv): Use it.
69148
69149         * lib/modechange.c: Remove trailing blanks.
69150
69151         Merge from coreutils.
69152         * lib/fsusage.c: Remove declaration of statfs.
69153         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
69154
69155         * lib/posixtm.c: Include <stdbool.h> unconditionally.
69156
69157 2003-06-06  Jim Meyering  <jim@meyering.net>
69158
69159         * lib/stdbool_.h: Renamed from stdbool.h.in.
69160
69161 2003-06-06  Jim Meyering  <jim@meyering.net>
69162             Bruno Haible  <bruno@clisp.org>
69163
69164         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
69165         Adjust Makefile.am snippet not to redirect directly to target.
69166         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
69167
69168 2003-06-05  Paul Eggert  <eggert@twinsun.com>
69169
69170         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
69171         mismatch, look in future quarters as well as past.  This fixes a
69172         bug when processing fall-backwards gaps immediately after a long
69173         period of daylight-saving time.
69174
69175         * lib/mktime.c: Assume freestanding C89 or better.
69176         (HAVE_LIMITS_H): Remove.  Assume it's 1.
69177         (__P): Remove; not used.
69178         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
69179         (mktime, not_equal_tm, print_tm, check_result,
69180         main): Use prototypes.  Use const * where appropriate.
69181         (main): Fix typo in testing code that uncovered by above changes.
69182         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
69183
69184 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69185
69186         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
69187         locale.h, localeconv.  This merges changes from coreutils.
69188
69189         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
69190         It can be removed after the next Autoconf is released.
69191         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
69192         needed.
69193
69194 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69195
69196         * lib/mktime.c: Fix Debian bug 177940
69197         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
69198         (localtime_offset): Now long int, not time_t, because we want it
69199         to be guaranteed to be signed.  All uses changed.
69200         (__mktime_internal): If overflow would occur when adding offset,
69201         don't add it.
69202
69203         Merge 'human' changes from coreutils.  Rewrite to support
69204         locale-specific notations like thousands separators.
69205         * lib/human.c: Simplify authorship notice.
69206         Include human.h immediately after config.h.
69207         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
69208         <limits.h>: Do not include, since human.h does.
69209         (SIZE_MAX, UINTMAX_MAX): New macros.
69210         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
69211         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
69212         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
69213         (power_letter): Renamed from suffixes.
69214         (generate_suffix_backwards): Remove.
69215         (adjust_value): Now takes int style (because of human.h changes)
69216         and long double value (for greater precision on some platforms).
69217         (group_number): New function.
69218         (human_readable): Use it.  Use integer options, not enum.
69219         Put the options before the sizes in the arg list.
69220         Support all the new options.
69221         The old human_readable function has been removed;
69222         use inttostr.h instead.
69223         (human_readable, default_block_size, humblock):
69224         Use uintmax_t, not int, for block sizes.
69225         (human_readable_inexact, block_size_types): Remove.
69226         (block_size_opts): New constant.
69227         (human_options): Renamed from human_block_size, with new signature
69228         that allows block sizes up to UINTMAX_MAX.  All callers changed.
69229         * lib/human.h: Add copyright and authorship notice.
69230         Include <limits.h> and <stdbool.h> unconditionally.
69231         (PARAMS): Remove.  All uses removed.
69232         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
69233         (enum human_inexact_style): Remove tag; now a nameless enum.
69234         (human_floor, human_ceiling, human_round_to_even): Now have
69235         values 2, 0, 1 rather than -1, 1, 0.
69236         (human_group_digits, human_suppress_point_zero, human_autoscale,
69237         human_base_1024, human_SI, human_B): New constants.
69238         (human_readable_inexact, human_block_size): Remove.
69239         (human_readable): Size args are now uintmax_t, not int.
69240         (human_options): New decl.
69241
69242         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
69243         unnecessary now that we assume C89 or better.  This change
69244         imported from coreutils.
69245
69246         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69247         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
69248         in the 2003-05-30 sync from glibc.
69249
69250         .h files should stand alone, but we shouldn't include <sys/types.h>
69251         if we can get away with just <stddef.h>.
69252
69253         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
69254         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
69255         rather than <sys/types.h>, as we merely need size_t.
69256         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
69257         to get size_t.
69258         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
69259         Include <stdio.h>, to get FILE.
69260         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
69261         memcasecmp.h has included <stddef.h> and all we need is size_t.
69262         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
69263         our interface, instead of including <sys/types.h>
69264
69265 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69266
69267         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
69268         now, as glibc mktime is buggy on non-glibc systems.
69269
69270 2003-06-03  Karl Berry  <karl@gnu.org>
69271
69272         * config/config.sub: update from prep.
69273
69274 2003-06-02  Paul Eggert  <eggert@twinsun.com>
69275
69276         [from coreutils]
69277         Fix some minor time-related bugs with POSIX time arguments.
69278         Some valid time stamps were being rejected (notably -1, and
69279         time stamps before 1900 on 64-bit hosts).  And some invalid
69280         time stamps were being accepted, e.g. September 31.
69281
69282         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
69283         that we can return (time_t) -1 successfully.
69284         * lib/posixtm.c: Likewise.
69285         [HAVE_STDBOOL_H]: Include <stdbool.h>.
69286         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
69287         (t): Remove static var.
69288         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
69289         of static var.  All uses changed.
69290         (year): Do not reject years before 1900; they can occur with
69291         64-bit time_t.
69292         (posix_time_parse): Do not check for out-of-range components;
69293         that is now the caller's responsibility, since our checks were
69294         only approximations.
69295         (posixtime): Use mktime to check for out-of-range components,
69296         since it knows them exactly.
69297         If mktime returns (time_t) -1, check whether an error actually occurred
69298         by invoking localtime on -1.
69299         (main) [TEST_POSIXTIME]: Check for input data errors, and report
69300         posixtime failures better.
69301         Improve the test data (in comments only).
69302
69303 2003-06-02  Karl Berry  <karl@gnu.org>
69304
69305         * config/mkinstalldirs (version): new variable.
69306         (--version): new option.
69307         (usage): improve message.
69308
69309 2003-05-30  Karl Berry  <karl@gnu.org>
69310
69311         * lib/mktime.c: update from libc.
69312
69313 2003-05-30  Bruno Haible  <bruno@clisp.org>
69314
69315         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
69316         * config/config.rpath: Upgrade to gettext-0.12.1.
69317
69318 2003-05-30  Bruno Haible  <bruno@clisp.org>
69319
69320         * m4/gettext.m4: Upgrade to gettext-0.12.1.
69321         * m4/nls.m4: New file, from gettext-0.12.1.
69322         * m4/po.m4: New file, from gettext-0.12.1.
69323         * m4/progtest.m4: Upgrade to gettext-0.12.1.
69324
69325 2003-05-30  Bruno Haible  <bruno@clisp.org>
69326
69327         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
69328         * lib/localcharset.h: Likewise.
69329         * lib/localcharset.c: Likewise.
69330
69331 2003-05-29  Karl Berry  <karl@gnu.org>
69332
69333         * config/config.rpath: update from gettext.
69334
69335 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69336
69337         Assume the headers required for C89 freestanding compilers.
69338         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
69339         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
69340         * m4/human.m4 (gl_HUMAN): Likewise.
69341         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
69342         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
69343         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69344         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
69345         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69346         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
69347
69348 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69349
69350         Assume the headers required for C89 freestanding compilers.
69351         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
69352         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
69353         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
69354         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
69355         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
69356         define, since <limits.h> is guaranteed to do that.
69357         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
69358         * lib/exclude.c: Include <stdbool.h> unconditionally.
69359         * lib/tempname.c: Include <stddef.h> unconditionally.
69360         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
69361         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
69362         <stddef.h> does that.
69363         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
69364         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
69365         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
69366         needed.
69367         * lib/xstrtol.c: Likewise.
69368         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
69369         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
69370
69371         * lib/addext.c (addext): Use assignment rather than cast, to avoid
69372         warnings on some platforms.
69373
69374         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69375         arbitrarily.
69376
69377 2003-05-26  Jim Meyering  <jim@meyering.net>
69378
69379         Merge in a change from coreutils:
69380         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
69381         that is guaranteed to be `no'.  Use `no_such_member' to indicate
69382         that condition, rather than `-1' which is slightly misleading.
69383         Change the name of the cache variable to have the gl_ prefix.
69384         Prompted by a patch from Richard Dawe for DJGPP.
69385
69386 2003-05-24  Karl Berry  <karl@gnu.org>
69387
69388         * config/config.guess: update from prep.
69389
69390 2003-05-22  Karl Berry  <karl@gnu.org>
69391
69392         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
69393
69394 2003-05-20  Karl Berry  <karl@gnu.org>
69395
69396         * config/config.guess: update from prep.
69397
69398 2003-05-18  Karl Berry  <karl@gnu.org>
69399
69400         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
69401         might actually be set by the user.
69402
69403         * config/depcomp, install-sh, mdate-sh: update from automake.
69404
69405 2003-05-17  Bruno Haible  <bruno@clisp.org>
69406
69407         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
69408         invalid expansion for AC_EGREP_CPP.
69409         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
69410         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
69411         Suggested by Akim Demaille <akim@epita.fr> in
69412         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
69413
69414 2003-05-12  Jim Meyering  <jim@meyering.net>
69415
69416         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
69417         the space-padded-by-default conversion specifiers, %e, %k, %l.
69418
69419 2003-05-12  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
69422         the string is longer than 4 KB.
69423
69424 2003-05-11  Karl Berry  <karl@gnu.org>
69425
69426         * config/config.{guess,sub}: update from prep.
69427
69428 2003-05-09  Bruno Haible  <bruno@clisp.org>
69429
69430         * modules/error: Add m4/strerror_r.m4 to file list.
69431
69432 2003-05-03  Bruno Haible  <bruno@clisp.org>
69433
69434         Upgrade to Unicode-4.0.
69435         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
69436         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
69437         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
69438         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
69439         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
69440         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
69441         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
69442         Change width of U+E0100..U+E01EF from 1 to 0.
69443
69444 2003-04-25  Jim Meyering  <jim@meyering.net>
69445
69446         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
69447         of type size_t, not int.
69448
69449 2003-04-25  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/copy-file.c: Include <stddef.h>, for size_t.
69452
69453 2003-04-21  Paul Eggert  <eggert@twinsun.com>
69454
69455         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
69456         code which expansion is under static control.  Patch imported from
69457         Akim Demaille's patch to Bison; see
69458         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
69459
69460 2003-04-14  Bruno Haible  <bruno@clisp.org>
69461
69462         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
69463
69464 2003-04-11  Jim Meyering  <jim@meyering.net>
69465
69466         Merge changes from Coreutils.
69467
69468         2003-03-22  Jim Meyering  <jim@meyering.net>
69469
69470         * lib/strftime.c (widen): Cast alloca return value to proper type.
69471
69472         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
69473
69474         From GNU libc.
69475         * lib/strftime.c (my_strftime): Handle very large width
69476         specifications for numeric values correctly.  Improve checks for
69477         overflow.
69478
69479         2003-01-19  Jim Meyering  <jim@meyering.net>
69480
69481         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
69482         definitions.
69483         (nl_get_alt_digit) [! defined my_strftime]: Define.
69484         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
69485         _nl_get_alt_digit and _nl_get_walt_digit.
69486
69487         * lib/strftime.c (my_strftime): Merge in locale-related changes from
69488         libc. These changes have no effect outside of _LIBC.
69489
69490 2003-04-10  Bruno Haible  <bruno@clisp.org>
69491
69492         * modules/findprog: New file.
69493         * MODULES.html.sh (func_all_modules): Add it.
69494
69495 2003-04-10  Bruno Haible  <bruno@clisp.org>
69496
69497         * m4/findprog.m4: New file.
69498         * m4/eaccess.m4: New file.
69499
69500 2003-04-10  Bruno Haible  <bruno@clisp.org>
69501
69502         * lib/findprog.h: New file, from GNU gettext.
69503         * lib/findprog.c: New file, from GNU gettext.
69504
69505 2003-04-05  Jim Meyering  <jim@meyering.net>
69506
69507         Merge changes from Coreutils.
69508
69509         * lib/exclude.h (PARAMS): Remove definition and uses.
69510         * lib/exclude.c: Remove uses of `PARAMS'.
69511
69512         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
69513         Add test-cases for DOS filenames. Declare program_name.
69514         (main): Set up program_name.  Patch by Rich Dawe.
69515
69516         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69517         error from mntctl.
69518         Use mntctl's return value to drive the entry-processing loop, since
69519         we can't rely on the value of the vmt_length member in the last
69520         entry.  On some systems doing so could result in exhausting
69521         virtual memory.  Based in part on a patch from Mike Jetzer.
69522
69523 2003-04-04  Bruno Haible  <bruno@clisp.org>
69524
69525         * modules/linebreak: New file.
69526         * MODULES.html.sh (func_all_modules): Add it.
69527
69528 2003-04-04  Bruno Haible  <bruno@clisp.org>
69529
69530         * m4/linebreak.m4: New file.
69531
69532 2003-04-04  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/linebreak.h: New file, from GNU gettext.
69535         * lib/linebreak.c: New file, from GNU gettext with slight
69536         modifications.
69537         * lib/lbrkprop.h: New file, from GNU gettext.
69538
69539 2003-04-03  Bruno Haible  <bruno@clisp.org>
69540
69541         * modules/utf8-ucs4: New file.
69542         * modules/utf16-ucs4: New file.
69543         * modules/ucs4-utf8: New file.
69544         * modules/ucs4-utf16: New file.
69545         * MODULES.html.sh (func_all_modules): Add them.
69546
69547 2003-04-03  Bruno Haible  <bruno@clisp.org>
69548
69549         * m4/utf-ucs4.m4: New file.
69550         * m4/ucs4-utf.m4: New file.
69551
69552 2003-04-03  Bruno Haible  <bruno@clisp.org>
69553
69554         * lib/utf8-ucs4.h: New file, from GNU gettext.
69555         * lib/utf16-ucs4.h: New file, from GNU gettext.
69556         * lib/ucs4-utf8.h: New file, from GNU gettext.
69557         * lib/ucs4-utf16.h: New file, from GNU gettext.
69558
69559 2003-04-02  Bruno Haible  <bruno@clisp.org>
69560
69561         * modules/binary-io: New file.
69562         * MODULES.html.sh (func_all_modules): Add it.
69563
69564 2003-04-02  Bruno Haible  <bruno@clisp.org>
69565
69566         * lib/binary-io.h: New file, from GNU gettext.
69567
69568 2003-04-01  Bruno Haible  <bruno@clisp.org>
69569
69570         * modules/pathname: New file.
69571         * MODULES.html.sh (func_all_modules): Add it.
69572
69573 2003-04-01  Bruno Haible  <bruno@clisp.org>
69574
69575         * lib/pathname.h: New file, from GNU gettext.
69576         * lib/concatpath.c: New file, from GNU gettext.
69577
69578 2003-03-30  Bruno Haible  <bruno@clisp.org>
69579
69580         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69581
69582 2003-03-30  Bruno Haible  <bruno@clisp.org>
69583
69584         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69585         function chown() doesn't exist.
69586
69587 2003-03-28  Bruno Haible  <bruno@clisp.org>
69588
69589         * modules/copy-file: New file.
69590         * MODULES.html.sh (func_all_modules): Add it.
69591
69592 2003-03-28  Bruno Haible  <bruno@clisp.org>
69593
69594         * m4/copy-file.m4: New file.
69595
69596 2003-03-28  Bruno Haible  <bruno@clisp.org>
69597
69598         * lib/copy-file.h: New file, from GNU gettext.
69599         * lib/copy-file.c: New file, from GNU gettext.
69600
69601 2003-03-18  Jim Meyering  <jim@meyering.net>
69602
69603         * lib/quote.c (quote_n): Fix typo in comment.
69604
69605 2003-03-18  Bruno Haible  <bruno@clisp.org>
69606
69607         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
69608         checking.
69609         * m4/onceonly_2_57.m4: Likewise.
69610
69611 2003-03-17  Bruno Haible  <bruno@clisp.org>
69612
69613         * m4/onceonly.m4: Require autoconf 2.54 or newer.
69614         (m4_quote): Remove macro.
69615         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
69616
69617 2003-03-14  Jim Meyering  <jim@meyering.net>
69618
69619         Merge changes from Coreutils.
69620         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
69621         to be const, in order to avoid warnings.
69622         (obstack_room): Likewise.
69623         (obstack_empty_p): Likewise.
69624
69625 2003-03-14  Bruno Haible  <bruno@clisp.org>
69626
69627         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
69628         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
69629
69630 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69631
69632         Merge changes from Bison.
69633         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
69634         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
69635         when compiling Bison 1.875's `bitset bset = obstack_alloc
69636         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
69637         * lib/hash.c: Include <stdbool.h> unconditionally.
69638
69639 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69640
69641         * m4/onceonly.m4 (m4_quote): New macro.
69642         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
69643         Quote AC_FOREACH variable-expansions properly.
69644
69645 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69646
69647         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
69648
69649 2003-03-09  Paul Eggert  <eggert@twinsun.com>
69650
69651         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
69652         Reported by Bruce Becker; see:
69653         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
69654
69655 2003-03-03  Paul Eggert  <eggert@twinsun.com>
69656             Bruno Haible  <bruno@clisp.org>
69657
69658         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
69659         Reported by John Hughes, see
69660         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
69661
69662 2003-02-20  Bruno Haible  <bruno@clisp.org>
69663
69664         * MODULES.html.sh (func_all_modules): Add poll.
69665
69666 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69667
69668         * modules/poll: New file.
69669
69670 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69671
69672         * lib/poll_.h: New file.
69673         * lib/poll.c: New file.
69674
69675 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69676
69677         * m4/poll.m4: New file.
69678
69679 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69680
69681         * modules/mathl: New file.
69682
69683 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69684
69685         * lib/mathl.h: New file.
69686         * lib/acosl.c: New file.
69687         * lib/asinl.c: New file.
69688         * lib/atanl.c: New file.
69689         * lib/ceill.c: New file.
69690         * lib/cosl.c: New file.
69691         * lib/expl.c: New file.
69692         * lib/floorl.c: New file.
69693         * lib/frexpl.c: New file.
69694         * lib/ldexpl.c: New file.
69695         * lib/logl.c: New file.
69696         * lib/sincosl.c: New file.
69697         * lib/sinl.c: New file.
69698         * lib/sqrtl.c: New file.
69699         * lib/tanl.c: New file.
69700         * lib/trigl.c: New file.
69701         * lib/trigl.h: New file.
69702
69703 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69704
69705         * m4/mathl.m4: New file.
69706
69707 2003-02-18  Bruno Haible  <bruno@clisp.org>
69708
69709         * MODULES.html.sh (func_all_modules): Add mathl.
69710
69711 2003-02-17  Bruno Haible  <bruno@clisp.org>
69712
69713         * modules/mkdtemp: New module.
69714         * MODULES.html.sh (func_all_modules): Add it.
69715
69716 2003-02-17  Bruno Haible  <bruno@clisp.org>
69717
69718         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
69719
69720 2003-02-17  Bruno Haible  <bruno@clisp.org>
69721
69722         * lib/mkdtemp.h: New file, from GNU gettext.
69723         * lib/mkdtemp.c: New file, from GNU gettext.
69724
69725 2003-02-02  Jim Meyering  <jim@meyering.net>
69726
69727         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
69728         e.g. glibc-2.2.93.
69729
69730 2003-01-31  Bruno Haible  <bruno@clisp.org>
69731
69732         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69733         'rpl_rename'.
69734         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69735         'rpl_strnlen'.
69736         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69737         'rpl_strtod'.
69738         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69739         'rpl_utime'.
69740
69741 2003-01-31  Bruno Haible  <bruno@clisp.org>
69742
69743         * lib/rename.c: #undef rename before defining rpl_rename.
69744         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69745
69746 2003-01-30  Bruno Haible  <bruno@clisp.org>
69747
69748         * modules/vasnprintf, modules/vasprintf: New modules.
69749         * MODULES.html.sh (func_all_modules): Add them.
69750
69751 2003-01-30  Bruno Haible  <bruno@clisp.org>
69752
69753         * m4/signed.m4: New file, from GNU gettext.
69754         * m4/longdouble.m4: New file, from GNU gettext.
69755         * m4/wchar_t.m4: New file, from GNU gettext.
69756         * m4/wint_t.m4: New file, from GNU gettext.
69757         * m4/vasnprintf.m4: New file.
69758         * m4/vasprintf.m4: New file.
69759
69760 2003-01-30  Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/printf-args.h: New file, from GNU gettext.
69763         * lib/printf-args.c: New file, from GNU gettext.
69764         * lib/printf-parse.h: New file, from GNU gettext.
69765         * lib/printf-parse.c: New file, from GNU gettext.
69766         * lib/vasnprintf.h: New file, from GNU gettext.
69767         * lib/vasnprintf.c: New file, from GNU gettext.
69768         * lib/asnprintf.c: New file, from GNU gettext.
69769         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69770         * lib/vasprintf.c: New file, from GNU gettext.
69771         * lib/asprintf.c: New file, from GNU gettext.
69772
69773 2003-01-29  Bruno Haible  <bruno@clisp.org>
69774
69775         * modules/stpncpy: New module.
69776         * MODULES.html.sh (func_all_modules): Add it.
69777
69778 2003-01-29  Bruno Haible  <bruno@clisp.org>
69779
69780         * m4/stpncpy.m4: New file.
69781
69782 2003-01-29  Bruno Haible  <bruno@clisp.org>
69783
69784         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69785         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69786
69787 2003-01-28  Bruno Haible  <bruno@clisp.org>
69788
69789         * modules/c-ctype: New module.
69790         * MODULES.html.sh (func_all_modules): Add it.
69791
69792 2003-01-28  Bruno Haible  <bruno@clisp.org>
69793
69794         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69795         Paul Eggert.
69796         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69797         Paul Eggert.
69798
69799 2003-01-27  Bruno Haible  <bruno@clisp.org>
69800
69801         * modules/xsetenv: New module.
69802         * MODULES.html.sh (func_all_modules): Add it.
69803
69804 2003-01-27  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/xsetenv.h: New file, from GNU gettext.
69807         * lib/xsetenv.c: New file, from GNU gettext.
69808
69809 2003-01-23  Jim Meyering  <jim@meyering.net>
69810
69811         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69812         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69813
69814 2003-01-23  Bruno Haible  <bruno@clisp.org>
69815
69816         * modules/minmax: New module.
69817         * MODULES.html.sh (func_all_modules): Add it.
69818
69819 2003-01-23  Bruno Haible  <bruno@clisp.org>
69820
69821         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69822         Eggert.
69823
69824 2003-01-22  Bruno Haible  <bruno@clisp.org>
69825
69826         * modules/exit: New module.
69827         * MODULES.html.sh (func_all_modules): Add it.
69828
69829 2003-01-22  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/exit.h: New file, from GNU gettext.
69832
69833 2003-01-19  Bruno Haible  <bruno@clisp.org>
69834
69835         * gnulib-tool: Recognize option --extract-maintainer.
69836         (func_get_maintainer): New function.
69837         * modules/*: Add Maintainer entry.
69838
69839 2003-01-16  Jim Meyering  <jim@meyering.net>
69840
69841         * m4/regex.m4: The `regex' struct is both input and output.
69842         Initialize it before each use.  Patch by Tim Waugh.
69843
69844 2003-01-16  Bruno Haible  <bruno@clisp.org>
69845
69846         * MODULES.html.sh: Add a table of contents. Add the module name as
69847         leftmost column. Add hyperlinks.
69848
69849 2003-01-15  Bruno Haible  <bruno@clisp.org>
69850
69851         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69852
69853 2003-01-15  Bruno Haible  <bruno@clisp.org>
69854
69855         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69856         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69857         suffix.
69858
69859 2003-01-15  Bruno Haible  <bruno@clisp.org>
69860
69861         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69862
69863 2003-01-15  Bruno Haible  <bruno@clisp.org>
69864
69865         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69866         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69867
69868 2003-01-14  Jim Meyering  <jim@meyering.net>
69869
69870         * lib/same.c (same_name): Tweak a comment.
69871
69872 2003-01-14  Bruno Haible  <bruno@clisp.org>
69873
69874         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69875         when a string comparison is sufficient.
69876
69877 2003-01-14  Bruno Haible  <bruno@clisp.org>
69878
69879         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69880         'unsigned int'.
69881
69882 2003-01-14  Bruno Haible  <bruno@clisp.org>
69883
69884         * lib/hash-pjw.c: Add comment about low quality of this function.
69885
69886 2003-01-13  Bruno Haible  <bruno@clisp.org>
69887
69888         * modules/stpcpy: Distribute lib/stpcpy.h.
69889         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69890
69891 2003-01-13  Bruno Haible  <bruno@clisp.org>
69892
69893         * modules/*: Add a description.
69894         * modules/strpbrk: Fix Makefile.am snippet.
69895         * modules/strtoimax: Fix dependencies.
69896         * modules/strtoumax: Likewise.
69897
69898 2003-01-13  Bruno Haible  <bruno@clisp.org>
69899
69900         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69901         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69902         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69903
69904 2003-01-13  Bruno Haible  <bruno@clisp.org>
69905
69906         * gnulib-tool (func_create_testdir): Store config/* files in the main
69907         directory.
69908         * config.rpath: Move to ...
69909         * config/config.rpath: ... here.
69910         * modules/gettext: Contains config/config.rpath, not config.rpath.
69911         * modules/iconv: Likewise.
69912
69913 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69914
69915         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69916         to avoid collisions with libcurses and libreadline.
69917
69918         * m4/getstr.m4: Remove.
69919         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69920
69921 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69922
69923         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69924         to avoid collisions with libcurses and libreadline.
69925
69926         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69927         * lib/getstr.h, getstr.c: Remove.
69928         * lib/getline.c: Include "getline.h", to check interface.
69929         Move body of old getstr.c here: this defines MIN_CHUNK and
69930         declares getdelim2, which is renamed from getstr.
69931         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69932
69933         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69934         All uses changed.
69935         * lib/linebuffer.h: Likewise.
69936         (readline): Remove backward-compatibility macro.
69937
69938 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69939
69940         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69941         to avoid collisions with libcurses and libreadline.
69942         * getstr: Remove.
69943         * MODULES.html.sh: Remove getstr.
69944         * modules/getline: Depend on unlocked-io, not getstr.
69945
69946 2003-01-12  Jim Meyering  <jim@meyering.net>
69947
69948         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69949
69950 2003-01-10  Bruno Haible  <bruno@clisp.org>
69951
69952         * modules/alloca: Change Makefile.am requirements. Simplify Include
69953         requirements. Add lib/alloca_.h to file list.
69954
69955 2003-01-10  Bruno Haible  <bruno@clisp.org>
69956
69957         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69958
69959 2003-01-10  Bruno Haible  <bruno@clisp.org>
69960
69961         * lib/alloca_.h: New file.
69962         * lib/getdate.y: Unconditionally include alloca.h.
69963         * lib/makepath.c: Likewise.
69964         * lib/setenv.c: Likewise.
69965         * lib/userspec.c: Likewise.
69966
69967 2003-01-09  Karl Berry  <karl@gnu.org>
69968
69969         * MODULES.html.sh: include `dirname $0` in PATH, to find
69970         gnulib-tool.
69971
69972 2003-01-09  Bruno Haible  <bruno@clisp.org>
69973
69974         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69975         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69976
69977 2003-01-09  Bruno Haible  <bruno@clisp.org>
69978
69979         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69980
69981 2003-01-09  Bruno Haible  <bruno@clisp.org>
69982
69983         * lib/stdbool.h.in: New file.
69984
69985 2003-01-09  Bruno Haible  <bruno@clisp.org>
69986
69987         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69988         * MODULES.html.sh: Likewise.
69989
69990 2003-01-08  Jim Meyering  <jim@meyering.net>
69991
69992         * lib/full-write.c: Undefine and define-away `const' after inclusion
69993         of errno.h, not before.  Suggestion from Bruno Haible.
69994
69995 2003-01-08  Bruno Haible  <bruno@clisp.org>
69996
69997         * modules/full-read: Depend on full-write.
69998
69999 2003-01-08  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/safe-read.c: Include specification header first, to ensure its
70002         selfcontainedness.
70003         * lib/full-write.c: Likewise.
70004
70005 2003-01-07  Jim Meyering  <jim@meyering.net>
70006
70007         * lib/full-write.c: Rework so that it may serve to define full_read,
70008         too.
70009         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
70010
70011 2003-01-07  Bruno Haible  <bruno@clisp.org>
70012
70013         * lib/strtoimax.c: Include <stdint.h> as an alternative to
70014         <inttypes.h>.
70015         * lib/xstrtol.h: Likewise.
70016         * lib/xstrtoimax.c: Likewise.
70017         * lib/xstrtoumax.c: Likewise.
70018         * lib/human.h: Likewise.
70019
70020         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
70021         on systems that have <inttypes.h> but not <stdint.h>.
70022
70023 2003-01-07  Bruno Haible  <bruno@clisp.org>
70024
70025         * MODULES.html.sh: Add copyright notice.
70026         (missed_files): Omit CVS directory entries.
70027         (func_module): Make it work with sed-3.02.
70028         * MODULES.txt: Remove file.
70029
70030 2003-01-06  Jim Meyering  <jim@meyering.net>
70031
70032         * lib/version-etc.c: Update year in translatable copyright string.
70033
70034 2003-01-03  Karl Berry  <karl@gnu.org>
70035
70036         * config/config.{guess,sub}: update from prep.
70037
70038 2003-01-02  Karl Berry  <karl@gnu.org>
70039
70040         * doc/COPYING.DOC: belatedly updated to 1.2.
70041
70042 2003-01-01  Karl Berry  <karl@gnu.org>
70043
70044         * gnulib-tool (func_verify_module): report module name $module in
70045         error message, not $1.
70046         * gnulib-tool (create-testdir): don't complain if destdir couldn't
70047         be created, only if it doesn't exist.
70048         * gnulib-tool (last_checkin_date): don't expand the $Date here.
70049
70050 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70051
70052         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
70053
70054 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70055
70056         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
70057         memcmp if strcoll doesn't work.
70058
70059 2002-12-31  Bruno Haible  <bruno@clisp.org>
70060
70061         * lib/utime.c (utime_null): No need to call ftruncate if the file was
70062         nonempty.
70063
70064 2002-12-31  Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/memcoll.c (STRCOLL): New macro.
70067         (memcoll): Use it.
70068
70069 2002-12-31  Bruno Haible  <bruno@clisp.org>
70070
70071         * lib/localcharset.h: New file.
70072         * lib/localcharset.c: Include it.
70073         * lib/unicodeio.c: Likewise.
70074
70075 2002-12-31  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
70078         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
70079
70080 2002-12-31  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/getline.h: Include <stddef.h>, for size_t.
70083
70084         * lib/unicodeio.h: Include <stddef.h>, for size_t.
70085         * lib/unicodeio.c: Don't include <stddef.h>.
70086
70087 2002-12-31  Bruno Haible  <bruno@clisp.org>
70088
70089         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
70090         HAVE_TM_ZONE.
70091
70092 2002-12-24  Karl Berry  <karl@gnu.org>
70093
70094         * config/config.guess: update from prep.
70095
70096 2002-12-24  Bruno Haible  <bruno@clisp.org>
70097
70098         General infrasructure.
70099         * m4/README: Rewritten.
70100         * m4/onceonly.m4: New file.
70101         * m4/onceonly_2_57.m4: New file.
70102
70103         Module atexit.
70104         * m4/atexit.m4: New file.
70105
70106         Module strtod.
70107         * m4/strtod.m4: New file.
70108
70109         Module strtol.
70110         * m4/strtol.m4: New file.
70111
70112         Module strtoul.
70113         * m4/strtoul.m4: New file.
70114
70115         Module memchr.
70116         * m4/memchr.m4: New file.
70117
70118         Module memcmp.
70119         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
70120         (jm_FUNC_MEMCMP): Invoke it.
70121
70122         Module memcpy.
70123         * m4/memcpy.m4: New file.
70124
70125         Module memmove.
70126         * m4/memmove.m4: New file.
70127
70128         Module memset.
70129         * m4/memset.m4: New file.
70130
70131         Module strcspn.
70132         * m4/strcspn.m4: New file.
70133
70134         Module strpbrk.
70135         * m4/strpbrk.m4: New file.
70136
70137         Module strstr.
70138         * m4/strstr.m4: New file.
70139
70140         Module strerror.
70141         * m4/strerror.m4: New file.
70142
70143         Module mktime.
70144         * m4/mktime.m4: Renamed from jm-mktime.m4.
70145         (gl_PREREQ_MKTIME): New macro.
70146         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
70147
70148         Module malloc.
70149         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
70150         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
70151         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
70152
70153         Module realloc.
70154         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
70155         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
70156         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
70157
70158         Module strftime.
70159         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
70160         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
70161         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
70162         gl_TM_GMTOFF.
70163         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
70164
70165         Module xalloc.
70166         * m4/xalloc.m4: New file.
70167
70168         Module alloca.
70169         * m4/alloca.m4: New file.
70170
70171         Module putenv.
70172         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
70173         (jm_FUNC_PUTENV): Invoke it.
70174
70175         Module setenv.
70176         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
70177         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
70178         when invoked twice.
70179         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
70180         gt_FUNC_SETENV.
70181
70182         Module memrchr.
70183         * m4/memrchr.m4: New file.
70184
70185         Module stpcpy.
70186         * m4/stpcpy.m4: New file.
70187
70188         Module strcase.
70189         * m4/strcase.m4: New file.
70190
70191         Module strdup.
70192         * m4/strdup.m4: New file.
70193
70194         Module strnlen.
70195         * m4/strnlen.m4: New file.
70196
70197         Module strndup.
70198         * m4/strndup.m4: New file.
70199
70200         Module xstrtod.
70201         * m4/xstrtod.m4: New file.
70202
70203         Module xstrtol.
70204         * m4/xstrtol.m4: New file.
70205
70206         Module getdate.
70207         * m4/getdate.m4: New file.
70208
70209         Module unlocked-io.
70210         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
70211         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
70212         * m4/jm-glibc-io.m4n: Remove file.
70213
70214         Module long-options.
70215         * m4/long-options.m4: New file.
70216
70217         Module md5.
70218         * m4/md5.m4: New file.
70219
70220         Module sha.
70221         * m4/sha.m4: New file.
70222
70223         Module getstr.
70224         * m4/getstr.m4: New file.
70225
70226         Module getline.
70227         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
70228         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
70229         <sys/types.h>, for size_t. Use the function name gnu_getline, not
70230         simply getline. Infoke gl_PREREQ_GETLINE.
70231
70232         Module obstack.
70233         * m4/obstack.m4: New file.
70234
70235         Module hash.
70236         * m4/hash.m4: New file.
70237
70238         Module readtokens.
70239         * m4/readtokens.m4: New file.
70240
70241         Module strverscmp.
70242         * m4/strverscmp.m4: New file.
70243
70244         Module stdbool.
70245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
70246         OSF/1.
70247
70248         Module strtoll.
70249         * m4/strtoll.m4: New file.
70250
70251         Module strtoull.
70252         * m4/strtoull.m4: New file.
70253
70254         Module strtoimax.
70255         * m4/strtoimax.m4: New file.
70256
70257         Module strtoumax.
70258         * m4/strtoumax.m4: New file.
70259
70260         Module xstrtoimax.
70261         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
70262         jm_AC_PREREQ_XSTRTOIMAX.
70263         Moved the strtol prerequisites to strtol.m4.
70264         Moved the strtoll prerequisites to strtoll.m4.
70265         Moved the strtoimax prerequisites to strtoimax.m4.
70266
70267         Module xstrtoumax.
70268         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
70269         jm_AC_PREREQ_XSTRTOUMAX.
70270         Moved the strtoul prerequisites to strtoul.m4.
70271         Moved the strtoull prerequisites to strtoull.m4.
70272         Moved the strtoumax prerequisites to strtoumax.m4.
70273
70274         Module chown.
70275         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
70276         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
70277
70278         Module dup2.
70279         * m4/dup2.m4: New file.
70280
70281         Module ftruncate.
70282         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
70283         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
70284
70285         Module getgroups.
70286         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
70287         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
70288
70289         Module gettimeofday.
70290         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
70291         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
70292         gl_PREREQ_GETTIMEOFDAY.
70293
70294         Module mkdir.
70295         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
70296         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
70297
70298         Module mkstemp.
70299         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
70300         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
70301         jm_AC_TYPE_UINTMAX_T.
70302         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
70303
70304         Module stat.
70305         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
70306         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
70307
70308         Module lstat.
70309         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
70310         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
70311
70312         Module timespec.
70313         * m4/timespec.m4 (gl_TIMESPEC): New macro.
70314         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
70315         * m4/st_mtim.m4: Indentation.
70316
70317         Module nanosleep.
70318         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
70319         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
70320         gl_PREREQ_NANOSLEEP.
70321
70322         Module regex.
70323         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
70324         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
70325         (gl_REGEX): New macro.
70326
70327         Module rename.
70328         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
70329         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
70330
70331         Module rmdir.
70332         * m4/rmdir.m4: New file.
70333
70334         Module utime.
70335         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
70336         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
70337         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
70338
70339         Module dirname.
70340         * m4/dirname.m4: New file.
70341
70342         Module getopt.
70343         * m4/getopt.m4: New file.
70344
70345         Module unistd-safer.
70346         * m4/unistd-safer.m4: New file.
70347
70348         Module fnmatch.
70349         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
70350         declaration.
70351         (gl_PREREQ_FNMATCH_EXTRA): New macro.
70352         (gl_FUNC_FNMATCH_POSIX): New macro.
70353         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
70354         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
70355         simply fnmatch.
70356
70357         Module exclude.
70358         * m4/exclude.m4: New file.
70359
70360         Module human.
70361         * m4/human.m4: New file.
70362
70363         Module acl.
70364         * m4/acl.m4: Nop.
70365
70366         Module backupfile.
70367         * m4/backupfile.m4: New file.
70368         * m4/d-ino.m4: Indentation.
70369
70370         Module fsusage.
70371         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
70372         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
70373         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
70374
70375         Module dirfd.
70376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
70377         requirements.
70378
70379         Module euidaccess.
70380         * m4/euidaccess.m4: New file.
70381
70382         Module file-type.
70383         * m4/file-type.m4: New file.
70384
70385         Module fileblocks.
70386         * m4/fileblocks.m4: New file.
70387
70388         Module filemode.
70389         * m4/filemode.m4: New file.
70390
70391         Module isdir.
70392         * m4/isdir.m4: New file.
70393
70394         Module lchown.
70395         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
70396         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
70397
70398         Module makepath.
70399         * m4/makepath.m4: New file.
70400
70401         Module modechange.
70402         * m4/modechange.m4: New file.
70403
70404         Module mountlist.
70405         * m4/mountlist.m4: New file.
70406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
70407         Indentation.
70408
70409         Module path-concat.
70410         * m4/path-concat.m4: New file.
70411
70412         Module pathmax.
70413         * m4/pathmax.m4: New file.
70414
70415         Module same.
70416         * m4/same.m4: New file.
70417
70418         Module save-cwd.
70419         * m4/save-cwd.m4: New file.
70420
70421         Module savedir.
70422         * m4/savedir.m4: New file.
70423
70424         Module xgetcwd.
70425         * m4/xgetcwd.m4: New file.
70426         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
70427
70428         Module xreadlink.
70429         * m4/xreadlink.m4: New file.
70430
70431         Module safe-read.
70432         * m4/safe-read.m4: New file.
70433
70434         Module safe-write.
70435         * m4/safe-write.m4: New file.
70436
70437         Module closeout.
70438         * m4/closeout.m4: New file.
70439
70440         Module stdio-safer.
70441         * m4/stdio-safer.m4: New file.
70442
70443         Module getpass.
70444         * m4/getpass.m4: New file.
70445
70446         Module getugroups.
70447         * m4/getugroups.m4: New file.
70448
70449         Module group-member.
70450         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
70451         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
70452
70453         Module idcache.
70454         * m4/idcache.m4: New file.
70455
70456         Module userspec.
70457         * m4/userspec.m4: New file.
70458
70459         Module gettime.
70460         * m4/clock_time.m4: New file.
70461         * m4/gettime.m4: New file.
70462
70463         Module settime.
70464         * m4/settime.m4: New file.
70465
70466         Module posixtm.
70467         * m4/posixtm.m4: New file.
70468
70469         Module gethostname.
70470         * m4/gethostname.m4: New file.
70471
70472         Module canon-host.
70473         * m4/canon-host.m4: New file.
70474
70475         Module gettext.
70476         * m4/codeset.m4: New file, from gettext-0.11.5.
70477         * m4/gettext.m4: New file, from gettext-0.11.5.
70478         * m4/glibc21.m4: New file, from gettext-0.11.5.
70479         * m4/iconv.m4: New file, from gettext-0.11.5.
70480         * m4/intdiv0.m4: New file, from gettext-0.11.5.
70481         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
70482         * m4/inttypes.m4: New file, from gettext-0.11.5.
70483         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
70484         * m4/isc-posix.m4: New file, from gettext-0.11.5.
70485         * m4/lcmessage.m4: New file, from gettext-0.11.5.
70486         * m4/lib-ld.m4: New file, from gettext-0.11.5.
70487         * m4/lib-link.m4: New file, from gettext-0.11.5.
70488         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
70489         * m4/progtest.m4: New file, from gettext-0.11.5.
70490         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
70491         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
70492         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
70493
70494         Module localcharset.
70495         * m4/localcharset.m4: New file.
70496
70497         Module hard-locale.
70498         * m4/hard-locale.m4: New file.
70499
70500         Module mbswidth.
70501         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
70502         onceonly macros.
70503         * m4/mbrtowc.m4: Add comment.
70504
70505         Module memcasecmp.
70506         * m4/memcasecmp.m4: New file.
70507
70508         Module memcoll.
70509         * m4/memcoll.m4: New file.
70510
70511         Module unicodeio.
70512         * m4/unicodeio.m4: New file.
70513
70514         Module rpmatch.
70515         * m4/rpmatch.m4: New file.
70516
70517         Module yesno.
70518         * m4/yesno.m4: New file.
70519
70520         Module exitfail.
70521         * m4/exitfail.m4: New file.
70522
70523         Module c-stack.
70524         * m4/c-stack.m4 (gl_C_STACK): New macro.
70525         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
70526
70527         Module error.
70528         * m4/error.m4 (gl_ERROR): New macro.
70529         (jm_PREREQ_ERROR): Use onceonly macros.
70530
70531         Module fatal.
70532         * m4/fatal.m4: New file.
70533
70534         Module getloadavg.
70535         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
70536         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
70537
70538         Module getpagesize.
70539         * m4/getpagesize.m4: New file.
70540
70541         Module getusershell.
70542         * m4/getusershell.m4: New file.
70543
70544         Module physmem.
70545         * m4/physmem.m4: New file.
70546
70547         Module posixver.
70548         * m4/posixver.m4: New file.
70549
70550         Module quotearg.
70551         * m4/quotearg.m4: New file.
70552
70553         Module quote.
70554         * m4/quote.m4: New file.
70555
70556         Module readutmp.
70557         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
70558
70559         Module sig2str.
70560         * m4/sig2str.m4: New file.
70561
70562         Other.
70563         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
70564         ulonglong.m4.
70565         * m4/intmax_t.m4: New file.
70566         * m4/d-type.m4: Indentation.
70567         * m4/jm-macros.m4: Update.
70568         * m4/prereq.m4 (jm_PREREQ): Update.
70569         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
70570         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
70571         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70572         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70573         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70574         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70575         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70576         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70577         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70578         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70579         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70580         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70581         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70582         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70583         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70584         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70585         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70586         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70587         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70588
70589 2002-12-24  Bruno Haible  <bruno@clisp.org>
70590
70591         * MODULES.txt: Update according to m4/ changes.
70592
70593         Module gettext.
70594         * config.rpath: New file, from gettext-0.11.5.
70595
70596         * modules/*: New module descriptions.
70597         * gnulib-tool: New file.
70598         * MODULES.html.sh: New file.
70599
70600 2002-12-21  Karl Berry  <karl@gnu.org>
70601
70602         * doc/fdl.texi: update to version 1.2.
70603
70604 2002-12-19  Karl Berry  <karl@gnu.org>
70605
70606         * config/config.guess: update from prep.
70607
70608 2002-12-18  Bruno Haible  <bruno@clisp.org>
70609
70610         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
70611         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
70612
70613 2002-12-17  Bruno Haible  <bruno@clisp.org>
70614
70615         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
70616         stdlib.h, string.h.
70617
70618 2002-12-17  Bruno Haible  <bruno@clisp.org>
70619
70620         * lib/canon-host.c (strdup): Remove unused declaration.
70621
70622         * lib/fsusage.c: Include full_read.h.
70623         (get_fs_usage): Use full_read instead of safe_read.
70624
70625         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
70626
70627 2002-12-12  Karl Berry  <karl@gnu.org>
70628
70629         * config/config.guess: update from prep.
70630
70631 2002-12-11  Bruno Haible  <bruno@clisp.org>
70632
70633         * m4/setenv.m4: New file, from gettext-0.11.5.
70634
70635 2002-12-11  Bruno Haible  <bruno@clisp.org>
70636
70637         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
70638         not unsetenv().
70639         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
70640         modifications:
70641
70642         2002-12-11  Bruno Haible  <bruno@clisp.org>
70643
70644                 * setenv.c (alloca): Fall back to malloc.
70645                 (freea): New macro.
70646                 (setenv): Use freea() to free memory allocated with alloca().
70647
70648         2002-11-13  Bruno Haible  <bruno@clisp.org>
70649
70650                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
70651                 function declarations.
70652                 * unsetenv.c (unsetenv): Likewise.
70653
70654         2002-03-04  Bruno Haible  <bruno@clisp.org>
70655
70656                 Portability to AIX 4.3.3.
70657                 * unsetenv.c: New file, extracted from setenv.c.
70658                 * setenv.c: Move the unsetenv() function to unsetenv.c.
70659
70660         2001-12-20  Bruno Haible  <bruno@clisp.org>
70661
70662                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70663                 use malloc instead. For SunOS 4.
70664
70665         2001-12-11  Bruno Haible  <bruno@clisp.org>
70666
70667                 * setenv.c: Declare alloca.
70668                 (compar_fn_t): New typedef.
70669                 (KNOWN_VALUE, STORE_VALUE): Use it.
70670
70671         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
70672         setenv.h.
70673
70674 2002-12-10  Paul Eggert  <eggert@twinsun.com>
70675
70676         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
70677         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
70678         Choose values that are less likely to collide with system fnmatch
70679         options.
70680         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
70681         defined (e.g., a pure POSIX system).
70682         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
70683         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
70684
70685 2002-12-06  Paul Eggert  <eggert@twinsun.com>
70686
70687         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
70688         a pain in practice to deal with generated m4 files.  This change
70689         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
70690
70691         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
70692         and jm-glibc-io.m4, as they are no longer a special case.
70693         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
70694         kludge and the auto-generation stuff.  Check only whether the
70695         functions are declared, not whether they exist, since older hosts
70696         that don't declare the functions can't use the optimization anyway.
70697
70698 2002-12-06  Jim Meyering  <jim@meyering.net>
70699
70700         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
70701
70702         Merge in changes from libc's misc/error.c, in preparation
70703         for the merge of gnulib's changes back into libc.
70704
70705         * lib/error.c (_): Define only if not already defined.
70706         Move definition to follow all #include directives.
70707         Include unlocked-io.h only if !_LIBC.
70708         [_LIBC]: Include <libio/libioP.h>.
70709         [USE_IN_LIBIO]: Include <libio/iolibio.h>
70710         (fflush): Tweak definition to use INTUSE.
70711         (putc): Define.
70712
70713 2002-12-05  Paul Eggert  <eggert@twinsun.com>
70714
70715         * lib/alloca.c [defined emacs]: Include "lisp.h".
70716         (xalloc_die) [defined emacs]: New macro.
70717         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
70718         [! defined emacs]: Include <xalloc.h>.
70719         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
70720         (pointer): Typedef to POINTER_TYPE *.
70721         (malloc): Remove decl; we now always use xmalloc.
70722         (alloca): Use old-style definition, since Emacs needs this.
70723         Check for arithmetic overflow when computing combined size.
70724
70725 2002-12-04  Paul Eggert  <eggert@twinsun.com>
70726
70727         Do not generate unlocked-io.h automatically, since it's easier to
70728         maintain it by hand.
70729
70730         * lib/unlocked-io.h: New file, from GNU diffutils,
70731         but with proper copyright notice and attribution.
70732         * lib/gen-uio: Remove.
70733         * lib/Makefile.am: Add copyright notice.
70734         (libfetish_a_SOURCES): Add unlocked-io.h.
70735         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70736         (DISTCLEANFILES, io_functions): Remove macros.
70737         (EXTRA_DIST): Remove gen_uio.
70738         (unlocked-io.h): Remove rule.
70739
70740 2002-12-04  Jim Meyering  <jim@meyering.net>
70741
70742         Reflect the fact that stat.c and lstat.c are no longer generated.
70743         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70744         (DISTCLEANFILES): Likewise.
70745         (EXTRA_DIST): Likewise.
70746         (all_local): Don't depend on stat.c or lstat.c.
70747         (stat.c, lstat.c): Remove rules.
70748         (EXTRA_DIST): Remove xstat.in.
70749
70750         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70751         * lib/stat.c: New file.  Contents mostly from xstat.in.
70752         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70753         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70754
70755         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70756         too.
70757         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70758
70759 2002-12-03  Jim Meyering  <jim@meyering.net>
70760
70761         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70762         but not semantics, to minimize the differences between these two files.
70763         (safe_read): Change comment to mention SAFE_READ_ERROR.
70764
70765         * lib/safe-read.c (IS_EINTR): Define.
70766         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70767
70768 2002-12-02  Jim Meyering  <jim@meyering.net>
70769
70770         * lib/safe-read.c (EINTR): Define.
70771         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70772         (INT_MAX): Provide fallback.
70773         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70774
70775         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70776
70777 2002-12-02  Bruno Haible  <bruno@clisp.org>
70778
70779         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70780         Define, taken from safe-read.c.
70781         (INT_MAX): Provide fallback.
70782         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70783         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70784
70785         * lib/safe-read.c (EINTR): Remove definition.
70786         (safe_read): Don't use EINTR if it is absent.
70787
70788 2002-12-01  Jim Meyering  <jim@meyering.net>
70789
70790         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70791         zero.
70792         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70793
70794 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70795
70796         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70797         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70798         with `if (! (value < limit)) abort ();', for readability.
70799
70800 2002-11-26  Karl Berry  <karl@gnu.org>
70801
70802         * lib/strdup.c: copy from libc again, with jim's ok.
70803         * lib/.cppi-disable: re-add strdup.c
70804
70805 2002-11-25  Karl Berry  <karl@gnu.org>
70806
70807         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70808         instead of "strtol.c".
70809
70810 2002-11-25  Karl Berry  <karl@gnu.org>
70811
70812         * config/install-sh: update from automake for variable quoting, $0 in
70813         error msgs, etc.
70814
70815         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70816         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70817         entry.
70818
70819 2002-11-25  Jim Meyering  <jim@meyering.net>
70820
70821         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70822
70823 2002-11-24  Karl Berry  <karl@gnu.org>
70824
70825         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70826         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70827
70828 2002-11-24  Jim Meyering  <jim@meyering.net>
70829
70830         Update from coreutils:
70831
70832         * lib/mktime.c: Merge in changes from libc.
70833
70834         Avoid a link-time failure on some Linux systems.
70835         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70836         (otherwise).
70837         (__mon_yday): Declare with the STATIC attribute.
70838         (__mktime_internal): Likewise.
70839         Based on a report from Greg Schafer.
70840
70841 2002-11-23  Jim Meyering  <jim@meyering.net>
70842
70843         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70844         Use `unsigned', not `int', as type of index.
70845
70846         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70847
70848         * lib/fsusage.c: Remove unneeded parentheses around operands of
70849         `defined'.
70850
70851 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70852
70853         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70854         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70855         so that we can be included first.
70856         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70857         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70858         No need to include stddef.h or sys/types.h any more.
70859         Surround local include files with "", not "<>".
70860         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70861         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70862         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70863         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70864         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70865         (ISPRINT): Remove; no longer needed now that we assume C89.
70866
70867         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70868         Preserve errno.
70869
70870         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70871         quotearg_char): Use SIZE_MAX rather than
70872         (size_t) -1 when we are talking about "infinity".
70873
70874         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70875
70876 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70877
70878         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70879         hint that one should use `if (! x) abort ();' rather than `assert
70880         (x);', and anyway it's one less thing to worry about configuring.
70881         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70882         hash_rehash, hash_insert): Use abort rather than assert.
70883
70884 2002-11-22  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/safe-read.h: Assume C89. Add comments.
70887         (safe_read): Change return type to size_t.
70888         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70889         byte counts > SSIZE_MAX correctly.
70890         * lib/safe-write.h: New file.
70891         * lib/safe-write.c: New file.
70892         * lib/full-read.h: New file.
70893         * lib/full-read.c: New file.
70894         * lib/full-write.h: Assume C89. Add comments.
70895         * lib/full-write.c: Include safe-write.h.
70896         (full_write): Rewritten to use safe_write.
70897         Suggested by Jim Meyering and Paul Eggert.
70898
70899 2002-11-21  Jim Meyering  <jim@meyering.net>
70900
70901         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70902
70903         Merge in changes from the coreutils.
70904
70905         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70906         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70907         <stdint.h>.
70908         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70909         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70910         int.  Work more efficiently if X is the same width as uintmax_t.
70911         Do not compare X to -1, to avoid bogus compiler warning.
70912         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70913         Don't assume that f_frsize and f_bsize are the same type.
70914
70915         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70916         warning on FreeBSD.
70917
70918         * lib/makepath.c (make_path): Restore umask *before* creating the final
70919         component.
70920         (make_path): Minor reformatting.
70921
70922         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70923         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70924         HAVE_MALLOC/HAVE_REALLOC.
70925
70926         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70927         dummy ones.  At least on GNU/Linux systems, `auto' means something
70928         else.
70929         From Michael Stone.
70930
70931 2002-11-21  Bruno Haible  <bruno@clisp.org>
70932
70933         Remove case insensitive option matching.
70934         * lib/argmatch.h (argcasematch): Remove declaration.
70935         (ARGCASEMATCH): Remove macro.
70936         (__xargmatch_internal): Remove case_sensitive argument.
70937         (XARGMATCH): Update.
70938         (XARGCASEMATCH): Remove macro.
70939         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70940         case_sensitive argument.
70941         (argcasematch): Remove function.
70942         (__xargmatch_internal): Remove case_sensitive argument.
70943         (main): Use XARGMATCH instead of XARGCASEMATCH.
70944
70945         * lib/xmalloc.c: Change compile-time error message. Add comment about
70946         required autoconf version.
70947
70948 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70949
70950         Merge argmatch cleanups from Bison.  Assume C89.
70951
70952         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70953         Include stdlib.h, for EXIT_FAILURE.
70954         Always include <string.h>, since we assume C89.
70955         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70956         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70957         Include <stddef.h> instead, since it's all we need for size_t.
70958         (PARAMS): Remove.  All uses removed.
70959         (ARRAY_CARDINALITY): Do not bother to #undef.
70960         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70961         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70962         Remove unnecessary parentheses.
70963         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70964         Insert necessary parentheses.
70965         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70966         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70967
70968 2002-11-19  Bruno Haible  <bruno@clisp.org>
70969
70970         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70971         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70972
70973         * lib/mbswidth.h (PARAMS): Remove macro.
70974         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70975         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70976
70977         * lib/gcd.h (PARAMS): Remove macro.
70978         (gcd): Use ANSI C function declarations.
70979         * lib/gcd.c (gcd): Likewise.
70980
70981 2002-11-15  Bruno Haible  <bruno@clisp.org>
70982
70983         * lib/strcspn.c: Include <stddef.h>.
70984         (strcspn): Use ANSI C function declaration. Change return type to
70985         size_t. Use NULL.
70986         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70987         (strpbrk): Use NULL.
70988         * lib/strpbrk.h (PARAMS): Remove macro.
70989         (strpbrk): Use ANSI C function declaration.
70990         * lib/strstr.c: Don't include <sys/types.h>.
70991         * lib/strstr.h (PARAMS): Remove macro.
70992         (strstr): Use ANSI C function declarations.
70993
70994 2002-11-14  Karl Berry  <karl@gnu.org>
70995
70996         * config/mkinstalldirs: `do' on separate line, instead of
70997         `for var; do'.
70998
70999 2002-11-06  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
71002         * lib/gcd.c (gcd): Likewise.
71003
71004 2002-11-05  Bruno Haible  <bruno@clisp.org>
71005
71006         * lib/gcd.h: New file, from gettext-0.11.5.
71007         * lib/gcd.c: New file, from gettext-0.11.5.
71008
71009 2002-11-05  Bruno Haible  <bruno@clisp.org>
71010
71011         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71012         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71013         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71014         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71015
71016         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
71017         <libintl.h>.
71018         * lib/makepath.c: Include gettext.h instead of <locale.h> and
71019         <libintl.h>.
71020
71021         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
71022         * lib/human.c: Include gettext.h instead of <libintl.h>.
71023         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
71024         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
71025         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
71026         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
71027         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
71028         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
71029         (textdomain): Remove definition.
71030         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
71031
71032         * lib/long-options.c: Remove include of <libintl.h> and definition of
71033         _.
71034         * lib/same.c: Remove include of <libintl.h> and definition of _.
71035
71036 2002-11-04  Owen Taylor  <otaylor@redhat.com>
71037
71038         * lib/config.charset: A few additions for Solaris.
71039
71040 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71041
71042         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
71043         * lib/localcharset.c (locale_charset): Declare as extern "C".
71044
71045 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71046
71047         * lib/config.charset: msdos in uk_UA uses CP1125.
71048
71049 2002-11-04  Bruno Haible  <bruno@clisp.org>
71050
71051         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
71052         * lib/strcase.h: New file, from GNU gettext-0.11.5.
71053         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
71054         * lib/strstr.h: New file, from GNU gettext-0.11.5.
71055         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
71056
71057 2002-11-04  Bruno Haible  <bruno@clisp.org>
71058
71059         * lib/localcharset.c (locale_charset): Don't return an empty string.
71060
71061 2002-11-04  Bruno Haible  <bruno@clisp.org>
71062
71063         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
71064         aliases.
71065
71066 2002-11-04  Bruno Haible  <bruno@clisp.org>
71067
71068         * lib/config.charset: Update for newest glibc. Add canonical names
71069         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
71070
71071 2002-11-04  Bruno Haible  <bruno@clisp.org>
71072
71073         * lib/config.charset: Add support for NetBSD.
71074
71075 2002-11-04  Bruno Haible  <bruno@clisp.org>
71076
71077         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
71078
71079 2002-11-01  Bruno Haible  <bruno@clisp.org>
71080
71081         * configure.in: Add AC_CONFIG_AUX_DIR call.
71082         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
71083         test/Makefile.
71084         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
71085
71086 2002-09-28  Karl Berry  <karl@gnu.org>
71087
71088         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
71089         installed automake until the next release, since changes have been
71090         made.
71091
71092 2002-09-25  Karl Berry  <karl@gnu.org>
71093
71094         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
71095         * lib/getopt*: copy from libc/posix.
71096         * lib/gettext.h: copy from gettext.
71097         * lib/.cppi-disable: add strdup.c, gettext.h.
71098
71099 2002-09-25  Karl Berry  <karl@gnu.org>
71100
71101         * config/srclist.txt: enable gettext.h check.
71102         * config/config.{guess,sub}: update from prep.
71103         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
71104                 from automake 1.6.3.
71105         See srclist*.
71106
71107 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
71108
71109         * regex.c (PATFETCH): Remove the translating fetch.
71110         (PATFETCH_RAW): Rename to PATFETCH.
71111         (set_image_of_range): New fun.
71112         (SET_RANGE_TABLE_WORK_AREA): Use it.
71113         (regex_compile): Don't translate the pattern chars so eagerly.
71114         Only do it when inserting an `exactn' bytecode or when handling
71115         a char-range.
71116         (mutually_exclusive_p): Avoid empty statement.
71117
71118 2002-07-06  Jim Meyering  <meyering@lucent.com>
71119
71120         * m4/README: Don't mention Makefile.am.in.
71121         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
71122
71123 2002-07-01  Jim Meyering  <meyering@lucent.com>
71124
71125         * lib/c-stack.c: Include sys/time.h.
71126         From Volker Borchert.
71127
71128 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71129
71130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
71131
71132 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71133
71134         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
71135         New macro.  Use it uniformly instead of
71136         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
71137         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
71138         reported by Vin Shelton.
71139
71140 2002-06-22  Paul Eggert  <eggert@twinsun.com>
71141
71142         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
71143         Do not assume SA_SIGINFO behavior.
71144         Bug reported by Jim Meyering on NetBSD 1.5.2.
71145
71146 2002-06-22  Jim Meyering  <meyering@lucent.com>
71147
71148         * m4/c-stack.m4: New file, from diffutils-2.8.2.
71149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
71150
71151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
71152         now that configure.ac uses AC_GNU_SOURCE.
71153         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
71154         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
71155
71156         Update to latest tools.  Suggestions from Paul Eggert.
71157         * m4/stdbool.m4: New file, from diffutils-2.8.2.
71158         * m4/gnu-source.m4: Update from diffutils-2.8.2.
71159         * m4/fnmatch.m4: Likewise.
71160         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
71161         to AC_HEADER_STDBOOL
71162
71163 2002-06-22  Jim Meyering  <meyering@lucent.com>
71164
71165         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
71166         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
71167
71168 2002-06-22  Jim Meyering  <meyering@lucent.com>
71169
71170         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
71171
71172         * lib/exitfail.c, exitfail.h: Likewise.
71173         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
71174
71175         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
71176         of fnmatch.h.
71177         (EXTRA_DIST): Add fnmatch_loop.c.
71178         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
71179
71180         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
71181         * lib/fnmatch.c: Update from diffutils-2.8.2.
71182         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
71183         * lib/fnmatch.h: Remove file.
71184
71185 2002-06-21  Jim Meyering  <meyering@lucent.com>
71186
71187         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
71188         * m4/mbrtowc.m4: Likewise.
71189
71190         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
71191         * m4/mbswidth.m4: Reflect name change:
71192         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
71193         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71194
71195         * m4/lib-link.m4: Update from gettext-0.11.2.
71196         * m4/gettext.m4: Likewise.
71197
71198         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
71199         From Alfred M. Szmidt.
71200
71201 2002-06-18  Paul Eggert  <eggert@twinsun.com>
71202
71203         * lib/file-type.h: Report an error if neither S_ISREG nor
71204         S_IFREG is defined, instead of using a test specific to glibc
71205         2.2.  This should be safe, since POSIX requires S_ISREG and
71206         Unix Version 7 had S_IFREG.  We don't need to check for
71207         <sys/types.h> since we don't use any symbols that it defines.
71208
71209 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
71210
71211         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
71212         $@-t, so that each temporary file name is unique and valid in the first
71213         8 characters, for operation under DOS.
71214
71215 2002-06-15  Paul Eggert  <eggert@twinsun.com>
71216
71217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
71218
71219 2002-06-15  Jim Meyering  <meyering@lucent.com>
71220
71221         Work even with DJGPP 2.03, which lacks support for symlinks.
71222         From Richard Dawe.
71223         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
71224         is defined.
71225         * lib/lchown.c (S_ISLNK): Likewise.
71226
71227 2002-06-15  Jim Meyering  <meyering@lucent.com>
71228
71229         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
71230         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
71231         have been included before this file.
71232
71233 2002-06-14  Jim Meyering  <meyering@lucent.com>
71234
71235         * lib/file-type.h: Use the version from diffutils-2.8.2.
71236         * lib/file-type.c: Likewise.
71237
71238 2002-06-07  Jim Meyering  <meyering@lucent.com>
71239
71240         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
71241         They're needed at least for NetBSD 1.5.2.
71242         ($statxfs_includes): Include those same headers.
71243         ($statxfs_includes): Include sys/vfs.h if available.
71244         ($statxfs_includes): Likewise for sys/statvfs.h.
71245         Check for the following members in both structs statfs and statvfs:
71246         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
71247
71248 2002-06-01  Jim Meyering  <meyering@lucent.com>
71249
71250         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
71251         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
71252
71253 2002-05-28  Jim Meyering  <meyering@lucent.com>
71254
71255         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
71256         Reported by Volker Borchert.
71257
71258 2002-05-27  Jim Meyering  <meyering@lucent.com>
71259
71260         Fix a problem seen only on nonconforming systems whereby ls.c's
71261         use of localtime, and then of gettimeofday would cause trouble:
71262         the localtime call used to initialize rpl_gettimeofday's save
71263         mechanism would clobber ls's current local time information so
71264         that in any long listing the first file would always be listed
71265         with date 1970-01-01.  Analysis by Volker Borchert.
71266
71267         * lib/gettimeofday.c (localtime): Undefine.
71268         (rpl_localtime): New function.
71269
71270 2002-05-27  Jim Meyering  <meyering@lucent.com>
71271
71272         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
71273         localtime.
71274
71275         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
71276         use the replacement function; it wouldn't resolve at link time.
71277         Reported by Volker Borchert.
71278
71279 2002-05-22  Jim Meyering  <meyering@lucent.com>
71280
71281         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
71282         file-type.h.
71283         * lib/file-type.h: New file.
71284         * lib/file-type.c (file_type): New file/function.  Extracted from
71285         diffutils.
71286
71287 2002-04-30  Jim Meyering  <meyering@lucent.com>
71288
71289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
71290
71291 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71292
71293         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
71294
71295 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71296
71297         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
71298         Do not check for alloca.h (no longer used) or stdbool.h (was never
71299         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
71300
71301 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71302
71303         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
71304
71305 2002-04-29  Jim Meyering  <meyering@lucent.com>
71306
71307         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
71308         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
71309         Use AC_FUNC_STRNLEN here instead.
71310
71311         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
71312         With autoconf-2.53a, it's part of AC_PROG_CC.
71313
71314 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71315
71316         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
71317         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
71318
71319 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71320
71321         * lib/sig2str.h, lib/sig2str.c: New files.
71322         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
71323
71324 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71325
71326         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
71327         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
71328         of 127, since 64 is the largest conceivable number for ancient
71329         nonstandard hosts.
71330         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
71331
71332 2002-04-28  Jim Meyering  <meyering@lucent.com>
71333
71334         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
71335
71336 2002-04-24  Jim Meyering  <meyering@lucent.com>
71337
71338         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
71339         (jm_PREREQ): Use it.
71340
71341         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
71342         mach/mach.h fcntl.h.
71343         Check for this function: setlocale.
71344
71345 2002-04-24  Jim Meyering  <meyering@lucent.com>
71346
71347         * lib/gettext.h: New file, from Gettext.
71348         * lib/Makefile.am (INCLUDES): Remove -I../intl.
71349         (libfetish_a_SOURCES): Add gettext.h.
71350
71351 2002-04-16  Jim Meyering  <meyering@lucent.com>
71352
71353         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
71354         ut_pid, ut_id, ut_exit.
71355
71356 2002-04-16  Jim Meyering  <meyering@lucent.com>
71357
71358         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
71359         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
71360         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
71361
71362 2002-04-12  Jim Meyering  <meyering@lucent.com>
71363
71364         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
71365         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
71366         existence of the getmntinfo function.  Needed for Darwin 5.3.
71367
71368         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
71369         This is necessary at least on Darwin 5.3.
71370
71371         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
71372         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
71373         strnlen.o in the library, and that makes some versions of ranlib
71374         object.
71375
71376 2002-04-12  Jim Meyering  <meyering@lucent.com>
71377
71378         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
71379
71380 2002-04-09  Jim Meyering  <meyering@lucent.com>
71381
71382         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
71383         to be more precise.  Rather than saying we're checking whether the
71384         function `works', say what we're testing.
71385         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
71386         Reported by Bruno Haible.
71387
71388 2002-03-10  Jim Meyering  <meyering@lucent.com>
71389
71390         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
71391         Suggestion from Santiago Vila.
71392
71393 2002-03-08  Jim Meyering  <meyering@lucent.com>
71394
71395         * lib/rename.c: Mention that this wrapper is needed also on
71396         mips-dec-ultrix4.4 systems.
71397
71398 2002-03-02  Jim Meyering  <meyering@lucent.com>
71399
71400         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
71401         not HAVE_CLOCK_SETTIME.
71402
71403 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71404
71405         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
71406         Check for clock_settime.
71407
71408 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71409
71410         * lib/nanosleep.h: Rename to....
71411         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
71412
71413         * lib/gettime.c: New file.
71414         * lib/settime.c: New file.
71415         * lib/stime.c: Remove.
71416
71417         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
71418         timespec.h.  Remove nanosleep.h.
71419
71420 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71421
71422         * m4/acl.m4: New file.
71423         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
71424         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
71425
71426 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71427
71428         * lib/acl.c, lib/acl.h: New files.
71429         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
71430
71431 2002-02-24  Jim Meyering  <meyering@lucent.com>
71432
71433         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
71434         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
71435         cause trouble.  Reported by Nelson Beebe.
71436
71437 2002-02-23  Paul Eggert  <eggert@twinsun.com>
71438
71439         * lib/path-concat.c (xpath_concat): Reorder code to pacify
71440         compilers that don't know that xalloc_die never returns.
71441
71442 2002-02-20  Jim Meyering  <meyering@lucent.com>
71443
71444         * lib/getdate.c: Regenerate using bison-1.33.
71445
71446 2002-02-17  Jim Meyering  <meyering@lucent.com>
71447
71448         * config/config.guess (main): Don't use `head -1'; it's no longer
71449         portable. Use `sed 1q' instead.
71450
71451 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
71452
71453         * m4/codeset.m4: Upgrade to gettext-0.11.
71454         * m4/gettext.m4: Upgrade to gettext-0.11.
71455         * m4/glibc21.m4: Upgrade to gettext-0.11.
71456         * m4/iconv.m4: Upgrade to gettext-0.11.
71457         * m4/isc-posix.m4: Upgrade to gettext-0.11.
71458         * m4/lcmessage.m4: Upgrade to gettext-0.11.
71459         * m4/lib-ld.m4: New file, from gettext-0.11.
71460         * m4/lib-link.m4: New file, from gettext-0.11.
71461         * m4/lib-prefix.m4: New file, from gettext-0.11.
71462         * m4/progtest.m4: Upgrade to gettext-0.11.
71463
71464 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71465
71466         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
71467         (jm_PREREQ): Use it.
71468
71469 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71470
71471         * lib/posixver.c, lib/posixver.h: New files.
71472         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71473
71474 2002-02-02  Paul Eggert  <eggert@twinsun.com>
71475             Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
71478         (fwrite_success_callback): New declaration.
71479         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
71480         print_unicode_char. Call failure callback instead of error.
71481         (fwrite_success_callback): New function.
71482         (exit_failure_callback): New function.
71483         (fallback_failure_callback): New function.
71484         (print_unicode_char): Call unicode_to_mb.
71485
71486 2002-01-26  Jim Meyering  <meyering@lucent.com>
71487
71488         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
71489         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
71490
71491 2002-01-26  Jim Meyering  <meyering@lucent.com>
71492
71493         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
71494
71495 2002-01-22  Paul Eggert  <eggert@twinsun.com>
71496
71497         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
71498
71499 2002-01-22  Jim Meyering  <meyering@lucent.com>
71500
71501         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
71502         Otherwise, some versions of automake would omit the rule that makes
71503         Makefile from Makefile.in.
71504
71505 2002-01-21  Paul Eggert  <eggert@twinsun.com>
71506
71507         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
71508         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71509         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
71510         (memcoll): Set errno to zero if there is no error.
71511
71512         * lib/quotearg.c (quotearg_buffer_restyled):
71513         Fix bug with quoting buffers containing NUL when backslashing escapes.
71514         This bug was exposed by the other changes in this patch.
71515         (quotearg_n_options): New arg ARGSIZE.
71516         All callers changed.
71517         (quoting_options_from_style): New function.
71518         (quotearg_n_style): Use it.
71519         (quotearg_n_style_mem): New function.
71520
71521         * lib/quotearg.h (quotearg_n_style_mem): New function.
71522
71523 2002-01-19  Jim Meyering  <meyering@lucent.com>
71524
71525         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
71526         Remove useless quotes: DF_PROG="df".
71527         * m4/strnlen.m4: New file.
71528
71529 2002-01-16  Paul Eggert  <eggert@twinsun.com>
71530
71531         * lib/backupfile.c (ISDIGIT): Comment fix.
71532         * lib/getdate.y (ISDIGIT): Likewise.
71533         * lib/posixtm.c (ISDIGIT, year): Likewise.
71534         * lib/strverscmp.c (ISDIGIT): Likewise.
71535         * lib/userspec.c (ISDIGIT): Likewise.
71536
71537 2002-01-16  Jim Meyering  <meyering@lucent.com>
71538
71539         * lib/getdate.y: Add three semicolons, each just before a closing
71540         brace. Bison (as of version 1.31) no longer papers over that mistake.
71541
71542 2002-01-05  Jim Meyering  <meyering@lucent.com>
71543
71544         * lib/version-etc.c (version_etc_copyright): Update copyright year.
71545
71546 2001-12-19  Paul Eggert  <eggert@twinsun.com>
71547
71548         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
71549         not silently exit merely because the output buffer happens to
71550         have nothing pending.
71551
71552 2001-12-18  Paul Eggert  <eggert@twinsun.com>
71553
71554         See the big note in ../ChangeLog.
71555         * lib/human.c (suffixes): Prefer K to k for 1024.
71556         (generate_suffix_backwards): New function.
71557         (human_readable_inexact): Use it.
71558         * lib/xstrtol.c (__xstrtol): If there is no number but there
71559         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
71560         Accept 'K' as well as 'k'.
71561
71562 2001-12-15  Jim Meyering  <meyering@lucent.com>
71563
71564         * lib/regex.h (__restrict_arr): Update from libc.
71565
71566         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
71567         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
71568         (STREQ): Define.
71569
71570 2001-12-14  Jim Meyering  <meyering@lucent.com>
71571
71572         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71573         Suggestion from Bruno Haible.
71574
71575 2001-12-10  Jim Meyering  <meyering@lucent.com>
71576
71577         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71578         xrealloc, Instead, include "xalloc.h".
71579         (initbuffer): Don't cast xmalloc return value to char*.
71580         (readline): Reword comment.
71581         Don't cast xrealloc return value to char*
71582         Return NULL, not 0.
71583
71584 2001-12-09  Jim Meyering  <meyering@lucent.com>
71585
71586         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71587         about `signed and unsigned type in conditional expression'.
71588         * lib/posixtm.c (posix_time_parse): Likewise.
71589
71590         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71591
71592         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71593         to avoid a pedantic warning.
71594
71595         * lib/getstr.c: Don't include assert.h.
71596         (getstr): Remove warning-evoking assertions.
71597         Return -1 if offset parameter is out of bounds.
71598         Change the type of a local from int to size_t.
71599
71600         * lib/strftime.c (my_strftime_localtime_r): Include this function
71601         definition in the `#if ! HAVE_TM_GMTOFF' block.
71602
71603         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71604         Include xalloc.h instead.
71605
71606 2001-12-02  Jim Meyering  <meyering@lucent.com>
71607
71608         * lib/tempname.c: Don't declare getenv, thus reverting the change of
71609         2001-11-18.  It's no longer necessary, now that stdlib.h is always
71610         included.
71611
71612         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
71613         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
71614
71615 2001-11-30  Akim Demaille  <akim@epita.fr>
71616
71617         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
71618         before being defined.
71619
71620 2001-11-27  Paul Eggert  <eggert@twinsun.com>
71621
71622         * lib/quotearg.h (quotearg_n, quotearg_n_style):
71623         First arg is int, not unsigned.
71624         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
71625         (SIZE_MAX, UINT_MAX): New macros.
71626         (quotearg_n_options): Abort if N is negative.
71627         Avoid overflow check on hosts where size_t is 64 bits and int
71628         is 32 bits, as overflow is impossible there.
71629         Fix off-by-one typo that caused unnecessary reallocation.
71630
71631 2001-11-27  Jim Meyering  <meyering@lucent.com>
71632
71633         * lib/tempname.c: Merge with version from libc.
71634         * lib/regex.c: Likewise.
71635
71636         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
71637         systems for which STDC_HEADERS is 0, it was not included, resulting in
71638         a warning about an integer-to-pointer conversion problem with getenv.
71639         Reported by Volker Borchert.
71640
71641 2001-11-26  Jim Meyering  <meyering@lucent.com>
71642
71643         * lib/gtod.h: Remove file.
71644         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
71645         * lib/gettimeofday.c: Don't include gtod.h.
71646         (GTOD_init): Remove function.
71647         (rpl_gettimeofday): Do its job here instead, rather than aborting.
71648         Suggestion from Volker Borchert.
71649
71650 2001-11-23  Jim Meyering  <meyering@lucent.com>
71651
71652         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
71653         it.
71654         * lib/hash.c (struct hash_table): Define it here instead.
71655
71656 2001-11-22  Jim Meyering  <meyering@lucent.com>
71657
71658         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
71659
71660 2001-11-20  Jim Meyering  <meyering@lucent.com>
71661
71662         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
71663         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
71664
71665 2001-11-19  Jim Meyering  <meyering@lucent.com>
71666
71667         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
71668         directory.  Use "conftestXXXXXX" as the template.
71669         Suggestion from Paul Eggert.
71670
71671         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
71672         immediately, so the test doesn't mistakenly hit the max-open-files
71673         limit.
71674
71675 2001-11-18  Paul Eggert  <eggert@twinsun.com>
71676
71677         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
71678         (TEMPORARIES): New macro.
71679         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
71680         removes an artificial limitation (e.g. HP-UX 10.20, where
71681         TMP_MAX is 17576).
71682
71683 2001-11-18  Jim Meyering  <meyering@lucent.com>
71684
71685         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
71686
71687 2001-11-18  Jim Meyering  <meyering@lucent.com>
71688
71689         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
71690         on SunOS 4.
71691
71692         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
71693         files will be created before anything else.
71694
71695 2001-11-17  Paul Eggert  <eggert@twinsun.com>
71696
71697         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
71698         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
71699
71700 2001-11-17  Jim Meyering  <meyering@lucent.com>
71701
71702         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
71703         Prompted by a report from Bob Proulx.
71704
71705         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
71706         Instead, require UTILS_FUNC_MKSTEMP.
71707
71708 2001-11-17  Jim Meyering  <meyering@lucent.com>
71709
71710         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
71711         Now, that's done as part of AC_FUNC_STRTOD.
71712
71713 2001-11-17  Jim Meyering  <meyering@lucent.com>
71714
71715         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
71716         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
71717         rather than group writable.  Patch by Juan F. Codagnone.
71718
71719         * lib/readtokens.c: Remove explicit declarations of xmalloc and
71720         xrealloc, Instead, include "xalloc.h".
71721
71722         * lib/mountlist.c: Include unlocked-io.h after all system headers.
71723         Remove explicit declarations of xmalloc, xrealloc,
71724         and xstrdup.  Instead, include "xalloc.h".
71725
71726         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
71727         unlocked-io.h.
71728         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
71729         Likewise.
71730         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71731
71732         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71733         Reported by Padraig Brady.
71734
71735         * lib/mkstemp.c: #undef mkstemp.
71736         Include config.h.
71737         (rpl_mkstemp): Rename from mkstemp.
71738         Protoize.
71739
71740 2001-11-16  Jim Meyering  <meyering@lucent.com>
71741
71742         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71743         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71744         determine the amount of total physical memory, use pstat_getstatic.
71745         HPUX-11 doesn't define _SC_PHYS_PAGES.
71746         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71747         If sysconf couldn't be used to determine the amount of available
71748         physical memory, use both pstat_getstatic and pstat_getdynamic.
71749         Based on a patch from Bob Proulx.
71750
71751 2001-11-10  Jim Meyering  <meyering@lucent.com>
71752
71753         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71754         (jm_PREREQ): Use it.
71755
71756 2001-11-09  Jim Meyering  <meyering@lucent.com>
71757
71758         * m4/jm-macros.m4: Require autoconf-2.52f.
71759         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71760         Use these AC_-prefixed names, not the AM_-prefixed ones.
71761
71762         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71763
71764 2001-11-05  Jim Meyering  <meyering@lucent.com>
71765
71766         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71767
71768 2001-11-04  Jim Meyering  <meyering@lucent.com>
71769
71770         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71771         $DEFS.
71772
71773 2001-11-03  Jim Meyering  <meyering@lucent.com>
71774
71775         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71776         of AC_DEFUN.
71777
71778         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71779         know the name of the variable in the macro definition.
71780
71781 2001-11-03  Jim Meyering  <meyering@lucent.com>
71782
71783         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71784         in argmatch_to_argument call.
71785
71786         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71787         argument.
71788
71789         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71790         e.g., a fault due to an attempt to free a NULL pointer.
71791
71792 2001-11-01  Jim Meyering  <meyering@lucent.com>
71793
71794         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71795         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71796
71797 2001-11-01  Jim Meyering  <meyering@lucent.com>
71798
71799         * lib/dirfd.c, lib/dirfd.h: New files.
71800         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71801
71802         * lib/hash.c (hash_print) [TESTING]: Clean up.
71803
71804 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71805
71806         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71807         to avoid a warning if -Wall.
71808
71809 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71810
71811         * README: New file
71812         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71813         (per RMS's instructions, this is now the canonical source)
71814         * lgpl/, gpl/: New directories.
71815
71816 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71817
71818         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71819
71820 2001-10-21  Jim Meyering  <meyering@lucent.com>
71821
71822         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71823         this code would end up calling gettext even in packages built
71824         with --disable-nls.
71825         * lib/getopt.c (_): Likewise.
71826         * lib/regex.c (_): Likewise.
71827
71828 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71829
71830         * m4/error.m4 (jm_PREREQ_ERROR):
71831         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71832         AC_FUNC_STRERROR_R does that.
71833         Check for strerror declaration.
71834
71835         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71836         are supposed to have them these days.
71837         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71838         Merge changes from latest Autoconf CVS.
71839         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71840         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71841         POSIX decided to standardize on the int flavor of strerror_r.
71842
71843 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71844
71845         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71846         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71847         Use strerror_r that is only a macro, even if it is not a function.
71848         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71849         (private_strerror): Use prototypes, not old-style function definition.
71850         (print_errno_message): New function.
71851         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71852         char*-flavored one.
71853         (error_tail, error, error_at_line): Use it.
71854
71855 2001-10-11  Jim Meyering  <meyering@lucent.com>
71856
71857         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71858         and quote_n (1, ... to avoid clobbering a buffer.
71859
71860 2001-10-05  Jim Meyering  <meyering@lucent.com>
71861
71862         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71863         hash-pjw.h.
71864         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71865         * lib/hash-pjw.h: New file.
71866
71867 2001-09-30  Jim Meyering  <meyering@lucent.com>
71868
71869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71870         `struct fsstat' has the `f_fstypename' member.
71871         Use that to define FS_TYPE, which is now used to make
71872         the getfsstat link test tighter.
71873
71874 2001-09-30  Jim Meyering  <meyering@lucent.com>
71875
71876         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71877         Include <sys/ucred.h>, for Apple Darwin.
71878         Include sys/mount.h and sys/fs_types.h only if available.
71879         (FS_TYPE): Define.
71880         (read_filesystem_list): Use FS_TYPE.
71881
71882 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71883
71884         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71885         a boolean context.
71886
71887 2001-09-29  Jim Meyering  <meyering@lucent.com>
71888
71889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71890         [one-argument getmntent function]): Include stdio.h before mntent.h.
71891         SunOS 4.1.x needs it for the declaration of `FILE'.
71892         Patch by Volker Borchert.
71893
71894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71895         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71896         sys/fs_types.h, and make the link-test for getfsstat guard #include
71897         directives with appropriate #if HAVE_*_H tests so that we can
71898         detect getfsstat on Apple Darwin1.3.7 systems.
71899         Reported by Nelson Beebe.
71900         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71901
71902 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71903
71904         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71905         #defines strtoimax.  Also treat the other strto* functions
71906         like strtoimax.
71907
71908         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71909         Check for strtoul and strtoumax,
71910         as those declarations are made even in the signed case.
71911         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71912         Likewise, for strtol and strtoimax.
71913
71914 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71915
71916         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71917         #defines strtoimax.  Also treat the other strto* functions
71918         like strtoimax.
71919
71920         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71921         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71922         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71923
71924 2001-09-26  Jim Meyering  <meyering@lucent.com>
71925
71926         Most macros in unlocked-io.h had the wrong number of arguments.
71927         * lib/gen-uio: New script.
71928         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71929         * lib/unlocked-io.hin: Remove file.
71930         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71931         rather than trying to embed it here.
71932         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71933         Reported by Padraig Brady.
71934
71935 2001-09-25  Volker Borchert  <bt@teknon.de>
71936
71937         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71938         `result'.
71939
71940 2001-09-24  Jim Meyering  <meyering@lucent.com>
71941
71942         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71943
71944 2001-09-23  Jim Meyering  <meyering@lucent.com>
71945
71946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71947         instead of the mere test for existence of mntent.h.  The latter
71948         would get a false-positive on AIX 3.4 systems.
71949         In the outer getmntent if-block, don't die if neither of the getmntent
71950         tests succeeds.  Instead, just fall through and continue with the
71951         remaining tests.
71952
71953 2001-09-23  Jim Meyering  <meyering@lucent.com>
71954
71955         * lib/mountlist.c: Remove useless parentheses in #if directives.
71956         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71957         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71958
71959 2001-09-22  Jim Meyering  <meyering@lucent.com>
71960
71961         * m4/gettext.m4: New file.  From gettext.
71962         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71963         * m4/progtest.m4: Likewise
71964         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71965         * m4/glibc21.m4: Likewise.
71966
71967         * m4/libintl.m4: Remove.  No longer used.
71968
71969 2001-09-22  Jim Meyering  <meyering@lucent.com>
71970
71971         * lib/localcharset.c: Update from latest gettext.
71972         * lib/config.charset: Likewise.
71973
71974 2001-09-20  Jim Meyering  <meyering@lucent.com>
71975
71976         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71977         strtoimax.
71978         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71979         strtoumax.
71980
71981 2001-09-20  Jim Meyering  <meyering@lucent.com>
71982
71983         * lib/xstrtol.c (strtoimax): Guard declaration with
71984         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71985         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71986         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71987         (strtoumax): Likewise, for completeness (it wasn't necessary).
71988
71989 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71990
71991         * lib/strtoimax.c (HAVE_LONG_LONG):
71992         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71993         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71994         to work around bug in IBM C compiler.
71995
71996 2001-09-17  Jim Meyering  <meyering@lucent.com>
71997
71998         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71999         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
72000         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
72001         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
72002         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
72003         whenever the right hand side need not be expanded by the shell.
72004
72005 2001-09-16  Paul Eggert  <eggert@twinsun.com>
72006
72007         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
72008         library.  It's not correct, as some older glibcs are buggy.
72009         fnmatch wasn't fixed until glibc 2.2.
72010
72011         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
72012         special shell magic here.
72013
72014 2001-09-16  Jim Meyering  <meyering@lucent.com>
72015
72016         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
72017         * m4/jm-macros.m4: Require it.
72018
72019 2001-09-16  Jim Meyering  <meyering@lucent.com>
72020
72021         * lib/mkdir.c: New file.
72022
72023 2001-09-15  Jim Meyering  <meyering@lucent.com>
72024
72025         * m4/jm-macros.m4: Check for help2man.
72026
72027 2001-09-11  Jim Meyering  <meyering@lucent.com>
72028
72029         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
72030         The body, by Paul Eggert, was moved here from configure.in.
72031         * m4/jm-macros.m4: Require UTILS_HOST_OS.
72032
72033 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72034
72035         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
72036         (jm_PREREQ): Use it.
72037
72038 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72039
72040         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
72041         Use ssize_t, not int, to store result of readlink.
72042         Check for ssize_t overflow as well as size_t overflow,
72043         as POSIX says the result of readlink is implementation-defined
72044         when ssize_t overflows.
72045         Remove unnecessary cast to char*.
72046         Use free+malloc instead of realloc, as the storage doesn't need
72047         to be preserved and it's clearer and can be more efficient that way.
72048         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
72049         * lib/xreadlink.h (xreadlink): Update prototype.
72050
72051 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72052
72053         * lib/xgetcwd.c: Revert some of the previous change; intead,
72054         fix the HAVE_GETCWD_NULL code to behave more like the
72055         !HAVE_GETCWD_NULL code used to.
72056
72057         Include "xalloc.h".
72058         (xgetcwd): Do not return NULL when memory is exhausted; instead,
72059         invoke xalloc_die.
72060
72061 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72062
72063         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
72064         sys/param.h, as pathmax.h includes them.
72065
72066 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72067
72068         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
72069         (jm_PREREQ_XGETCWD): New macro.
72070
72071         * m4/getcwd.m4: New file.
72072
72073 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72074
72075         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
72076         like the HAVE_GETCWD_NULL code.
72077         Include pathmax.h if not HAVE_GETCWD.
72078         Do not include xalloc.h.
72079         (INITIAL_BUFFER_SIZE): New symbol.
72080         Do not use xmalloc / xrealloc, since the caller is responsible for
72081         handling errors.  Preserve errno around `free' during failure.
72082         Do not overrun buffer when using getwd.
72083
72084 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72085
72086         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
72087         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
72088         getcwd (NULL, 0).
72089
72090 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72091
72092         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
72093         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
72094         spotted by Jim Meyering.
72095
72096 2001-09-03  Jim Meyering  <meyering@lucent.com>
72097
72098         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
72099         failure.
72100
72101 2001-09-02  Jim Meyering  <meyering@lucent.com>
72102
72103         * lib/error.c: Update from GNU libc.
72104
72105 2001-09-01  Jim Meyering  <meyering@lucent.com>
72106
72107         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
72108         Used by df.
72109
72110 2001-09-01  Jim Meyering  <meyering@lucent.com>
72111
72112         * lib/xreadlink.c: New file.
72113         * lib/xreadlink.h: New file.
72114         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
72115         xreadlink.h.
72116
72117         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
72118         doesn't conflict with sparc Solaris 7's definition in
72119         /usr/include/sys/int_types.h.
72120
72121         * lib/exclude.c: Use `""', not `<>' to #include non-system header
72122         files.
72123         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
72124         and strncasecmp as r-values.  Unixware didn't have declarations.
72125
72126 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72127
72128         * lib/xstrtol.h: Add copyright notice.
72129         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
72130         LONGINT_INVALID_SUFFIX_CHAR.
72131
72132 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72133
72134         * lib/xstrtol.c (strtoimax): New decl.
72135
72136 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72137
72138         * lib/xgetcwd.c: Don't include pathmax.h.
72139         Include stdlib.h and unistd.h if available.
72140         Include xalloc.h.
72141         (xmalloc, xstrdup, free): Remove decls.
72142         (xgetcwd): Don't assume sizes fit in unsigned.
72143         Check for overflow when computing sizes.
72144         Simplify reallocation code.
72145
72146 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72147
72148         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
72149         a directory's st_size can have an arbitrary value, so the old
72150         usage could waste an arbitrary amount of memory.  All uses
72151         changed.
72152         * lib/savedir.h: Update prototype.
72153
72154 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72155
72156         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
72157
72158         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
72159         old strtoimax.c.
72160
72161         Also, make the following further changes to make this file's
72162         configuration more similar to that of strtol.c:
72163         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
72164         (strtoumax, uintmax_t, strtoull, strtol): Remove.
72165         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
72166         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
72167         changed to signed values.
72168
72169         And make the following changes as well:
72170         Fix copyright notice, as 1999 was missing.
72171         (verify): New macro.
72172         (strtoimax): Check sizes at compile-time, not run-time.
72173         Prefer strtol to strtoll if both work.
72174         (main): Remove; it was not that useful and was a pain to maintain.
72175
72176         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
72177
72178 2001-08-31  Jim Meyering  <meyering@lucent.com>
72179
72180         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
72181         Use an initial, malloc'd, buffer of length 128 rather than
72182         a statically allocated one of length 1024.
72183
72184 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72185
72186         Simplify code, partly by assuming autoconf 2.52 semantics.
72187
72188         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
72189
72190         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
72191         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
72192         All uses removed.
72193         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
72194         Move AC_REQUIRE to next-to-top level, to avoid confusion.
72195         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
72196         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
72197         jm_AC_HEADER_INTTYPES_H.
72198         * m4/jm-macros.m4 (jm_MACROS): Likewise.
72199
72200         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
72201
72202         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72203         Quote first arg of AC_DEFUN.
72204         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
72205         since they are needed to parse the include file even if we need
72206         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
72207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
72208         but with opposite signedness.
72209
72210 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72211
72212         Merge 'exclude' changes from tar 1.13.22.
72213         This fixes one or two unlikely storage allocation overflow bugs,
72214         but doesn't change user-visible behavior otherwise.
72215
72216 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72217
72218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
72219         (jm_PREREQ_EXCLUDE): New macro.
72220
72221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72222
72223         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
72224         tm to be declared.
72225
72226 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72227
72228         * lib/hash.c: Remove '2001' from copyright notice.
72229
72230 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72231
72232         * lib/full-write.h: New file.
72233         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
72234         * lib/full-write.c: Correct credits, as cccp.c no longer
72235         exists and anyway it was so heavily changed from the old cccp
72236         code as to be unrecognizable.  Include full-write.h.
72237         (full_write) Return size_t, with short writes meaning failure.
72238         All callers changed.  This fixes a bug with large buffers
72239         on 64-bit hosts.
72240         * lib/utime.c: Include full-write.h.
72241
72242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72243
72244         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
72245         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
72246         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
72247         Include if available.
72248         (<xalloc.h>): Include
72249         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
72250         (verify): New macro.  Use it to verify that EXCLUDE macros do not
72251         collide with FNM macros.
72252         (struct patopts): New struct.
72253         (struct exclude): Use it, as exclude patterns now come with options.
72254         (new_exclude): Support above changes.
72255         (new_exclude, add_exclude_file):
72256         Initial size must now be a power of two to simplify overflow checking.
72257         (free_exclude, fnmatch_no_wildcards): New function.
72258         (excluded_filename): No longer requires options arg, as the options
72259         are determined by add_exclude.  Now returns bool, not int.
72260         (excluded_filename, add_exclude):
72261         Add support for the fancy new exclusion options.
72262         (add_exclude, add_exclude_file): Now takes int options arg.
72263         Check for arithmetic overflow when computing sizes.
72264         (add_exclude_file): xrealloc might modify errno, so don't
72265         realloc until after errno might be used.
72266
72267         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
72268         New macros.
72269         (free_exclude): New decl.
72270         (add_exclude, add_exclude_file): Now takes int options arg.
72271         (excluded_filename): No longer requires options arg, as the options
72272         are determined by add_exclude.  Now returns bool, not int.
72273
72274 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72275
72276         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
72277
72278 2001-08-27  Jim Meyering  <meyering@lucent.com>
72279
72280         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
72281
72282         * lib/version-etc.c (N_): Remove definition.
72283         Revert most of last change.
72284         Instead, simply don't mark the `Copyright...' string for translation.
72285         Based on advice from Paul Eggert.
72286
72287         * lib/strtoxmax.c: Tweak comment.
72288
72289 2001-08-26  Jim Meyering  <meyering@lucent.com>
72290
72291         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
72292
72293         * m4/xstrtoimax.m4: New file.
72294         * m4/xstrtoumax.m4: Add comments explaining why we
72295         AC_REPLACE_FUNCS(strtol).
72296
72297 2001-08-26  Jim Meyering  <meyering@lucent.com>
72298
72299         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
72300         of copyright with `%s' so translators don't get an untranslated
72301         message in 2002.
72302         (COPYRIGHT_YEAR): Define.
72303         (version_etc): Use fprintf rather than fputs.
72304         Suggestion from Ulrich Drepper.
72305
72306         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
72307
72308         * lib/strtoll.c: New file, from GNU libc.
72309         * lib/xstrtoimax.c: New file.
72310
72311         * lib/xstrtol.h: Add xstrtoimax.
72312         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
72313         * lib/strtoimax.c: New file.  Likewise, but first define
72314         STRTOUXMAX_SIGNED.
72315
72316         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
72317         ...
72318         * lib/strtoxmax.c: ... then renamed to this.
72319
72320 2001-08-18  Paul Eggert  <eggert@twinsun.com>
72321
72322         * m4/inttypes.m4: Add AC_PREREQ(2.13).
72323         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
72324         (jm_AC_TYPE_INTMAX_T): New macro.
72325         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
72326
72327         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
72328
72329         * m4/longlong.m4: Renamed from ulonglong.m4.
72330         * m4/inttypes.m4: Renamed from inttypes_h.m4.
72331         * m4/uintmax_t.m4: Removed.
72332
72333 2001-08-13  Paul Eggert  <eggert@twinsun.com>
72334
72335         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
72336         Port to Solaris 8, where 'sed' requires a space after the 'r'
72337         command, and where sh dislikes "$/".  Clean up the spacing a bit.
72338         Redirect output to $tmp just once.
72339
72340 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
72341
72342         * lib/addext.c (<errno.h>): Include.
72343         (errno): Declare if not defined.
72344         (addext): Work correctly when pathconf returns -1 and leaves
72345         errno alone because there is no limit.  Also, work even if
72346         pathconf returns a value greater than SIZE_MAX.
72347
72348 2001-08-12  Jim Meyering  <meyering@lucent.com>
72349
72350         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
72351         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
72352         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
72353         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
72354         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
72355         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
72356         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
72357         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
72358         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
72359         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
72360         utime.m4, utimes.m4, xstrtoumax.m4:
72361         Quote the first argument in each use of AC_DEFUN.
72362
72363 2001-08-12  Jim Meyering  <meyering@lucent.com>
72364
72365         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
72366         Simply `return getcwd (NULL, 0);'.
72367         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
72368         Use 1300 as initial value for length, not PATH_MAX.
72369
72370         * lib/pathmax.h: Clean up cpp syntax.
72371
72372 2001-08-12  Jim Meyering  <meyering@lucent.com>
72373
72374         * lib/gettimeofday.c: New file.
72375         * lib/gtod.h: New file.
72376         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
72377
72378 2001-08-05  Jim Meyering  <meyering@lucent.com>
72379
72380         * m4/jm-macros.m4: Require autoconf-2.52.
72381
72382 2001-08-04  Jim Meyering  <meyering@lucent.com>
72383
72384         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
72385         stmt, to get in sync with glibc.
72386
72387 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72388
72389         The following changes are from gettext 0.10.39 as maintained by
72390         Bruno Haible.
72391
72392         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
72393         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
72394         with inverted sense.  All uses changed.
72395
72396         * lib/mbswidth.c: Don't include <limits.h>.
72397         Include <stdlib.h> and <string.h> unconditionally.
72398         (iswcntrl, mbsinit, ISCNTRL): New macros.
72399         (mbsnwidth): Use K&R style function declarations.
72400         Don't bother checking for MB_LEN_MAX == 1, since the compiler
72401         can optimize it when MB_CUR_MAX == 1.
72402         The width of control characters is zero, not 1.
72403
72404 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72405
72406         The following changes are from gettext 0.10.39 as maintained by
72407         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
72408
72409         * m4/codeset.m4: Upgrade to serial AM1.
72410         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
72411         all uses changed.  Quote first arg of AC_DEFUN.
72412         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
72413
72414         * m4/iconv.m4: Upgrade to serial AM2.
72415         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
72416         Add --with-libconv-prefix.
72417         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
72418         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
72419         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
72420         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
72421         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
72422
72423         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
72424         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
72425         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
72426         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
72427         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
72428         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
72429         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72430         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
72431         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72432
72433         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
72434         string.h any more.
72435
72436         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
72437         not the default value.
72438
72439         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
72440         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
72441         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
72442         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
72443         Also check for iswcntrl, used for wcwidth fallback.
72444         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
72445         to Autoconf 2.13.
72446
72447 2001-08-03  Jim Meyering  <meyering@lucent.com>
72448
72449         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
72450         as it was in the original.  Reported by Paul Eggert.
72451
72452 2001-07-16  Jim Meyering  <meyering@lucent.com>
72453
72454         * m4/gettimeofday.m4: New file.
72455         Prompted by a report from Bernhard Baehr.
72456
72457 2001-07-15  Jim Meyering  <meyering@lucent.com>
72458
72459         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
72460         stuff. Now it's in ../Makefile.cfg.
72461
72462 2001-07-15  Jim Meyering  <meyering@lucent.com>
72463
72464         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
72465         (BUILT_SOURCES): Add unlocked-io.h.
72466         (io_functions): Define.
72467         (unlocked-io.h): New rule.
72468         (DISTCLEANFILES): Add unlocked-io.h.
72469         (all-local): Depend on unlocked-io.h, to ensure it is created.
72470
72471         * lib/unlocked-io.hin: New file
72472
72473         * lib/regex.c: Update from glibc.
72474
72475 2001-07-05  Jim Meyering  <meyering@lucent.com>
72476
72477         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
72478         recommendation.
72479         (libfetish_a_SOURCES): Put all .h files here instead.
72480         Remove a thus-exposed (better checks in automake) duplicate and
72481         two unnecessary .h files.
72482
72483 2001-07-04  Jim Meyering  <meyering@lucent.com>
72484
72485         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
72486         that generates jm-glibc-io.m4 so that it doesn't trigger any make
72487         distcheck failure.
72488
72489 2001-07-02  Jim Meyering  <meyering@lucent.com>
72490
72491         The following changes were prompted by suggestions from Bruno Haible.
72492
72493         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
72494         is now generated.
72495         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
72496         definition of EXTRA_DIST.
72497         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
72498         ensure that the generated file is created/updated whenever the list
72499         of $(unlocked_functions) is changed.
72500         (jm-glibc-io.m4): New rule.
72501         (unlocked-io.h): New rule -- currently unused.
72502
72503 2001-06-24  Jim Meyering  <meyering@lucent.com>
72504
72505         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
72506         unmatched right bracket, rather than kludging it with an extra,
72507         falsely-matching quote in a comment.  Patch by Akim Demaille.
72508
72509 2001-06-11  Jim Meyering  <meyering@lucent.com>
72510
72511         * lib/regex.c: Update from GNU libc.
72512
72513 2001-05-27  Jim Meyering  <meyering@lucent.com>
72514
72515         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
72516         Check for ut_type in struct utmp.
72517
72518 2001-05-27  Jim Meyering  <meyering@lucent.com>
72519
72520         * lib/readutmp.h (UT_TYPE): Define.
72521
72522 2001-05-24  Jim Meyering  <meyering@lucent.com>
72523
72524         * lib/argmatch.c: Include "quote.h".
72525         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
72526         quote function.  Reported by Göran Uddeborg.
72527
72528 2001-05-22  Jim Meyering  <meyering@lucent.com>
72529
72530         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
72531         now that we use the package-supplied version unconditionally.
72532         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
72533
72534 2001-05-21  Jim Meyering  <meyering@lucent.com>
72535
72536         * m4/regex.m4: Change a couple backticks to single quotes to avoid
72537         shell syntax errors.
72538
72539 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72540
72541         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
72542
72543 2001-05-20  Paul Eggert  <eggert@twinsun.com>
72544
72545         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
72546         Don't bother to check library strftime, since
72547         we'll be using our own my_strftime function anyway.
72548         Define my_strftime instead of strftime.
72549
72550 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
72551
72552         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
72553         which is not yet declared.
72554
72555 2001-05-15  Jim Meyering  <meyering@lucent.com>
72556
72557         * m4/regex.m4: Use proper quoting so brackets appear in the test
72558         program.
72559         Reported by, and with help from, Bruno Haible.
72560
72561 2001-05-13  Jim Meyering  <meyering@lucent.com>
72562
72563         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
72564         undefined.
72565
72566 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72567
72568         dirname code cleanup.  base_name now behaves more compatibly
72569         with POSIX basename when given file names that have trailing
72570         slashes, and similarly for dir_name.  Add new primitives
72571         base_len and dir_len.  Put the directory-name-related decls
72572         into dirname.h.
72573
72574         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72575         * lib/backupfile.c (base_name): Likewise.
72576         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72577         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72578         * lib/makepath.c (strip_trailing_slashes): Likewise.
72579         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72580         ISSLASH): Likewise.
72581         * lib/rename.c (strip_trailing_slashes): Likewise.
72582         * lib/same.c (base_name): Likewise.
72583         * lib/stripslash.c (ISSLASH): Likewise.
72584
72585         * lib/addext.c: Include <dirname.h> after size_t is defined.
72586         * lib/backupfile.c: Likewise.
72587
72588         * lib/addext.c (addext): Use base_len to trim redundant
72589         trailing slashes instead of doing it ourselves.
72590         But do not trim the last slash if it is not redundant.
72591
72592         * lib/backupfile.c (find_backup_file_name,
72593         max_backup_version): Use base_len instead of rolling it ourselves.
72594         Handle the case of "" and (on DOS) "C:" correctly.
72595
72596         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72597         needed. Include <string.h>, <dirname.h>.
72598         (base_name): Allow file names ending in slashes, other than names
72599         that are all slashes.  In this case, return the basename followed
72600         by the slashes.  This is more general, and can be used in places
72601         where the original base_name purposely had an assertion failure.
72602         (base_len): New function.
72603
72604         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72605         Do not include <assert.h>; no longer needed.
72606         Include xalloc.h.
72607         (memrchr): Remove decl.
72608         (dir_name_r): Remove.
72609         (dir_len): Renamed from dirlen.  All callers changed.
72610         Rewrite in terms of base_name, for simplicity and consistency.
72611         (dir_name): Never return NULL.  All callers changed.
72612         Do not include <stdlib.h> in test program; no longer needed.
72613         return 0; is fine for test program.
72614
72615         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
72616         New macros.
72617         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
72618
72619         * lib/path-concat.c (path_concat): Use base_len to compute
72620         base length, not strlen; this means we cannot rely on memcpy
72621         to null-terminate.
72622
72623         * lib/same.c (STREQ): Remove.
72624         (same_name): Handle the case where the basename ends in trailing '/'.
72625
72626         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
72627         a slash was stripped.  Do not strip the last slash after a
72628         file system prefix.
72629
72630 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72631
72632         * lib/Makefile.am (libfetish_a_SOURCES):
72633         Add strftime.c, since we now compile it on all hosts.
72634
72635         * lib/strftime.c (my_strftime):
72636         Define to nstrftime if emacs, but only if my_strftime is not defined.
72637         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
72638         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
72639         Add one more extra argument: a nanoseconds value.
72640         All uses changed.
72641         (ns): New macro.
72642         (my_strftime function): Add %N format.
72643         (emacs_strftimeu): Renamed from emacs_strftime,
72644         with extra ut argument.
72645
72646 2001-05-09  Paul Eggert  <eggert@twinsun.com>
72647
72648         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
72649
72650 2001-04-21  Jim Meyering  <meyering@lucent.com>
72651
72652         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
72653         doesn't interfere.
72654
72655 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72656
72657         * m4/ftruncate.m4: Check for chsize.
72658         Link with ftruncate.o unconditionally if ftruncate is missing.
72659         This was required when cross-compiling to i586-mingw32msvc.
72660
72661 2001-04-08  Jim Meyering  <meyering@lucent.com>
72662
72663         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
72664         recomputed; that's necessary when the offset spans a DST transition.
72665         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
72666
72667 2001-04-02  Jim Meyering  <meyering@lucent.com>
72668
72669         * lib/regex.h, regex.c: Update from GNU libc.
72670
72671 2001-03-24  Jim Meyering  <meyering@lucent.com>
72672
72673         * m4/jm-macros.m4: Require autoconf-2.49d.
72674
72675 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
72676
72677         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
72678
72679 2001-03-19  Paul Eggert  <eggert@twinsun.com>
72680
72681         * lib/version-etc.c (version_etc_copyright): Update to 2001.
72682
72683 2001-03-17  Jim Meyering  <meyering@lucent.com>
72684
72685         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
72686         now that the version in autoconf is equivalent.
72687         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
72688
72689         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
72690         Suggestion from Akim Demaille.
72691
72692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
72693         (jm_PREREQ_TEMPNAME): New function.
72694
72695 2001-03-16  Paul Eggert  <eggert@twinsun.com>
72696
72697         * lib/tempname.c (uint64_t): Define to uintmax_t if
72698         not defined, and if UINT64_MAX is not defined.
72699         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
72700         Reported by John David Anglin.
72701
72702 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
72703
72704         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
72705         resolve alias if codeset is empty.
72706         * lib/config.charset (BeOS): Use wildcard syntax.
72707
72708 2001-03-13  Jim Meyering  <meyering@lucent.com>
72709
72710         * lib/path-concat.c (path_concat)
72711         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
72712         concatenating e.g., `C:' and `foo'.
72713         From Bruno Haible.
72714
72715 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72716
72717         * lib/localcharset.c (locale_charset): Don't use
72718         setlocale(LC_CTYPE,NULL). Don't return NULL.
72719         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
72720
72721 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72722
72723         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
72724         support for DOS/DJGPP.
72725
72726 2001-03-01  Paul Eggert  <eggert@twinsun.com>
72727
72728         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
72729         lacks mkstemp.  Compile our own tempname.c if we compile our own
72730         mkstemp.c, as mkstemp relies on tempname.
72731
72732 2001-03-01  Jim Meyering  <meyering@lucent.com>
72733
72734         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72735         AH_VERBATIM really does output its argument verbatim.
72736
72737 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72738
72739         * lib/Makefile.am (libfetish_a_SOURCES):
72740         Add dup-safer.c, fopen-safer.c.
72741         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72742
72743         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72744         * lib/unistd-safer.h: New files.
72745
72746 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72747
72748         The mkstemp replacement is taken from glibc 2.2.2, with some
72749         portability fixes for use outside glibc, as follows:
72750
72751         * lib/tempname.c (struct_stat64): New macro.
72752         (direxists, __gen_tempname): Use it.
72753         This avoids a portability problem with Solaris 8.
72754
72755         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72756         (<stddef.h>, <stdint.h>, <string.h>):
72757         Include only if STDC_HEADERS || _LIBC.
72758         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72759         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72760         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72761         (__set_errno): Define this macro if <errno.h> doesn't.
72762         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72763         Define these macros if <stdio.h> doesn't.
72764         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72765         Define these macros if <sys/stat.h>
72766         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72767         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72768         __xstat64): Define if not _LIBC.
72769         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72770         (__gen_tempname): Invoke gettimeofday only if
72771         HAVE_GETTIMEOFDAY || _LIBC;
72772         otherwise, fall back on plain "time".
72773         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72774
72775         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72776
72777         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72778
72779 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72780
72781         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72782
72783 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72784
72785         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72786         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72787         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72789
72790 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72791
72792         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72793         Remove workaround macros for hosts that have mbrtowc but not
72794         mbstate_t, as we now insist on proper declarations for both
72795         before using mbrtowc.
72796
72797 2001-02-17  Jim Meyering  <meyering@lucent.com>
72798
72799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72800         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72801         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72802         UnixWare 7.1.1.
72803
72804         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72805         rather than AC_CACHE_VAL.
72806
72807 2001-02-17  Jim Meyering  <meyering@lucent.com>
72808
72809         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72810         around included file name.
72811
72812         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72813
72814         * lib/strftime.c: Update from GNU libc (the only changes were to
72815         comments).
72816
72817 2001-02-17  Jim Meyering  <meyering@lucent.com>
72818
72819         * lib/regex.c: Update from libc.
72820
72821 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72822
72823         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72824         clash.
72825
72826 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72827
72828         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72829         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72830         Reported by Mark Hounschell via Paul Eggert.
72831
72832 2001-02-07  Jim Meyering  <meyering@lucent.com>
72833
72834         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72835
72836 2001-02-05  Jim Meyering  <meyering@lucent.com>
72837
72838         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72839         it includes the patch required for `large file' support with at least
72840         HP-UX's 10.20 /bin/cc.
72841
72842 2001-02-03  Jim Meyering  <meyering@lucent.com>
72843
72844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72845         AS_IF, now that it works once again (mysteriously).
72846         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72847
72848 2001-01-30  Jim Meyering  <meyering@lucent.com>
72849
72850         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72851         * m4/chown.m4: Rename conftestchown to conftest.chown.
72852         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72853         s/conftestdir2/conftest.d2/.
72854         * m4/utimes.m4: s/conftestdata/conftest.data/
72855         Inspired by Pavel Roskin's change in autoconf.
72856
72857 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72858
72859         * lib/config.charset: Update for FreeBSD 4.2.
72860
72861 2001-01-27  Jim Meyering  <meyering@lucent.com>
72862
72863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72864         a use of AS_IF.
72865         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72866
72867 2001-01-26  Jim Meyering  <meyering@lucent.com>
72868
72869         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72870         quotearg.c includes it.
72871
72872 2001-01-26  Jim Meyering  <meyering@lucent.com>
72873
72874         * lib/quotearg.c: Include stddef.h.
72875         * lib/quote.c: Include stddef.h.
72876         Reported by Axel Kittenberger.
72877
72878         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72879         line in double quotes so that it evokes a better diagnostic.
72880         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72881         Reported by Axel Kittenberger.
72882
72883 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72884
72885         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72886         as if it was a `charset'.
72887
72888 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72889
72890         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72891         has const.
72892
72893 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72894
72895         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72896         to avoid a warning.  Add back 'const' to inptr.
72897
72898 2001-01-20  Jim Meyering  <meyering@lucent.com>
72899
72900         Be sure that headers are checked before used in code compiled
72901         for the type checks.
72902         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72903         In place of that, invoke jm_CHECK_ALL_TYPES.
72904         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72905         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72906         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72907         The check for ssize_t was mistakenly run before the test for unistd.h.
72908
72909         The configure-time check for stdbool.h was missing.
72910         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72911         (jm_PREREQ_HASH): New function.
72912
72913 2001-01-17  Jim Meyering  <meyering@lucent.com>
72914
72915         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72916         for autoconf-2.49c.
72917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72918
72919 2001-01-16  Jim Meyering  <meyering@lucent.com>
72920
72921         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72922         From Bruno Haible.
72923
72924 2001-01-14  Jim Meyering  <meyering@lucent.com>
72925
72926         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72927         foo and bar.  Create conftestdir/ in the script, not in the C code.
72928         Remove directories in the script, not in the C code.
72929         Remove conftestdir{,2} before trying to create the directory.
72930         Make the entire configure script fail if the mkdir fails.
72931
72932 2001-01-14  Jim Meyering  <meyering@lucent.com>
72933
72934         * lib/rename.c: New file.  From Volker Borchert.
72935         Include stdlib.h, string.h or strings.h, and xalloc.h.
72936         Use strip_trailing_slashes rather than open-coding it.
72937
72938 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72939
72940         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72941
72942 2001-01-03  Jim Meyering  <meyering@lucent.com>
72943
72944         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72945         of local `inptr' to avoid warning with some system declarations of
72946         iconv.
72947
72948 2001-01-02  Volker Borchert  <bt@teknon.de>
72949
72950         * m4/rename.m4: New file.
72951         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72952
72953 2001-01-01  Jim Meyering  <meyering@lucent.com>
72954
72955         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72956         even on systems with utmpx.h.  It's necessary for the declaration of
72957         utmp's ut_user member.  Reported by Andreas Jaeger.
72958
72959         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72960         available. They are required for the declarations of getgrgid and
72961         getpwuid resp.
72962         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72963         Reported by Andreas Jaeger.
72964
72965 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72966
72967         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72968         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72969         so `make install' also works in VPATH builds.
72970
72971 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72972
72973         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72974         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72975         can be used in subdirectories.
72976
72977 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72978
72979         * lib/modechange.c: Do not assume that mode_t uses the
72980         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72981         the other-execute bit of FOO even if S_IXOTH != 1.
72982
72983         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72984         WOTH, XOTH, ALLM): New macros.
72985         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72986          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72987         Use them.
72988         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72989         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72990         (mode_compile):
72991         No need to use uintmax_t; unsigned long is long enough.
72992         Don't bother to get suffix since we don't use it.
72993
72994 2000-12-26  Jim Meyering  <meyering@lucent.com>
72995
72996         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72997         better with autoheader.
72998
72999 2000-12-24  Jim Meyering  <meyering@lucent.com>
73000
73001         * lib/hash.c (is_prime): Return explicit boolean values.
73002         (hash_get_first): Return NULL to appease Irix5.6's 89.
73003         Reported by Nelson Beebe.
73004
73005 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
73006
73007         * lib/localcharset.c (locale_charset): Add support for Win32.
73008
73009 2000-12-18  Paul Eggert  <eggert@twinsun.com>
73010
73011         * lib/physmem.h, lib/physmem.c: New files.
73012
73013         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
73014         (noinst_HEADERS): Add physmem.h.
73015
73016         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
73017         't' for compatibility with Solaris 8 sort.
73018
73019 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
73020
73021         * lib/config.charset: Add support for BeOS.
73022
73023 2000-12-17  Jim Meyering  <meyering@lucent.com>
73024
73025         * m4/dos.m4 (jm_AC_DOS): New file and macro.
73026         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
73027
73028 2000-12-16  Jim Meyering  <meyering@lucent.com>
73029
73030         This bug had a serious impact on chown: `chown N:M FILE' (for integer
73031         N and M) would have treated it like `chown N:N FILE'.
73032
73033         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
73034
73035 2000-12-16  Jim Meyering  <meyering@lucent.com>
73036
73037         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
73038         SHELLS_FILE to a file name that's useful on djgpp systems.
73039         Include stdlib.h.
73040         (ADDITIONAL_DEFAULT_SHELLS): Define.
73041         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
73042         Based mostly on a patch from Prashant TR.
73043
73044 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
73045
73046         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
73047         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
73048         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
73049
73050 2000-12-08  Andreas Schwab  <schwab@suse.de>
73051
73052         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
73053         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
73054
73055 2000-12-07  Jim Meyering  <meyering@lucent.com>
73056
73057         * lib/stripslash.c (ISSLASH): Define.
73058         (strip_trailing_slashes): Use ISSLASH rather than comparing against
73059         `/'.
73060         From Prashant TR.
73061
73062         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
73063         (dir_name_r): Declare this function as static.
73064         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
73065         manifest itself on a name containing a mix of slashes and
73066         backslashes.
73067         Make this function work with names starting with a DOS-style
73068         drive letter and colon prefix.
73069         (dir_name): Append `.' if necessary.
73070         Based mostly on patches from Prashant TR and Eli Zaretskii.
73071
73072         * lib/dirname.h (dir_name_r): Remove prototype.
73073
73074 2000-12-06  Paul Eggert  <eggert@twinsun.com>
73075
73076         * m4/off_t-format.m4: Remove this file.
73077         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
73078
73079 2000-12-06  Jim Meyering  <meyering@lucent.com>
73080
73081         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
73082         replacement strtoull, we may well need the replacement strtoul, too.
73083         Check for declarations of strtoul and strtoull.
73084         Check for strtol.  Mainly as a cue to cause automake to include
73085         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
73086         Check for limits.h -- strtol.c needs it.
73087
73088 2000-12-05  Jim Meyering  <meyering@lucent.com>
73089
73090         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
73091
73092 2000-12-04  Jim Meyering  <meyering@lucent.com>
73093
73094         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
73095         Also include memory.h, stdlib.h, unistd.h if appropriate.
73096         Reported by Andreas Jaeger (conflicting declaration of malloc).
73097
73098 2000-12-02  Jim Meyering  <meyering@lucent.com>
73099
73100         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
73101         * m4/jm-macros.m4 (jm_MACROS): require it.
73102
73103 2000-12-02  Jim Meyering  <meyering@lucent.com>
73104
73105         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
73106
73107 2000-12-01  Paul Eggert  <eggert@twinsun.com>
73108
73109         * lib/memrchr.c: Include <config.h> before any system include file.
73110
73111 2000-11-30  Jim Meyering  <meyering@lucent.com>
73112
73113         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
73114
73115 2000-11-30  Jim Meyering  <meyering@lucent.com>
73116
73117         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
73118
73119 2000-11-29  Paul Eggert  <eggert@twinsun.com>
73120
73121         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
73122
73123 2000-11-26  Jim Meyering  <meyering@lucent.com>
73124
73125         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
73126
73127 2000-11-22  Paul Eggert  <eggert@twinsun.com>
73128
73129         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
73130         size of (size_t) -1; it's not portable.
73131
73132 2000-11-17  Jim Meyering  <meyering@lucent.com>
73133
73134         * lib/strstr.c: Update from GNU libc.
73135
73136 2000-11-17  Akim Demaille  <akim@epita.fr>
73137
73138         * lib/obstack.h: Formatting changes.
73139         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
73140         prevent type checking.
73141         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
73142         cast the value to (void *): assigning a `foo *' to a `void *'
73143         variable is valid.
73144         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
73145
73146 2000-11-16  Jim Meyering  <meyering@lucent.com>
73147
73148         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
73149
73150 2000-11-11  Jim Meyering  <meyering@lucent.com>
73151
73152         * lib/error.c: Add a couple #includes, merging from GNU libc version.
73153
73154 2000-11-10  Jim Meyering  <meyering@lucent.com>
73155
73156         * lib/obstack.h: Update from GNU libc.
73157         * lib/obstack.c: Likewise.
73158
73159 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
73160
73161         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
73162
73163 2000-11-06  Paul Eggert  <eggert@twinsun.com>
73164
73165         * lib/getusershell.c (setusershell): Use rewind rather than
73166         fseek/fseeko, to avoid configuration hassles with fseeko.
73167         Don't bother opening SHELLS_FILE if shellstream is NULL;
73168         it's not necessary.
73169
73170 2000-11-05  Jim Meyering  <meyering@lucent.com>
73171
73172         * lib/makepath.h (make_dir): Declare.
73173         * lib/makepath.c (make_dir): Remove `static' attribute.
73174         Tweak a comment.
73175
73176 2000-11-04  Jim Meyering  <meyering@lucent.com>
73177
73178         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
73179
73180 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
73181
73182         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
73183         last one in a bucket, advance to the next bucket.
73184
73185 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
73186
73187         * lib/fnmatch.c: Do not comment out all the code if we are using
73188         the GNU C library, because in some cases we are replacing buggy
73189         code in the GNU C library itself.
73190
73191 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
73192
73193         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
73194         (regex_compile): Catch bogus \(\1\).
73195
73196 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73197
73198         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
73199         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
73200         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
73201
73202 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73203
73204         * lib/error.h, getline.h, modechange.h:
73205         Remove "2000" from Copyright line, as the file hasn't been
73206         changed this year other than in the copyright notice.
73207
73208         * lib/xalloc.h: Add "2000" to Copyright line, as this file
73209         was changed this year.
73210
73211 2000-10-29  Jim Meyering  <meyering@lucent.com>
73212
73213         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
73214         renaming.
73215         * m4/ls-mntd-fs.m4: Likewise
73216
73217 2000-10-29  Jim Meyering  <meyering@lucent.com>
73218
73219         * lib/xstat.in: Fix grammar in comment.
73220
73221 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
73222
73223         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
73224         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
73225         doesn't define __restrict_arr.
73226
73227 2000-10-28  Jim Meyering  <meyering@lucent.com>
73228
73229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
73230         (jm_PREREQ_MEMCHR): New function.
73231
73232 2000-10-28  Jim Meyering  <meyering@lucent.com>
73233
73234         * lib/memchr.c: Update from libc.
73235         Adjust for portability:
73236         [HAVE_STDLIB_H]: Include stdlib.h.
73237         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
73238         Undef __memchr, too.
73239         [!weak_alias]: Define __memchr to memchr.
73240
73241         * lib/regex.c: Update from libc.
73242         * lib/regex.h: Likewise.
73243         * lib/getopt1.c: Likewise.
73244         * lib/memcmp.c: Likewise.
73245
73246         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
73247         Avoid using fseek, when possible -- it's broken by design.
73248         Patch by Ulrich Drepper.
73249
73250 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
73251
73252         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
73253         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
73254         Giving in to popular pressure to shut up the compiler with casts.
73255
73256 2000-10-26  Jim Meyering  <meyering@lucent.com>
73257
73258         * lib/strftime.c: Update from libc.
73259
73260 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
73261
73262         * regex.c: More `unsigned char' -> `re_char' changes.
73263         Also change several `int' into `re_wchar_t'.
73264         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
73265         (PUSH_FAILURE_POINTER): Don't cast any more.
73266         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
73267         We want GCC to complain, since this piece of code makes
73268         re_match non-reentrant, which *should* be fixed.
73269         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
73270         (EXTEND_BUFFER): Use RETALLOC.
73271         (SET_LIST_BIT): Don't cast.
73272         (re_wchar_t): New type.
73273         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
73274         that those two functions will always properly return.
73275         (IMMEDIATE_QUIT_CHECK): Cast to void.
73276         (analyse_first): Use recursion rather than an explicit stack.
73277         (re_compile_fastmap): Can't fail anymore.
73278         (re_search_2): Don't check re_compile_fastmap for failure.
73279         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
73280         Now also sets the new value (passed in a new argument).
73281         (re_match_2_internal): Use it.
73282         Also, use a new var `reg' of type size_t when looping through regs
73283         rather than reuse the inappropriate `mcnt'.
73284
73285 2000-10-25  Jim Meyering  <meyering@lucent.com>
73286
73287         * lib/obstack.c: Update from libc.
73288
73289 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
73290
73291         * regex.c (regex_compile): Change the way of handling a range from
73292         a char less than 256 to a char not less than 256.
73293
73294 2000-10-24  Andrew Innes  <andrewi@gnu.org>
73295
73296         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
73297         NT-Emacs only.
73298         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
73299         so that re_search functions only quit when callers expect them to.
73300
73301 2000-10-23  Jim Meyering  <meyering@lucent.com>
73302
73303         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
73304         wrong.  That set_locale call must not have any side effects.
73305         From Paul Eggert.
73306
73307 2000-10-22  Jim Meyering  <meyering@lucent.com>
73308
73309         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
73310         [CYCLIC]: Remove now-unused definition.
73311
73312         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
73313         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
73314         Suggestion from Ulrich Drepper.
73315
73316 2000-10-21  Jim Meyering  <meyering@lucent.com>
73317
73318         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
73319         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
73320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
73321
73322 2000-10-21  Jim Meyering  <meyering@lucent.com>
73323
73324         * lib/dirname.c (memrchr): Declare if necessary.
73325         (dir_name): Remove the restriction that there be no
73326         trailing slashes.  Now, this code skips past them, effectively
73327         ignoring them.
73328         [TEST_DIRNAME] (main): New unit tests.
73329
73330         * lib/memrchr.c: New file from GNU libc.
73331         Undef __memrchr, too.
73332         [!weak_alias]: Define __memrchr to memrchr.
73333         Guard weak_alias use with `#ifdef weak_alias'.
73334
73335 2000-10-21  Jim Meyering  <meyering@lucent.com>
73336
73337         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
73338         (dir_name): Use dir_name_r.
73339         * lib/dirname.h (dir_name_r): Declare it.
73340
73341 2000-10-17  Jim Meyering  <meyering@lucent.com>
73342
73343         * lib/quote.h (PARAMS): Define and use.
73344         Reported by Akim Demaille.
73345
73346         * lib/getopt.c: Update from libc.
73347
73348 2000-10-16  Jim Meyering  <meyering@lucent.com>
73349
73350         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
73351         setlocale.
73352         From Jan Fedak.
73353
73354 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
73355
73356         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
73357
73358 2000-09-25  Jim Meyering  <meyering@lucent.com>
73359
73360         * lib/md5.h (rol): Define (from GnuPG).
73361
73362         * lib/sha.c: Give credit (GnuPG) where due.
73363         (M): Use rol rather than open-coding it.
73364         Add a FIXME comment.
73365
73366 2000-09-21  Jim Meyering  <meyering@lucent.com>
73367
73368         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
73369         Reported by Michael Stone.
73370
73371 2000-09-20  Jim Meyering  <meyering@lucent.com>
73372
73373         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
73374         (noinst_HEADERS): Add sha.h.
73375         Based on code from Scott G. Miller and from GnuPG.
73376
73377 2000-09-18  Jim Meyering  <meyering@lucent.com>
73378
73379         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
73380         LIBS. Otherwise, everyone ends up linking with -lelf for some
73381         configurations.
73382         Reported by Mike Stone.
73383
73384 2000-09-15  Jim Meyering  <meyering@lucent.com>
73385
73386         * lib/regex.c: Update from libc.
73387
73388 2000-09-10  Jim Meyering  <meyering@lucent.com>
73389
73390         * lib/getopt.c (_getopt_internal): Update from glibc.
73391
73392 2000-09-09  Jim Meyering  <meyering@lucent.com>
73393
73394         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
73395         think it should be used as a general replacement for isascii.
73396         * lib/fnmatch.c: Likewise.
73397         * lib/mbswidth.c: Likewise
73398         * lib/regex.c: Likewise.
73399
73400         Don't use atoi.
73401         * lib/userspec.c: Include sys/param.h and limits.h.
73402         Include xstrtol.h.
73403         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73404         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
73405         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
73406         UID, GID.  Check range.
73407
73408 2000-09-06  Jim Meyering  <meyering@lucent.com>
73409
73410         * lib/getopt.c (_getopt_internal): Update from glibc.
73411
73412 2000-08-30  Jim Meyering  <meyering@lucent.com>
73413
73414         * lib/strftime.c: Merge in changes from GNU libc.
73415
73416 2000-08-26  Jim Meyering  <meyering@lucent.com>
73417
73418         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
73419         * m4/fpending.m4: New file.
73420
73421 2000-08-26  Jim Meyering  <meyering@lucent.com>
73422
73423         * lib/closeout.c: Include "__fpending.h".
73424         (close_stdout_status): Return right away if there's nothing to flush.
73425
73426         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
73427         * lib/__fpending.c: New file.
73428         * lib/__fpending.h: New file.
73429
73430 2000-08-20  Jim Meyering  <meyering@lucent.com>
73431
73432         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
73433         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
73434         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
73435
73436 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
73437
73438         Improve fileutils installation on systems where running
73439         programs (like install) can't be unlinked.
73440         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
73441         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
73442
73443 2000-08-07  Paul Eggert  <eggert@twinsun.com>
73444
73445         Standardize on "memory exhausted" instead of "Memory exhausted"
73446         or "virtual memory exhausted".
73447         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
73448         "virtual memory exhausted".
73449         * lib/same.c (same_name): Invoke xalloc_die instead of printing
73450         our own message.
73451         * lib/userspec.c (parse_user_spec): Likewise.
73452         * lib/bumpalloc.h: comment fix
73453         * lib/same.c, userspec.c: Include xalloc.h.
73454
73455         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
73456         not char *const and pointing to a constant array.
73457         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
73458         (xrealloc): Comment fix.
73459
73460         * lib/userspec.c (parse_user_spec):
73461         Don't translate a message until just before returning,
73462         to avoid unnecessary translation.
73463
73464 2000-08-07  Jim Meyering  <meyering@lucent.com>
73465
73466         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
73467         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
73468         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
73469         getgroups.c, gethostname.c, getopt.h, group-member.c,
73470         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
73471         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
73472         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
73473         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
73474         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
73475         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
73476         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
73477         yesno.c: Back out Copyright date changes for each file with no change
73478         this year.  This eases coordination with other programs using the same
73479         source code modules.  From Paul Eggert.
73480
73481 2000-08-06  Paul Eggert  <eggert@twinsun.com>
73482
73483         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
73484         not char, for compatibility with glibc 2.1.3 strftime.c.
73485
73486 2000-08-03  Greg McGary  <greg@mcgary.org>
73487
73488         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
73489         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
73490         (EXTEND_BUFFER): Use them.
73491
73492 2000-08-01  Jim Meyering  <meyering@lucent.com>
73493
73494         * lib/dirname.c (ISSLASH): Define.
73495         (BACKSLASH_IS_PATH_SEPARATOR): Define.
73496         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
73497         both `\' and `/' may be use as path separators.
73498         Based on a patch from Prashant TR.
73499
73500 2000-07-31  Paul Eggert  <eggert@twinsun.com>
73501
73502         * lib/quotearg.c (quotearg_n_options): Don't make the initial
73503         slot vector a constant, since it might get modified.
73504
73505 2000-07-31  Jim Meyering  <meyering@lucent.com>
73506
73507         * lib/xmalloc.c: Use `virtual memory exhausted', not
73508         `Memory exhausted'.
73509         * lib/obstack.c (print_and_abort): Likewise.
73510
73511 2000-07-30  Paul Eggert  <eggert@twinsun.com>
73512
73513         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
73514         buffer, so that the caller can always quote one small
73515         component of a "memory exhausted" message in slot 0.
73516         From a suggestion by Jim Meyering.
73517
73518 2000-07-30  Jim Meyering  <meyering@lucent.com>
73519
73520         * lib/makepath.c (make_path): Quote the other instance, too.
73521
73522         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
73523         (STATIC_BUF_SIZE): Define.
73524         (quotearg_n_options): Use only statically allocated storage when
73525         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
73526         than STATIC_BUF_SIZE.
73527
73528 2000-07-29  Jim Meyering  <meyering@lucent.com>
73529
73530         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
73531         * lib/dirname.c (dir_name): Likewise.
73532
73533         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
73534         `/'.
73535
73536         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
73537         (dir_name): Assert that there are no trailing slashes.
73538
73539 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
73540
73541         * lib/mbswidth.h (mbswidth): Add a flags argument.
73542         (mbswidth): New declaration.
73543         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
73544         * lib/mbswidth.c (mbswidth): Add a flags argument.
73545         (mbsnwidth): New function.
73546
73547 2000-07-24  Jim Meyering  <meyering@lucent.com>
73548
73549         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
73550
73551 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73552
73553         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
73554
73555 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73556
73557         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
73558         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
73559         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
73560         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
73561         invoke multibyte primitives.
73562
73563 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73564
73565         * lib/quotearg.c:
73566         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
73567         so that mbstate_t is always defined.
73568
73569         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
73570         be 1 in at least one GCC installation, and this configuration
73571         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73572         performance on hosts that have mbrtowc but have only unibyte
73573         locales, but I assume these hosts are rare.
73574
73575 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73576
73577         * lib/mbswidth.c (_XOPEN_SOURCE):
73578         Don't define; this causes problems on Solaris 7.
73579         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73580
73581 2000-07-23  Jim Meyering  <meyering@lucent.com>
73582
73583         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73584         too: getgrgid, getpwuid, getuid.
73585
73586 2000-07-23  Jim Meyering  <meyering@lucent.com>
73587
73588         * lib/basename.c (base_name): Add an assertion.
73589
73590 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73591
73592         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73593         shadow its mbsinit function.
73594
73595 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73596
73597         * lib/mbswidth.h: New file.
73598         * lib/mbswidth.c: New file.
73599         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73600         (noinst_HEADERS): Add mbswidth.h.
73601
73602 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73603
73604         * lib/config.charset: Add support for FreeBSD. Improve support for
73605         HP-UX and IRIX 6.
73606
73607 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
73608
73609         * m4/mbswidth.m4: New file.
73610         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
73611
73612 2000-07-15  Jim Meyering  <meyering@lucent.com>
73613
73614         * lib/makepath.c: Include quote.h.
73615         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
73616         corresponding argument in a `quote (...)' call.
73617         Give better diagnostics.
73618
73619         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
73620         (noinst_HEADERS): Add quote.h.
73621
73622         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
73623         from tar's src/misc.c.
73624         * lib/quote.h: New file.  Prototypes for same.
73625
73626 2000-07-14  Paul Eggert  <eggert@twinsun.com>
73627
73628         From a suggestion by Bruno Haible.
73629         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
73630         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
73631         to decide whether to define the BeOS workaround macro;
73632         this adjusts to the change to AC_MBSTATE_T.
73633
73634 2000-07-14  Jim Meyering  <meyering@lucent.com>
73635
73636         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
73637         jm_AC_TYPE_UINTMAX_T.
73638
73639 2000-07-13  Paul Eggert  <eggert@twinsun.com>
73640
73641         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
73642
73643         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
73644         quotearg_buffer_restyled): Add support for
73645         clocale_quoting_style.  Undo previous change to
73646         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
73647         and "{RIGHT QUOTATION MARK}" msgids.
73648
73649 2000-07-10  Paul Eggert  <eggert@twinsun.com>
73650
73651         From a suggestion by Bruno Haible.
73652         * m4/mbstate_t.m4 (AC_MBSTATE_T):
73653         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
73654         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
73655         and mbstate_t, to a single-part test that simply defines mbstate_t.
73656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
73657         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
73658
73659 2000-07-10  Jim Meyering  <meyering@lucent.com>
73660
73661         * m4/strerror_r.m4: Mirror the correction made in autoconf.
73662
73663         * m4/gnu-source.m4: Output to confdefs.h directly.
73664         Suggestion from Akim Demaille.
73665
73666 2000-07-09  Paul Eggert  <eggert@twinsun.com>
73667
73668         The old behavior of quoting `like this' doesn't look good with
73669         newer, ISO-style fonts.  See:
73670         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
73671
73672         Instead, quote "like this" by default.  Let the translator
73673         tailor the locale-specific quoting behavior by providing
73674         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
73675
73676         * lib/quotearg.c (N_): New macro.
73677         (gettext_default): New function.
73678         (quotearg_buffer_restyled): Use
73679         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
73680         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
73681
73682 2000-07-09  Jim Meyering  <meyering@lucent.com>
73683
73684         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
73685         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
73686
73687         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
73688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
73689
73690 2000-07-09  Jim Meyering  <meyering@lucent.com>
73691
73692         * lib/Most files: Update copyright dates to include 2000.
73693
73694 2000-07-08  Jim Meyering  <meyering@lucent.com>
73695
73696         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
73697         if not defined.
73698         (xgethostname): Remove now-unnecessary #ifdef.
73699         Move declaration of `err' into loop where it's used.
73700
73701 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73702         and Bruno Haible  <haible@clisp.cons.org>
73703
73704         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
73705         only if the test for an object-type mbstate_t fails.  This
73706         prevents us from mistakenly reporting that mbstate_t is a
73707         system object type after we "#define mbstate_t int" to work
73708         around its lack.
73709
73710 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73711         and Bruno Haible  <haible@clisp.cons.org>
73712
73713         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
73714
73715 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73716
73717         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
73718         to strerror_r.
73719         Include <ctype.h> for use of isalpha.
73720
73721 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73722
73723         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
73724         by allocating a larger buffer. Test the gethostname return value for
73725         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
73726         returns an error and ENAMETOOLONG isn't defined.
73727
73728 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73729
73730         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73731         dimension.
73732
73733 2000-07-04  Jim Meyering  <meyering@lucent.com>
73734
73735         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73736         of the deprecated AC_CHECKING.
73737
73738 2000-07-04  Jim Meyering  <meyering@lucent.com>
73739
73740         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73741         Reported by Bruno Haible.
73742
73743 2000-07-04  Jim Meyering  <meyering@lucent.com>
73744
73745         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73746         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73747         lacks mbrtowc.
73748
73749 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73750
73751         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73752         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73753
73754 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73755         and Bruno Haible  <haible@clisp.cons.org>
73756
73757         * lib/quotearg.c (mbrtowc):
73758         Assign to *pwc, and return 1 only if result is nonzero.
73759         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73760
73761 2000-07-03  Jim Meyering  <meyering@lucent.com>
73762
73763         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73764
73765 2000-07-03  Jim Meyering  <meyering@lucent.com>
73766
73767         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73768         This is necessary to get a definition of e.g., UTMP_FILE on
73769         HP-UX 10.20.
73770         From Bob Proulx.
73771
73772 2000-07-02  Jim Meyering  <meyering@lucent.com>
73773
73774         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73775
73776         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73777         AC_LIBOBJ(function_name).
73778         * m4/chown.m4: Likewise.
73779         * m4/fnmatch.m4: Likewise.
73780         * m4/ftruncate.m4: Likewise.
73781         * m4/getgroups.m4: Likewise.
73782         * m4/getline.m4: Likewise.
73783         * m4/group-member.m4: Likewise.
73784         * m4/jm-macros.m4: Likewise.
73785         * m4/lstat.m4: Likewise.
73786         * m4/malloc.m4: Likewise.
73787         * m4/memcmp.m4: Likewise.
73788         * m4/nanosleep.m4: Likewise.
73789         * m4/putenv.m4: Likewise.
73790         * m4/realloc.m4: Likewise.
73791         * m4/regex.m4: Likewise.
73792         * m4/stat.m4: Likewise.
73793         * m4/strftime.m4: Likewise.
73794
73795 2000-07-02  Jim Meyering  <meyering@lucent.com>
73796
73797         * lib/quotearg.c (mbstate_t): Don't define here.
73798
73799 2000-07-02  Jim Meyering  <meyering@lucent.com>
73800
73801         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73802
73803 2000-07-01  Jim Meyering  <meyering@lucent.com>
73804
73805         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73806
73807 2000-07-01  Jim Meyering  <meyering@lucent.com>
73808
73809         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73810         problem.
73811
73812 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73813
73814         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73815         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73816
73817 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73818
73819         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73820         per change in ../m4/ls-mntd-fs.m4.
73821         (read_filesystem_list): Ignore symbolic links.
73822
73823 2000-06-29  Jim Meyering  <meyering@lucent.com>
73824
73825         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73826         for declaration of strcmp.
73827
73828         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73829
73830         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73831         Avoid warning by casting result to `char *' to remove `const'.
73832
73833 2000-06-28  Jim Meyering  <meyering@lucent.com>
73834
73835         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73836         included by quotearg.c, for which we perform this test.  From
73837         Bruno Haible.
73838
73839 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73840
73841         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73842         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73843         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73844
73845 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73846
73847         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73848
73849 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73850
73851         savedir now sets errno on failure and invokes xmalloc to get memory.
73852         Fix a couple of other minor bugs while we're at it.
73853
73854         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73855         (NAMLEN): Remove macro.
73856         (malloc, realloc): Remove decls.
73857         (stpcpy): Likewise.
73858         ("xalloc.h"): Include.
73859         (NAME_SIZE_DEFAULT): New macro.
73860         (savedir): Use xmalloc / xrealloc to allocate memory.
73861         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73862         Skip "" directory entries.
73863         Use strlen to calculate directory entry length, since the old method
73864         is rarely used these days and isn't worth supporting.
73865         Don't use a pointer after freeing it.
73866         Check for integer overflow when calculating allocation size.
73867         Use memcpy to copy entries, instead of stpcpy.
73868         Set errno properly when returning NULL.
73869         Check for readdir error.
73870
73871 2000-06-26  Jim Meyering  <meyering@lucent.com>
73872
73873         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73874
73875 2000-06-25  Jim Meyering  <meyering@lucent.com>
73876
73877         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73878         Linux header bug when _XOPEN_SOURCE is defined to 500.
73879
73880 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73881
73882         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73883         deficiency.
73884
73885 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73886
73887         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73888         Include xalloc.h.
73889         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73890
73891 2000-06-24  Jim Meyering  <meyering@lucent.com>
73892
73893         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73894         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73895         for which strerror does return char*, but which lacks a conveniently
73896         accessible declaration of the function.  If the compile-test says
73897         strerror_r doesn't work, then resort to a `run'-test that works on
73898         BeOS and segfaults on DEC Unix.
73899
73900 2000-06-24  Jim Meyering  <meyering@lucent.com>
73901
73902         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73903
73904 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73905
73906         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73907         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73908
73909 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73910
73911         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73912         (mbrtowc, mbstate_t): Define substitutes if
73913         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73914         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73915         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73916
73917 2000-06-23  Jim Meyering  <meyering@lucent.com>
73918
73919         * m4/afs.m4: Add missing AC_MSG_RESULT.
73920         Reported by Bruno Haible.
73921
73922         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73923         Suggestion from Bruno Haible.
73924
73925 2000-06-23  Jim Meyering  <meyering@lucent.com>
73926
73927         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73928
73929 2000-06-21  Jim Meyering  <meyering@lucent.com>
73930
73931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73932
73933 2000-06-21  Jim Meyering  <meyering@lucent.com>
73934
73935         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73936         (noinst_HEADERS): Add getstr.h.
73937
73938         * lib/getline.c (getstr): Move into a separate file.
73939         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73940         the following changes: new parameter, delim2; both delim[12]
73941         parameters have type `int', not `char'.  The latter would lose
73942         with 8-bit delimiters.
73943         * lib/getstr.h: New file.
73944
73945 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73946
73947         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73948         than 1024, return a memory chunk of least possible size, instead
73949         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73950         Use free/xmalloc instead of xrealloc to avoid copying for very long
73951         paths.
73952
73953 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73954
73955         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73956         the empty string.
73957
73958 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73959
73960         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73961         address, not strdup.  Include <stdlib.h> and don't declare free().
73962
73963 2000-06-19  Jim Meyering  <meyering@lucent.com>
73964
73965         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73966
73967 2000-06-18  Jim Meyering  <meyering@lucent.com>
73968
73969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73970
73971         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73972         `checking whether...' message to be consistent with that of the
73973         lstat test.
73974
73975 2000-06-18  Jim Meyering  <meyering@lucent.com>
73976
73977         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73978         Besides, these days every porting target provides a mkdir function.
73979
73980         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73981         needed. (this snippet comes from src/system.h).
73982
73983 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73984
73985         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73986
73987 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73988
73989         * lib/human.c (adjust_value): New function.
73990         (human_readable_inexact): Apply rounding style even when
73991         printing approximate values.
73992
73993 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73994
73995         * lib/human.c (human_readable_inexact): Allow an input block
73996         size that is not a multiple of the output block size, and vice versa.
73997         Reported by Piergiorgio Sartor.
73998
73999 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74000
74001         * lib/getdate.y (get_date): Apply relative times after time
74002         zone indicator, not before.  Reported by Todd A. Jacobs.
74003
74004 2000-06-13  Jim Meyering  <meyering@lucent.com>
74005
74006         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
74007
74008         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
74009
74010 2000-06-12  Paul Eggert  <eggert@twinsun.com>
74011
74012         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
74013
74014 2000-06-12  Jim Meyering  <meyering@lucent.com>
74015
74016         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
74017         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
74018         optional argument.
74019         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
74020         the optional argument, `lib'.
74021
74022 2000-06-08  Jim Meyering  <meyering@lucent.com>
74023
74024         * m4/largefile.m4: Remove file (now that it's part of autoconf).
74025
74026 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74027
74028         Rewrite largefile configuration so that we don't need to run
74029         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
74030         AC_CANONICAL_HOST in configure.in -- jmm]
74031
74032         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
74033         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
74034         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
74035         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
74036         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
74037         All uses changed.
74038         Instead of inspecting the output of getconf, try to compile the
74039         test program without and with the macro definition.
74040         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
74041         for getconf.  Instead, check for the needed flags by compiling
74042         test programs.
74043
74044 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74045
74046         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
74047
74048 2000-06-04  Jim Meyering  <meyering@lucent.com>
74049
74050         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
74051         SunOS 4.1.4 for which gid_t is an unsigned type.
74052
74053 2000-06-03  Jim Meyering  <meyering@lucent.com>
74054
74055         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
74056         now that autoconf requires that.
74057
74058         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
74059         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
74060         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
74061
74062 2000-06-03  Jim Meyering  <meyering@lucent.com>
74063
74064         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
74065
74066 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74067
74068         * m4/glibc21.m4: New file.
74069         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
74070
74071 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74072
74073         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
74074         newer, don't install charset.alias.
74075         * lib/config.charset: Change the Linux/glibc rules so they become empty
74076         on glibc-2.1 or newer.
74077
74078 2000-06-02  Jim Meyering  <meyering@lucent.com>
74079
74080         * lib/mountlist.c: Back out last change.  Instead, do this...
74081         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
74082         me_dummy member using the same `ignore'-testing code.
74083         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
74084         fs_type strings.
74085         From Mark D. Roth.
74086
74087 2000-05-29  Jim Meyering  <meyering@lucent.com>
74088
74089         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
74090         mounts with the `ignore' attribute.  Based on a patch from
74091         Mark D. Roth.
74092
74093 2000-05-28  Jim Meyering  <meyering@lucent.com>
74094
74095         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
74096         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74097         * m4/stat.m4: Likewise.
74098         * m4/lstat.m4: Likewise.
74099         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
74100
74101         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
74102         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
74103
74104 2000-05-26  Jim Meyering  <meyering@lucent.com>
74105
74106         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
74107
74108 2000-05-24  Jim Meyering  <meyering@lucent.com>
74109
74110         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
74111         autoconf requires that.
74112         * m4/lib-check.m4: Likewise.
74113         * m4/jm-macros.m4: Likewise.
74114         * m4/strftime.m4: Likewise.
74115
74116         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
74117         AC_CHECK_DECLS, now that autoconf requires that.
74118
74119 2000-05-22  Jim Meyering  <meyering@lucent.com>
74120
74121         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74122         * m4/lstat.m4: Likewise.
74123
74124 2000-05-22  Jim Meyering  <meyering@lucent.com>
74125
74126         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
74127
74128 2000-05-20  Jim Meyering  <meyering@lucent.com>
74129
74130         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
74131         (jm_PREREQ): Use it.
74132
74133 2000-05-18  Jim Meyering  <meyering@lucent.com>
74134
74135         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
74136         back, too, since it may have been modified by allocate_entry.
74137         (hash_delete): Rewrite to use neither the assignment operator
74138         nor the comma operator in an if-expression.
74139
74140 2000-05-15  Paul Eggert  <eggert@twinsun.com>
74141
74142         * lib/closeout.c:
74143         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
74144         Remove; no longer needed.
74145         "quotearg.h": Add include.
74146         (file_name): Do not bother to explicitly initialize to NULL; it's less
74147         efficient on some hosts.
74148         (close_stdout_status): Remove test as to whether stdout was already
74149         closed; it breaks for the case "echo x | sort >&-".
74150         Quote file name colons.
74151         Do not assume that _("write error") lacks format strings.
74152
74153 2000-05-15  Jim Meyering  <meyering@lucent.com>
74154
74155         * lib/version-etc.c (version_etc_copyright): Update the copyright
74156         string used in all --version output.
74157
74158 2000-05-14  Jim Meyering  <meyering@lucent.com>
74159
74160         * lib/closeout.c (close_stdout_set_file_name): New function.
74161         (close_stdout_status): Use new file-scoped global.
74162         Return right away if fstat says the stdout file descriptor is invalid.
74163         * lib/closeout.h (close_stdout_set_file_name): Declare.
74164
74165 2000-05-10  Jim Meyering  <meyering@lucent.com>
74166
74167         * lib/closeout.c [default_exit_status]: New file-scoped variable.
74168         (close_stdout_set_status): New function.
74169         * lib/closeout.h (close_stdout_set_status): Declare.
74170
74171 2000-05-09  Jim Meyering  <meyering@lucent.com>
74172
74173         * m4/gettext.m4: Rename this...
74174         * m4/libintl.m4: ...to this.
74175
74176 2000-05-08  Jim Meyering  <meyering@lucent.com>
74177
74178         * lib/long-options.c: Don't include closeout.h.
74179         (parse_long_options): Don't call close_stdout for --version.
74180
74181 2000-05-06  Paul Eggert  <eggert@twinsun.com>
74182
74183         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
74184         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
74185         2.1.3 bug.  This avoids a clash when files like regex.c define
74186         _GNU_SOURCE.
74187
74188 2000-05-06  Jim Meyering  <meyering@lucent.com>
74189
74190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
74191         (AC_REPLACE_FUNCS): Add strnlen.
74192
74193         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
74194         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
74195
74196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
74197         AC_SEARCH_LIBS call for nanosleep.
74198         (LIB_NANOSLEEP): Set and AC_SUBST.
74199
74200 2000-05-06  Jim Meyering  <meyering@lucent.com>
74201
74202         * lib/strnlen.c: Undefine __strnlen and strnlen.
74203         [!weak_alias]: Define __strnlen to strnlen.
74204
74205         * lib/atexit.c: New file, from libiberty.
74206
74207 2000-05-06  Jim Meyering  <meyering@lucent.com>
74208
74209         * lib/closeout.c (close_stdout_status): Also check for errors on the
74210         stderr stream.
74211
74212 2000-05-05  Jim Meyering  <meyering@lucent.com>
74213
74214         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
74215         AC_SEARCH_LIBS call for clock_gettime.
74216         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
74217
74218         * m4/search-libs.m4: Update from autoconf.
74219
74220         su doesn't work on Solaris 2.6.
74221         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
74222         <shadow.h>.  Reported by Dragos Harabor.
74223
74224 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
74225
74226         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
74227         memcpy instead of xmalloc, xrealloc, path_concat.
74228         (locale_charset): Treat empty environment variables as absent.
74229         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
74230
74231 2000-05-04  Jim Meyering  <meyering@lucent.com>
74232
74233         * lib/getopt.c: Update from glibc.
74234         * lib/obstack.c: Likewise.
74235         * lib/obstack.h: Likewise.
74236         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
74237         file
74238
74239         * lib/regex.h: Likewise.
74240         * lib/strndup.c: Likewise.
74241         * lib/strnlen.c: New file, from glibc.
74242
74243 2000-05-03  Jim Meyering  <meyering@lucent.com>
74244
74245         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
74246
74247 2000-05-02  Paul Eggert  <eggert@twinsun.com>
74248
74249         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
74250         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
74251         compile-time test, rather than inspecting host and OS, to
74252         decide whether to define _LARGEFILE_SOURCE.
74253
74254 2000-05-01  Jim Meyering  <meyering@lucent.com>
74255
74256         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
74257
74258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
74259         Based on a patch from Bruno Haible.
74260
74261 2000-05-01  Jim Meyering  <meyering@lucent.com>
74262
74263         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
74264
74265 2000-04-29  Jim Meyering  <meyering@lucent.com>
74266
74267         * lib/path-concat.c: Declare strdup only if it's not defined.
74268         * lib/canon-host.c: Likewise.
74269
74270 2000-04-28  Jim Meyering  <meyering@lucent.com>
74271
74272         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
74273         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
74274         is included first, then limits.h is included by locale.h by libintl.h.
74275         From John David Anglin.
74276
74277 2000-04-25  Jim Meyering  <meyering@lucent.com>
74278
74279         * lib/makepath.c (S_IRWXUGO): Define.
74280         (make_path): Always perform explicit chmod if MODE specifies any
74281         of the `special' permission bits.  Prompted by a bug report against
74282         install from Mate Wierdl and Joost van Baal.
74283
74284 2000-04-18  Jim Meyering  <meyering@lucent.com>
74285
74286         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
74287         (jm_PREREQ): Use it.
74288
74289 2000-04-18  Jim Meyering  <meyering@lucent.com>
74290
74291         * lib/README: New file.
74292
74293         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
74294         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
74295
74296 2000-04-17  Jim Meyering  <meyering@lucent.com>
74297
74298         Get it right :-)
74299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
74300         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
74301         Suggestion from Akim Demaille.
74302
74303 2000-04-17  Jim Meyering  <meyering@lucent.com>
74304
74305         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
74306         the definition of it to rpl_strftime also defined-away the system's
74307         declaration.
74308
74309 2000-04-15  Jim Meyering  <meyering@lucent.com>
74310
74311         Use `C' to denote so-called `contiguous' files, the same way
74312         that tar does.
74313         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
74314         (ftypelet): Use S_ISCTG.
74315         From Michael Deutschmann.
74316
74317 2000-04-14  Jim Meyering  <meyering@lucent.com>
74318
74319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
74320         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
74321         clobbered.
74322
74323 2000-04-14  Jim Meyering  <meyering@lucent.com>
74324
74325         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
74326
74327 2000-04-13  Jim Meyering  <meyering@lucent.com>
74328
74329         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
74330         AH_VERBATIM to insert required #ifndef into config.h.in.
74331         Suggestion from Akim Demaille.
74332
74333 2000-04-12  Jim Meyering  <meyering@lucent.com>
74334
74335         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
74336         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
74337         Christian Krackowizer.
74338
74339         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
74340         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
74341         (AC_SYS_LARGEFILE): Require.
74342         (AM_C_PROTOTYPES): Require.
74343
74344 2000-04-08  Jim Meyering  <meyering@lucent.com>
74345
74346         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
74347         names don't conflict.  Reported by Eli Zaretskii.
74348
74349 2000-04-07  Jim Meyering  <meyering@lucent.com>
74350
74351         * lib/putenv.c: Move inclusion of errno.h so it follows that of
74352         sys/types.h, to work around system header problems on AIX 3.2.5.
74353         From Bruno Haible.
74354
74355 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
74356
74357         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
74358         bug.  Deal with the different error behavior of Irix iconv.
74359
74360 2000-04-05  Paul Eggert  <eggert@twinsun.com>
74361
74362         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
74363         IRIX if the installer said otherwise.
74364
74365 2000-04-05  Jim Meyering  <meyering@lucent.com>
74366
74367         Portability tweaks required for ultrix4.3.
74368         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
74369         (jm_CHECK_DECLS): Add getutent to the list of functions.
74370         (_jm_DECL_HEADERS): Add utmpx.h.
74371         From John David Anglin.
74372
74373         * m4/strftime.m4: Back out the 2000-04-02 change.
74374         Instead of that change, simply undefine putenv in the test program.
74375
74376 2000-04-05  Jim Meyering  <meyering@lucent.com>
74377
74378         Portability tweaks required for ultrix4.3.
74379         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
74380         getutent.
74381         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
74382         * lib/canon-host.c: Declare strdup.
74383         * lib/path-concat.c: Likewise.
74384         From John David Anglin.
74385
74386 2000-04-04  Jim Meyering  <meyering@lucent.com>
74387
74388         Be more DOS 8.3-friendly.
74389         * lib/ref-add.sin: Renamed from ref-add.sed.in.
74390         * lib/ref-del.sin: Renamed from ref-del.sed.in.
74391         * lib/Makefile.am: Reflect renaming.
74392         Reported by Eli Zaretskii.
74393
74394         Use a temporary file name that won't clash with `charset.alias'
74395         in the DOS 8.3 name space.
74396         * lib/Makefile.am (charset_tmp): Define.
74397         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
74398         (uninstall-local): Likewise.
74399         Reported by Eli Zaretskii.
74400
74401 2000-04-03  Jim Meyering  <meyering@lucent.com>
74402
74403         * m4/gettext.m4: Fix typo in comment.
74404
74405         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
74406         textutils/configure.in).  Suggestion from Paul Eggert.
74407         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
74408
74409 2000-04-02  Paul Eggert  <eggert@twinsun.com>
74410
74411         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
74412         variable in the shell rather than using putenv, which isn't
74413         portable.  This avoids the configure-time inter-test dependency
74414         on the potentially-renamed putenv function.
74415
74416 2000-03-30  Paul Eggert  <eggert@twinsun.com>
74417
74418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
74419         before checking struct stat.st_blksize, so that
74420         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
74421
74422 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74423
74424         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
74425         since strftime.c uses HAVE_STRFTIME to decide whether to use
74426         the underlying strftime.
74427
74428 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74429
74430         * lib/time/strftime.c (my_strftime): Make sure we call the system
74431         strftime, not ourselves, when invoking the underlying strftime.
74432
74433 2000-03-24  Jim Meyering  <meyering@lucent.com>
74434
74435         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
74436         (charset_alias): Define.
74437         (install-exec-local): Factor out common code.
74438         (uninstall-local): Split lines longer than 80.
74439         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
74440         (SUFFIXES): Define.
74441         (.sed.in.sed): New rule.  Don't redirect directly to $@.
74442         (CLEANFILES): Add ref-add.sed and ref-del.sed.
74443
74444 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
74445
74446         * lib/config.charset: Output a line containing "Packages using this
74447         file".
74448         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
74449         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
74450         ref-del.sed): New rules.
74451
74452 2000-03-17  Jim Meyering  <meyering@lucent.com>
74453
74454         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
74455         Otherwise, include <strings.h>
74456
74457 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
74458
74459         * lib/unicodeio.c (utf8_wctomb): New function.
74460         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
74461         format instead of in UCS-4 with platform dependent endianness.
74462
74463 2000-03-10  Jim Meyering  <meyering@lucent.com>
74464
74465         * m4/lib-check.m4: Look for getspnam in -lgen, too.
74466         From Marco Franzen.
74467
74468 2000-03-07  Paul Eggert  <eggert@twinsun.com>
74469
74470         * lib/savedir.c (savedir): Work even if directory size is
74471         negative; this can happen with some screwy NFS configurations.
74472
74473 2000-03-06  Jim Meyering  <meyering@lucent.com>
74474
74475         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
74476         if it's NULL (because we ran out of memory).  From Bruno Haible.
74477
74478 2000-03-05  Jim Meyering  <meyering@lucent.com>
74479
74480         * lib/localcharset.c ("path-concat.h"): Include.
74481         (get_charset_aliases): Use path_concat instead of ANSI string
74482         concatenation.
74483
74484         * lib/unicodeio.h (PARAMS): Define.
74485         Use it to guard prototype.
74486
74487 2000-03-04  Jim Meyering  <meyering@lucent.com>
74488
74489         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
74490         for lib/localcharset.c.
74491
74492 2000-03-04  Jim Meyering  <meyering@lucent.com>
74493
74494         * lib/Makefile.am (install-exec-local): Create $(libdir) before
74495         installing into it.
74496         (uninstall-local): Uncomment this rule so `make distcheck' works
74497         once again.
74498
74499         * lib/unicodeio.c (<errno.h>): Include it.
74500         (errno): Declare if not defined.
74501
74502         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
74503
74504         * lib/config.charset: New version, incorporating remarks from a linux
74505         i18n mailing list.  From Bruno Haible.
74506
74507 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
74508
74509         * m4/codeset.m4: New file.
74510         * m4/iconv.m4: New file.
74511         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
74512
74513 2000-03-03  Jim Meyering  <meyering@lucent.com>
74514
74515         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
74516
74517 2000-03-02  Jim Meyering  <meyering@lucent.com>
74518
74519         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
74520         the messages come out on separate lines.
74521
74522         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
74523         rather than jm_CHECK_DECLARATIONS.
74524         * m4/decl.m4: Remove now-unused file.
74525
74526         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
74527         geteuid.
74528
74529 2000-03-02  Jim Meyering  <meyering@lucent.com>
74530
74531         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
74532
74533 2000-03-01  Jim Meyering  <meyering@lucent.com>
74534
74535         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
74536         * lib/unicodeio.c: Likewise.
74537
74538 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
74539
74540         * lib/config.charset: New file.
74541         * lib/localcharset.c: New file.
74542         * lib/unicodeio.h, lib/unicodeio.c: New files.
74543         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
74544         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
74545         (noinst_HEADERS): Add unicodeio.h.
74546         (all-local, install-exec-local, charset.alias): New targets.
74547
74548 2000-02-28  Paul Eggert  <eggert@twinsun.com>
74549
74550         * lib/quotearg.c (ALERT_CHAR): New macro.
74551         (quotearg_buffer_restyled): Use it.
74552
74553 2000-02-27  Jim Meyering  <meyering@lucent.com>
74554
74555         * m4/check-decl.m4: Add getenv to the list.
74556
74557 2000-02-27  Jim Meyering  <meyering@lucent.com>
74558
74559         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
74560         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
74561
74562         * lib/backupfile.c: Guard inclusion of stdlib.h with
74563         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
74564         Declare malloc if needed.
74565
74566         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
74567         `#ifndef HAVE_DECL..'
74568         now that autoconf always defines the HAVE_DECL_ symbols.
74569         * lib/human.c: Likewise.
74570         * lib/same.c: Likewise.
74571         * lib/strtoumax.c: Likewise.
74572
74573         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74574         declaration check was not run.
74575         * lib/hash.c: Likewise.
74576         * lib/human.c: Likewise.
74577         * lib/same.c: Likewise.
74578         * lib/strtoumax.c: Likewise.
74579
74580         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74581         `.', then first look up the entire `.'-containing string as a login
74582         name.
74583
74584 2000-02-23  Jim Meyering  <meyering@lucent.com>
74585
74586         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74587         in place of my hack.
74588
74589 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74590
74591         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74592         (textint): New typedef.
74593         (parser_control): Member year changed from int to textint.
74594         All uses changed.
74595         (YYSTYPE): Removed; replaced by %union with int and textint members.
74596         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74597         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74598         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74599         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74600         (date, number, to_year): Use width of number in digits, not its value,
74601         to determine whether it's a 2-digit year, or a 2-digit time.
74602         (yylex): Store number of digits of numeric tokens.
74603         Reported by John Kendall.
74604
74605         (parser_control): Changed from struct parser_control to typedef (for
74606         consistency).  All uses changed.
74607
74608         (tID): Removed; not used.
74609         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
74610
74611 2000-02-14  Paul Eggert  <eggert@twinsun.com>
74612
74613         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
74614         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
74615
74616 2000-02-12  Jim Meyering  <meyering@lucent.com>
74617
74618         * lib/userspec.c (ISDIGIT): Define it.
74619         (isdigit): Remove definition.
74620         (is_number): Use ISDIGIT, not isdigit.
74621         <libintl.h>: Include.
74622         (_ and N_): Define.
74623         (parse_user_spec): Mark translatable strings.
74624
74625 2000-02-10  Jim Meyering  <meyering@lucent.com>
74626
74627         With these changes, nanosleep.[ch] are finally enough like the other
74628         lib/* replacement files to compile on a few more losing systems.
74629
74630         * lib/nanosleep.h: Don't include config.h.
74631         Remove prototype from declaration of nanosleep.
74632         (PARAMS): Remove now-unneeded definition.
74633         * lib/nanosleep.c: #undef nanosleep.
74634         (rpl_nanosleep): Rename from nanosleep.
74635
74636 2000-02-10  Jim Meyering  <meyering@lucent.com>
74637
74638         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
74639         gnu_nanosleep to rpl_nanosleep.
74640
74641 2000-02-09  Jim Meyering  <meyering@lucent.com>
74642
74643         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
74644         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
74645
74646 2000-02-08  Akim Demaille  <akim@epita.fr>
74647
74648         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
74649         `[' and `]' and remove uses of `changequote'.
74650         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
74651         (AC_SYS_LARGEFILE): Likewise.
74652         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
74653         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
74654         of changequote.
74655         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
74656         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
74657         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
74658         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
74659
74660 2000-02-05  Jim Meyering  <meyering@lucent.com>
74661
74662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
74663         Remove explicit use of AC_HEADER_TIME.  It is required by
74664         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
74665         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
74666         in autoconf whereby the expansion of the latter ended up preceding
74667         the expansion of its prerequisite, AC_HEADER_TIME.
74668         Reported by Volker Borchert.
74669
74670 2000-02-03  Jim Meyering  <meyering@lucent.com>
74671
74672         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
74673
74674 2000-02-03  Jim Meyering  <meyering@lucent.com>
74675
74676         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
74677         rather than with `#if HAVE_UTMPNAME'.
74678
74679 2000-02-02  Jim Meyering  <meyering@lucent.com>
74680
74681         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
74682         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
74683         Reported by Eli Zaretskii.
74684
74685 2000-02-01  Jim Meyering  <meyering@lucent.com>
74686
74687         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
74688
74689 2000-01-31  Jim Meyering  <meyering@lucent.com>
74690
74691         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
74692         functions.  Add the time.h and sys/time.h headers along with the
74693         AC_REQUIRE'ment of AC_HEADER_TIME.
74694
74695 2000-01-31  Jim Meyering  <meyering@lucent.com>
74696
74697         * lib/nanosleep.h (nanosleep): Guard declaration with
74698         `#if ! HAVE_DECL_NANOSLEEP'.
74699         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
74700         the declaration in that vendor's sys/timers.h.
74701         Reported by Christian Krackowizer.
74702
74703         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
74704         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
74705         (ISPRINT): Likewise.
74706         Reported by Tom Tromey.
74707
74708 2000-01-30  Jim Meyering  <meyering@lucent.com>
74709
74710         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
74711
74712         * m4/prereq.m4 (utmp_includes): Define.
74713         Check for ut_user and ut_name members in both struct utmpx
74714         and struct utmp.
74715
74716 2000-01-30  Jim Meyering  <meyering@lucent.com>
74717
74718         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
74719         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
74720         header files where only utmpx.ut_user is declared.
74721
74722         * lib/readutmp.h (UT_USER): Define.
74723
74724 2000-01-29  Jim Meyering  <meyering@lucent.com>
74725
74726         * m4/lib-check.m4: New file containing library-related checks from
74727         fileutils and sh-utils (textutils had none).
74728
74729 2000-01-28  Jim Meyering  <meyering@lucent.com>
74730
74731         * m4/perl.m4: Change format of warning message to look more like that
74732         from the missing script.  Suggestion from François Pinard.
74733
74734 2000-01-25  Jim Meyering  <meyering@lucent.com>
74735
74736         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74737         well as time.h in the compile check.
74738         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74739         Fix typo in cross-compiling case: s/yes/no/.
74740
74741 2000-01-23  Jim Meyering  <meyering@lucent.com>
74742
74743         * m4/jm-macros.m4: Move df-related tests here from
74744         fileutils/configure.in
74745
74746         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74747         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74748
74749         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74750         s/space/ac_fsusage_space/.
74751         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74752
74753         * m4/ftruncate.m4: New file (derived from part of
74754         fileutils/configure.in).
74755         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74756         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74757
74758         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74759         AC_SUBST these here, rather than just in sh-util/configure.in, so
74760         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74761         all the same.
74762         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74763         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74764         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74765         (AC_SUBST(POW_LIBM)): Likewise.
74766         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74767
74768 2000-01-23  Jim Meyering  <meyering@lucent.com>
74769
74770         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74771         obstack.c.
74772
74773 2000-01-22  Jim Meyering  <meyering@lucent.com>
74774
74775         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74776
74777         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74778
74779         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74780         configure.in
74781         (AC_CHECK_HEADERS): Likewise for sh-utils.
74782         (AC_CHECK_HEADERS): Likewise for textutils.
74783         Merge the three lists of headers.
74784
74785         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74786         from fileutils' configure.in.
74787
74788         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74789         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74790         check-decl.m4.
74791
74792         * m4/check-decl.m4: Use #if rather than #ifdef.
74793         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74794         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74795         (_jm_DECL_HEADERS): Define new function.
74796         (jm_CHECK_DECLARATIONS): Require it.
74797
74798 2000-01-22  Jim Meyering  <meyering@lucent.com>
74799
74800         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74801         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74802         Required for some AIX systems.  Reported by Christian Krackowizer.
74803         [TESTING] (main): New function.
74804
74805         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74806         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74807         letters.
74808
74809         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74810         iswprint.
74811
74812         * lib/strverscmp.c (ISDIGIT): Define.
74813         (strverscmp): Use ISDIGIT, not isdigit.
74814
74815 2000-01-19  Jim Meyering  <meyering@lucent.com>
74816
74817         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74818         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74819         defines `struct timespec' in <sys/time.h>
74820
74821         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74822         Thanks to Akim for explaining.
74823
74824 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74825
74826         * lib/nanosleep.c (nanosleep):
74827         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74828         POSIX.1 doesn't require SA_INTERRUPT and some systems
74829         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74830         it's been part of POSIX.1 since day 1 (in 1988).
74831
74832 2000-01-17  Jim Meyering  <meyering@lucent.com>
74833
74834         * lib/interlock: Remove unused file.  Reported by François Pinard.
74835
74836 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74837
74838         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74839         alert, backslash, formfeed, and vertical tab unnecessarily in
74840         shell quoting style.
74841
74842 2000-01-16  Jim Meyering  <meyering@lucent.com>
74843
74844         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74845         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74846         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74847         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74848
74849 2000-01-16  Jim Meyering  <meyering@lucent.com>
74850
74851         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74852         because the latter didn't work.
74853
74854 2000-01-15  Jim Meyering  <meyering@lucent.com>
74855
74856         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74857         (AC_REPLACE_FUNCS): Add memcpy and memset.
74858         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74859         Add strpbrk.
74860         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74861
74862 2000-01-12  Jim Meyering  <meyering@lucent.com>
74863
74864         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74865         (jm_PREREQ): Use it.
74866         (jm_PREREQ_READUTMP): New macro.
74867         (jm_PREREQ): Use it.
74868
74869 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74870
74871         Quote multibyte characters correctly.
74872         * m4/c-bs-a.m4: New file.
74873         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74874         (jm_PREREQ): Use it.
74875
74876 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74877
74878         * m4/uintmax_t.m4: Port to autoconf 2.13.
74879
74880 2000-01-08  Jim Meyering  <meyering@ascend.com>
74881
74882         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74883         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74884
74885 2000-01-04  Jim Meyering  <meyering@ascend.com>
74886
74887         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74888         jm_STRUCT_DIRENT_D_TYPE.
74889         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74890         jm_STRUCT_DIRENT_D_INO.
74891         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74892         jm_STRUCT_UTIMBUF.
74893         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74894         renamings.
74895         * m4/utime.m4: Likewise.
74896
74897         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74898         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74899
74900 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74901
74902         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74903         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74904
74905 2000-01-02  Jim Meyering  <meyering@ascend.com>
74906
74907         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74908         remember if this is necessary.
74909
74910 1999-12-26  Jim Meyering  <meyering@ascend.com>
74911
74912         * m4/jm-macros.m4: Use it here.
74913         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74914
74915 1999-12-23  Jim Meyering  <meyering@ascend.com>
74916
74917         * m4/jm-macros.m4: Check for clock_gettime (moved from
74918         fileutils/configure.in)
74919         Check for gettimeofday.
74920
74921 1999-12-20  Jim Meyering  <meyering@ascend.com>
74922
74923         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74924         autoconf-2.14a-1999-12-20.
74925
74926 1999-12-19  Jim Meyering  <meyering@ascend.com>
74927
74928         * m4/lstat-slash.m4: New file.
74929         * m4/jm-macros.m4: Use the new macro:
74930         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74931
74932 1999-12-07  Jim Meyering  <meyering@ascend.com>
74933
74934         * m4/perl.m4: Require that File::Compare be available, too.
74935         Too many systems seem to lack it.
74936
74937         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74938         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74939
74940 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74941
74942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74943         problem with the QNX 4.25 shell, which doesn't propagate exit
74944         status of failed commands inside shell assignments.
74945
74946 1999-11-17  Jim Meyering  <meyering@ascend.com>
74947
74948         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74949
74950 1999-11-07  Jim Meyering  <meyering@ascend.com>
74951
74952         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74953
74954 1999-11-06  Jim Meyering  <meyering@ascend.com>
74955
74956         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74957         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74958
74959 1999-11-05  Jim Meyering  <meyering@ascend.com>
74960
74961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74962         configure.in of textutils, fileutils, and sh-utils into this one
74963         (shared between those packages) file.
74964         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74965         AC_STRUCT_ST_BLKSIZE.
74966
74967 1999-11-03  Jim Meyering  <meyering@ascend.com>
74968
74969         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74970         of AC_CHECK_TYPE checks includes unistd.h.
74971         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74972         Suggestion from Akim Demaille.
74973
74974 1999-10-30  Jim Meyering  <meyering@ascend.com>
74975
74976         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74977         m4-quoted string.
74978         * m4/ls-mntd-fs.m4: Likewise.
74979         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74980         * m4/jm-winsz1.m4: Likewise.
74981
74982         * m4/const.m4: Remove file, since the fix made it into the experimental
74983         version of autoconf.
74984         * m4/mktime.m4: Likewise.
74985
74986         * m4/check-type.m4: Remove file, now that the latest version of
74987         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74988
74989         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74990         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74991         AC_CHECK_TYPE.
74992
74993 1999-10-04  Jim Meyering  <meyering@ascend.com>
74994
74995         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74996
74997 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74998
74999         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
75000         2.95.1 bug with HP-UX 10.20.
75001
75002 1999-09-17  Jim Meyering  <meyering@ascend.com>
75003
75004         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
75005         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
75006         due to missing strdup (against sh-utils-2.0).
75007
75008 1999-08-29  Jim Meyering  <meyering@ascend.com>
75009
75010         * m4/jm-macros.m4: Require jm_BISON.
75011         * m4/bison.m4: New file.
75012
75013 1999-08-17  Paul Eggert  <eggert@twinsun.com>
75014
75015         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
75016         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
75017
75018 1999-08-05  Jim Meyering  <meyering@ascend.com>
75019
75020         * m4/getline.m4: Rename test file from conftestdata to conftest.data
75021         to avoid conflicts with `conftest' on 8+3 filesystems.
75022         Suggestion from Eli Zaretskii.
75023
75024 1999-08-04  Jim Meyering  <meyering@ascend.com>
75025
75026         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
75027         fileutils and sh-utils (textutils's getline test was inadequate).
75028         (AM_FUNC_GETLINE): Run this test.
75029         (AC_CHECK_FUNCS): Check for getdelim.
75030         Reported by Bob Proulx.
75031
75032 1999-08-02  Jim Meyering  <meyering@ascend.com>
75033
75034         * m4/jm-macros.m4: Add a comment.
75035
75036 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75037
75038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
75039         <inttypes.h> defines strtoumax as a macro (and not as a
75040         function).
75041
75042 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75043
75044         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
75045         that we can shift, multiply and divide unsigned long long
75046         values; Ultrix cc can't do it.
75047
75048 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75049
75050         * m4/mktime.m4: New file, which is a preview of what should appear
75051         in the next public autoconf release.
75052
75053 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75054
75055         * m4/lfs.m4: Remove this file.
75056         * m4/largefile.m4: New file.  It contains the old contents of
75057         lfs.m4, except that all names with prefix AC_LFS have been
75058         changed to use the prefix AC_SYS_LARGEFILE instead, to be
75059         compatible with future autoconf versions.  Also, some minor m4
75060         quoting problems have been fixed.
75061
75062 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75063
75064         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
75065         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
75066         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
75067         and simplify the shell code.
75068
75069 1999-08-01  Jim Meyering  <meyering@ascend.com>
75070
75071         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
75072         m4.
75073
75074 1999-07-20  Jim Meyering  <meyering@ascend.com>
75075
75076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
75077
75078 1999-07-15  Jim Meyering  <meyering@ascend.com>
75079
75080         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
75081
75082 1999-05-22  Jim Meyering  <meyering@ascend.com>
75083
75084         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
75085
75086 1999-05-20  Jim Meyering  <meyering@ascend.com>
75087
75088         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
75089         Add a colon after each `then' in case $4 is empty.
75090
75091 1999-05-16  Jim Meyering  <meyering@ascend.com>
75092
75093         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
75094
75095 1999-05-10  Jim Meyering  <meyering@ascend.com>
75096
75097         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
75098
75099         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
75100         AC_FUNC_MKTIME.
75101
75102 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
75103
75104         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
75105
75106 1999-05-04  Paul Eggert  <eggert@twinsun.com>
75107
75108         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
75109         not CPPFLAGS, so that linking works correctly in IRIX.
75110
75111 1999-04-30  Paul Eggert  <eggert@twinsun.com>
75112
75113         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
75114
75115 1999-04-20  Paul Eggert  <eggert@twinsun.com>
75116
75117         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
75118         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
75119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
75120         jm_AC_TYPE_UNSIGNED_LONG_LONG.
75121         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
75122
75123         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
75124
75125 1999-04-20  Jim Meyering  <meyering@ascend.com>
75126
75127         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
75128         AC_REPLACE xstroull if necessary.  From Paul Eggert.
75129         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
75130
75131 1999-04-18  Jim Meyering  <meyering@ascend.com>
75132
75133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
75134         * m4/jm-macros.m4: Use it.
75135
75136 1999-04-06  Jim Meyering  <meyering@ascend.com>
75137
75138         * m4/strftime.m4: Remove test for %f.
75139
75140 1999-03-29  Jim Meyering  <meyering@ascend.com>
75141
75142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
75143         superset of the AC_TYPE_* checks in the textutils, fileutils,
75144         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
75145         AC_TYPE_PID_T.
75146
75147 1999-03-28  Jim Meyering  <meyering@ascend.com>
75148
75149         * m4/jm-macros.m4: Define GNU_PACKAGE here.
75150         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
75151         replaced e.g., in the *.sh files of the sh-utils.
75152
75153 1999-03-20  Jim Meyering  <meyering@ascend.com>
75154
75155         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
75156         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
75157         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
75158
75159 1999-03-19  Jim Meyering  <meyering@ascend.com>
75160
75161         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
75162
75163 1999-03-12  Jim Meyering  <meyering@ascend.com>
75164
75165         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
75166
75167 1999-03-07  Jim Meyering  <meyering@ascend.com>
75168
75169         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
75170         declared.
75171
75172 1999-02-17  Jim Meyering  <meyering@ascend.com>
75173
75174         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
75175         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
75176
75177 1999-02-07  Jim Meyering  <meyering@ascend.com>
75178
75179         * m4/group-member.m4: New file -- extracted from sh-utils'
75180         configure.in.
75181
75182         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
75183         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
75184
75185 1999-02-06  Jim Meyering  <meyering@ascend.com>
75186
75187         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
75188         * m4/fnmatch.m4: Likewise.
75189         * m4/getgroups.m4: Likewise.
75190         * m4/lstat.m4: Likewise.
75191         * m4/malloc.m4: Likewise.
75192         * m4/putenv.m4: Likewise.
75193         * m4/realloc.m4: Likewise.
75194         * m4/regex.m4: Likewise.
75195         * m4/stat.m4: Likewise.
75196         * m4/strftime.m4: Likewise.
75197         Suggestion from Alain Magloire.
75198
75199         * m4/chown.m4: Use `.$ac_objext', not `.o'.
75200         * m4/fnmatch.m4: Likewise.
75201         * m4/getgroups.m4: Likewise.
75202         * m4/getline.m4: Likewise.
75203         * m4/lstat.m4: Likewise.
75204         * m4/malloc.m4: Likewise.
75205         * m4/memcmp.m4: Likewise.
75206         * m4/putenv.m4: Likewise.
75207         * m4/realloc.m4: Likewise.
75208         * m4/regex.m4: Likewise.
75209         * m4/stat.m4: Likewise.
75210         * m4/strftime.m4: Likewise.
75211         Suggestion from Alain Magloire.
75212
75213         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
75214         an argument.
75215
75216         * m4/regex.m4: Add a run-time Test for proper operation of
75217         re_compile_pattern.
75218
75219 1999-01-31  Jim Meyering  <meyering@ascend.com>
75220
75221         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
75222
75223 1999-01-30  Jim Meyering  <meyering@ascend.com>
75224
75225         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
75226
75227         * m4/jm-mktime.m4: Make this a wrapper around the official
75228         AM_FUNC_MKTIME rather than my private copy, now that the official one
75229         is up to date.
75230         * m4/mktime.m4: Remove file.
75231
75232         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
75233         * m4/uptime.m4: Likewise.
75234         * m4/uintmax_t.m4: Likewise.
75235
75236 1999-01-28  Jim Meyering  <meyering@ascend.com>
75237
75238         * m4/jm-macros.m4: Use jm_AFS.
75239         * m4/afs.m4: New file (from fileutils' configure.in).
75240
75241         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
75242         * m4/chown.m4: Likewise.
75243         * m4/d-ino.m4: Likewise.
75244         * m4/d-type.m4: Likewise.
75245         * m4/fnmatch.m4: Likewise.
75246         * m4/getgroups.m4: Likewise.
75247         * m4/gettext.m4: Likewise.
75248         * m4/jm-mktime.m4: Likewise.
75249         * m4/jm-winsz2.m4: Likewise.
75250         * m4/lcmessage.m4: Likewise.
75251         * m4/ls-mntd-fs.m4: Likewise.
75252         * m4/malloc.m4: Likewise.
75253         * m4/memcmp.m4: Likewise.
75254         * m4/putenv.m4: Likewise.
75255         * m4/realloc.m4: Likewise.
75256         * m4/st_mtim.m4: Likewise.
75257         * m4/strftime.m4: Likewise.
75258
75259 1999-01-16  Jim Meyering  <meyering@ascend.com>
75260
75261         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
75262         (ARGMATCH_DIE_DECL): Define.
75263
75264 1999-01-12  Jim Meyering  <meyering@ascend.com>
75265
75266         * m4/Makefile.am.in: Rewrite to avoid using fmt.
75267         Reported by Lars Hecking.
75268
75269 1999-01-10  Jim Meyering  <meyering@ascend.com>
75270
75271         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
75272         gross kludge.
75273         * m4/inttypes_h.m4: Likewise.
75274         * m4/lstat.m4: Likewise.
75275         * m4/malloc.m4: Likewise.
75276         * m4/readdir.m4: Likewise.
75277         * m4/realloc.m4: Likewise.
75278         * m4/st_dm_mode.m4: Likewise.
75279         * m4/stat.m4: Likewise.
75280         * m4/utimbuf.m4: Likewise.
75281         * m4/utimes.m4: Likewise.
75282
75283         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
75284         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
75285         comments in config.h.in are meaningful.
75286
75287         * m4/jm-macros.m4: Require autoconf-2.13 here.
75288
75289         * m4/regex.m4: By default, don't use the included regex.c on systems
75290         with glibc 2.  Suggestion from Uli Drepper.
75291
75292 1999-01-02  Jim Meyering  <meyering@ascend.com>
75293
75294         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
75295
75296 1998-12-18  Jim Meyering  <meyering@ascend.com>
75297
75298         * m4/Makefile.am.in (Makefile.am): Simplify rule.
75299         Based on a suggestion from Lars Hecking.
75300
75301 1998-11-16  Paul Eggert  <eggert@twinsun.com>
75302
75303         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
75304
75305 1998-11-16  Jim Meyering  <meyering@ascend.com>
75306
75307         * m4/lfs.m4: Double-quote the `uname...` expression.
75308
75309 1998-11-14  Jim Meyering  <meyering@ascend.com>
75310
75311         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
75312         * m4/stat.m4: Likewise.
75313
75314 1998-11-03  Jim Meyering  <meyering@ascend.com>
75315
75316         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
75317         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
75318
75319 1998-10-18  Jim Meyering  <meyering@ascend.com>
75320
75321         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
75322
75323 1998-10-17  Jim Meyering  <meyering@ascend.com>
75324
75325         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
75326         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
75327         calls for those previously hard-coded headers.  Instead, take a new
75328         parameter.
75329         (jm_CHECK_DECLARATIONS): Reflect interface change.
75330         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
75331         (jm_CHECK_DECL_LOCALTIME_R): New macro.
75332
75333         * m4/mktime.m4: Test for spring-forward gap before long-running test.
75334
75335 1998-10-14  Jim Meyering  <meyering@ascend.com>
75336
75337         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
75338         instead of "TZ=America/Vancouver".  From Paul Eggert.
75339
75340 1998-10-11  Jim Meyering  <meyering@ascend.com>
75341
75342         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
75343         This adds a test for a recently added compatibility fix for mktime.c.
75344         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
75345
75346 1998-09-27  Jim Meyering  <meyering@ascend.com>
75347
75348         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
75349
75350         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
75351         ../configure.in, including a change from Gordon Matzigkeit to allow
75352         cross-compiling for the Hurd.
75353
75354         * m4/glibc.m4: New file/macro to test for the GNU C Library
75355         versions 1 and 2.  From Gordon Matzigkeit.
75356         Indent.
75357
75358 1998-09-21  Jim Meyering  <meyering@ascend.com>
75359
75360         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
75361
75362 1998-08-18  Paul Eggert  <eggert@twinsun.com>
75363
75364         Port nanosecond-resolution times to UnixWare 2.1.2 and
75365         pedantic Solaris 2.6.
75366
75367         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
75368         AC_STRUCT_ST_MTIM.
75369         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
75370         Generate name of ns member, instead of just 1 or undef.
75371         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
75372
75373 1998-08-15  Jim Meyering  <meyering@ascend.com>
75374
75375         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
75376         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
75377         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
75378         instead of jm_TYPE_SSIZE_T.
75379
75380 1998-08-12  Jim Meyering  <meyering@ascend.com>
75381
75382         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
75383
75384 1998-08-02  Jim Meyering  <meyering@ascend.com>
75385
75386         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
75387         in acconfig.h manually.
75388
75389 1998-07-31  Paul Eggert  <eggert@twinsun.com>
75390
75391         * m4/st_mtim.m4: New file.
75392
75393 1998-07-28  Jim Meyering  <meyering@ascend.com>
75394
75395         * m4/utimes.m4: Undef stat.
75396
75397 1998-07-25  Jim Meyering  <meyering@ascend.com>
75398
75399         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
75400         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
75401
75402 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
75403
75404         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
75405         uid and gid actually remain unchanged.
75406
75407 1998-07-07  Jim Meyering  <meyering@ascend.com>
75408
75409         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
75410
75411 1998-07-04  Jim Meyering  <meyering@ascend.com>
75412
75413         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
75414         to prove that this macro can be used in packages without regex.c.
75415
75416 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
75417
75418         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
75419         is to be used.
75420
75421 1998-07-03  Jim Meyering  <meyering@ascend.com>
75422
75423         * m4/gettext.m4: Add -lintl if it's found to be necessary.
75424
75425         * m4/gettext.m4: New file -- from gettext-0.10.35.
75426         * m4/lcmessage.m4: Likewise.
75427         * m4/progtest.m4: Likewise.
75428
75429         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
75430         * m4/jm-macros.m4: Require the new macro.
75431
75432 1998-06-29  Jim Meyering  <meyering@ascend.com>
75433
75434         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
75435         for the definition of NGROUPS (used in a system header included
75436         by sys/mount.h).
75437
75438 1998-06-28  Jim Meyering  <meyering@ascend.com>
75439
75440         * m4/ls-mntd-fs.m4: New file.
75441         * m4/fstypename.m4: New file.
75442
75443         * m4/jm-macros.m4: Require the new macro.
75444         * m4/jm-glibc-io.m4: New file.
75445
75446 1998-05-19  Jim Meyering  <meyering@ascend.com>
75447
75448         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
75449         * m4/lchown.m4: New file.
75450
75451         * m4/Makefile.am.in: New file.
75452         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
75453
75454 1998-05-14  Jim Meyering  <meyering@ascend.com>
75455
75456         * m4/Makefile.am (EXTRA_DIST): Add them.
75457         * m4/jm-macros.m4: New file.
75458         * m4/utimbuf.m4: New file.
75459
75460 1998-05-12  Jim Meyering  <meyering@ascend.com>
75461
75462         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
75463
75464 1998-05-11  Jim Meyering  <meyering@ascend.com>
75465
75466         * m4/isc-posix.m4: New file.
75467
75468 1998-05-10  Jim Meyering  <meyering@ascend.com>
75469
75470         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
75471
75472 1998-05-09  Jim Meyering  <meyering@ascend.com>
75473
75474         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
75475         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
75476         with automake.
75477
75478         * m4/ssize_t.m4: New file.
75479         * m4/mktime.m4: Remove file -- the new automake has this now.
75480
75481 1998-04-26  Jim Meyering  <meyering@ascend.com>
75482
75483         * m4/assert.m4: New file.
75484         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
75485
75486 1998-04-05  Jim Meyering  <meyering@ascend.com>
75487
75488         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
75489         (jm_PREREQ): Use it here.
75490
75491 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
75492
75493         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
75494         in acconfig.h.
75495
75496 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
75497
75498         * m4/prereq.m4: New file.
75499         * m4/error.m4: New file.
75500         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
75501
75502 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
75503
75504         * m4/getline.m4: Don't set am_cv_func_working_getline before the
75505         cache-check for the same variable -- that defeated the purpose of
75506         the test; the test program was never run.  This was a problem only
75507         on systems with losing getline functions -- HP-UX 10.20 is one.
75508         Reported by Bjorn Helgaas.
75509
75510 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
75511
75512         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
75513
75514 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
75515
75516         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
75517
75518         * m4/const.m4: New file.  Use an initializer in this declaration
75519         typedef int charset[2]; const charset x;
75520         Reported by Bob Glickstein.
75521
75522 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
75523
75524         * m4/chown.m4: Fix reversed types on -1 args to chown.
75525         From Kaveh Ghazi.
75526
75527 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
75528
75529         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
75530         Add lseek and memchr.
75531
75532         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
75533         T.E.Dickey <dickey@clark.net> said that some older preprocessors
75534         have a 20-character limit on names.
75535
75536 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
75537
75538         * m4/inttypes_h.m4: New file.
75539         * m4/uintmax_t.m4: New file.
75540         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
75541
75542
75543         -----
75544
75545         Local Variables:
75546         coding: utf-8
75547         End:
75548
75549         Copyright (C) 1997-2011 Free Software Foundation, Inc.
75550
75551         Copying and distribution of this file, with or without
75552         modification, are permitted provided the copyright notice
75553         and this notice are preserved.